Add computed properties to settings

This commit is contained in:
Roman Krček
2024-10-13 21:05:51 +02:00
parent 47472d59b7
commit 47248f10ab
3 changed files with 17 additions and 5 deletions

View File

@@ -3,9 +3,6 @@ from functools import wraps
from telegram_downloader_bot.logger import log
from telegram_downloader_bot.settings import settings
allowed_ids = settings.allowed_ids.split(",")
allowed_ids = [int(x) for x in allowed_ids]
def protected(func):
@wraps(func)