Skip to content

Commit f169eca

Browse files
Fix some ruff error
``` ruff now_lms now_lms\vistas\web_error_codes.py:32:30: F401 [*] `flask.flash` imported but unused now_lms\vistas\web_error_codes.py:32:37: F401 [*] `flask.redirect` imported but unused now_lms\vistas\web_error_codes.py:32:64: F401 [*] `flask.request` imported but unused now_lms\vistas\web_error_codes.py:33:25: F401 [*] `flask_login.login_required` imported but unused now_lms\vistas\web_error_codes.py:34:28: F401 [*] `sqlalchemy.exc.OperationalError` imported but unused now_lms\vistas\web_error_codes.py:39:26: F401 [*] `now_lms.auth.perfil_requerido` imported but unused now_lms\vistas\web_error_codes.py:41:24: F401 [*] `now_lms.db.MAXIMO_RESULTADOS_EN_CONSULTA_PAGINADA` imported but unused now_lms\vistas\web_error_codes.py:41:64: F401 [*] `now_lms.db.Etiqueta` imported but unused now_lms\vistas\web_error_codes.py:41:74: F401 [*] `now_lms.db.database` imported but unused now_lms\vistas\web_error_codes.py:42:30: F401 [*] `now_lms.db.tools.cursos_por_etiqueta` imported but unused now_lms\vistas\web_error_codes.py:43:27: F401 [*] `now_lms.forms.EtiquetaForm` imported but unused ``` Signed-off-by: William José Moreno Reyes <williamjmorenor@gmail.com>
1 parent 31f3544 commit f169eca

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

now_lms/vistas/web_error_codes.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,18 +29,12 @@
2929
# ---------------------------------------------------------------------------------------
3030
# Librerias de terceros
3131
# ---------------------------------------------------------------------------------------
32-
from flask import Blueprint, flash, redirect, render_template, request
33-
from flask_login import login_required
34-
from sqlalchemy.exc import OperationalError
32+
from flask import Blueprint, render_template
3533

3634
# ---------------------------------------------------------------------------------------
3735
# Recursos locales
3836
# ---------------------------------------------------------------------------------------
39-
from now_lms.auth import perfil_requerido
4037
from now_lms.config import DIRECTORIO_PLANTILLAS
41-
from now_lms.db import MAXIMO_RESULTADOS_EN_CONSULTA_PAGINADA, Etiqueta, database
42-
from now_lms.db.tools import cursos_por_etiqueta
43-
from now_lms.forms import EtiquetaForm
4438

4539
# ---------------------------------------------------------------------------------------
4640
# Administración de Etiquetas.

0 commit comments

Comments
 (0)