piccoli fix
This commit is contained in:
@@ -26,10 +26,10 @@ router = APIRouter(prefix="/api/offices", tags=["offices"])
|
||||
class ValidOfficeCreate(BaseModel):
|
||||
name: str
|
||||
parking_quota: int = 0
|
||||
booking_window_enabled: bool = True
|
||||
booking_window_enabled: bool = False
|
||||
booking_window_end_hour: int = 18
|
||||
booking_window_end_minute: int = 0
|
||||
assignment_mode: str = "fairness"
|
||||
assignment_mode: str = "random"
|
||||
|
||||
|
||||
class ClosingDayCreate(BaseModel):
|
||||
@@ -92,7 +92,11 @@ def list_offices(db: Session = Depends(get_db), user=Depends(require_manager_or_
|
||||
"name": office.name,
|
||||
"parking_quota": office.parking_quota,
|
||||
"spot_prefix": office.spot_prefix,
|
||||
"user_count": user_counts.get(office.id, 0)
|
||||
"user_count": user_counts.get(office.id, 0),
|
||||
"booking_window_enabled": office.booking_window_enabled,
|
||||
"booking_window_end_hour": office.booking_window_end_hour,
|
||||
"booking_window_end_minute": office.booking_window_end_minute,
|
||||
"assignment_mode": office.assignment_mode
|
||||
}
|
||||
for office in offices
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user