Implement a tweet queue for conferences along with time windows
authorMagnus Hagander <magnus@hagander.net>
Tue, 9 Oct 2018 20:13:09 +0000 (22:13 +0200)
committerMagnus Hagander <magnus@hagander.net>
Tue, 9 Oct 2018 20:21:43 +0000 (22:21 +0200)
commit6c84d17cb50fab1897c1f2821bb88ab09ca69cb8
tree8e9a79d5576ea43de09f91b5e6c3dee8d6432a59
parentd13a8dfda9e0094bf106260acdceb7626c8bc670
Implement a tweet queue for conferences along with time windows

The tweet queue allows different portions of the system to queue up
things that should be posted by the conference twitter.

Also add fields for each conference that define the earliest and latest
in a day that automated tweets will be posted. If a tweet is queued
outside those times, it will stay in the queue and get posted once the
interval is entered.

For each invokation of the script, one tweet per conference is posted.
If more are queued up (or if they are in the news), they remain in the
queue and will be delivered on the next invokation of the script. With
the script executed every 5 or 10 minutes, that ensures a spread of the
tweets.
docs/confreg/configuring.md
postgresqleu/confreg/backendforms.py
postgresqleu/confreg/migrations/0032_tweetqueue.py [new file with mode: 0644]
postgresqleu/confreg/models.py
postgresqleu/newsevents/management/commands/twitter_post.py