mirror of
https://github.com/GSA/notifications-api.git
synced 2026-09-08 08:28:24 -04:00
Initial commit for sqlalchemy2.0 migration
This commit is contained in:
@@ -26,7 +26,9 @@ def upgrade():
|
||||
"sms_requested = 0, sms_delivered = 0, sms_failed=0 where day > '2016-06-30'"
|
||||
)
|
||||
op.execute(reset_counts)
|
||||
all_notifications = "select * from notifications where date(created_at) > '2016-06-30' order by created_at;"
|
||||
all_notifications = text(
|
||||
"select * from notifications where date(created_at) > '2016-06-30' order by created_at;"
|
||||
)
|
||||
|
||||
results = conn.execute(all_notifications)
|
||||
res = results.fetchall()
|
||||
|
||||
Reference in New Issue
Block a user