Skip to content

Commit

Permalink
Merge branch 'main' into development
Browse files Browse the repository at this point in the history
  • Loading branch information
yurnov authored Mar 28, 2024
2 parents 8928c9b + 664c01b commit 9ffa3c6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .env.exmple
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ CHAT_ID=<CHAT_ID>
# URL of API with compatiable format with http://alerts.net.ua/explosives_statuses_v2.json, optional
# URL=http://alerts.net.ua/explosives_statuses_v2.json
# Timezone, optional, default Europe/Kiev
# TIMEZONE=Europe/Kiev
# TIMEZONE=Europe/Kyiv
# To send map with alerts, optional, default False
# MAP=False
# MAP_URL=https://ubilling.net.ua/aerialalerts/?map=true
# MAP_URL="https://ubilling.net.ua/aerialalerts/?map=true"
# List of regions to filter, don't use spaces, single line, optional
# REGION_LIST="Одеська область","Київська область","Житомирська область","м. Київ","Львівська область"
# Full list of regions:
Expand Down
4 changes: 2 additions & 2 deletions bot/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,8 @@
REGION_LIST = [region.strip('"') for region in REGION_LIST]

if not TIMEZONE:
logger.warning("TIMEZONE is not defined in .env file, using a default timezone Europe/Kiev")
TIMEZONE = "Europe/Kiev"
logger.warning("TIMEZONE is not defined in .env file, using a default timezone Europe/Kyiv")
TIMEZONE = "Europe/Kyiv"

if not SLIENT or SLIENT.lower() not in ["true", "false"]:
logger.warning("SLIENT is not defined in .env file, or not a boolean, using a default value false")
Expand Down

0 comments on commit 9ffa3c6

Please sign in to comment.