Skip to content
This repository was archived by the owner on May 20, 2025. It is now read-only.

Commit a43b4df

Browse files
Apply suggestions from code review
Add missing prefixes Co-authored-by: David Moore <[email protected]>
1 parent 1c0bb9f commit a43b4df

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docs/guides/python/blender-render.mdx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ We'll organize our project structure like so:
8181

8282
## Creating the resources
8383

84-
We'll start by creating a file to define our Nitric resources. For this project we'll need an API, Batch Job, and two buckets, one for the `.blend` files and one for the resulting renders. The API will interface with the buckets, while the Batch Job will handle the long-running renders.
84+
We'll start by creating a file to define our Nitric resources. For this project, we'll need an API, a batch job, and two buckets: one for the .blend files and another for the resulting renders. The API will interact with the buckets, while the batch job will handle the long-running render tasks.
8585

8686
```python title:common/resources.py
8787
from nitric.resources import api, job, bucket
@@ -352,7 +352,7 @@ async def render_image(ctx: JobContext):
352352
return ctx
353353

354354
# load the file from a bucket to a local file
355-
blend_file = await readable_blend_bucket.file(f"{blend_key}.blend").read()
355+
blend_file = await readable_blend_bucket.file(f"blend-{blend_key}.blend").read()
356356

357357
with open("input", "wb") as f:
358358
f.write(blend_file)
@@ -397,7 +397,7 @@ async def render_image(ctx: JobContext):
397397
return ctx
398398

399399
# load the file from a bucket to a local file
400-
blend_file = await readable_blend_bucket.file(f"{blend_key}.blend").read()
400+
blend_file = await readable_blend_bucket.file(f"blend-{blend_key}.blend").read()
401401

402402
with open("input", "wb") as f:
403403
f.write(blend_file)
@@ -452,7 +452,7 @@ async def render_image(ctx: JobContext):
452452
return ctx
453453

454454
# load the file from a bucket to a local file
455-
blend_file = await readable_blend_bucket.file(f"{blend_key}.blend").read()
455+
blend_file = await readable_blend_bucket.file(f"blend-{blend_key}.blend").read()
456456

457457
with open("input", "wb") as f:
458458
f.write(blend_file)
@@ -512,7 +512,7 @@ async def render_image(ctx: JobContext):
512512
return ctx
513513

514514
# load the file from a bucket to a local file
515-
blend_file = await readable_blend_bucket.file(f"{blend_key}.blend").read()
515+
blend_file = await readable_blend_bucket.file(f"blend-{blend_key}.blend").read()
516516

517517
with open("input", "wb") as f:
518518
f.write(blend_file)

0 commit comments

Comments
 (0)