Преглед на файлове

[desktop] Remove hardcoded history filtering of the API

Romain Rigaux преди 9 години
родител
ревизия
0618c0a6a4
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      desktop/core/src/desktop/api2.py

+ 1 - 1
desktop/core/src/desktop/api2.py

@@ -103,7 +103,7 @@ def get_documents(request):
     offset = (page - 1) * limit
     last = offset + limit
     documents = documents.all()[offset:last]
-  documents = documents.filter(is_history=True)
+
   return JsonResponse({
       'path': path,
       'directory': directory.to_dict(),