Files
ksef_app/app/notifications/routes.py
Mateusz Gruszczyński 35571df778 push
2026-03-13 11:03:13 +01:00

13 lines
409 B
Python

from flask import Blueprint, render_template
from flask_login import login_required
from app.models.invoice import NotificationLog
bp = Blueprint('notifications', __name__, url_prefix='/notifications')
@bp.route('/')
@login_required
def index():
logs = NotificationLog.query.order_by(NotificationLog.created_at.desc()).limit(100).all()
return render_template('notifications/index.html', logs=logs)