Mobilizon-Reshare-condividi.../mobilizon_reshare/main/start.py

20 lines
547 B
Python
Raw Permalink Normal View History

import logging.config
from mobilizon_reshare.config.command import CommandConfig
from mobilizon_reshare.main.publish import select_and_publish
from mobilizon_reshare.main.pull import pull
from mobilizon_reshare.publishers.coordinators.event_publishing.publish import (
PublisherCoordinatorReport,
)
2021-05-13 13:32:44 +02:00
logger = logging.getLogger(__name__)
2021-05-13 13:32:44 +02:00
async def start(command_config: CommandConfig) -> PublisherCoordinatorReport:
"""
STUB
:return:
"""
events = await pull()
return await select_and_publish(command_config, events,)