From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on gnuweeb.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NO_DNS_FOR_FROM,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.6 Received: from localhost.localdomain (unknown [101.128.125.94]) by gnuweeb.org (Postfix) with ESMTPSA id 0552D7E7BE; Thu, 21 Jul 2022 23:29:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gnuweeb.org; s=default; t=1658446200; bh=XDKVdm+nORsh1eVqUkHCouSWfmrAlqXdHVxEO4hL1xI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=URK+3xjbBDKHU97yzz4EhYFWSk1Mz7QHc0HlLMktJGDrzTXm5RPsDcbpGSl9fFqpn 9b/I4roI5B3jwAVfYOH1cktjTxX6CcJViHtC6X+HRAme0Q6ABa5XtoyZXr++etjJx3 lcajQ6FMbHRls7thz83Qt6q+FIQ8fIifknq9jDaGggK186+p3hiUaDTeB+6ZRH7cgG PvtJUu4w0WnJ5wfwnwS8umYAFXa2wyZ1y1g3tj6V+SNmUTm05+5VU25jphNVzWiTCS mMXLu+iDy4M+HQnt+uq8ilFeppyVzNAaxV1lAEhPpWaj+feI3goB069VGTSI4/N+ua /7KIEmwCRsfyA== From: Muhammad Rizki To: Ammar Faizi Cc: Muhammad Rizki , GNU/Weeb Mailing List Subject: [PATCH v3 02/17] Fix import problem Date: Fri, 22 Jul 2022 06:29:23 +0700 Message-Id: <20220721232938.503-3-kiizuha@gnuweeb.org> X-Mailer: git-send-email 2.34.1.windows.1 In-Reply-To: <20220721232938.503-1-kiizuha@gnuweeb.org> References: <20220721232938.503-1-kiizuha@gnuweeb.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: From: Muhammad Rizki In this commit, there are combined topic and it's my mistakes, allow me to explain. There are unused imports and it has been removed, and the other there are undefined modules and it has been imported. Signed-off-by: Muhammad Rizki --- daemon/packages/plugins/scrape.py | 1 + daemon/run.py | 2 -- daemon/scraper/bot.py | 1 - daemon/scraper/scraper.py | 4 ---- 4 files changed, 1 insertion(+), 7 deletions(-) diff --git a/daemon/packages/plugins/scrape.py b/daemon/packages/plugins/scrape.py index c9da71a..1698c6d 100644 --- a/daemon/packages/plugins/scrape.py +++ b/daemon/packages/plugins/scrape.py @@ -15,6 +15,7 @@ from scraper import utils from scraper import Bot import shutil import re +import asyncio # diff --git a/daemon/run.py b/daemon/run.py index ef1d8f4..0a650cd 100644 --- a/daemon/run.py +++ b/daemon/run.py @@ -5,14 +5,12 @@ # from apscheduler.schedulers.asyncio import AsyncIOScheduler -from email.message import Message from scraper import BotMutexes from dotenv import load_dotenv from mysql import connector from pyrogram import Client from scraper import Scraper from scraper import Bot -import asyncio import os diff --git a/daemon/scraper/bot.py b/daemon/scraper/bot.py index 9b95d50..c62c554 100644 --- a/daemon/scraper/bot.py +++ b/daemon/scraper/bot.py @@ -13,7 +13,6 @@ from scraper import Scraper from pyrogram import enums from . import utils from .db import Db -import xmltodict import pyrogram import asyncio import shutil diff --git a/daemon/scraper/scraper.py b/daemon/scraper/scraper.py index b70df31..2d5942b 100644 --- a/daemon/scraper/scraper.py +++ b/daemon/scraper/scraper.py @@ -5,14 +5,10 @@ # from typing import Dict, List -from .db import Db import email.policy import xmltodict -import operator -import asyncio import httpx import email -import json class Scraper(): -- Muhammad Rizki