Minor updates
This commit is contained in:
parent
b31982153f
commit
ff09e518b8
2 changed files with 5 additions and 6 deletions
|
|
@ -26,7 +26,7 @@ else:
|
||||||
ADMIN_PASS = hashlib.sha256(bytes(tempPass,'utf-8')).hexdigest()
|
ADMIN_PASS = hashlib.sha256(bytes(tempPass,'utf-8')).hexdigest()
|
||||||
|
|
||||||
# True = everyone, False = admin only. Change in client while in use.
|
# True = everyone, False = admin only. Change in client while in use.
|
||||||
# play-pause,skip,addsong,partymode,volume in order
|
# play-pause,skip,addsong,partymode,volume,add duplicates in order
|
||||||
controlPerms = {
|
controlPerms = {
|
||||||
"PP":True,
|
"PP":True,
|
||||||
"SK":True,
|
"SK":True,
|
||||||
|
|
@ -48,9 +48,6 @@ elif "/" in soundLocation:
|
||||||
soundLocation += "/"
|
soundLocation += "/"
|
||||||
else:
|
else:
|
||||||
soundLocation += "\\"
|
soundLocation += "\\"
|
||||||
#Create Virtual table for searching
|
|
||||||
#I'm not sure why i don't do this in the databaseGenerator, but it also takes like 3 seconds so i'm not messing with it rn
|
|
||||||
|
|
||||||
#Initializing all the global stuff
|
#Initializing all the global stuff
|
||||||
random.seed()
|
random.seed()
|
||||||
global partyMode
|
global partyMode
|
||||||
|
|
@ -223,8 +220,9 @@ def settingsControl():
|
||||||
return ERR_NO_ADMIN
|
return ERR_NO_ADMIN
|
||||||
else:
|
else:
|
||||||
return {"error":"Not a valid setting","data":None},400
|
return {"error":"Not a valid setting","data":None},400
|
||||||
except Exception as e:
|
except KeyError as e:
|
||||||
return {"error":e,"data":None},500
|
print(f"Error: {e}")
|
||||||
|
return {"error":"Incorrect Data Sent","data":None},400
|
||||||
|
|
||||||
@app.route("/search", methods=['GET'])
|
@app.route("/search", methods=['GET'])
|
||||||
def searchSongDB():
|
def searchSongDB():
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
# Wishlist
|
# Wishlist
|
||||||
*Features I would like to add, will be completed in any order*
|
*Features I would like to add, will be completed in any order*
|
||||||
|
- [ ] Pages of song results, to avoid very long pages and large data being sent
|
||||||
- [ ] RESTful design
|
- [ ] RESTful design
|
||||||
- [ ] Change all necesary POSTs to GET,DELETE (probably not PUT)
|
- [ ] Change all necesary POSTs to GET,DELETE (probably not PUT)
|
||||||
- [ ] Write an api layout
|
- [ ] Write an api layout
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue