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.
24 lines
487 B
24 lines
487 B
2 years ago
|
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)
|
||
|
|
||
|
|