mirror of
https://github.com/lutris/lutris
synced 2024-10-06 07:50:16 +00:00
Don't hit API when no search terms are provided
This commit is contained in:
parent
6c33d8c957
commit
9e6a603f66
|
@ -150,6 +150,8 @@ def get_api_games(game_slugs=None, page="1", query_type="games"):
|
|||
|
||||
|
||||
def search_games(query):
|
||||
if not query:
|
||||
return []
|
||||
query = query.lower().strip()[:32]
|
||||
if query == "open source games":
|
||||
url = "/api/bundles/open-source"
|
||||
|
|
Loading…
Reference in a new issue