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):
|
||||
log("Database rebuild initiated!")
|
||||
sync()
|
||||
from .proccontrol.tasks.fixexisting import fix
|
||||
from ..proccontrol.tasks.fixexisting import fix
|
||||
fix()
|
||||
global cla, coa
|
||||
cla = CleanerAgent()
|
||||
|
@ -65,7 +65,7 @@ def fix():
|
||||
with open(os.path.join(patchfolder,filename + ".diff"),"w") as patchfile:
|
||||
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!")
|
||||
|
@ -1,4 +1,2 @@
|
||||
User-agent: *
|
||||
Disallow: /api/
|
||||
Disallow: /pulse/
|
||||
Disallow: /performance/
|
||||
Disallow: *
|
||||
|
Loading…
Reference in New Issue
Block a user