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:
parent
1a3a172089
commit
c158dc2d88
@ -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:
|
||||
|
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user