diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2018-11-25 19:21:29 +0100 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2018-11-25 19:21:29 +0100 |
| commit | 78a670cce0a717c52d1641ee01d8295e38eb367b (patch) | |
| tree | 6c04df9062b3b55dbc828966a9d71fca2c7fbc3e | |
| parent | 1773a4dde58b2b9d0591318a6df819c4b0704ea3 (diff) | |
aaa
| -rw-r--r-- | scrape-codex.py | 4 |
1 files 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 |
