mirror of
https://github.com/GSA/notifications-api.git
synced 2026-09-10 18:23:01 -04:00
Cleaning up a lot of things, getting Enums used everywhere.
Signed-off-by: Cliff Hill <Clifford.hill@gsa.gov>
This commit is contained in:
@@ -6,7 +6,7 @@ from sqlalchemy.orm import aliased
|
||||
from app import db
|
||||
from app.dao.dao_utils import autocommit
|
||||
from app.models import (
|
||||
SMS_TYPE,
|
||||
NotificationType,
|
||||
InboundSms,
|
||||
InboundSmsHistory,
|
||||
Service,
|
||||
@@ -130,7 +130,7 @@ def delete_inbound_sms_older_than_retention():
|
||||
ServiceDataRetention.query.join(
|
||||
ServiceDataRetention.service, Service.inbound_number
|
||||
)
|
||||
.filter(ServiceDataRetention.notification_type == SMS_TYPE)
|
||||
.filter(ServiceDataRetention.notification_type == NotificationType.SMS)
|
||||
.all()
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user