Skip to content

Commit

Permalink
Trying alt user
Browse files Browse the repository at this point in the history
  • Loading branch information
nmagee committed Nov 15, 2024
1 parent 53b553e commit fea41de
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import os

DBHOST = "ds2022.cqee4iwdcaph.us-east-1.rds.amazonaws.com"
DBUSER = "admin"
DBUSER = "ds2022"
DBPASS = os.getenv('DBPASS')
DB = "nem2p"

Expand All @@ -32,7 +32,7 @@ def zone_apex():

@app.get('/genres')
def get_genres():
query = "SELECT * FROM genres ORDER BY genreid;"
query = "SELECT * FROM genres ORDER BY . genreid;"
try:
cur.execute(query)
headers=[x[0] for x in cur.description]
Expand All @@ -43,7 +43,7 @@ def get_genres():
return(json_data)
except Error as e:
print("MySQL Error: ", str(e))
return None
return {"Error": "MySQL Error: " + str(e)}

@app.get('/songs')
def get_genres():
Expand Down

0 comments on commit fea41de

Please sign in to comment.