Browse Source

hide temporary files from web interface

root 8 years ago
parent
commit
15127c2bc0
1 changed files with 3 additions and 0 deletions
  1. 3 0
      tracim/tracim/lib/content.py

+ 3 - 0
tracim/tracim/lib/content.py View File

@@ -196,6 +196,9 @@ class ContentApi(object):
196 196
     def _base_query(self, workspace: Workspace=None):
197 197
         result = self.__real_base_query(workspace)
198 198
 
199
+        # FIXME - 2016-10-17 - D.A. - Do not show temporary files
200
+        result = result.filter(Content.is_temporary == False)
201
+
199 202
         if not self._show_deleted:
200 203
             result = result.filter(Content.is_deleted==False)
201 204