From 007ff29b76e069c228b29f62df0d3e3d22dd52b3 Mon Sep 17 00:00:00 2001 From: cupcakearmy Date: Mon, 17 Jun 2019 10:09:14 +0200 Subject: [PATCH] wrong import path --- src/Commands.py | 4 ++-- src/Mercatus.py | 9 +++++---- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/src/Commands.py b/src/Commands.py index 1a728df..8a8c9d7 100644 --- a/src/Commands.py +++ b/src/Commands.py @@ -1,8 +1,8 @@ from telegram.ext import CallbackContext from telegram import Update -from src.LimitedList import LimitedList -from src.Utils import parse_command, config, Section +from LimitedList import LimitedList +from Utils import parse_command, config, Section def get_watchlist(context: CallbackContext) -> LimitedList: diff --git a/src/Mercatus.py b/src/Mercatus.py index 41e92d6..5bce150 100644 --- a/src/Mercatus.py +++ b/src/Mercatus.py @@ -2,10 +2,10 @@ from asyncio import sleep from datetime import datetime, timedelta from telegram.ext import Updater, CommandHandler -from src.Background import interval -from src.Market import Market -from src.Utils import persistence, config, Section -from src.Commands import watchlist_add, watchlist_delete, watchlist_all, watchlist_clear, set_api_key, get_api_key +from Background import interval +from Market import Market +from Utils import persistence, config, Section +from Commands import watchlist_add, watchlist_delete, watchlist_all, watchlist_clear, set_api_key, get_api_key updater: Updater = Updater(config['token'], use_context=True, persistence=persistence) @@ -18,6 +18,7 @@ async def send_updates(): if Section.API_Key.value not in data: continue + print('Sending updates to {}'.format(key)) market = Market(data[Section.API_Key.value]) updater.bot.send_message(key, text='Getting updates 🌎') first = True