Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import json
- import sys
- FILE = sys.argv[1]
- DELAY = int(sys.argv[2])
- file = open(FILE, "r")
- data = json.loads(file.read())
- for action in data["actions"]:
- action["at"] += DELAY
- if "rawActions" in data:
- for action in data["rawActions"]:
- action["at"] += DELAY
- open(FILE, "w").write(json.dumps(data, separators=(',',':')))
- print("Done, " + str(len(data["actions"])) + " changes made")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement