Mobilizon-Reshare-condividi.../mobilizon_bots
tinoilcotechino 6cea51bcab
Publications (#28)
* mobilizon_bots: query: Add create_publisher.

* Move PublicationStatus to models.publication.

* Move NotificationStatus to models.notification.

* storage: query: Add events_with_status.

* storage: query: Add get_unpublished_events.

* storage: query: Add create_unpublished events.

This function takes care of looking into the database
to store only the events whose  is not
already present.

* event: event: Support multiple publications.

This patch changes the public interface of `MobilizonEvent` to
support multiple publications. This mainly entails two changes:

  - When instancing a `MobilizonEvent`  from an `Event` model
    the `publication_status` will be computed by looking at
    the statuses of all the related publications.
  - Now the `publication_time` is a `dict[str, Arrow]`. This
    enables tracking multiple social platforms publication time.

* Update main.

* Minor fixes

* Better definition of MobilizonEvent.publication_status.

Co-authored-by: Giacomo Leidi <goodoldpaul@autistici.org>
2021-07-05 23:07:12 +02:00
..
config Notification system (#13) 2021-07-05 21:44:11 +02:00
event Publications (#28) 2021-07-05 23:07:12 +02:00
mobilizon download events (#19) 2021-05-30 21:47:36 +02:00
models Publications (#28) 2021-07-05 23:07:12 +02:00
publishers Notification system (#13) 2021-07-05 21:44:11 +02:00
storage Publications (#28) 2021-07-05 23:07:12 +02:00
__init__.py Versioning will be handled elsewhere. 2021-05-09 15:57:04 +02:00
cli.py added CLI (#27) 2021-07-05 21:58:29 +02:00
main.py Publications (#28) 2021-07-05 23:07:12 +02:00
settings.toml added CLI (#27) 2021-07-05 21:58:29 +02:00