Daddy PyLint

This commit is contained in:
Michał 2023-04-05 16:57:07 +00:00
parent 4627498b8d
commit a49d6dc321
5 changed files with 10 additions and 10 deletions

View file

@ -28,7 +28,7 @@ def login():
username = request.form['username'].strip()
password = request.form['password'].strip()
remember = True if request.form.get('remember') else False
remember = bool(request.form['remember'])
user = db_session.query(db.Users).filter_by(username=username).first()

View file

@ -3,8 +3,8 @@ OnlyLegs - Database models and functions for SQLAlchemy
"""
from uuid import uuid4
import os
import platformdirs
from datetime import datetime as dt
import platformdirs
from sqlalchemy import create_engine, Column, Integer, String, DateTime, ForeignKey, PickleType
from sqlalchemy.orm import declarative_base, relationship

View file

@ -2,7 +2,7 @@
OnlyLegs - Settings page
"""
from flask import Blueprint, render_template
from flask_login import login_required, current_user
from flask_login import login_required
blueprint = Blueprint('settings', __name__, url_prefix='/settings')