Fix data ffile

This commit is contained in:
Neil Carpenter 2022-12-05 07:50:10 -05:00
parent 70dd9852bc
commit 5a9a5eab60
2 changed files with 2 additions and 2 deletions

View File

@ -17,5 +17,5 @@ def mark_as_posted(id, path):
with open(path, 'a') as file:
sha1 = hashlib.sha1(bytes(id, "utf-8")).hexdigest()
file.write(sha1+'\n')
print(file.read())

View File

@ -40,7 +40,7 @@ agree = [1, True, "true", "True", "yes", "Yes"]
if (os.environ.get("USE_KUBERNETES")):
id_filename = "/data/already_posted.txt"
if (os.environ.get("USE_DOCKER")):
elif (os.environ.get("USE_DOCKER")):
id_filename = "/app/already_posted.txt"
else:
id_filename = "./already_posted.txt"