Skip to content

Commit

Permalink
FIX: Synced configurations
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderKaschta committed Feb 26, 2024
1 parent 4de767e commit fedb41c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .flake8
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[flake8]
exclude = build/*,.venv,venv
max-line-length = 128
max-line-length = 120
statistics = True
3 changes: 2 additions & 1 deletion nanposweb/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ def card_login():
if request.method == 'POST':
if form.validate_on_submit():
# Check if card reader checks are enabled
if current_app.config.get("ENABLE_CARD_READER", False) and current_app.config.get("VERIFY_CARD_READER", False):
if (current_app.config.get("ENABLE_CARD_READER", False) and
current_app.config.get("VERIFY_CARD_READER", False)):
# Try verifying the card reader
if form.reader.data not in current_app.config.get("VERIFIED_CARD_READERS", []):
# Redirect back to the login page
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ name = "nanposweb"
description = ""
requires-python= ">=3.9"
license = {text = "MIT"}
version = "1.1.3"
version = "1.1.4"
dependencies = [
"Flask==2.2.3",
"Flask-SQLAlchemy",
Expand Down

0 comments on commit fedb41c

Please sign in to comment.