Skip to content

Commit 0e7b360

Browse files
committed
[Fix] Always download banlist
1 parent 37235b0 commit 0e7b360

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

Yugipedia/main.py

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -360,13 +360,11 @@ def process_banlist():
360360
listLimitBanned: list[tuple[int, int]] = []
361361

362362
# First, get the banlist and process it
363-
dataBanlistJson: any = None
364-
if not os.path.exists(FILE_CACHE_BANLIST):
365-
reqObj = request_page(URL_BANLIST_AE, False)
366-
if reqObj.ok:
367-
contentsHtml = reqObj.text.strip()
368-
Utils.write_file(FILE_CACHE_BANLIST, contentsHtml)
369-
363+
reqObj = request_page(URL_BANLIST_AE, False)
364+
if reqObj.ok:
365+
contentsHtml = reqObj.text.strip()
366+
Utils.write_file(FILE_CACHE_BANLIST, contentsHtml)
367+
370368
# read from file
371369
dataBanlistJson = Utils.read_json(FILE_CACHE_BANLIST)
372370

0 commit comments

Comments
 (0)