Browse Source

The default answer is false now

master
Lev 2 years ago
parent
commit
7e6161760d
  1. 6
      bot.py

6
bot.py

@ -16,8 +16,8 @@ import time
tz = datetime.timezone(datetime.timedelta(hours=3))
POLL_HOUR = 10
SCHEDULING_HOUR = 20
POLL_HOUR = 9
SCHEDULING_HOUR = 21
def locale_from_ietf(_ietf_locale: str) -> str:
@ -193,7 +193,7 @@ class Bot(telebot.TeleBot):
yield Community.from_dict(community_data)
def poll_user_for_community(self, user: User, community: Community):
def_answer = community.default_answers.get(user.user_id, True)
def_answer = False # community.default_answers.get(user.user_id, True)
self.send_template(user.user_id, 'poll_user', community=community, answer=def_answer)
community.pool += [user.user_id] * def_answer
community.polled[user.user_id] = datetime.date.today()

Loading…
Cancel
Save