From 5300e4978e09f91638762fe76f143f1b10424dcc Mon Sep 17 00:00:00 2001 From: Gergely Polonkai Date: Tue, 3 Jul 2018 08:29:19 +0200 Subject: [PATCH] [Code Cleanup] Wrap some long lines --- calsocial/calendar_system/gregorian.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/calsocial/calendar_system/gregorian.py b/calsocial/calendar_system/gregorian.py index f80a767..1113761 100644 --- a/calsocial/calendar_system/gregorian.py +++ b/calsocial/calendar_system/gregorian.py @@ -154,8 +154,10 @@ class GregorianCalendar(CalendarSystem): start_timestamp = date.replace(hour=0, minute=0, second=0, microsecond=0) end_timestamp = start_timestamp + timedelta(days=1) - events = events.filter(((Event.start_time >= start_timestamp) & (Event.start_time < end_timestamp)) | - ((Event.end_time >= start_timestamp) & (Event.end_time < end_timestamp))) \ + events = events.filter(((Event.start_time >= start_timestamp) & + (Event.start_time < end_timestamp)) | + ((Event.end_time >= start_timestamp) & + (Event.end_time < end_timestamp))) \ .order_by('start_time', 'end_time') return events