Browse Source

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

Vildan 2 years ago
parent
commit
cb5f3f0a19
1 changed files with 1 additions and 1 deletions
  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):