Skip to content

Commit b772dbb

Browse files
committed
Merge branch 'develop' of https://github.com/PythonFreeCourse/calendar into feature/ellen/add-alembic
2 parents e842199 + fe4cab9 commit b772dbb

File tree

135 files changed

+5354
-2373
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

135 files changed

+5354
-2373
lines changed

app/config.py.example

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ from starlette.templating import Jinja2Templates
77

88

99
class Settings(BaseSettings):
10-
app_name: str = "PyLander"
10+
app_name: str = "PyLendar"
1111
bot_api: str = "BOT_API"
1212
webhook_url: str = "WEBHOOK_URL"
1313

@@ -72,12 +72,12 @@ CALENDAR_HOME_PAGE = "calendar.pythonic.guru"
7272
# link to the application registration page
7373
CALENDAR_REGISTRATION_PAGE = r"calendar.pythonic.guru/registration"
7474

75-
# import
75+
# IMPORT
7676
MAX_FILE_SIZE_MB = 5 # 5MB
7777
VALID_FILE_EXTENSION = (".txt", ".csv", ".ics") # Can import only these files.
7878
# Events must be within 20 years range from the current year.
7979
EVENT_VALID_YEARS = 20
80-
EVENT_HEADER_NOT_EMPTY = 1 # 1- for not empty, 0- for empty.
80+
EVENT_HEADER_NOT_EMPTY = True
8181
EVENT_HEADER_LIMIT = 50 # Max characters for event header.
8282
EVENT_CONTENT_LIMIT = 500 # Max characters for event content.
8383
MAX_EVENTS_START_DATE = 10 # Max Events with the same start date.

0 commit comments

Comments
 (0)