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 37235b0 commit 0e7b360Copy full SHA for 0e7b360
Yugipedia/main.py
@@ -360,13 +360,11 @@ def process_banlist():
360
listLimitBanned: list[tuple[int, int]] = []
361
362
# 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
-
+ reqObj = request_page(URL_BANLIST_AE, False)
+ if reqObj.ok:
+ contentsHtml = reqObj.text.strip()
+ Utils.write_file(FILE_CACHE_BANLIST, contentsHtml)
+
370
# read from file
371
dataBanlistJson = Utils.read_json(FILE_CACHE_BANLIST)
372
0 commit comments