From 7d45d9498ed83072922ab5ae341dfd00ce4083ea Mon Sep 17 00:00:00 2001 From: Kristy Fournier Date: Mon, 26 Jan 2026 15:32:00 -0500 Subject: [PATCH] fixed search errors --- Client/styles.css | 5 +++-- Server/webbyBits.py | 6 ++++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/Client/styles.css b/Client/styles.css index 21f7b7c..a592e08 100644 --- a/Client/styles.css +++ b/Client/styles.css @@ -1,4 +1,4 @@ -/* testing */ +/* dark mode stuff */ .dark-mode { --bg-main: #333333; @@ -37,8 +37,9 @@ input, button { body { background-color: var(--bg-main); } + * { - font-family: 'arial'; + font-family: 'Work Sans','Arial',sans-serif; } .italic { diff --git a/Server/webbyBits.py b/Server/webbyBits.py index d0d2e36..5586f2c 100644 --- a/Server/webbyBits.py +++ b/Server/webbyBits.py @@ -180,11 +180,12 @@ def searchSongDB(): songDatabase = fileofDB.cursor() try: results = [] + # print(recieveData["search"]) if (recieveData['search'] == ""): songDatabase.execute("SELECT * FROM virtualSongs") results = songDatabase.fetchall() else: - songDatabase.execute("SELECT * FROM virtualSongs WHERE virtualSongs MATCH ?",[recieveData['search']]) + songDatabase.execute("SELECT * FROM virtualSongs WHERE virtualSongs MATCH ?",['"' + recieveData['search']+'"']) results = songDatabase.fetchall() tempdata = {} # this is a temporary solution so i dont have to change the client @@ -202,7 +203,8 @@ def searchSongDB(): except KeyError: fileofDB.close() return ERR_MISSING_ARGS - except sql.OperationalError: + except sql.OperationalError as e: + print(e) fileofDB.close() return ({"error":"Invalid search, sorry!","data":None},422)