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:
parent
990131f546
commit
bda279d01d
@ -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 = {
|
||||
|
0
maloja/proccontrol/__init__.py
Normal file
0
maloja/proccontrol/__init__.py
Normal 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()
|
||||
|
Loading…
Reference in New Issue
Block a user