mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-01-30 19:52:20 +01:00
Merge branch 'fix/availabitilies_export_reservations' of https://github.com/Guichaguri/fab-manager into Guichaguri-fix/availabitilies_export_reservations
This commit is contained in:
commit
380373a16d
@ -88,7 +88,7 @@ if Setting.get('spaces_module')
|
||||
((a.end_at - a.start_at) / slot_duration.minutes).to_i.times do |i|
|
||||
start_at = a.start_at + (i * slot_duration).minutes
|
||||
end_at = a.start_at + (i * slot_duration).minutes + slot_duration.minutes
|
||||
reservations = a.slots.where(start_at: start_at).count
|
||||
reservations = a.slots_reservations.where(slots: { start_at: start_at }).count
|
||||
|
||||
data = [
|
||||
start_at.to_date,
|
||||
|
Loading…
x
Reference in New Issue
Block a user