mirror of
https://github.com/Tech-Workers-Coalition-Italia/mobilizon-reshare.git
synced 2025-02-21 14:10:48 +01:00
* add column last_update_time * save last_update_time in event db record * use id + updatedAt for comparison instead of mobilizon_id, this will treat updated events like new ones * rework event selection/comparison to include unpublished with updates to ones need to be saved * added update for unpublished events * tests: test_update: Add create_unpublished_events tests. * Move `MobilizonEvent.to_model` to `storage.query` * Move `MobilizonEvent.from_model` to `storage.query` * Move `MobilizonEvent.compute_status` to `storage.query` * Move `publishers.exception.EventNotFound` to `storage.query.exceptions`
7 lines
181 B
Python
7 lines
181 B
Python
class EventNotFound(Exception):
|
|
"""Event is not present in the database"""
|
|
|
|
|
|
class DuplicateEvent(ValueError):
|
|
"""A duplicate mobilizon_id has been found in the database"""
|