Skip to content
Snippets Groups Projects
Commit d7c32844 authored by Giorgos Korfiatis's avatar Giorgos Korfiatis
Browse files

Fix pithos list candidates

parent b1db99ed
No related branches found
No related tags found
No related merge requests found
...@@ -264,10 +264,12 @@ class PithosFileClient(FileClient): ...@@ -264,10 +264,12 @@ class PithosFileClient(FileClient):
for obj in objects) for obj in objects)
upstream_all_names = set(upstream_all.keys()) upstream_all_names = set(upstream_all.keys())
if last_modified is not None: if last_modified is not None:
upstream_modified_names = dict( upstream_modified = {}
(k, v) for (k, v) in upstream_all.iteritems() for obj in objects:
if v["last_modified"] > last_modified) name = obj["name"]
candidates = upstream_modified_names if obj["last_modified"] > last_modified:
upstream_modified[name] = upstream_all[name]
candidates = upstream_modified
else: else:
candidates = upstream_all candidates = upstream_all
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment