Update probe related models, routes and templates
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user