diff options
author | 2017-01-23 01:06:46 +0100 | |
---|---|---|
committer | 2017-01-23 01:06:46 +0100 | |
commit | fe8d9eedef4fa5b406f304c83e064d62860d35df (patch) | |
tree | 282ed6f92b5636caf1406bacf96cb98d1150f27d | |
parent | sync: add version and keyword synchronization (diff) | |
download | grumpy-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.py | 2 |
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) |