mirror of
https://github.com/krateng/maloja.git
synced 2025-07-09 03:04:07 -04:00
Updated database rebuild, should fix GH-16
This commit is contained in:
parent
4c6b40e42f
commit
57403a89ab
@ -5,7 +5,7 @@ author = {
|
|||||||
"email":"maloja@krateng.dev",
|
"email":"maloja@krateng.dev",
|
||||||
"github": "krateng"
|
"github": "krateng"
|
||||||
}
|
}
|
||||||
version = 2,4,12
|
version = 2,4,13
|
||||||
versionstr = ".".join(str(n) for n in version)
|
versionstr = ".".join(str(n) for n in version)
|
||||||
links = {
|
links = {
|
||||||
"pypi":"malojaserver",
|
"pypi":"malojaserver",
|
||||||
|
@ -933,6 +933,7 @@ def build_db():
|
|||||||
log("Building database...")
|
log("Building database...")
|
||||||
|
|
||||||
global SCROBBLES, ARTISTS, TRACKS
|
global SCROBBLES, ARTISTS, TRACKS
|
||||||
|
global TRACKS_NORMALIZED_SET, TRACKS_NORMALIZED, ARTISTS_NORMALIZED_SET, ARTISTS_NORMALIZED
|
||||||
global SCROBBLESDICT, STAMPS
|
global SCROBBLESDICT, STAMPS
|
||||||
|
|
||||||
SCROBBLES = []
|
SCROBBLES = []
|
||||||
@ -941,6 +942,11 @@ def build_db():
|
|||||||
STAMPS = []
|
STAMPS = []
|
||||||
SCROBBLESDICT = {}
|
SCROBBLESDICT = {}
|
||||||
|
|
||||||
|
TRACKS_NORMALIZED = []
|
||||||
|
ARTISTS_NORMALIZED = []
|
||||||
|
ARTISTS_NORMALIZED_SET = set()
|
||||||
|
TRACKS_NORMALIZED_SET = set()
|
||||||
|
|
||||||
|
|
||||||
# parse files
|
# parse files
|
||||||
db = tsv.parse_all(datadir("scrobbles"),"int","string","string",comments=False)
|
db = tsv.parse_all(datadir("scrobbles"),"int","string","string",comments=False)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user