Small fixes

This commit is contained in:
krateng 2021-12-26 21:37:14 +01:00
parent 83f1956256
commit 9b23c3bd57
3 changed files with 7 additions and 4 deletions

View File

@ -6,8 +6,11 @@ try:
import toml
with open("./pyproject.toml") as filed:
metadata = toml.load(filed)['project']
VERSION = metadata['version']
VERSION = metadata['version'] + "-dev"
HOMEPAGE = metadata['urls']['homepage']
# this will give wrong info when the installed package is run, but we just
# happen to be in the directory of the project
# but this can't be helped I think
except:
# package distributrion

View File

@ -44,9 +44,9 @@ def start():
if getInstanceSupervisor() is not None:
print("Maloja is already running.")
else:
print_header_info()
setup()
try:
print_header_info()
#p = subprocess.Popen(["python3","-m","maloja.server"],stdout=subprocess.DEVNULL,stderr=subprocess.DEVNULL)
sp = subprocess.Popen(["python3","-m","maloja.proccontrol.supervisor"],stdout=subprocess.DEVNULL,stderr=subprocess.DEVNULL)
print(col["green"]("Maloja started!"))

View File

@ -77,10 +77,10 @@
<h2>Download Data</h2>
Download your data to store local backups.<br/><br/>
Download your data to have a backup.<br/><br/>
<a href="/apis/mlj_1/backup" download="maloja_backup.tar.gz">
<button type="button">Download Backup</button>
<button type="button">Download</button>
</a>