[flickr] fix extraction

This issue was only noticeable with older Python versions, as these
don't exhibit a consistent ordering of dict keys.
This commit is contained in:
Mike Fährmann
2017-08-12 21:41:10 +02:00
parent e3bfb8325a
commit 8bcf88bff7

View File

@@ -384,7 +384,7 @@ class FlickrAPI():
data = self._call(method, params)
for key, obj in data.items():
if key != "stats":
if not key.startswith("stat"):
break
del obj["page"]
del obj["perpage"]