Browse Source

fixes bug in get_all() filtering content

root 10 years ago
parent
commit
a4698e009c
1 changed files with 2 additions and 2 deletions
  1. 2 2
      tracim/tracim/lib/content.py

+ 2 - 2
tracim/tracim/lib/content.py View File

199
         resultset = self._base_query(workspace)
199
         resultset = self._base_query(workspace)
200
 
200
 
201
         if content_type!=ContentType.Any:
201
         if content_type!=ContentType.Any:
202
-            resultset.filter(Content.type==content_type)
202
+            resultset = resultset.filter(Content.type==content_type)
203
 
203
 
204
         if parent_id:
204
         if parent_id:
205
-            resultset.filter(Content.parent_id==parent_id)
205
+            resultset = resultset.filter(Content.parent_id==parent_id)
206
 
206
 
207
         return resultset.all()
207
         return resultset.all()
208
 
208