Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Update app.py
Browse files
app.py
CHANGED
@@ -359,9 +359,11 @@ def search(search_in, max_results=3):
|
|
359 |
)
|
360 |
|
361 |
def set_date(title):
|
362 |
-
|
363 |
-
|
364 |
-
|
|
|
|
|
365 |
|
366 |
def set_papers(y, m, d, title):
|
367 |
papers = [paper["title"] for paper in date_dict[y][m][d]]
|
|
|
359 |
)
|
360 |
|
361 |
def set_date(title):
|
362 |
+
for _, (year, months) in enumerate(date_dict.items()):
|
363 |
+
for _, (month, days) in enumerate(months.items()):
|
364 |
+
for _, (day, papers) in enumerate(days.items()):
|
365 |
+
if title in papers:
|
366 |
+
return year, month, day
|
367 |
|
368 |
def set_papers(y, m, d, title):
|
369 |
papers = [paper["title"] for paper in date_dict[y][m][d]]
|