From 29af49720c228f1db637635e07151a524fb2cb12 Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Fri, 12 Jul 2019 14:12:03 -0400 Subject: [PATCH] Use srht.flask.session instead of flask.session --- buildsrht/blueprints/jobs.py | 4 ++-- buildsrht/blueprints/secrets.py | 9 ++++----- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/buildsrht/blueprints/jobs.py b/buildsrht/blueprints/jobs.py index e61a6bb..20dab95 100644 --- a/buildsrht/blueprints/jobs.py +++ b/buildsrht/blueprints/jobs.py @@ -1,10 +1,10 @@ from ansi2html import Ansi2HTMLConverter -from flask import Blueprint, render_template, request, abort, redirect, session +from flask import Blueprint, render_template, request, abort, redirect from flask import Response from flask_login import current_user from srht.config import cfg from srht.database import db -from srht.flask import paginate_query, loginrequired +from srht.flask import paginate_query, loginrequired, session from srht.validation import Validation from buildsrht.types import Job, JobStatus, Task, TaskStatus, User from buildsrht.manifest import Manifest diff --git a/buildsrht/blueprints/secrets.py b/buildsrht/blueprints/secrets.py index ae08c3a..c6c6afd 100644 --- a/buildsrht/blueprints/secrets.py +++ b/buildsrht/blueprints/secrets.py @@ -1,12 +1,11 @@ -from flask import Blueprint, render_template, request, redirect, session, abort -from flask_login import current_user +from buildsrht.types import Secret, SecretType from cryptography.hazmat.backends import default_backend from cryptography.hazmat.primitives import serialization - +from flask import Blueprint, render_template, request, redirect, abort +from flask_login import current_user from srht.database import db -from srht.flask import loginrequired +from srht.flask import loginrequired, session from srht.validation import Validation -from buildsrht.types import Secret, SecretType secrets = Blueprint('secrets', __name__) -- 2.38.5