Skip to content

Commit

Permalink
Change CM_REPORT_PREFIX to DOWNLOADS_PREFIX
Browse files Browse the repository at this point in the history
  • Loading branch information
dbernstein committed Dec 18, 2024
1 parent 5a99fb6 commit c14aa22
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ def run(self) -> None:

uid = uuid.uuid4()
key = (
f"{S3Service.CM_REPORT_PREFIX}/inventory_and_holds/{library.short_name}/"
f"{S3Service.DOWNLOADS_PREFIX}/inventory_and_holds/{library.short_name}/"
f"inventory-and-holds-for-library-{file_name_modifier}-{uid}.zip"
)
self.s3_service.store_stream(
Expand Down
2 changes: 1 addition & 1 deletion src/palace/manager/scripts/playtime_entries.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ def do_run(self):
if recipient:
uid = uuid.uuid4()
key = (
f"{S3Service.CM_REPORT_PREFIX}/{reporting_name}/"
f"{S3Service.DOWNLOADS_PREFIX}/{reporting_name}/"
f"{linked_file_name}"
)

Expand Down
2 changes: 1 addition & 1 deletion src/palace/manager/service/storage/s3.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def exception(self) -> BaseException | None:

class S3Service(LoggerMixin):
MINIMUM_MULTIPART_UPLOAD_SIZE = 5 * 1024 * 1024 # 5MB
CM_REPORT_PREFIX = "cm_report"
DOWNLOADS_PREFIX = "downloads"

def __init__(
self,
Expand Down

0 comments on commit c14aa22

Please sign in to comment.