Explorar o código

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

Vildan %!s(int64=2) %!d(string=hai) anos
pai
achega
cb5f3f0a19
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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):