Przeglądaj źródła

fix thumbnail issue (#2917)

### What problem does this PR solve?


### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
tags/v0.13.0
Kevin Hu 1 rok temu
rodzic
commit
2ced25c676
No account linked to committer's email address
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1
    1
      api/db/services/document_service.py

+ 1
- 1
api/db/services/document_service.py Wyświetl plik

@@ -317,7 +317,7 @@ class DocumentService(CommonService):
@classmethod
@DB.connection_context()
def get_thumbnails(cls, docids):
fields = [cls.model.id, cls.model.thumbnail]
fields = [cls.model.id, cls.model.kb_id, cls.model.thumbnail]
return list(cls.model.select(
*fields).where(cls.model.id.in_(docids)).dicts())


Ładowanie…
Anuluj
Zapisz