1
0
mirror of https://github.com/fraoustin/piwigotools.git synced 2025-06-07 16:06:27 +00:00
This commit is contained in:
fraoustin 2018-02-07 20:41:20 +01:00
parent 2c445fbec0
commit fe721018cd
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
0.1.2
=====
- correction per page to int
0.1.1
=====

View File

@ -5,7 +5,7 @@
Module piwigotools
"""
__version_info__ = (0, 1, 1)
__version_info__ = (0, 1, 2)
__version__ = '.'.join([str(val) for val in __version_info__])
import inspect
@ -134,7 +134,7 @@ class Piwigo(piwigo.Piwigo):
req = self.pwg.categories.getImages(**kw)
for img in req["images"]:
imgs[img["file"]] = img
if req["paging"]["count"] < req["paging"]["per_page"]:
if int("paging"]["count"]) < req["paging"]["per_page"]:
loop = False
kw["page"] = kw["page"] + 1
self._images[path] = imgs