switched cron job to http request

This commit is contained in:
Computerboer
2024-10-19 14:43:21 +02:00
parent 5f6ae49922
commit a0e87927af
3 changed files with 32 additions and 15 deletions

View File

@@ -67,5 +67,5 @@ class FileCache():
def add(key, obj):
log('adding filecacheobject ' + key)
json_data = JsonEncoder().encode(obj)
with open("./filecache/" + key + ".json", 'w') as f:
with open("./filecache/" + key + ".json", 'w+') as f:
f.write(json_data)