Skip to content

Commit

Permalink
Cleanup and sorted
Browse files Browse the repository at this point in the history
  • Loading branch information
nmagee committed Dec 2, 2024
1 parent faaf7b6 commit e90a350
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 49 deletions.
2 changes: 1 addition & 1 deletion app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ async def get_genres():
async def get_genres():
db = mysql.connector.connect(user=DBUSER, host=DBHOST, password=DBPASS, database=DB, ssl_disabled=True)
cur = db.cursor()
query = "SELECT songs.title, songs.album, songs.artist, songs.year, songs.file, songs.image, genres.genre FROM songs JOIN genres WHERE songs.genre = genres.genreid;"
query = "SELECT songs.title, songs.album, songs.artist, songs.year, songs.file, songs.image, genres.genre FROM songs JOIN genres WHERE songs.genre = genres.genreid ORDER BY songs.title;"
try:
cur.execute(query)
headers=[x[0] for x in cur.description]
Expand Down
48 changes: 0 additions & 48 deletions app/utils.py

This file was deleted.

0 comments on commit e90a350

Please sign in to comment.