mirror of
https://github.com/cupcakearmy/mercatus.git
synced 2024-12-22 16:16:32 +00:00
wrong import path
This commit is contained in:
parent
459610cc79
commit
007ff29b76
@ -1,8 +1,8 @@
|
|||||||
from telegram.ext import CallbackContext
|
from telegram.ext import CallbackContext
|
||||||
from telegram import Update
|
from telegram import Update
|
||||||
|
|
||||||
from src.LimitedList import LimitedList
|
from LimitedList import LimitedList
|
||||||
from src.Utils import parse_command, config, Section
|
from Utils import parse_command, config, Section
|
||||||
|
|
||||||
|
|
||||||
def get_watchlist(context: CallbackContext) -> LimitedList:
|
def get_watchlist(context: CallbackContext) -> LimitedList:
|
||||||
|
@ -2,10 +2,10 @@ from asyncio import sleep
|
|||||||
from datetime import datetime, timedelta
|
from datetime import datetime, timedelta
|
||||||
from telegram.ext import Updater, CommandHandler
|
from telegram.ext import Updater, CommandHandler
|
||||||
|
|
||||||
from src.Background import interval
|
from Background import interval
|
||||||
from src.Market import Market
|
from Market import Market
|
||||||
from src.Utils import persistence, config, Section
|
from Utils import persistence, config, Section
|
||||||
from src.Commands import watchlist_add, watchlist_delete, watchlist_all, watchlist_clear, set_api_key, get_api_key
|
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)
|
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:
|
if Section.API_Key.value not in data:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
print('Sending updates to {}'.format(key))
|
||||||
market = Market(data[Section.API_Key.value])
|
market = Market(data[Section.API_Key.value])
|
||||||
updater.bot.send_message(key, text='Getting updates 🌎')
|
updater.bot.send_message(key, text='Getting updates 🌎')
|
||||||
first = True
|
first = True
|
||||||
|
Loading…
Reference in New Issue
Block a user