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

View File

View File

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