From 78a670cce0a717c52d1641ee01d8295e38eb367b Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Sun, 25 Nov 2018 19:21:29 +0100 Subject: aaa --- scrape-codex.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scrape-codex.py b/scrape-codex.py index d4dcb14..3bd6ec0 100644 --- a/scrape-codex.py +++ b/scrape-codex.py @@ -87,8 +87,8 @@ def grab(s, n): max_width = int(xml.split('Width="')[1].split('"')[0]) max_height = int(xml.split('Height="')[1].split('"')[0]) - TILE_W = floor((max_width / ZOOM) / 256) + 1 - TILE_H = floor((max_height / ZOOM) / 256) + 1 + TILE_W = round((max_width / ZOOM) / 256) + 1 + TILE_H = round((max_height / ZOOM) / 256) + 1 if TILE_W < TILE_H: TILE_W += 1 TILE_H += 1 -- cgit v1.2.3-70-g09d2