master
Aevann1 2021-08-23 12:16:11 +02:00
parent bbef96bda1
commit 8a3b38c930
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@ GIPHY_KEY = environ.get('GIPHY_KEY').rstrip()
def giphy():
searchTerm = request.args.get("searchTerm", "")
limit = int(request.args.get("limit", ""))
limit = int(request.args.get("limit", 48))
if searchTerm and limit:
url = f"https://api.giphy.com/v1/gifs/search?q={searchTerm}&api_key={GIPHY_KEY}&limit={limit}"
elif searchTerm and not limit: