--- 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