diff options
author | Evgeny Zinoviev <me@ch1p.io> | 2021-04-25 23:20:14 +0300 |
---|---|---|
committer | Evgeny Zinoviev <me@ch1p.io> | 2021-04-25 23:20:14 +0300 |
commit | 369791c1e31c3acd05632a25db7b65359a0eef47 (patch) | |
tree | 6dad5efd70bd9476ba7c06f866335f7b9eecdfed | |
parent | 837137b3d08afece9b0762f55d2ef3811b9612f1 (diff) |
-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 |