quick fix typo
authorNicolas DURAND <nicolas.durand@iri.centrepompidou.fr>
Tue, 30 Dec 2014 16:55:56 +0100
changeset 16 8b7a8a28d5b9
parent 15 4f08f1a107b3
child 17 2db9202ad7cf
quick fix typo
src/catedit/persistence.py
--- a/src/catedit/persistence.py	Tue Dec 30 15:52:56 2014 +0100
+++ b/src/catedit/persistence.py	Tue Dec 30 16:55:56 2014 +0100
@@ -211,13 +211,14 @@
         # point 4
         new_tree_data = {"tree": []}
         for element in last_commit_tree["tree"]:
+            logger.debug(element)
             if element["type"] == "blob":
                 # test if element is in deleted categories, if it is,
                 # no point doing anything, the file won't be in the new tree
                 if not(
                     element["path"] in [
                         (app.config["CATEGORIES_PATH"] + category["name"])
-                        for category in session.get(["deleted_categories"], [])
+                        for category in session.get("deleted_categories", [])
                     ]
                 ):
 
@@ -230,7 +231,7 @@
                         element["path"] in [
                             (app.config["CATEGORIES_PATH"] + category["name"])
                             for category in
-                            session.get(["modified_categories"], [])
+                            session.get("modified_categories", [])
                         ]
                     ):
                         # find element in modified categories