Update probe related models, routes and templates

This commit is contained in:
Andrew Conlon
2025-07-29 10:51:42 -04:00
parent 7e62e61124
commit 2600a5aa61
7 changed files with 395 additions and 47 deletions
+8 -2
View File
@@ -1,4 +1,4 @@
from flask import Blueprint, render_template, redirect, url_for, flash
from flask import Blueprint, render_template, redirect, url_for, flash, session
from app.models import Channel, Calibration
from app.routes.auth import role_required
@@ -16,6 +16,12 @@ def view_channel(channel_id):
# Get calibration history for this channel
calibrations = Calibration.get_by_channel(channel_id)
user = {
'user_name': session.get('user_name'),
'can_calibrate': session.get('can_calibrate'),
'can_review': session.get('can_review')
}
return render_template('channel_view.html',
channel=channel,
calibrations=calibrations)
calibrations=calibrations,
user=user)