Parcourir la source

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

Vildan il y a 2 ans
Parent
commit
cb5f3f0a19
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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):