Sfoglia il codice sorgente

[desktop] Remove hardcoded history filtering of the API

Romain Rigaux 9 anni fa
parent
commit
0618c0a6a4
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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(),