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

Fixed some issues

This commit is contained in:
Krateng 2020-06-20 20:30:41 +02:00
parent 990131f546
commit bda279d01d
3 changed files with 11 additions and 7 deletions

View File

@ -5,7 +5,7 @@ author = {
"email":"maloja@krateng.dev", "email":"maloja@krateng.dev",
"github": "krateng" "github": "krateng"
} }
version = 2,5,0 version = 2,5,3
versionstr = ".".join(str(n) for n in version) versionstr = ".".join(str(n) for n in version)
links = { links = {
"pypi":"malojaserver", "pypi":"malojaserver",
@ -29,7 +29,9 @@ resources = [
"web/*", "web/*",
"static/*/*", "static/*/*",
"data_files/*/*", "data_files/*/*",
"data_files/*/*/*" "data_files/*/*/*",
"proccontrol/*",
"proccontrol/*/*"
] ]
commands = { commands = {

View File

View File

@ -1,11 +1,9 @@
import os import os
from .lastfmconverter import convert from doreah.io import ask
from .backup import backup
from .fixexisting import fix
from ...globalconf import datadir from ...globalconf import datadir
from ..control import restart
from doreah.io import ask
def loadlastfm(filename): def loadlastfm(filename):
@ -18,17 +16,21 @@ def loadlastfm(filename):
if not overwrite: return if not overwrite: return
print("Please wait...") print("Please wait...")
from .lastfmconverter import convert
convert(filename,datadir("scrobbles/lastfmimport.tsv")) convert(filename,datadir("scrobbles/lastfmimport.tsv"))
#os.system("python3 -m maloja.lastfmconverter " + filename + " " + datadir("scrobbles/lastfmimport.tsv")) #os.system("python3 -m maloja.lastfmconverter " + filename + " " + datadir("scrobbles/lastfmimport.tsv"))
print("Successfully imported your Last.FM scrobbles!") print("Successfully imported your Last.FM scrobbles!")
def backuphere(): def backuphere():
from .backup import backup
backup(folder=os.getcwd()) backup(folder=os.getcwd())
def update(): def update():
os.system("pip3 install malojaserver --upgrade --no-cache-dir") os.system("pip3 install malojaserver --upgrade --no-cache-dir")
from ..control import restart
restart() restart()
def fixdb(): def fixdb():
from .fixexisting import fix
fix() fix()