From d671adc1eb7e37f6dc93bc17a76cc937600c6902 Mon Sep 17 00:00:00 2001 From: Rebecca Law Date: Mon, 30 Oct 2017 16:51:27 +0000 Subject: [PATCH] Fix codestyle --- app/dao/notifications_dao.py | 1 - 1 file changed, 1 deletion(-) diff --git a/app/dao/notifications_dao.py b/app/dao/notifications_dao.py index 56794c394..59263cd9f 100644 --- a/app/dao/notifications_dao.py +++ b/app/dao/notifications_dao.py @@ -390,7 +390,6 @@ def delete_notifications_created_more_than_a_week_ago_by_type(notification_type) notification_sender_mapping_table.notification_id.in_(subq) ).delete(synchronize_session='fetch') - deleted = db.session.query(Notification).filter( func.date(Notification.created_at) < seven_days_ago, Notification.notification_type == notification_type,