We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 57056cd commit fa9018eCopy full SHA for fa9018e
brainimagelibrary/reports.py
@@ -116,7 +116,7 @@ def fetch_and_load_csv(url, file_path):
116
return df
117
118
119
-def __create_daily_report():
+def __create_daily_report(overwrite=False):
120
"""
121
Creates or retrieves the daily inventory report.
122
@@ -141,7 +141,7 @@ def __create_daily_report():
141
today = datetime.today().strftime("%Y%m%d")
142
output_filename = f"{directory}/{today}.tsv"
143
144
- if Path(output_filename).exists():
+ if overwrite == False and Path(output_filename).exists():
145
print(f"Daily report {output_filename} found on disk.")
146
df = pd.read_csv(output_filename, sep="\t")
147
0 commit comments