Skip to content

Commit 31aedbd

Browse files
committed
compare with iso date
1 parent 02e98a0 commit 31aedbd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

database/scrape_trle_download.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -318,11 +318,11 @@ def _search_trcustoms(trle_info):
318318
search_url = f"https://trcustoms.org/api/levels/?search={title}"
319319
trcustoms = scrape_common.get_json(search_url)
320320
results = trcustoms.get('results', [])
321+
321322
for level in results:
322323
# if level and date match exactly
323324
if level.get('name', '') == trle_info[0]:
324-
if scrape_common.convert_to_iso(level.get('created', '')) == \
325-
scrape_common.convert_to_iso(release):
325+
if scrape_common.convert_to_iso(level.get('created', '')) == release:
326326
# check if it has the files attribute
327327
last_file = level.get('last_file', {})
328328
if last_file:

0 commit comments

Comments
 (0)