The date of the day is now always added to the output of get_analysis_dates, because we obviously want to generate the analysis of the day, even if there are older analysis in the folder already...
This commit is contained in:
parent
ce826c35a6
commit
b8212061fd
@ -7,8 +7,9 @@ def get_analysis_dates(directory):
|
|||||||
for file in os.listdir(directory):
|
for file in os.listdir(directory):
|
||||||
if not os.path.isdir(os.path.join(directory, file)):
|
if not os.path.isdir(os.path.join(directory, file)):
|
||||||
outputs.append(os.path.splitext(file)[0])
|
outputs.append(os.path.splitext(file)[0])
|
||||||
if outputs == []:
|
today = datetime.datetime.now().strftime("%Y%m%d")
|
||||||
outputs.append(datetime.datetime.now().strftime("%Y%m%d"))
|
if today not in outputs:
|
||||||
|
outputs.append(today)
|
||||||
return outputs
|
return outputs
|
||||||
|
|
||||||
# def find_last_blacklist(blacklist_dir_path):
|
# def find_last_blacklist(blacklist_dir_path):
|
||||||
|
Loading…
Reference in New Issue
Block a user