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:
parent
592e26f1ca
commit
14fb4b4023
@ -862,7 +862,8 @@ def rebuild(**keys):
|
|||||||
global db_rulestate
|
global db_rulestate
|
||||||
db_rulestate = False
|
db_rulestate = False
|
||||||
sync()
|
sync()
|
||||||
os.system("python3 fixexisting.py")
|
from .fixexisting import fix
|
||||||
|
fix()
|
||||||
global cla, coa
|
global cla, coa
|
||||||
cla = CleanerAgent()
|
cla = CleanerAgent()
|
||||||
coa = CollectorAgent()
|
coa = CollectorAgent()
|
||||||
|
@ -97,6 +97,7 @@
|
|||||||
|
|
||||||
<a class="textlink" href="/setup">Server Setup</a><br/>
|
<a class="textlink" href="/setup">Server Setup</a><br/>
|
||||||
<a class="textlink" href="/manual">Manual Scrobbling</a>
|
<a class="textlink" href="/manual">Manual Scrobbling</a>
|
||||||
|
<a class="textlink" href="/issues">Database Maintenance</a>
|
||||||
|
|
||||||
<pyhp include="common/footer.html" />
|
<pyhp include="common/footer.html" />
|
||||||
</body>
|
</body>
|
||||||
|
@ -43,7 +43,7 @@
|
|||||||
|
|
||||||
|
|
||||||
var xhttp = new XMLHttpRequest();
|
var xhttp = new XMLHttpRequest();
|
||||||
xhttp.open("POST","/db/newrule?", true);
|
xhttp.open("POST","/api/newrule?", true);
|
||||||
xhttp.send(keys);
|
xhttp.send(keys);
|
||||||
e = arguments[0]
|
e = arguments[0]
|
||||||
line = e.parentNode
|
line = e.parentNode
|
||||||
@ -56,7 +56,7 @@
|
|||||||
apikey = document.getElementById("apikey").value
|
apikey = document.getElementById("apikey").value
|
||||||
|
|
||||||
var xhttp = new XMLHttpRequest();
|
var xhttp = new XMLHttpRequest();
|
||||||
xhttp.open("POST","/db/rebuild", true);
|
xhttp.open("POST","/api/rebuild", true);
|
||||||
xhttp.send("key=" + encodeURIComponent(apikey))
|
xhttp.send("key=" + encodeURIComponent(apikey))
|
||||||
window.location = "/wait";
|
window.location = "/wait";
|
||||||
}
|
}
|
||||||
|
@ -31,7 +31,7 @@
|
|||||||
console.log("Probing...");
|
console.log("Probing...");
|
||||||
pending = true;
|
pending = true;
|
||||||
var xhttp = new XMLHttpRequest();
|
var xhttp = new XMLHttpRequest();
|
||||||
xhttp.open("GET","/db/test", true);
|
xhttp.open("GET","/api/test", true);
|
||||||
xhttp.onreadystatechange = goback;
|
xhttp.onreadystatechange = goback;
|
||||||
xhttp.send();
|
xhttp.send();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user