1
0
mirror of https://github.com/krateng/maloja.git synced 2023-08-10 21:12:55 +03:00

Server should now be ready for web-reachable deployment

This commit is contained in:
Krateng 2019-01-11 14:14:00 +01:00
parent 1a3a172089
commit c158dc2d88
2 changed files with 5 additions and 1 deletions

View File

@ -369,6 +369,10 @@ def pseudo_post_scrobble():
keys = FormsDict.decode(request.query) # The Dal★Shabet handler
artists = keys.get("artist")
title = keys.get("title")
apikey = keys.get("key")
if not (checkAPIkey(apikey)):
response.status = 403
return ""
try:
time = int(keys.get("time"))
except:

View File

@ -107,7 +107,7 @@ def parseAllTSV(path,*args):
result = []
for f in os.listdir(path + "/"):
if (".tsv" in f):
if (f.endswith(".tsv")):
result += parseTSV(path + "/" + f,*args)