Commit 44247682 authored by Timothy Ardha's avatar Timothy Ardha

fix

parent ac700484
...@@ -64,12 +64,14 @@ def check_surrounding_done(**kwargs): ...@@ -64,12 +64,14 @@ def check_surrounding_done(**kwargs):
] ]
base_path = f"""{Variable.get("LOCAL_PATH")}""" base_path = f"""{Variable.get("LOCAL_PATH")}"""
done_ext = f"""{yesterday_nodash}/done_ext.txt""" done_ext = f"""{yesterday_nodash}/done_ext.csv"""
for path, label in paths_labels: for path, label in paths_labels:
print(f"{label} {'SELESAI' if os.path.isfile(f'{base_path}{path}/{done_ext}') else 'BELUM SELESAI'}") file_path = f"""{base_path}{path}/{done_ext}"""
print(f"{label} {'SELESAI' if os.path.isfile(f'{base_path}{path}/{done_ext}') else 'BELUM SELESAI'} - Path : {file_path}")
if not os.path.isfile(f'{base_path}{path}/{done_ext}'): if not os.path.isfile(f'{base_path}{path}/{done_ext}'):
return False return False
return True
def check_done_ext(**kwargs): def check_done_ext(**kwargs):
from random import randint from random import randint
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment