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):
|
||||
if not os.path.isdir(os.path.join(directory, file)):
|
||||
outputs.append(os.path.splitext(file)[0])
|
||||
if outputs == []:
|
||||
outputs.append(datetime.datetime.now().strftime("%Y%m%d"))
|
||||
today = datetime.datetime.now().strftime("%Y%m%d")
|
||||
if today not in outputs:
|
||||
outputs.append(today)
|
||||
return outputs
|
||||
|
||||
# def find_last_blacklist(blacklist_dir_path):
|
||||
|
Loading…
Reference in New Issue
Block a user