diff options
| author | Mistivia <i@mistivia.com> | 2025-02-22 12:38:16 +0800 |
|---|---|---|
| committer | Mistivia <i@mistivia.com> | 2025-02-22 12:38:16 +0800 |
| commit | dbbde1321daca7b345d6c83aa5d38703156ff8af (patch) | |
| tree | f60a1dd892144179f41dac91a4ac999b0bbfb2d3 /data/split.py | |
| parent | 118ca43ccef2e6ca19b445a4d21d0b927234b85b (diff) | |
fix bug
Diffstat (limited to 'data/split.py')
| -rw-r--r-- | data/split.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/data/split.py b/data/split.py index 1f93fca..9eb8a98 100644 --- a/data/split.py +++ b/data/split.py @@ -20,3 +20,10 @@ def split_file(input_filename): # 示例用法 split_file('card_db.json') +version = None +with open("card_db_parts/version.json", 'r') as fp: + version = fp.read() + version = int(version) +with open("card_db_parts/version.json", 'w') as fp: + fp.write(str(version+1)) + |
