This commit is contained in:
aaron 2025-03-18 22:59:06 +08:00
parent 9346497f38
commit 9a8f3be396
2 changed files with 1 additions and 1 deletions

View File

@ -152,7 +152,7 @@ async def get_community_time_periods(
"capacity": ctp.CommunityTimePeriodDB.capacity,
"from_time": ctp.time_period_from_time,
"to_time": ctp.time_period_to_time,
"order_full": today_orders_count >= ctp.CommunityTimePeriodDB.capacity,
"order_full": ctp.CommunityTimePeriodDB.capacity > 0 and today_orders_count >= ctp.CommunityTimePeriodDB.capacity,
"is_default": False
})

Binary file not shown.