Range
This commit is contained in:
parent
b43bfc5afd
commit
14e63864ff
4
bot.py
4
bot.py
|
@ -19,7 +19,7 @@ import timeout as tmo
|
|||
# TODO more backends (redis at least)
|
||||
db = db_classes.PickleDB(".db")
|
||||
db.load()
|
||||
CURRENT_VERSION = "v1.0rc9"
|
||||
CURRENT_VERSION = "v1.0rc10"
|
||||
VERSION = db.read("about.version", CURRENT_VERSION)
|
||||
db.write("about.author", "electromagneticcyclone")
|
||||
db.write("about.tester", "angelbeautifull")
|
||||
|
@ -1308,7 +1308,7 @@ def set_timezone(message: telebot.types.Message):
|
|||
def get_hours() -> tuple:
|
||||
"Returns forum's work hours."
|
||||
# TODO command to set range
|
||||
return (8, 20)
|
||||
return tuple(range(8, 20))
|
||||
|
||||
|
||||
def stack_update(forum: int, force_reset: bool = False) -> None:
|
||||
|
|
Loading…
Reference in New Issue