Skip to content

Commit 8813122

Browse files
authored
Added new parameter
1 parent fa9018e commit 8813122

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

brainimagelibrary/reports.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def safe_get(data, keys, default=None):
6262
}
6363

6464

65-
def daily(option="simple"):
65+
def daily(option="simple", overwrite=False)):
6666
"""
6767
Retrieves the daily inventory report from the Brain Image Library.
6868
@@ -102,7 +102,7 @@ def fetch_and_load_csv(url, file_path):
102102
df = fetch_and_load_csv(url, file_path)
103103
if df is None:
104104
print("Failed to fetch simple daily report. Creating local report...")
105-
df = __create_daily_report()
105+
df = __create_daily_report(overwrite)
106106
elif option == "detailed":
107107
url = "https://download.brainimagelibrary.org/inventory/daily/reports/today.tsv"
108108
file_path = "/tmp/today.tsv"

0 commit comments

Comments
 (0)