~comcloudway/builds.sr.ht

29af49720c228f1db637635e07151a524fb2cb12 — Drew DeVault 5 years ago cb7830f
Use srht.flask.session instead of flask.session
2 files changed, 6 insertions(+), 7 deletions(-)

M buildsrht/blueprints/jobs.py
M buildsrht/blueprints/secrets.py
M buildsrht/blueprints/jobs.py => buildsrht/blueprints/jobs.py +2 -2
@@ 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

M buildsrht/blueprints/secrets.py => buildsrht/blueprints/secrets.py +4 -5
@@ 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__)