Skip to content
This repository has been archived by the owner on May 28, 2024. It is now read-only.

Commit

Permalink
favicon fix
Browse files Browse the repository at this point in the history
  • Loading branch information
leftmove committed Mar 23, 2024
1 parent 4366a61 commit d2487a7
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions routers/general.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,15 +98,14 @@ async def progressive_restore(password: str, background: BackgroundTasks):
status = restore_log["status"]
if status == "running":
raise HTTPException(status_code=429, detail="Restore already running.")
else:
database.edit_specific_log(type_query, {"$set": {"status": "running"}})
else:
database.create_log({**type_query, "status": "running"})

filers = database.find_filers({}, {"cik": 1})
all_ciks = [filer["cik"] for filer in filers]

def cycle_filers(ciks):
database.edit_specific_log(type_query, {"$set": {"status": "running"}})
for cik in ciks:
create_filer_replace(cik)
database.edit_specific_log(type_query, {"$set": {"status": "stopped"}})
Expand All @@ -129,4 +128,4 @@ async def backup(password: str, background: BackgroundTasks):
@cache
@router.get("/favicon.ico", status_code=200)
async def favicon():
return FileResponse("./public/favicon.ico")
return FileResponse(f"{cwd}/public/favicon.ico")

0 comments on commit d2487a7

Please sign in to comment.