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

Database fixing from web interface should now work again

This commit is contained in:
Krateng 2019-12-11 15:17:49 +01:00
parent 592e26f1ca
commit 14fb4b4023
4 changed files with 6 additions and 4 deletions

View File

@ -862,7 +862,8 @@ def rebuild(**keys):
global db_rulestate
db_rulestate = False
sync()
os.system("python3 fixexisting.py")
from .fixexisting import fix
fix()
global cla, coa
cla = CleanerAgent()
coa = CollectorAgent()

View File

@ -97,6 +97,7 @@
<a class="textlink" href="/setup">Server Setup</a><br/>
<a class="textlink" href="/manual">Manual Scrobbling</a>
<a class="textlink" href="/issues">Database Maintenance</a>
<pyhp include="common/footer.html" />
</body>

View File

@ -43,7 +43,7 @@
var xhttp = new XMLHttpRequest();
xhttp.open("POST","/db/newrule?", true);
xhttp.open("POST","/api/newrule?", true);
xhttp.send(keys);
e = arguments[0]
line = e.parentNode
@ -56,7 +56,7 @@
apikey = document.getElementById("apikey").value
var xhttp = new XMLHttpRequest();
xhttp.open("POST","/db/rebuild", true);
xhttp.open("POST","/api/rebuild", true);
xhttp.send("key=" + encodeURIComponent(apikey))
window.location = "/wait";
}

View File

@ -31,7 +31,7 @@
console.log("Probing...");
pending = true;
var xhttp = new XMLHttpRequest();
xhttp.open("GET","/db/test", true);
xhttp.open("GET","/api/test", true);
xhttp.onreadystatechange = goback;
xhttp.send();