Skip to content

Commit

Permalink
WARSTATUS: use www.championsofregnum.com
Browse files Browse the repository at this point in the history
When they renewed their TLS certificate they forgot
championsofregnum.com, so fetching the war status failed with a TLS
error.
  • Loading branch information
mascaldotfr committed Jul 5, 2024
1 parent a9fec4e commit 49afa56
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion js/menu.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Empty file added warstatus/events.sqlite
Empty file.
4 changes: 2 additions & 2 deletions warstatus/warstatus.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
stats_db_file = "stats/events.sqlite"
stats_outfile = "stats/statistics.json"
stats_outfile_events = "stats/allevents.json"
base_url = "https://championsofregnum.com/"
base_url = "https://www.championsofregnum.com/"
# Use True to allow unconditional successful runtime for debugging
# It propagates to stats.generate as well
debug_mode = False
Expand All @@ -41,7 +41,7 @@ def filename(url):
return url.split('/').pop();

def main():
with urlopen("https://championsofregnum.com/index.php?l=1&sec=3") as response:
with urlopen(base_url + "/index.php?l=1&sec=3") as response:
failure = {}
status = {"forts": [], "gems": []}
status["relics"] = {
Expand Down

0 comments on commit 49afa56

Please sign in to comment.