8 lines
221 B
Python
8 lines
221 B
Python
class OwnerRepository:
|
|
|
|
@staticmethod
|
|
async def update(session, owner, data: dict):
|
|
for key, value in data.items():
|
|
setattr(owner, key, value)
|
|
await session.flush()
|
|
return owner |