Skip to content

Commit

Permalink
fix latest.bin symlink
Browse files Browse the repository at this point in the history
  • Loading branch information
v00g100skr committed Dec 11, 2024
1 parent 594ee09 commit 69584df
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions deploy/update_server/update_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,8 @@ async def update(request):
key=bin_sort,
reverse=True,
)
filenames = list(filter(lambda filename: not filename.startswith("4."), filenames))
return FileResponse(f"{shared_path}/{filenames[0]}.bin")
filenames = [filename for filename in filenames if not filename.startswith("4.")]
return FileResponse(f"{shared_path}/{filenames[0]}")
return FileResponse(f'{shared_path}/{request.path_params["filename"]}.bin')


Expand All @@ -125,8 +125,8 @@ async def update_beta(request):
key=bin_sort,
reverse=True,
)
filenames = list(filter(lambda filename: not filename.startswith("4."), filenames))
return FileResponse(f"{shared_path}/{filenames[0]}.bin")
filenames = [filename for filename in filenames if not filename.startswith("4.")]
return FileResponse(f"{shared_path}/{filenames[0]}")
return FileResponse(f'{shared_beta_path}/{request.path_params["filename"]}.bin')


Expand Down

0 comments on commit 69584df

Please sign in to comment.