Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
glenn-sorrentino committed Nov 14, 2024
1 parent a67b398 commit 1294996
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions hushline/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,14 @@ def get_directory_usernames() -> Sequence[Username]:
)
).all()


def directory():
setting = OrganizationSetting.fetch_one(OrganizationSetting.DIRECTORY_INTRO)
intro_text = Markup(setting.value) if setting and setting.value else Markup("")

return render_template("directory.html", intro_text=intro_text)


class TwoFactorForm(FlaskForm):
verification_code = StringField("2FA Code", validators=[DataRequired(), Length(min=6, max=6)])

Expand Down
2 changes: 1 addition & 1 deletion hushline/settings/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -834,7 +834,7 @@ def update_directory_intro_text() -> Response:
# Store the string representation in the database
OrganizationSetting.upsert(
key=OrganizationSetting.DIRECTORY_INTRO,
value=str(sanitized_intro_text) # Convert Markup to string
value=str(sanitized_intro_text), # Convert Markup to string
)
db.session.commit()

Expand Down

0 comments on commit 1294996

Please sign in to comment.