mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-07-02 23:47:42 -04:00
19 lines
480 B
Python
19 lines
480 B
Python
from datetime import datetime, timedelta
|
|
|
|
from flask import render_template
|
|
|
|
from app import performance_dashboard_api_client
|
|
from app.main import main
|
|
|
|
|
|
@main.route("/performance")
|
|
def performance():
|
|
stats = performance_dashboard_api_client.get_performance_dashboard_stats(
|
|
start_date=(datetime.utcnow() - timedelta(days=90)).date(),
|
|
end_date=datetime.utcnow().date(),
|
|
)
|
|
return render_template(
|
|
'views/performance.html',
|
|
**stats
|
|
)
|