mirror of
https://github.com/Tech-Workers-Coalition-Italia/mobilizon-reshare.git
synced 2025-02-14 10:40:57 +01:00
* added basic recap feature (no error handling) * introduced abstractpublication * extracted base reports * added error report to recap * added test * added docs * implemented publisher and formatter * fixed API for recap * removed redundant config validation * added config sample * added mobilizon link to templates * added link format to telegram * added mobilizon link to recap * fixed config and emoji * refactored commands * added help messages * improved format
12 lines
211 B
Python
12 lines
211 B
Python
import logging.config
|
|
|
|
from mobilizon_reshare.main.recap import recap
|
|
|
|
logger = logging.getLogger(__name__)
|
|
|
|
|
|
async def main():
|
|
|
|
reports = await recap()
|
|
return 0 if reports and reports.successful else 1
|