mirror of
https://github.com/GSA/notifications-api.git
synced 2026-05-23 18:24:13 -04:00
delete letters from utils.py and variables.py
This commit is contained in:
@@ -4,7 +4,6 @@ from os import getenv
|
||||
from flask import url_for
|
||||
from notifications_utils.template import (
|
||||
HTMLEmailTemplate,
|
||||
LetterPrintTemplate,
|
||||
SMSMessageTemplate,
|
||||
)
|
||||
from notifications_utils.timezones import convert_local_timezone_to_utc
|
||||
@@ -46,11 +45,10 @@ def url_with_token(data, url, config, base_url=None):
|
||||
|
||||
|
||||
def get_template_instance(template, values):
|
||||
from app.models import EMAIL_TYPE, LETTER_TYPE, SMS_TYPE
|
||||
from app.models import EMAIL_TYPE, SMS_TYPE
|
||||
return {
|
||||
SMS_TYPE: SMSMessageTemplate,
|
||||
EMAIL_TYPE: HTMLEmailTemplate,
|
||||
LETTER_TYPE: LetterPrintTemplate,
|
||||
}[template['template_type']](template, values)
|
||||
|
||||
|
||||
|
||||
@@ -1,8 +1,3 @@
|
||||
# all jobs for letters created via the api must have this filename
|
||||
LETTER_API_FILENAME = 'letter submitted via api'
|
||||
LETTER_TEST_API_FILENAME = 'test letter submitted via api'
|
||||
|
||||
|
||||
# S3 tags
|
||||
class Retention:
|
||||
KEY = 'retention'
|
||||
|
||||
Reference in New Issue
Block a user