From fd4c3dccc93e5ef9f50d65460dadad7eb6a83b6a Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Thu, 16 Sep 2021 21:06:30 +0000 Subject: [PATCH] lol im aevann now --- files/routes/giphy.py | 4 ++-- files/routes/users.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/files/routes/giphy.py b/files/routes/giphy.py index e81ae0d32..91df32246 100644 --- a/files/routes/giphy.py +++ b/files/routes/giphy.py @@ -9,7 +9,7 @@ GIPHY_KEY = environ.get('GIPHY_KEY').rstrip() @app.route("/giphy", methods=["GET"]) @app.route("/giphy", methods=["GET"]) -def giphy(): +def giphy(path=None): searchTerm = request.args.get("searchTerm", "") limit = int(request.args.get("limit", 48)) @@ -19,4 +19,4 @@ def giphy(): url = f"https://api.giphy.com/v1/gifs/search?q={searchTerm}&api_key={GIPHY_KEY}&limit=48" else: url = f"https://api.giphy.com/v1/gifs?api_key={GIPHY_KEY}&limit=48" - return jsonify(requests.get(url).json()) \ No newline at end of file + return jsonify(requests.get(url).json()) diff --git a/files/routes/users.py b/files/routes/users.py index 1bf46edf3..e6953040c 100644 --- a/files/routes/users.py +++ b/files/routes/users.py @@ -134,7 +134,7 @@ def transfer_coins(v, username): g.db.commit() transfer_message = f"🤑 [@{v.username}]({v.url}) has gifted you {amount} {app.config['COINS_NAME']}!" - send_notification(v.id, receiver, transfer_message) + send_notification(NOTIFICATIONS_ACCOUNT, receiver, transfer_message) return {"message": f"{amount} {app.config['COINS_NAME']} transferred!"}, 200 return {"message": f"{app.config['COINS_NAME']} transferred!"}