Fixed requests headers

This commit is contained in:
MatMasIt 2022-01-31 10:15:52 +01:00 committed by GitHub
parent 1bcec68ba0
commit 35bd438141
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -51,7 +51,7 @@ def upload(csvPath):
except Exception as e: except Exception as e:
print(e) print(e)
headers['X-Intent'] = "C" headers['X-Intent'] = "C"
request.post(serverUrl,data="Concludo, Presidente",headers) requests.post(serverUrl,data="Concludo, Presidente",heders=headers)
if not storage.exists("lastUpdate"): if not storage.exists("lastUpdate"):
vprint("Last database update record has been initialized") vprint("Last database update record has been initialized")
storage.save("lastUpdate",0) storage.save("lastUpdate",0)