Преглед изворни кода

Logic was wrong for selecting the image width.

pull/24/head
Ben Kurtovic пре 10 година
родитељ
комит
6acb88a156
1 измењених фајлова са 1 додато и 1 уклоњено
  1. +1
    -1
      copyvios/background.py

+ 1
- 1
copyvios/background.py Прегледај датотеку

@@ -108,7 +108,7 @@ def _get_site():
def _build_url(screen, filename, url, imgwidth, imgheight):
width = screen["width"]
if float(imgwidth) / imgheight > float(screen["width"]) / screen["height"]:
width = int(float(imgwidth) / imgheight * screen["width"])
width = int(float(imgwidth) / imgheight * screen["height"])
if width >= imgwidth:
return url
url = url.replace("/commons/", "/commons/thumb/")


Loading…
Откажи
Сачувај