Skip to content

Commit

Permalink
fixed update server
Browse files Browse the repository at this point in the history
  • Loading branch information
Foroxon committed Feb 10, 2025
1 parent 86f343d commit 2dc9cb8
Showing 1 changed file with 20 additions and 20 deletions.
40 changes: 20 additions & 20 deletions deploy/update_server/update_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,15 +184,15 @@ async def update_cache():
if (os.path.isfile(os.path.join(shared_beta_path, file)) and file.endswith(".bin"))
]
)
s3_filenames = sorted(
[
file
for file in os.listdir(f"{shared_path}/s3/")
if (os.path.isfile(os.path.join(f"{shared_path}/s3/", file)) and file.endswith(".bin"))
],
key=bin_sort,
reverse=True,
)
# s3_filenames = sorted(
# [
# file
# for file in os.listdir(f"{shared_path}/s3/")
# if (os.path.isfile(os.path.join(f"{shared_path}/s3/", file)) and file.endswith(".bin"))
# ],
# key=bin_sort,
# reverse=True,
# )
s3_beta_filenames = sorted(
[
file
Expand All @@ -202,15 +202,15 @@ async def update_cache():
key=bin_sort,
reverse=True,
)
c3_filenames = sorted(
[
file
for file in os.listdir(f"{shared_path}/c3/")
if (os.path.isfile(os.path.join(f"{shared_path}/c3/", file)) and file.endswith(".bin"))
],
key=bin_sort,
reverse=True,
)
# c3_filenames = sorted(
# [
# file
# for file in os.listdir(f"{shared_path}/c3/")
# if (os.path.isfile(os.path.join(f"{shared_path}/c3/", file)) and file.endswith(".bin"))
# ],
# key=bin_sort,
# reverse=True,
# )
c3_beta_filenames = sorted(
[
file
Expand All @@ -222,9 +222,9 @@ async def update_cache():
)
await mc.set(b"bins", json.dumps(filenames).encode("utf-8"))
await mc.set(b"test_bins", json.dumps(beta_filenames).encode("utf-8"))
await mc.set(b"s3_bins", json.dumps(s3_filenames).encode("utf-8"))
# await mc.set(b"s3_bins", json.dumps(s3_filenames).encode("utf-8"))
await mc.set(b"s3_test_bins", json.dumps(s3_beta_filenames).encode("utf-8"))
await mc.set(b"c3_bins", json.dumps(c3_filenames).encode("utf-8"))
# await mc.set(b"c3_bins", json.dumps(c3_filenames).encode("utf-8"))
await mc.set(b"c3_test_bins", json.dumps(c3_beta_filenames).encode("utf-8"))


Expand Down

0 comments on commit 2dc9cb8

Please sign in to comment.