mirror of
https://github.com/krateng/maloja.git
synced 2023-08-10 21:12:55 +03:00
Fixed major bug
This commit is contained in:
parent
e0ec4b3137
commit
1e346f7d0e
@ -502,9 +502,9 @@ def rebuild():
|
||||
# Starts the server
|
||||
def runserver(PORT):
|
||||
global lastsync
|
||||
lastsync = time = int(datetime.datetime.now(tz=datetime.timezone.utc).timestamp())
|
||||
lastsync = int(datetime.datetime.now(tz=datetime.timezone.utc).timestamp())
|
||||
build_db()
|
||||
coa.updateIDs(ARTISTS)
|
||||
|
||||
|
||||
loadAPIkeys()
|
||||
|
||||
@ -522,6 +522,8 @@ def build_db():
|
||||
ARTISTS = []
|
||||
TRACKS = []
|
||||
|
||||
|
||||
|
||||
db = parseAllTSV("scrobbles","int","string","string")
|
||||
for sc in db:
|
||||
artists = sc[1].split("␟")
|
||||
@ -550,6 +552,8 @@ def build_db():
|
||||
# readScrobble(artists,title,time)
|
||||
|
||||
SCROBBLES.sort(key = lambda tup: tup[1])
|
||||
|
||||
coa.updateIDs(ARTISTS)
|
||||
|
||||
global db_rulestate
|
||||
db_rulestate = consistentRulestate("scrobbles",cla.checksums)
|
||||
|
Loading…
Reference in New Issue
Block a user