Skip to content

Commit

Permalink
Limit amount of fits returned by search by 100
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkFenX committed Apr 21, 2020
1 parent f17cf9b commit ce80d92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eos/db/saveddata/queries.py
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,7 @@ def searchFits(nameLike, where=None, eager=None):
filter = processWhere(Fit.name.like(nameLike, escape="\\"), where)
eager = processEager(eager)
with sd_lock:
fits = removeInvalid(saveddata_session.query(Fit).options(*eager).filter(filter).all())
fits = removeInvalid(saveddata_session.query(Fit).options(*eager).filter(filter).limit(100).all())

return fits

Expand Down

0 comments on commit ce80d92

Please sign in to comment.