From c11926dc69d053eaccfcf0e6b9bc2b89f2b30271 Mon Sep 17 00:00:00 2001 From: NodyHub Date: Sun, 2 Jul 2017 15:28:49 +0200 Subject: [PATCH] renamed --- flathunter.py | 4 ++-- flathunter/{core.py => hunter.py} | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) rename flathunter/{core.py => hunter.py} (99%) diff --git a/flathunter.py b/flathunter.py index f13a7d3f..1675175a 100755 --- a/flathunter.py +++ b/flathunter.py @@ -9,7 +9,7 @@ from flathunter.crawl_immobilienscout import CrawlImmobilienscout from flathunter.crawl_wggesucht import CrawlWgGesucht from flathunter.idmaintainer import IdMaintainer -from flathunter.core import Core +from flathunter.hunter import Hunter __author__ = "Jan Harrie" __version__ = "1.0" @@ -39,7 +39,7 @@ def launch_flat_hunt(config): searchers = [CrawlImmobilienscout(), CrawlWgGesucht()] id_watch = IdMaintainer('%s/processed_ids.db' % os.path.dirname(os.path.abspath(__file__))) - hunter = Core() + hunter = Hunter() hunter.hunt_flats(config, searchers, id_watch) while config.get('loop', dict()).get('active', False): diff --git a/flathunter/core.py b/flathunter/hunter.py similarity index 99% rename from flathunter/core.py rename to flathunter/hunter.py index ef5c1eb4..1ed8729e 100644 --- a/flathunter/core.py +++ b/flathunter/hunter.py @@ -6,7 +6,7 @@ import time from flathunter.sender_telegram import SenderTelegram -class Core: +class Hunter: __log__ = logging.getLogger(__name__) GM_MODE_TRANSIT = 'transit' GM_MODE_BICYCLE = 'bicycling'