From 7a54a4c0f52684d00fc9815d1a61b7248a24cf80 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roman=20Kr=C4=8Dek?= Date: Thu, 10 Oct 2024 23:06:14 +0200 Subject: [PATCH] Fix linter issues --- telegram_downloader_bot/main.py | 2 +- test.py | 6 ++++++ tests/test_bot.py | 0 3 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 test.py create mode 100644 tests/test_bot.py diff --git a/telegram_downloader_bot/main.py b/telegram_downloader_bot/main.py index 3e5191d..cfba02f 100644 --- a/telegram_downloader_bot/main.py +++ b/telegram_downloader_bot/main.py @@ -20,7 +20,7 @@ LOG_LEVEL = os.getenv("LOG_LEVEL") # Log level # Your message ID for authorization separated by commas msg_ids = os.getenv("MSG_IDS") -ALLOWED_IDS = set([ int(i) for i in msg_ids.split(",") ]) # Convert to set +ALLOWED_IDS = set([int(i) for i in msg_ids.split(",")]) # Convert to set log = logger.configure_logger(LOG_LEVEL) diff --git a/test.py b/test.py new file mode 100644 index 0000000..82eeee9 --- /dev/null +++ b/test.py @@ -0,0 +1,6 @@ +from tiktok_downloader import snaptik + +videos = snaptik("https://vm.tiktok.com/ZGde8k5P7/") + +for video in videos: + print(video.json) \ No newline at end of file diff --git a/tests/test_bot.py b/tests/test_bot.py new file mode 100644 index 0000000..e69de29