05/22 Implement license version

This commit is contained in:
2026-05-22 16:31:19 -04:00
parent e6657e60cf
commit 687216e332
16 changed files with 1373 additions and 37 deletions
+4
View File
@@ -587,6 +587,10 @@ def send_weekly_digest(app):
from app.models import Ticket, TicketStatus, TicketPriority
with app.app_context():
from app.services.license_service import feature_enabled
if not feature_enabled('digest'):
logger.debug('[DIGEST] Skipped — digest feature not enabled on current license tier.')
return
try:
now = datetime.utcnow()
week_ago = now - timedelta(days=7)