feat: aggiunti: loggica random, tema scuro, correzioni mail, miglioramenti generali, cache;
This commit is contained in:
@@ -30,6 +30,7 @@ from services.parking import (
|
||||
run_batch_allocation, clear_assignments_for_office_date
|
||||
)
|
||||
from services.notifications import notify_parking_assigned, notify_parking_released, notify_parking_reassigned
|
||||
from utils.helpers import generate_uuid
|
||||
from app import config
|
||||
|
||||
router = APIRouter(prefix="/api/parking", tags=["parking"])
|
||||
@@ -271,6 +272,9 @@ def manual_assign(data: ManualAssignRequest, db: Session = Depends(get_db), curr
|
||||
db.add(new_assignment)
|
||||
db.commit()
|
||||
|
||||
# Send Notification
|
||||
notify_parking_assigned(user, assign_date, spot_def.name)
|
||||
|
||||
return {"message": "Spot assigned", "spot_id": data.spot_id, "spot_display_name": spot_def.name}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user