# HG changeset patch # User Nicolas DURAND # Date 1419954956 -3600 # Node ID 8b7a8a28d5b913476dc8fff46fb1e0e48615badf # Parent 4f08f1a107b3e6d98d09b0a4ef9d863bd9b8676b quick fix typo diff -r 4f08f1a107b3 -r 8b7a8a28d5b9 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