add org invite template to db

This commit is contained in:
Leo Hemsted
2018-02-16 14:42:03 +00:00
committed by Rebecca Law
parent a2a1c5e9af
commit 5b71d2f36e
5 changed files with 84 additions and 9 deletions

View File

@@ -188,7 +188,7 @@ def delete_invitations():
deleted_invites = delete_invitations_created_more_than_two_days_ago()
deleted_invites += delete_org_invitations_created_more_than_two_days_ago()
current_app.logger.info(
"Delete job started {} finished {} deleted {} invitations".format(start, datetime.utcnow(), deleted)
"Delete job started {} finished {} deleted {} invitations".format(start, datetime.utcnow(), deleted_invites)
)
except SQLAlchemyError:
current_app.logger.exception("Failed to delete invitations")