Skip to content

Commit

Permalink
only query pages data for actual pages
Browse files Browse the repository at this point in the history
  • Loading branch information
boogheta committed Jul 7, 2021
1 parent 8fe1d2f commit b05d470
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hyphe_backend/core.tac
Original file line number Diff line number Diff line change
Expand Up @@ -2940,7 +2940,7 @@ class Memory_Structure(customJSONRPC):

page_data = None

if include_page_metas or include_page_body:
if pages['pages'] and include_page_metas or include_page_body:
page_data = yield self.db.get_pages(corpus, [p['lru'] for p in pages['pages']], include_metas=include_page_metas, include_body=include_page_body)

returnD(format_result({
Expand Down

0 comments on commit b05d470

Please sign in to comment.