Skip to content

Commit 987d9b2

Browse files
FIX: Python code in README
1 parent fd9198e commit 987d9b2

File tree

1 file changed

+33
-19
lines changed

1 file changed

+33
-19
lines changed

README.md

Lines changed: 33 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -80,25 +80,39 @@ This a quick start guide.
8080
These are the default values used for the config:
8181

8282
```python
83-
SECRET_KEY='dev',
84-
SESSION_COOKIE_SECURE=True,
85-
REMEMBER_COOKIE_SECURE=True,
86-
SQLALCHEMY_TRACK_MODIFICATIONS=False,
87-
SQLALCHEMY_DATABASE_URI='postgresql://nanpos:nanpos@localhost:5432/nanpos',
88-
TERMINAL_LOGOUT_TIMEOUT=30, # logout timeout for Terminal mode in seconds, set to none to disable
89-
QUICK_CANCEL_SEC=60, # Second-Limit for canceling a revenue
90-
PURCHASE_COOLDOWN=0.0, # Cooldown between multiple purchases in seconds. If zero, there's no cooldown.
91-
VERIFY_FREE_PURCHASES=False, # Option, whether purchases with no cost must be verified
92-
VERIFY_FREE_PURCHASES_NOTE=None, # Optional text, that is displayed during confirmation
93-
BANK_DATA=None, # Display bank data
94-
FAVORITES_DISPLAY=3, # Amount of favorite products which should get highlighted
95-
FAVORITES_DAYS=100, # Timespan for calculation of favorite products in Days
96-
ALLOW_SIGNUP=False, # Disable user sign up
97-
ENABLE_CARD_READER=False, # Disable the card reader by default
98-
VERIFY_CARD_READER=False, # Verify the send card reader device id
99-
VERIFIED_CARD_READERS=[], # List of strings of verified readers. Per default are no card readers authorized.
100-
SHOW_BALANCE_AND_PRICE=True, # Display prices and a balance instead of a count
101-
ALLOW_NEGATIVE_BALANCES=False, # Allow purchases over budget
83+
SECRET_KEY='dev'
84+
SESSION_COOKIE_SECURE=True
85+
REMEMBER_COOKIE_SECURE=True
86+
SQLALCHEMY_TRACK_MODIFICATIONS=False
87+
SQLALCHEMY_DATABASE_URI='postgresql://nanpos:nanpos@localhost:5432/nanpos'
88+
# logout timeout for Terminal mode in seconds, set to none to disable
89+
TERMINAL_LOGOUT_TIMEOUT=30
90+
# Second-Limit for canceling a revenue
91+
QUICK_CANCEL_SEC=60
92+
# Cooldown between multiple purchases in seconds. If zero, there's no cooldown.
93+
PURCHASE_COOLDOWN=0.0
94+
# Option, whether purchases with no cost must be verified
95+
VERIFY_FREE_PURCHASES=False
96+
# Optional text, that is displayed during confirmation
97+
VERIFY_FREE_PURCHASES_NOTE=None
98+
# Display bank data
99+
BANK_DATA=None
100+
# Amount of favorite products which should get highlighted
101+
FAVORITES_DISPLAY=3
102+
# Timespan for calculation of favorite products in Days
103+
FAVORITES_DAYS=100
104+
# Disable user sign up
105+
ALLOW_SIGNUP=False
106+
# Disable the card reader by default
107+
ENABLE_CARD_READER=False
108+
# Verify the send card reader device id
109+
VERIFY_CARD_READER=False
110+
# List of strings of verified readers. Per default are no card readers authorized.
111+
VERIFIED_CARD_READERS=[]
112+
# Display prices and a balance instead of a count
113+
SHOW_BALANCE_AND_PRICE=True
114+
# Allow purchases over budget
115+
ALLOW_NEGATIVE_BALANCES=False
102116
```
103117

104118
You can use additional standard configuration values from the [Flask](https://flask.palletsprojects.com/en/2.0.x/), [Flask-Login](https://flask-login.readthedocs.io/en/latest/)

0 commit comments

Comments
 (0)