Skip to content

Commit

Permalink
forgot to ad
Browse files Browse the repository at this point in the history
  • Loading branch information
chennisden committed Jun 6, 2024
1 parent bdb01c7 commit 96f40b4
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions store/app/api/crud/robots.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
"""Defines CRUD interface for robot API."""

from store.app.api.crud.base import BaseCrud
from store.app.api.model import Robot


class RobotCrud(BaseCrud):
async def add_robot(self, robot: Robot) -> None:
table = await self.db.Table("Robots")
await table.put_item(Item=robot.model_dump())

0 comments on commit 96f40b4

Please sign in to comment.