You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
487 B
23 lines
487 B
from flask import ( |
|
Blueprint, flash, g, redirect, render_template, request, url_for |
|
) |
|
from werkzeug.exceptions import abort |
|
|
|
from app.auth import login_required |
|
from app.db import get_db |
|
|
|
|
|
bp = Blueprint('index', __name__) |
|
|
|
@bp.route('/') |
|
@login_required |
|
def index(): |
|
db = get_db() |
|
loginEvents = db.execute( |
|
'SELECT *' |
|
' FROM loginEvent' |
|
' ORDER BY created DESC' |
|
).fetchall() |
|
return render_template('index.html', loginEvents = loginEvents) |
|
|
|
|
|
|