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",
|
"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 = {
|
||||||
|
0
maloja/proccontrol/__init__.py
Normal file
0
maloja/proccontrol/__init__.py
Normal 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()
|
||||||
|
Loading…
Reference in New Issue
Block a user