Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
itminedu
agkyra
Commits
d7c32844
Commit
d7c32844
authored
Apr 27, 2015
by
Giorgos Korfiatis
Browse files
Fix pithos list candidates
parent
b1db99ed
Changes
1
Hide whitespace changes
Inline
Side-by-side
agkyra/agkyra/syncer/pithos_client.py
View file @
d7c32844
...
...
@@ -264,10 +264,12 @@ class PithosFileClient(FileClient):
for
obj
in
objects
)
upstream_all_names
=
set
(
upstream_all
.
keys
())
if
last_modified
is
not
None
:
upstream_modified_names
=
dict
(
(
k
,
v
)
for
(
k
,
v
)
in
upstream_all
.
iteritems
()
if
v
[
"last_modified"
]
>
last_modified
)
candidates
=
upstream_modified_names
upstream_modified
=
{}
for
obj
in
objects
:
name
=
obj
[
"name"
]
if
obj
[
"last_modified"
]
>
last_modified
:
upstream_modified
[
name
]
=
upstream_all
[
name
]
candidates
=
upstream_modified
else
:
candidates
=
upstream_all
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment