We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents cc6e707 + c6de213 commit fe76729Copy full SHA for fe76729
main.py
@@ -31,7 +31,7 @@ def get_history(token):
31
def get_new_items(items):
32
33
def _read():
34
- with open("history.json", "r") as file_data:
+ with open("/tmp/history.json", "r") as file_data:
35
parsed_data = json.load(file_data)
36
return parsed_data["history"], int(parsed_data["last_id"])
37
@@ -45,7 +45,7 @@ def _write(history):
45
"last_id": last_id,
46
"history": history
47
}
48
- with open("history.json", "w") as file_data:
+ with open("/tmp/history.json", "w") as file_data:
49
json.dump(output_data, file_data)
50
51
try:
0 commit comments