Skip to content

Commit

Permalink
fix: Generate room and concierge categories in S3
Browse files Browse the repository at this point in the history
  • Loading branch information
noahpistilli committed Jul 5, 2024
1 parent 21d466e commit 9039226
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions asset_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,20 @@ def upload_to_s3(self, im: bytes):
ExtraArgs={"ContentType": "text/xml"},
)

s3.upload_fileobj(
io.BytesIO(list_category_n("02")),
config.r2_bucket_name,
"list/category/02.xml",
ExtraArgs={"ContentType": "text/xml"},
)

s3.upload_fileobj(
io.BytesIO(list_category_n("03")),
config.r2_bucket_name,
"list/category/03.xml",
ExtraArgs={"ContentType": "text/xml"},
)


class PayCategoryAsset(Asset):
"""Used for categories within the Theater."""
Expand Down

0 comments on commit 9039226

Please sign in to comment.