From e86e50ff8a26a22ec4f82ef6bcc0f8abe7427864 Mon Sep 17 00:00:00 2001 From: katboi01 Date: Thu, 8 Jan 2026 22:42:03 +0100 Subject: [PATCH] hotfix --- Twitter/downloader.py | 3 --- Twitter/tweetHelper.py | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/Twitter/downloader.py b/Twitter/downloader.py index f103c89..d720989 100644 --- a/Twitter/downloader.py +++ b/Twitter/downloader.py @@ -1,10 +1,8 @@ from __future__ import annotations from typing import TYPE_CHECKING import asyncio -from datetime import datetime import gc import traceback -import tracemalloc from Classifier.classifyHelper import classify_all from Database.x_classes import DownloadMode @@ -62,7 +60,6 @@ async def download_loop(botData: RuntimeBotData): for tweet in new_posts: #posts should arrive here in chronological order await download_post(artist, tweet, botData) gc.collect() - print(tracemalloc.get_traced_memory()) results[artist.name] = new_posts_count if artist.download_mode == DownloadMode.DOWNLOAD_ALL: diff --git a/Twitter/tweetHelper.py b/Twitter/tweetHelper.py index 45d4051..38b1a92 100644 --- a/Twitter/tweetHelper.py +++ b/Twitter/tweetHelper.py @@ -49,7 +49,7 @@ async def GetTweetMediaUrls(tweet : Tweet): async def DownloadMedia(post_id, account_id, account_name, url_list : list, session) -> list[DownloadedMedia]: result : list[DownloadedMedia] = [] - path = f"{Global_Config("x_download_path")}{account_id}" + path = f"{Global_Config["x_download_path"]}{account_id}" os.makedirs(path, exist_ok=True) for idx, file_url in enumerate(url_list):