aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGilles Dartiguelongue <eva@gentoo.org>2017-01-23 01:06:46 +0100
committerGilles Dartiguelongue <eva@gentoo.org>2017-01-23 01:06:46 +0100
commitfe8d9eedef4fa5b406f304c83e064d62860d35df (patch)
tree282ed6f92b5636caf1406bacf96cb98d1150f27d
parentsync: add version and keyword synchronization (diff)
downloadgrumpy-fe8d9eedef4fa5b406f304c83e064d62860d35df.tar.gz
grumpy-fe8d9eedef4fa5b406f304c83e064d62860d35df.tar.bz2
grumpy-fe8d9eedef4fa5b406f304c83e064d62860d35df.zip
sync: fix a missing .items to iterate on dict
-rw-r--r--backend/lib/sync.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/backend/lib/sync.py b/backend/lib/sync.py
index 25b6ea0..c3ed83c 100644
--- a/backend/lib/sync.py
+++ b/backend/lib/sync.py
@@ -242,7 +242,7 @@ def sync_versions():
db.session.delete(kwd_obj)
# 3.2 cleanup dead revisions
- for version, ver_obj in pkg_versions:
+ for version, ver_obj in pkg_versions.items():
if version not in pkg['versions']:
db.session.delete(ver_obj)