fix(views): correct elif placement in base.html and clean HTML5 data attributes (v3.8.40)
This commit is contained in:
@@ -49,7 +49,7 @@ class LiveContextService:
|
||||
"""Localiza el usuario autenticado en la base de datos por ID, email o nombre."""
|
||||
try:
|
||||
if user_id:
|
||||
clean_id = str(user_id).replace("usr_", "").strip()
|
||||
clean_id = user_id.replace("usr_", "").strip()
|
||||
if clean_id.isdigit():
|
||||
u = User.query.filter_by(id=int(clean_id)).first()
|
||||
if u:
|
||||
|
||||
Reference in New Issue
Block a user