Don't hit API when no search terms are provided

This commit is contained in:
Mathieu Comandon 2019-02-01 06:38:44 -08:00
parent 6c33d8c957
commit 9e6a603f66

View file

@ -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"