From 6c3cf31b03b3047d1049628b7faafe0b4ac3f43a Mon Sep 17 00:00:00 2001 From: chiu Date: Tue, 19 May 2020 23:08:52 +0800 Subject: [PATCH] fix error --- app/models/property.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/property.rb b/app/models/property.rb index 83da4da..d027357 100644 --- a/app/models/property.rb +++ b/app/models/property.rb @@ -109,7 +109,7 @@ class Property b_sdata = booking.start_time.wday*10000 + booking.start_time.hour*100 + booking.start_time.minute b_edata = booking.end_time.wday*10000 + booking.end_time.hour*100 + booking.end_time.minute end - while True: + while true if b_interval == 'month' sdata = stime.day*10000 + stime.hour*100 + stime.minute edata = etime.day*10000 + etime.hour*100 + etime.minute