Skip to content

Commit

Permalink
chg: [style] Make pre-commit happy.
Browse files Browse the repository at this point in the history
  • Loading branch information
cedricbonhomme committed Jul 8, 2024
1 parent c6b5f04 commit c0ab1cd
Show file tree
Hide file tree
Showing 4 changed files with 114 additions and 130 deletions.
8 changes: 5 additions & 3 deletions mosp/lib/objects_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,11 @@ def generate_misp_galaxy_cluster(json_object):
{
"uuid": value.pop("uuid", ""),
"value": value.pop("code", ""),
"description": value.pop("label")
if value.get("label", False)
else value.pop("description", ""),
"description": (
value.pop("label")
if value.get("label", False)
else value.pop("description", "")
),
"meta": value,
}
)
Expand Down
6 changes: 3 additions & 3 deletions mosp/views/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,9 +197,9 @@ def toggle_user(user_id=None):
db.session.commit()
flash(
gettext("User {status}.").format(
status=gettext("activated")
if user.is_active
else gettext("deactivated")
status=(
gettext("activated") if user.is_active else gettext("deactivated")
)
),
"success",
)
Expand Down
1 change: 0 additions & 1 deletion mosp/views/session_mgmt.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
from flask import session
from flask import url_for
from flask_babel import gettext
from flask_babel import lazy_gettext
from flask_login import current_user
from flask_login import login_required
from flask_login import LoginManager
Expand Down
Loading

0 comments on commit c0ab1cd

Please sign in to comment.