Skip to content

Commit

Permalink
Fixed #42 - Improved loading time of autocomplete by not loading full…
Browse files Browse the repository at this point in the history
… DB.
  • Loading branch information
PonteIneptique committed Feb 25, 2018
1 parent a944b4b commit b832ca6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/main/views/corpus.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def corpus_allowed_values_api(corpus_id, allowed_type):
group_by=True,
type_like=allowed_type,
allowed_list=corpus.get_allowed_values(allowed_type=allowed_type).count() > 0
).all()
).limit(10)
if result is not None
]
)
Expand Down

0 comments on commit b832ca6

Please sign in to comment.