mirror of
https://github.com/GSA/notifications-api.git
synced 2026-09-11 10:28:55 -04:00
reformat up to latest version of black
This commit is contained in:
+3
-3
@@ -359,9 +359,9 @@ def setup_sqlalchemy_events(app):
|
||||
connection_record.info["request_data"] = {
|
||||
"method": request.method,
|
||||
"host": request.host,
|
||||
"url_rule": request.url_rule.rule
|
||||
if request.url_rule
|
||||
else "No endpoint",
|
||||
"url_rule": (
|
||||
request.url_rule.rule if request.url_rule else "No endpoint"
|
||||
),
|
||||
}
|
||||
# celery apps
|
||||
elif current_task:
|
||||
|
||||
@@ -214,12 +214,12 @@ def handle_complaint(ses_message):
|
||||
complaint = Complaint(
|
||||
notification_id=notification.id,
|
||||
service_id=notification.service_id,
|
||||
ses_feedback_id=ses_complaint.get("feedbackId", None)
|
||||
if ses_complaint
|
||||
else None,
|
||||
complaint_type=ses_complaint.get("complaintFeedbackType", None)
|
||||
if ses_complaint
|
||||
else None,
|
||||
ses_feedback_id=(
|
||||
ses_complaint.get("feedbackId", None) if ses_complaint else None
|
||||
),
|
||||
complaint_type=(
|
||||
ses_complaint.get("complaintFeedbackType", None) if ses_complaint else None
|
||||
),
|
||||
complaint_date=ses_complaint.get("timestamp", None) if ses_complaint else None,
|
||||
)
|
||||
save_complaint(complaint)
|
||||
|
||||
@@ -120,12 +120,16 @@ def create_delivery_status_callback_data(notification, service_callback_api):
|
||||
"notification_status": notification.status,
|
||||
"notification_provider_response": notification.provider_response, # TODO do we test for provider_response?
|
||||
"notification_created_at": notification.created_at.strftime(DATETIME_FORMAT),
|
||||
"notification_updated_at": notification.updated_at.strftime(DATETIME_FORMAT)
|
||||
if notification.updated_at
|
||||
else None,
|
||||
"notification_sent_at": notification.sent_at.strftime(DATETIME_FORMAT)
|
||||
if notification.sent_at
|
||||
else None,
|
||||
"notification_updated_at": (
|
||||
notification.updated_at.strftime(DATETIME_FORMAT)
|
||||
if notification.updated_at
|
||||
else None
|
||||
),
|
||||
"notification_sent_at": (
|
||||
notification.sent_at.strftime(DATETIME_FORMAT)
|
||||
if notification.sent_at
|
||||
else None
|
||||
),
|
||||
"notification_type": notification.notification_type,
|
||||
"service_callback_api_url": service_callback_api.url,
|
||||
"service_callback_api_bearer_token": service_callback_api.bearer_token,
|
||||
|
||||
+5
-9
@@ -806,16 +806,12 @@ def _clear_templates_from_cache():
|
||||
# When we update-templates in the db, we need to make sure to delete them
|
||||
# from redis, otherwise the old versions will stick around forever.
|
||||
CACHE_KEYS = [
|
||||
"service-????????-????-????-????-????????????-templates",
|
||||
"service-????????-????-????-????-????????????-template-????????-????-????-????-????????????-version-*", # noqa
|
||||
"service-????????-????-????-????-????????????-template-????????-????-????-????-????????????-versions", # noqa
|
||||
]
|
||||
|
||||
|
||||
num_deleted = sum(
|
||||
redis_store.delete_by_pattern(pattern) for pattern in CACHE_KEYS
|
||||
)
|
||||
"service-????????-????-????-????-????????????-templates",
|
||||
"service-????????-????-????-????-????????????-template-????????-????-????-????-????????????-version-*", # noqa
|
||||
"service-????????-????-????-????-????????????-template-????????-????-????-????-????????????-versions", # noqa
|
||||
]
|
||||
|
||||
num_deleted = sum(redis_store.delete_by_pattern(pattern) for pattern in CACHE_KEYS)
|
||||
|
||||
|
||||
@notify_command(name="create-new-service")
|
||||
|
||||
@@ -14,6 +14,7 @@ Lastly when to create a version is done manually in dao_utils version decorator
|
||||
session events.
|
||||
|
||||
"""
|
||||
|
||||
import datetime
|
||||
|
||||
from sqlalchemy import Column, ForeignKeyConstraint, Integer, Table, util
|
||||
|
||||
+15
-15
@@ -772,9 +772,9 @@ class ServiceSmsSender(db.Model):
|
||||
"service_id": str(self.service_id),
|
||||
"is_default": self.is_default,
|
||||
"archived": self.archived,
|
||||
"inbound_number_id": str(self.inbound_number_id)
|
||||
if self.inbound_number_id
|
||||
else None,
|
||||
"inbound_number_id": (
|
||||
str(self.inbound_number_id) if self.inbound_number_id else None
|
||||
),
|
||||
"created_at": self.created_at.strftime(DATETIME_FORMAT),
|
||||
"updated_at": get_dt_string_or_none(self.updated_at),
|
||||
}
|
||||
@@ -1184,9 +1184,9 @@ class TemplateBase(db.Model):
|
||||
"created_by": self.created_by.email_address,
|
||||
"version": self.version,
|
||||
"body": self.content,
|
||||
"subject": self.subject
|
||||
if self.template_type == TemplateType.EMAIL
|
||||
else None,
|
||||
"subject": (
|
||||
self.subject if self.template_type == TemplateType.EMAIL else None
|
||||
),
|
||||
"name": self.name,
|
||||
"personalisation": {
|
||||
key: {
|
||||
@@ -1690,9 +1690,9 @@ class Notification(db.Model):
|
||||
|
||||
def serialize_for_csv(self):
|
||||
serialized = {
|
||||
"row_number": ""
|
||||
if self.job_row_number is None
|
||||
else self.job_row_number + 1,
|
||||
"row_number": (
|
||||
"" if self.job_row_number is None else self.job_row_number + 1
|
||||
),
|
||||
"recipient": self.to,
|
||||
"client_reference": self.client_reference or "",
|
||||
"template_name": self.template.name,
|
||||
@@ -1718,12 +1718,12 @@ class Notification(db.Model):
|
||||
serialized = {
|
||||
"id": self.id,
|
||||
"reference": self.client_reference,
|
||||
"email_address": self.to
|
||||
if self.notification_type == NotificationType.EMAIL
|
||||
else None,
|
||||
"phone_number": self.to
|
||||
if self.notification_type == NotificationType.SMS
|
||||
else None,
|
||||
"email_address": (
|
||||
self.to if self.notification_type == NotificationType.EMAIL else None
|
||||
),
|
||||
"phone_number": (
|
||||
self.to if self.notification_type == NotificationType.SMS else None
|
||||
),
|
||||
"line_1": None,
|
||||
"line_2": None,
|
||||
"line_3": None,
|
||||
|
||||
@@ -180,12 +180,12 @@ def volumes_by_service_report():
|
||||
{
|
||||
"service_name": row.service_name,
|
||||
"service_id": str(row.service_id),
|
||||
"organization_name": row.organization_name
|
||||
if row.organization_name
|
||||
else "",
|
||||
"organization_id": str(row.organization_id)
|
||||
if row.organization_id
|
||||
else "",
|
||||
"organization_name": (
|
||||
row.organization_name if row.organization_name else ""
|
||||
),
|
||||
"organization_id": (
|
||||
str(row.organization_id) if row.organization_id else ""
|
||||
),
|
||||
"free_allowance": int(row.free_allowance),
|
||||
"sms_notifications": int(row.sms_notifications),
|
||||
"sms_chargeable_units": int(row.sms_chargeable_units),
|
||||
|
||||
+10
-8
@@ -479,14 +479,16 @@ def get_all_notifications_for_service(service_id):
|
||||
jsonify(
|
||||
notifications=notifications,
|
||||
page_size=page_size,
|
||||
links=get_prev_next_pagination_links(
|
||||
page,
|
||||
len(next_page_of_pagination.items),
|
||||
".get_all_notifications_for_service",
|
||||
**kwargs,
|
||||
)
|
||||
if count_pages
|
||||
else {},
|
||||
links=(
|
||||
get_prev_next_pagination_links(
|
||||
page,
|
||||
len(next_page_of_pagination.items),
|
||||
".get_all_notifications_for_service",
|
||||
**kwargs,
|
||||
)
|
||||
if count_pages
|
||||
else {}
|
||||
),
|
||||
),
|
||||
200,
|
||||
)
|
||||
|
||||
@@ -28,9 +28,11 @@ def send_notification_to_service_users(
|
||||
notification = persist_notification(
|
||||
template_id=template.id,
|
||||
template_version=template.version,
|
||||
recipient=user.email_address
|
||||
if template.template_type == TemplateType.EMAIL
|
||||
else user.mobile_number,
|
||||
recipient=(
|
||||
user.email_address
|
||||
if template.template_type == TemplateType.EMAIL
|
||||
else user.mobile_number
|
||||
),
|
||||
service=notify_service,
|
||||
personalisation=personalisation,
|
||||
notification_type=template.template_type,
|
||||
|
||||
@@ -59,7 +59,9 @@ def get_last_used_datetime_for_template(service_id, template_id):
|
||||
)
|
||||
|
||||
return jsonify(
|
||||
last_date_used=last_date_used.strftime(DATETIME_FORMAT)
|
||||
if last_date_used
|
||||
else last_date_used
|
||||
last_date_used=(
|
||||
last_date_used.strftime(DATETIME_FORMAT)
|
||||
if last_date_used
|
||||
else last_date_used
|
||||
)
|
||||
)
|
||||
|
||||
+5
-3
@@ -38,9 +38,11 @@ def get_paginated_uploads(service_id, limit_days, page):
|
||||
"id": upload.id,
|
||||
"original_file_name": upload.original_file_name,
|
||||
"notification_count": upload.notification_count,
|
||||
"created_at": upload.scheduled_for.strftime("%Y-%m-%d %H:%M:%S")
|
||||
if upload.scheduled_for
|
||||
else upload.created_at.strftime("%Y-%m-%d %H:%M:%S"),
|
||||
"created_at": (
|
||||
upload.scheduled_for.strftime("%Y-%m-%d %H:%M:%S")
|
||||
if upload.scheduled_for
|
||||
else upload.created_at.strftime("%Y-%m-%d %H:%M:%S")
|
||||
),
|
||||
"upload_type": upload.upload_type,
|
||||
"template_type": upload.template_type,
|
||||
"recipient": upload.recipient,
|
||||
|
||||
+3
-3
@@ -715,9 +715,9 @@ def get_orgs_and_services(user):
|
||||
"id": service.id,
|
||||
"name": service.name,
|
||||
"restricted": service.restricted,
|
||||
"organization": service.organization.id
|
||||
if service.organization
|
||||
else None,
|
||||
"organization": (
|
||||
service.organization.id if service.organization else None
|
||||
),
|
||||
}
|
||||
for service in user.services
|
||||
if service.active
|
||||
|
||||
@@ -212,9 +212,11 @@ def save_email_or_sms_to_queue(
|
||||
"id": notification_id,
|
||||
"template_id": str(template.id),
|
||||
"template_version": template.version,
|
||||
"to": form["email_address"]
|
||||
if notification_type == NotificationType.EMAIL
|
||||
else form["phone_number"],
|
||||
"to": (
|
||||
form["email_address"]
|
||||
if notification_type == NotificationType.EMAIL
|
||||
else form["phone_number"]
|
||||
),
|
||||
"service_id": str(service_id),
|
||||
"personalisation": personalisation,
|
||||
"notification_type": notification_type,
|
||||
|
||||
@@ -5,6 +5,7 @@ Revises: 0086_add_norm_to_notification
|
||||
Create Date: 2017-05-15 12:50:20.041950
|
||||
|
||||
"""
|
||||
|
||||
import sqlalchemy as sa
|
||||
from alembic import op
|
||||
from sqlalchemy.dialects import postgresql
|
||||
|
||||
@@ -5,6 +5,7 @@ Revises: 0092_add_inbound_provider
|
||||
Create Date: 2017-06-06 14:37:30.051647
|
||||
|
||||
"""
|
||||
|
||||
import sqlalchemy as sa
|
||||
from alembic import op
|
||||
|
||||
|
||||
@@ -5,6 +5,7 @@ Revises: 0097_notnull_inbound_provider
|
||||
Create Date: 2017-06-13 15:02:33.609656
|
||||
|
||||
"""
|
||||
|
||||
import sqlalchemy as sa
|
||||
from alembic import op
|
||||
from sqlalchemy.dialects import postgresql
|
||||
|
||||
@@ -5,6 +5,7 @@ Revises: 0108_change_logo_not_nullable
|
||||
Create Date: 2017-07-10 14:25:15.712055
|
||||
|
||||
"""
|
||||
|
||||
import sqlalchemy as sa
|
||||
from alembic import op
|
||||
from sqlalchemy.dialects import postgresql
|
||||
|
||||
@@ -5,6 +5,7 @@ Revises: 0111_drop_old_service_flags
|
||||
Create Date: 2017-07-12 13:35:45.636618
|
||||
|
||||
"""
|
||||
|
||||
from datetime import datetime
|
||||
|
||||
import sqlalchemy as sa
|
||||
|
||||
@@ -5,6 +5,7 @@ Revises: 0113_job_created_by_nullable
|
||||
Create Date: 2017-07-27 13:36:37.304344
|
||||
|
||||
"""
|
||||
|
||||
import sqlalchemy as sa
|
||||
from alembic import op
|
||||
from sqlalchemy.dialects import postgresql
|
||||
|
||||
@@ -5,6 +5,7 @@ Revises: 0118_service_sms_senders
|
||||
Create Date: 2017-09-07 15:29:49.087143
|
||||
|
||||
"""
|
||||
|
||||
import sqlalchemy as sa
|
||||
from alembic import op
|
||||
from sqlalchemy.dialects import postgresql
|
||||
|
||||
@@ -5,6 +5,7 @@ Revises: 0119_add_email_reply_to
|
||||
Create Date: 2017-09-18 14:18:49.087143
|
||||
|
||||
"""
|
||||
|
||||
import sqlalchemy as sa
|
||||
from alembic import op
|
||||
from sqlalchemy.dialects import postgresql
|
||||
|
||||
@@ -5,6 +5,7 @@ Revises: 0120_add_org_banner_branding
|
||||
Create Date: 2017-09-20 11:00:20.415523
|
||||
|
||||
"""
|
||||
|
||||
import sqlalchemy as sa
|
||||
from alembic import op
|
||||
|
||||
|
||||
@@ -5,6 +5,7 @@ Revises: 0121_nullable_logos
|
||||
Create Date: 2017-09-21 12:16:02.975120
|
||||
|
||||
"""
|
||||
|
||||
import sqlalchemy as sa
|
||||
from alembic import op
|
||||
from sqlalchemy.dialects import postgresql
|
||||
|
||||
@@ -5,6 +5,7 @@ Revises: 0122_add_service_letter_contact
|
||||
Create Date: 2017-09-27 09:42:39.412731
|
||||
|
||||
"""
|
||||
|
||||
import sqlalchemy as sa
|
||||
from alembic import op
|
||||
from sqlalchemy.dialects import postgresql
|
||||
|
||||
@@ -5,6 +5,7 @@ Revises: 0123_add_noti_to_email_reply
|
||||
Create Date: 2017-10-10 11:30:16.225980
|
||||
|
||||
"""
|
||||
|
||||
import sqlalchemy as sa
|
||||
from alembic import op
|
||||
|
||||
|
||||
@@ -5,6 +5,7 @@ Revises: 0124_add_free_sms_fragment_limit
|
||||
Create Date: 2017-10-05 14:03:00.248005
|
||||
|
||||
"""
|
||||
|
||||
import sqlalchemy as sa
|
||||
from alembic import op
|
||||
|
||||
|
||||
@@ -5,6 +5,7 @@ Revises: 0125_add_organisation_type
|
||||
Create Date: 2017-10-19 11:38:32.849573
|
||||
|
||||
"""
|
||||
|
||||
import sqlalchemy as sa
|
||||
from alembic import op
|
||||
from sqlalchemy.dialects import postgresql
|
||||
|
||||
@@ -5,6 +5,7 @@ Revises: 0126_add_annual_billing
|
||||
Create Date: 2017-10-17 16:47:37.826333
|
||||
|
||||
"""
|
||||
|
||||
import sqlalchemy as sa
|
||||
from alembic import op
|
||||
|
||||
|
||||
@@ -5,6 +5,7 @@ Revises: 0127_remove_unique_constraint
|
||||
Create Date: 2017-10-26 15:17:00.752706
|
||||
|
||||
"""
|
||||
|
||||
import sqlalchemy as sa
|
||||
from alembic import op
|
||||
from sqlalchemy.dialects import postgresql
|
||||
|
||||
@@ -5,6 +5,7 @@ Revises: 0128_noti_to_sms_sender
|
||||
Create Date: 2017-10-26 14:33:41.336861
|
||||
|
||||
"""
|
||||
|
||||
from alembic import op
|
||||
|
||||
revision = "0129_add_email_auth_permission"
|
||||
|
||||
@@ -5,6 +5,7 @@ Revises: 0130_service_email_reply_to_row
|
||||
Create Date: 2017-10-27 16:19:51.458863
|
||||
|
||||
"""
|
||||
|
||||
import sqlalchemy as sa
|
||||
from alembic import op
|
||||
|
||||
|
||||
@@ -5,6 +5,7 @@ Revises: 0131_user_auth_types
|
||||
Create Date: 2017-11-03 11:07:40.537006
|
||||
|
||||
"""
|
||||
|
||||
import sqlalchemy as sa
|
||||
from alembic import op
|
||||
from sqlalchemy.dialects import postgresql
|
||||
|
||||
@@ -5,6 +5,7 @@ Revises: 0133_set_services_sms_prefix
|
||||
Create Date: 2017-11-03 13:52:59.715203
|
||||
|
||||
"""
|
||||
|
||||
from datetime import datetime
|
||||
|
||||
from alembic import op
|
||||
|
||||
@@ -5,6 +5,7 @@ Revises: 0134_add_email_2fa_template
|
||||
Create Date: 2017-11-07 14:35:04.798561
|
||||
|
||||
"""
|
||||
|
||||
import sqlalchemy as sa
|
||||
from alembic import op
|
||||
from sqlalchemy.dialects import postgresql
|
||||
|
||||
@@ -5,6 +5,7 @@ Revises: 0135_stats_template_usage
|
||||
Create Date: 2017-11-08 11:49:05.773974
|
||||
|
||||
"""
|
||||
|
||||
import sqlalchemy as sa
|
||||
from alembic import op
|
||||
from sqlalchemy.dialects import postgresql
|
||||
|
||||
@@ -5,6 +5,7 @@ Revises: 0136_user_mobile_nullable
|
||||
Create Date: 2017-11-08 10:15:07.039227
|
||||
|
||||
"""
|
||||
|
||||
from alembic import op
|
||||
|
||||
revision = "0137_notification_template_hist"
|
||||
|
||||
@@ -5,6 +5,7 @@ Revises: 0137_notification_template_hist
|
||||
Create Date: 2017-11-06 15:44:59.471977
|
||||
|
||||
"""
|
||||
|
||||
import sqlalchemy as sa
|
||||
from alembic import op
|
||||
from sqlalchemy.dialects import postgresql
|
||||
|
||||
@@ -5,6 +5,7 @@ Revises: 0138_sms_sender_nullable.py
|
||||
Create Date: 2017-11-10 21:42:59.715203
|
||||
|
||||
"""
|
||||
|
||||
import uuid
|
||||
from datetime import datetime
|
||||
|
||||
|
||||
@@ -5,6 +5,7 @@ Revises: 0139_migrate_sms_allowance_data
|
||||
Create Date: 2017-11-07 13:04:04.077142
|
||||
|
||||
"""
|
||||
|
||||
import sqlalchemy as sa
|
||||
from alembic import op
|
||||
from flask import current_app
|
||||
|
||||
@@ -5,6 +5,7 @@ Revises: 0140_sms_prefix_non_nullable
|
||||
Create Date: 2017-11-20 11:35:24.402021
|
||||
|
||||
"""
|
||||
|
||||
import sqlalchemy as sa
|
||||
from alembic import op
|
||||
from sqlalchemy.dialects import postgresql
|
||||
|
||||
@@ -5,6 +5,7 @@ Revises: 0141_remove_unused
|
||||
Create Date: 2017-11-15 14:39:13.657666
|
||||
|
||||
"""
|
||||
|
||||
from alembic import op
|
||||
from sqlalchemy.dialects import postgresql
|
||||
|
||||
|
||||
@@ -5,6 +5,7 @@ Revises: 0142_validate_constraint
|
||||
Create Date: 2017-11-21 10:42:25.045444
|
||||
|
||||
"""
|
||||
|
||||
import sqlalchemy as sa
|
||||
from alembic import op
|
||||
|
||||
|
||||
@@ -5,6 +5,7 @@ Revises: 0143_remove_reply_to
|
||||
Create Date: 2017-11-17 15:42:16.401229
|
||||
|
||||
"""
|
||||
|
||||
import sqlalchemy as sa
|
||||
from alembic import op
|
||||
from sqlalchemy.dialects import postgresql
|
||||
|
||||
@@ -5,6 +5,7 @@ Revises: 0144_template_service_letter
|
||||
Create Date: 2017-11-22 14:23:48.806781
|
||||
|
||||
"""
|
||||
|
||||
import sqlalchemy as sa
|
||||
from alembic import op
|
||||
|
||||
|
||||
@@ -5,6 +5,7 @@ Revises: 0145_add_notification_reply_to
|
||||
Create Date: 2017-11-28 15:13:48.730554
|
||||
|
||||
"""
|
||||
|
||||
import sqlalchemy as sa
|
||||
from alembic import op
|
||||
from sqlalchemy.dialects import postgresql
|
||||
|
||||
@@ -5,6 +5,7 @@ Revises: 0146_add_service_callback_api
|
||||
Create Date: 2017-11-30 15:48:44.588438
|
||||
|
||||
"""
|
||||
|
||||
import sqlalchemy as sa
|
||||
from alembic import op
|
||||
from sqlalchemy.dialects import postgresql
|
||||
|
||||
@@ -5,6 +5,7 @@ Revises: 0148_add_letters_as_pdf_svc_perm
|
||||
Create Date: 2017-12-04 12:13:35.268712
|
||||
|
||||
"""
|
||||
|
||||
import sqlalchemy as sa
|
||||
from alembic import op
|
||||
|
||||
|
||||
@@ -5,6 +5,7 @@ Revises: 0149_add_crown_to_services
|
||||
Create Date: 2017-12-01 16:49:51.178455
|
||||
|
||||
"""
|
||||
|
||||
import sqlalchemy as sa
|
||||
from alembic import op
|
||||
|
||||
|
||||
@@ -5,6 +5,7 @@ Revises: 0152_kill_service_free_fragments
|
||||
Create Date: 2018-01-05 17:04:20.596271
|
||||
|
||||
"""
|
||||
|
||||
from alembic import op
|
||||
|
||||
revision = "0156_set_temp_letter_contact"
|
||||
|
||||
@@ -5,6 +5,7 @@ Revises: 0156_set_temp_letter_contact
|
||||
Create Date: 2018-01-08 16:13:25.733336
|
||||
|
||||
"""
|
||||
|
||||
import sqlalchemy as sa
|
||||
from alembic import op
|
||||
|
||||
|
||||
@@ -5,6 +5,7 @@ Revises: 0157_add_rate_limit_to_service
|
||||
Create Date: 2018-01-09 14:33:08.313893
|
||||
|
||||
"""
|
||||
|
||||
import sqlalchemy as sa
|
||||
from alembic import op
|
||||
|
||||
|
||||
@@ -5,6 +5,7 @@ Revises: 0159_add_historical_redact
|
||||
Create Date: 2018-01-30 15:35:12.016574
|
||||
|
||||
"""
|
||||
|
||||
import sqlalchemy as sa
|
||||
from alembic import op
|
||||
from sqlalchemy.dialects import postgresql
|
||||
|
||||
@@ -5,6 +5,7 @@ Revises: 0161_email_branding
|
||||
Create Date: 2018-02-06 17:08:11.879844
|
||||
|
||||
"""
|
||||
|
||||
import sqlalchemy as sa
|
||||
from alembic import op
|
||||
from sqlalchemy.dialects import postgresql
|
||||
|
||||
@@ -5,6 +5,7 @@ Revises: 0162_remove_org
|
||||
Create Date: 2018-02-07 14:03:00.804849
|
||||
|
||||
"""
|
||||
|
||||
import sqlalchemy as sa
|
||||
from alembic import op
|
||||
from sqlalchemy.dialects import postgresql
|
||||
|
||||
@@ -5,6 +5,7 @@ Revises: 0163_add_new_org_model
|
||||
Create Date: 2018-02-09 17:58:34.617206
|
||||
|
||||
"""
|
||||
|
||||
import sqlalchemy as sa
|
||||
from alembic import op
|
||||
from sqlalchemy.dialects import postgresql
|
||||
|
||||
@@ -5,6 +5,7 @@ Revises: 0164_add_organisation_to_service
|
||||
Create Date: 2018-02-14 17:25:11.747996
|
||||
|
||||
"""
|
||||
|
||||
import sqlalchemy as sa
|
||||
from alembic import op
|
||||
from sqlalchemy.dialects import postgresql
|
||||
|
||||
@@ -5,6 +5,7 @@ Revises: 0167_add_precomp_letter_svc_perm
|
||||
Create Date: 2018-02-21 14:05:04.448977
|
||||
|
||||
"""
|
||||
|
||||
import sqlalchemy as sa
|
||||
from alembic import op
|
||||
|
||||
|
||||
@@ -5,6 +5,7 @@ Revises: 0168_hidden_templates
|
||||
Create Date: 2018-02-21 14:05:04.448977
|
||||
|
||||
"""
|
||||
|
||||
from alembic import op
|
||||
|
||||
revision = "0169_hidden_templates_nullable"
|
||||
|
||||
@@ -5,6 +5,7 @@ Revises: 0169_hidden_templates_nullable
|
||||
Create Date: 2018-02-21 14:05:04.448977
|
||||
|
||||
"""
|
||||
|
||||
from alembic import op
|
||||
|
||||
revision = "0170_hidden_non_nullable"
|
||||
|
||||
@@ -5,6 +5,7 @@ Revises: 0170_hidden_non_nullable
|
||||
Create Date: 2018-02-16 14:16:43.618062
|
||||
|
||||
"""
|
||||
|
||||
from datetime import datetime
|
||||
|
||||
from alembic import op
|
||||
|
||||
@@ -5,6 +5,7 @@ Revises: 0171_add_org_invite_template
|
||||
Create Date: 2018-02-28 17:09:56.619803
|
||||
|
||||
"""
|
||||
|
||||
import sqlalchemy as sa
|
||||
from alembic import op
|
||||
|
||||
|
||||
@@ -5,6 +5,7 @@ Revises: 0172_deprioritise_examples
|
||||
Create Date: 2018-03-01 11:53:32.964256
|
||||
|
||||
"""
|
||||
|
||||
import sqlalchemy as sa
|
||||
from alembic import op
|
||||
from sqlalchemy.dialects import postgresql
|
||||
|
||||
@@ -5,6 +5,7 @@ Revises: 0173_create_daily_sorted_letter
|
||||
Create Date: 2018-03-07 12:21:53.098887
|
||||
|
||||
"""
|
||||
|
||||
import sqlalchemy as sa
|
||||
from alembic import op
|
||||
from sqlalchemy.dialects import postgresql
|
||||
|
||||
@@ -5,6 +5,7 @@ Revises: 0174_add_billing_facts
|
||||
Create Date: 2018-03-12 10:27:09.050837
|
||||
|
||||
"""
|
||||
|
||||
import sqlalchemy as sa
|
||||
from alembic import op
|
||||
from sqlalchemy.dialects import postgresql
|
||||
|
||||
@@ -5,6 +5,7 @@ Revises: 0175_drop_job_statistics_table
|
||||
Create Date: 2018-03-12 16:54:30.663897
|
||||
|
||||
"""
|
||||
|
||||
import sqlalchemy as sa
|
||||
from alembic import op
|
||||
|
||||
|
||||
@@ -5,6 +5,7 @@ Revises: 0176_alter_billing_columns
|
||||
Create Date: 2018-02-21 14:05:04.448977
|
||||
|
||||
"""
|
||||
|
||||
from alembic import op
|
||||
|
||||
revision = "0177_add_virus_scan_statuses"
|
||||
|
||||
@@ -5,6 +5,7 @@ Revises: 0177_add_virus_scan_statuses
|
||||
Create Date: 2018-03-14 16:15:01.886998
|
||||
|
||||
"""
|
||||
|
||||
import sqlalchemy as sa
|
||||
from alembic import op
|
||||
|
||||
|
||||
@@ -5,6 +5,7 @@ Revises: 0178_add_filename
|
||||
Create Date: 2018-03-13 14:52:40.413474
|
||||
|
||||
"""
|
||||
|
||||
import sqlalchemy as sa
|
||||
from alembic import op
|
||||
from sqlalchemy.dialects import postgresql
|
||||
|
||||
@@ -5,6 +5,7 @@ Revises: 0179_billing_primary_const
|
||||
Create Date: 2018-03-21 13:41:26.203712
|
||||
|
||||
"""
|
||||
|
||||
import sqlalchemy as sa
|
||||
from alembic import op
|
||||
from sqlalchemy.dialects import postgresql
|
||||
|
||||
@@ -5,6 +5,7 @@ Revises: 0182_add_upload_document_perm
|
||||
Create Date: 2018-03-25 21:23:32.403212
|
||||
|
||||
"""
|
||||
|
||||
import sqlalchemy as sa
|
||||
from alembic import op
|
||||
from sqlalchemy.dialects import postgresql
|
||||
|
||||
@@ -5,6 +5,7 @@ Revises: 0183_alter_primary_key
|
||||
Create Date: 2018-03-28 16:05:54.648645
|
||||
|
||||
"""
|
||||
|
||||
import sqlalchemy as sa
|
||||
from alembic import op
|
||||
from sqlalchemy.dialects import postgresql
|
||||
|
||||
@@ -5,6 +5,7 @@ Revises: 0184_alter_primary_key_1
|
||||
Create Date: 2018-04-10 16:35:41.824981
|
||||
|
||||
"""
|
||||
|
||||
import sqlalchemy as sa
|
||||
from alembic import op
|
||||
|
||||
|
||||
@@ -5,6 +5,7 @@ Revises: 0185_add_is_active_to_reply_tos
|
||||
Create Date: 2018-04-27 16:35:41.824981
|
||||
|
||||
"""
|
||||
|
||||
import sqlalchemy as sa
|
||||
from alembic import op
|
||||
|
||||
|
||||
@@ -5,6 +5,7 @@ Revises: 0186_rename_is_active_columns
|
||||
Create Date: 2018-05-03 10:10:41.824981
|
||||
|
||||
"""
|
||||
|
||||
import sqlalchemy as sa
|
||||
from alembic import op
|
||||
from sqlalchemy.dialects import postgresql
|
||||
|
||||
@@ -5,6 +5,7 @@ Revises: 0188_add_ft_notification_status
|
||||
Create Date: 2018-05-10 14:57:52.589773
|
||||
|
||||
"""
|
||||
|
||||
import sqlalchemy as sa
|
||||
from alembic import op
|
||||
|
||||
|
||||
@@ -5,6 +5,7 @@ Revises: 0189_ft_billing_data
|
||||
Create Date: 2018-05-21 14:24:27.229511
|
||||
|
||||
"""
|
||||
|
||||
from alembic import op
|
||||
|
||||
revision = "0191_ft_billing_pkey"
|
||||
|
||||
@@ -5,6 +5,7 @@ Revises: 0191_ft_billing_pkey
|
||||
Create Date: 2018-05-21 15:18:43.871256
|
||||
|
||||
"""
|
||||
|
||||
import sqlalchemy as sa
|
||||
from alembic import op
|
||||
from sqlalchemy.dialects import postgresql
|
||||
|
||||
@@ -5,6 +5,7 @@ Revises: 0192_drop_provider_statistics
|
||||
Create Date: 2018-05-22 10:23:21.937262
|
||||
|
||||
"""
|
||||
|
||||
import sqlalchemy as sa
|
||||
from alembic import op
|
||||
|
||||
|
||||
@@ -5,6 +5,7 @@ Revises: 0193_add_ft_billing_timestamps
|
||||
Create Date: 2018-05-22 14:34:27.852096
|
||||
|
||||
"""
|
||||
|
||||
import sqlalchemy as sa
|
||||
from alembic import op
|
||||
from sqlalchemy.dialects import postgresql
|
||||
|
||||
@@ -5,6 +5,7 @@ Revises: 0194_ft_billing_created_at
|
||||
Create Date: 2018-05-22 16:01:53.269137
|
||||
|
||||
"""
|
||||
|
||||
import sqlalchemy as sa
|
||||
from alembic import op
|
||||
|
||||
|
||||
@@ -5,6 +5,7 @@ Revises: 0195_ft_notification_timestamps
|
||||
Create Date: 2018-05-31 14:31:36.649544
|
||||
|
||||
"""
|
||||
|
||||
import sqlalchemy as sa
|
||||
from alembic import op
|
||||
from sqlalchemy.dialects import postgresql
|
||||
|
||||
@@ -5,6 +5,7 @@ Revises: 0196_complaints_table
|
||||
Create Date: 2018-05-31 15:01:32.977620
|
||||
|
||||
"""
|
||||
|
||||
import sqlalchemy as sa
|
||||
from alembic import op
|
||||
|
||||
|
||||
@@ -5,6 +5,7 @@ Revises: 0203_fix_old_incomplete_jobs
|
||||
Create Date: 2018-07-10 11:22:01.761829
|
||||
|
||||
"""
|
||||
|
||||
import sqlalchemy as sa
|
||||
from alembic import op
|
||||
from sqlalchemy.dialects import postgresql
|
||||
|
||||
@@ -5,6 +5,7 @@ Revises: 0204_service_data_retention
|
||||
Create Date: 2018-07-17 15:51:10.776698
|
||||
|
||||
"""
|
||||
|
||||
import sqlalchemy as sa
|
||||
from alembic import op
|
||||
|
||||
|
||||
@@ -5,6 +5,7 @@ Revises: 0205_service_callback_type
|
||||
Create Date: 2018-07-18 10:43:43.864835
|
||||
|
||||
"""
|
||||
|
||||
import sqlalchemy as sa
|
||||
from alembic import op
|
||||
|
||||
|
||||
@@ -5,6 +5,7 @@ Revises: 0206_assign_callback_type
|
||||
Create Date: 2018-07-18 10:43:43.864835
|
||||
|
||||
"""
|
||||
|
||||
import sqlalchemy as sa
|
||||
from alembic import op
|
||||
|
||||
|
||||
@@ -5,6 +5,7 @@ Revises: 0207_set_callback_history_type
|
||||
Create Date: 2018-07-25 13:55:24.941794
|
||||
|
||||
"""
|
||||
|
||||
from alembic import op
|
||||
|
||||
revision = "84c3b6eb16b3"
|
||||
|
||||
@@ -5,6 +5,7 @@ Revises: 84c3b6eb16b3
|
||||
Create Date: 2018-07-31 13:34:00.018447
|
||||
|
||||
"""
|
||||
|
||||
from alembic import op
|
||||
|
||||
revision = "0209_add_cancelled_status"
|
||||
|
||||
@@ -5,6 +5,7 @@ Revises: 0209_add_cancelled_status
|
||||
Create Date: 2018-07-31 16:43:00.568972
|
||||
|
||||
"""
|
||||
|
||||
import sqlalchemy as sa
|
||||
from alembic import op
|
||||
from sqlalchemy.dialects import postgresql
|
||||
|
||||
@@ -5,6 +5,7 @@ Revises: 0210_remove_monthly_billing
|
||||
Create Date: 2018-07-31 18:00:20.457755
|
||||
|
||||
"""
|
||||
|
||||
import sqlalchemy as sa
|
||||
from alembic import op
|
||||
|
||||
|
||||
@@ -5,6 +5,7 @@ Revises: 0211_email_branding_update
|
||||
Create Date: 2018-07-31 18:00:20.457755
|
||||
|
||||
"""
|
||||
|
||||
from alembic import op
|
||||
|
||||
revision = "0212_remove_caseworking"
|
||||
|
||||
@@ -5,6 +5,7 @@ Revises: 0212_remove_caseworking
|
||||
Create Date: 2018-08-16 16:29:41.374944
|
||||
|
||||
"""
|
||||
|
||||
import sqlalchemy as sa
|
||||
from alembic import op
|
||||
|
||||
|
||||
@@ -5,6 +5,7 @@ Revises: 0213_brand_colour_domain_
|
||||
Create Date: 2018-08-23 11:48:00.800968
|
||||
|
||||
"""
|
||||
|
||||
import sqlalchemy as sa
|
||||
from alembic import op
|
||||
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
Revises: 0215_email_brand_type
|
||||
Create Date: 2018-08-24 13:36:49.346156
|
||||
"""
|
||||
|
||||
import sqlalchemy as sa
|
||||
from alembic import op
|
||||
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
Revises: 0216_remove_colours
|
||||
Create Date: 2018-08-24 13:36:49.346156
|
||||
"""
|
||||
|
||||
from alembic import op
|
||||
from sqlalchemy import text
|
||||
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
Revises: 0219_default_email_branding
|
||||
Create Date: 2018-08-24 13:36:49.346156
|
||||
"""
|
||||
|
||||
from alembic import op
|
||||
|
||||
revision = "0220_email_brand_type_non_null"
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
Revises: 0220_email_brand_type_non_null
|
||||
Create Date: 2018-08-24 13:36:49.346156
|
||||
"""
|
||||
|
||||
from alembic import op
|
||||
|
||||
revision = "0221_nullable_service_branding"
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
Revises: 0221_nullable_service_branding
|
||||
Create Date: 2018-08-24 13:36:49.346156
|
||||
"""
|
||||
|
||||
import sqlalchemy as sa
|
||||
from alembic import op
|
||||
|
||||
|
||||
@@ -3,6 +3,7 @@ Revision ID: 0223_add_domain_constraint
|
||||
Revises: 0222_drop_service_branding
|
||||
Create Date: 2018-08-24 13:36:49.346156
|
||||
"""
|
||||
|
||||
from alembic import op
|
||||
|
||||
revision = "0223_add_domain_constraint"
|
||||
|
||||
@@ -5,6 +5,7 @@ Revises: 0223_add_domain_constraint
|
||||
Create Date: 2018-08-21 14:44:04.203480
|
||||
|
||||
"""
|
||||
|
||||
from alembic import op
|
||||
|
||||
revision = "0224_returned_letter_status"
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user