Skip to content

Commit

Permalink
pylint fixes for app.py
Browse files Browse the repository at this point in the history
  • Loading branch information
IshayuR committed Nov 14, 2024
1 parent 825d832 commit 61fef11
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions Backend/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -413,11 +413,10 @@ def fetch_allusers():
user_occupation:
type: string
"""
try:
allusers = databasefunctions.fetch_all_users()
return jsonify(allusers), 200
except Exception as e:
return jsonify({"error": str(e)}), 500

allusers = databasefunctions.fetch_all_users()
return jsonify(allusers), 200


@app.route("/fetch_allpets", methods=["POST"])
def fetch_allpets():
Expand Down

0 comments on commit 61fef11

Please sign in to comment.