Skip to content

Commit

Permalink
Fix league and lastupdate location
Browse files Browse the repository at this point in the history
Signed-off-by: Tomas Slusny <[email protected]>
  • Loading branch information
deathbeam committed Nov 15, 2024
1 parent d6ae1ba commit e78e270
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions data/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,10 @@ def merge(source, destination):


def get_globals_data(config, globals_extra):
out = {}
out = {
"league": config["league"],
"lastUpdate": time.time() * 1000
}

url = config["poedb"]["list"]
print(f"Getting atlas data from url {url}")
Expand All @@ -110,9 +113,7 @@ def get_globals_data(config, globals_extra):

out["atlas"] = {
"width": float(atlasimage.attrs["width"]),
"height": float(atlasimage.attrs["height"]),
"league": config["league"],
"lastUpdate": time.time() * 1000
"height": float(atlasimage.attrs["height"])
}

# url = config["poedb"]["constants"]
Expand Down

0 comments on commit e78e270

Please sign in to comment.