mirror of https://github.com/coddrago/Heroku
Temporarily remove ttl check in inline units to fix config
parent
fd749d3189
commit
6f7fde5e6a
|
@ -216,10 +216,6 @@ class Form(InlineUnit):
|
||||||
logger.error("Invalid type for `ttl`")
|
logger.error("Invalid type for `ttl`")
|
||||||
return False
|
return False
|
||||||
|
|
||||||
if isinstance(ttl, int) and (ttl > self._markup_ttl or ttl < 10):
|
|
||||||
ttl = None
|
|
||||||
logger.debug("Defaulted ttl, because it breaks out of limits")
|
|
||||||
|
|
||||||
if isinstance(message, Message) and not silent:
|
if isinstance(message, Message) and not silent:
|
||||||
try:
|
try:
|
||||||
status_message = await (
|
status_message = await (
|
||||||
|
|
|
@ -134,10 +134,6 @@ class Gallery(InlineUnit):
|
||||||
logger.error("Invalid type for `ttl`")
|
logger.error("Invalid type for `ttl`")
|
||||||
return False
|
return False
|
||||||
|
|
||||||
if isinstance(ttl, int) and (ttl > self._markup_ttl or ttl < 10):
|
|
||||||
ttl = self._markup_ttl
|
|
||||||
logger.debug("Defaulted ttl, because it breaks out of limits")
|
|
||||||
|
|
||||||
if isinstance(next_handler, list):
|
if isinstance(next_handler, list):
|
||||||
if all(isinstance(i, str) for i in next_handler):
|
if all(isinstance(i, str) for i in next_handler):
|
||||||
next_handler = ListGalleryHelper(next_handler)
|
next_handler = ListGalleryHelper(next_handler)
|
||||||
|
|
|
@ -141,10 +141,6 @@ class List(InlineUnit):
|
||||||
logger.error("Invalid type for `ttl`")
|
logger.error("Invalid type for `ttl`")
|
||||||
return False
|
return False
|
||||||
|
|
||||||
if isinstance(ttl, int) and (ttl > self._markup_ttl or ttl < 10):
|
|
||||||
ttl = self._markup_ttl
|
|
||||||
logger.debug("Defaulted ttl, because it breaks out of limits")
|
|
||||||
|
|
||||||
unit_id = utils.rand(16)
|
unit_id = utils.rand(16)
|
||||||
btn_call_data = {key: utils.rand(10) for key in {"back", "next", "close"}}
|
btn_call_data = {key: utils.rand(10) for key in {"back", "next", "close"}}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue