1
0
mirror of https://github.com/fraoustin/piwigotools.git synced 2025-06-06 15:36:25 +00:00

correction bug images

This commit is contained in:
fraoustin 2018-08-12 09:13:06 +02:00
parent 504f6bba7b
commit 65f5862699
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
0.1.3
=====
- correction per page in images
0.1.2
=====

View File

@ -5,7 +5,7 @@
Module piwigotools
"""
__version_info__ = (0, 1, 2)
__version_info__ = (0, 1, 3)
__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 int(req["paging"]["count"]) < req["paging"]["per_page"]:
if len(req["images"]) < req["paging"]["per_page"]:
loop = False
kw["page"] = kw["page"] + 1
self._images[path] = imgs