Skip to content

Commit

Permalink
[#38] feature: max_lenght of full name defined as configurable parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
sudiptob2 committed Aug 23, 2022
1 parent 951bbf8 commit a0d65b2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 4 additions & 1 deletion config/.env.template
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
CF_HANDLE=sudipto.me

ACRONYM_IGNORE='["of", "and", "in"]'
ACRONYM_IGNORE='["of", "and", "in"]'

# Max length of a users full name, change if you want to override
MAX_NAME_LEN=13
1 change: 1 addition & 0 deletions config/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ class Settings(BaseSettings):
cf_handle: str = 'DmitriyH'
base_dir: str = str(Path(__file__).parent.parent)
acronym_ignore: list = ['and']
max_name_len: int = 13 # defines the max len of a cf user's full name, default 13

class Config:
"""Config class."""
Expand Down

0 comments on commit a0d65b2

Please sign in to comment.