fix debug statement in scheduled tasks

This commit is contained in:
Kenneth Kehl
2026-01-27 07:33:54 -08:00
parent 6ff3205f43
commit 0c10e1cdde
63 changed files with 230 additions and 464 deletions

View File

@@ -13,15 +13,13 @@ down_revision = "0296_agreement_signed_by_person"
def upgrade():
op.execute(
"""
op.execute("""
INSERT INTO template_redacted (template_id, redact_personalisation, updated_at, updated_by_id)
SELECT templates.id, FALSE, now(), templates.created_by_id
FROM templates
WHERE templates.id NOT IN (SELECT template_id FROM template_redacted WHERE template_id = templates.id)
;
"""
)
""")
def downgrade():