Pre code cleanup and documentation.

This commit is contained in:
lwark
2024-12-03 09:16:21 -06:00
parent 2c281166d4
commit 37c5c1d3eb
5 changed files with 38 additions and 19 deletions

View File

@@ -69,6 +69,6 @@ def update_log(mapper, connection, target):
else:
logger.info(f"No changes detected, not updating logs.")
# event.listen(LogMixin, 'after_update', update_log, propagate=True)
# event.listen(LogMixin, 'after_insert', update_log, propagate=True)
if ctx.database_schema == "sqlite":
event.listen(LogMixin, 'after_update', update_log, propagate=True)
event.listen(LogMixin, 'after_insert', update_log, propagate=True)