diff options
-rwxr-xr-x | main.py | 5 | ||||
-rw-r--r-- | requirements.txt | 2 |
2 files changed, 4 insertions, 3 deletions
@@ -5,7 +5,8 @@ import traceback import os from argparse import ArgumentParser -from jstate import JState +from ch1p import State + def main(): # parse arguments @@ -17,7 +18,7 @@ def main(): args = parser.parse_args() # read file - jstate = JState(args.state_file, default=dict(seek=0, size=0)) + jstate = State(file=args.state_file, default=dict(seek=0, size=0)) state = jstate.read() fsize = os.path.getsize(args.log_file) diff --git a/requirements.txt b/requirements.txt index dd10584..8123d9e 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,2 +1,2 @@ requests~=2.25.1 -jstate~=0.0.4
\ No newline at end of file +ch1p~=0.0.3
\ No newline at end of file |