Fix data ffile
This commit is contained in:
parent
70dd9852bc
commit
5a9a5eab60
|
@ -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())
|
||||
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue