mirror of
https://github.com/GSA/notifications-api.git
synced 2026-07-12 17:34:48 -04:00
lazy init encryption
This commit is contained in:
@@ -9,7 +9,7 @@ from sqlalchemy.ext.declarative import DeclarativeMeta, declared_attr
|
||||
from sqlalchemy.orm import validates
|
||||
from sqlalchemy.orm.collections import attribute_mapped_collection
|
||||
|
||||
from app import db, encryption
|
||||
from app import db, get_encryption
|
||||
from app.enums import (
|
||||
AgreementStatus,
|
||||
AgreementType,
|
||||
@@ -48,6 +48,8 @@ from notifications_utils.recipients import (
|
||||
)
|
||||
from notifications_utils.template import PlainTextEmailTemplate, SMSMessageTemplate
|
||||
|
||||
encryption = get_encryption()
|
||||
|
||||
|
||||
def filter_null_value_fields(obj):
|
||||
return dict(filter(lambda x: x[1] is not None, obj.items()))
|
||||
|
||||
Reference in New Issue
Block a user