mirror of
https://github.com/krateng/maloja.git
synced 2023-08-10 21:12:55 +03:00
Fixed database maintenance, GH-59
This commit is contained in:
parent
b9feebb064
commit
3de4059f85
@ -257,7 +257,7 @@ def import_rulemodule(**keys):
|
|||||||
def rebuild(**keys):
|
def rebuild(**keys):
|
||||||
log("Database rebuild initiated!")
|
log("Database rebuild initiated!")
|
||||||
sync()
|
sync()
|
||||||
from .proccontrol.tasks.fixexisting import fix
|
from ..proccontrol.tasks.fixexisting import fix
|
||||||
fix()
|
fix()
|
||||||
global cla, coa
|
global cla, coa
|
||||||
cla = CleanerAgent()
|
cla = CleanerAgent()
|
||||||
|
@ -65,7 +65,7 @@ def fix():
|
|||||||
with open(os.path.join(patchfolder,filename + ".diff"),"w") as patchfile:
|
with open(os.path.join(patchfolder,filename + ".diff"),"w") as patchfile:
|
||||||
patchfile.write("\n".join(diff))
|
patchfile.write("\n".join(diff))
|
||||||
|
|
||||||
os.rename(datadir("scrobbles",filename_new),datadir("scrobbles",filename))
|
os.replace(datadir("scrobbles",filename_new),datadir("scrobbles",filename))
|
||||||
|
|
||||||
|
|
||||||
log("Database fixed!")
|
log("Database fixed!")
|
||||||
|
@ -1,4 +1,2 @@
|
|||||||
User-agent: *
|
User-agent: *
|
||||||
Disallow: /api/
|
Disallow: *
|
||||||
Disallow: /pulse/
|
|
||||||
Disallow: /performance/
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user