Commit 56b01e74 authored by PidgeyL's avatar PidgeyL
Browse files

debug debug output ;)

parent c55a9578
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -536,7 +536,7 @@ def admin():
def updatedb():
    process = subprocess.Popen(["python3", os.path.join(_runPath, "../sbin/db_updater.py"), "-civ"], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
    out, err = process.communicate()
    output="%s\n\nErrors:\n%s"%(out,str(err,'utf-8')) if err else str(out,'utf-8')
    output="%s\n\nErrors:\n%s"%(str(out,'utf-8'),str(err,'utf-8')) if err else str(out,'utf-8')
    status = ["db_updated", "success"]
    return render_template('admin.html', status=status, stats=adminStats(), updateOutput=output)