mirror of
https://github.com/koloideal/DutyLog.git
synced 2026-06-10 10:25:29 +03:00
commit
This commit is contained in:
@@ -43,6 +43,16 @@ class ResidentsRepository:
|
||||
real_name=real_name,
|
||||
)
|
||||
|
||||
async def update_resident_room(
|
||||
self,
|
||||
resident_id: int,
|
||||
room_id: int,
|
||||
) -> Resident | None:
|
||||
return await self.residents_dao.update(
|
||||
resident_id,
|
||||
room=room_id,
|
||||
)
|
||||
|
||||
async def add_active_hours(self, resident_id: int, hours: int) -> Resident | None:
|
||||
resident = await self.residents_dao.get_by_id(resident_id)
|
||||
if resident:
|
||||
|
||||
Reference in New Issue
Block a user