Same rev commit for bsetting

Soon i will add topic support for rss
This commit is contained in:
Anas Tayyar 2024-09-09 21:21:35 +03:00 committed by GitHub
parent a5ee70d6f3
commit c3047ba515
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -263,7 +263,7 @@ async def edit_variable(_, message, pre_message, key):
if not value.endswith("/"):
value += "/"
elif key in ["LEECH_DUMP_CHAT", "RSS_CHAT"]:
if value.isdigit() or value.startswith("-"):
if "|" not in value and (value.isdigit() or value.startswith("-")):
value = int(value)
elif key == "STATUS_UPDATE_INTERVAL":
value = int(value)