Selaa lähdekoodia

Исправлена проверка времени мероприятия

Vildan 2 vuotta sitten
vanhempi
commit
cb5f3f0a19
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      bot/functions.py

+ 1 - 1
bot/functions.py

@@ -156,7 +156,7 @@ def check_overlap(start, end, date):
     times = db.sql_fetchall(f"select e_start,e_end from events_table where e_date = {date}")
     for time in times:
         it.addi(time['e_start'], time['e_end'])
-        return not it.overlaps(start, end)
+    return not it.overlaps(start, end)
 
 
 def parse_events(data):