reminder: add send to speaker option#4966
Conversation
|
Thanks! Please also add:
|
|
Thanks for reviewing @ThiefMaster ^^ I had a few questions regarding this. I'm still learning the codebase so please bear with me if the questions sound very naive :3
I'm kinda thinking that I would definitely have to issue a db query to get the speakers. I am just not sure from what table I need to so that ^^' |
|
I'd consider anyone who's a speaker anywhere in the event, including chairpersons (technically meeting/conference chairpersons are the same as lecture speakers). Probably it's a good idea to skip anything but those on the event in case the event type is lecture, just to avoid any weird surprises if someone changes event types. For the event itself you can just iterate over the people in For contributions etc. you need a query like this: contrib_speakers = (
ContributionPersonLink.query
.filter(
ContributionPersonLink.is_speaker,
ContributionPersonLink.contribution.has(is_deleted=False, event=event)
)
.all()
)Likewise for the other types. subcontributions need some more nesting, something like this (untested) should work: subcontrib_speakers = (
SubContributionPersonLink.query
.filter(
SubContributionPersonLink.is_speaker,
SubContributionPersonLink.subcontribution.has(
db.and_(
~SubContribution.is_deleted,
SubContribution.contribution.has(is_deleted=False, event=event)
)
)
)
.all()
) |
05b4427 to
110f0e7
Compare
110f0e7 to
4cf16f6
Compare
4cf16f6 to
52eaeea
Compare
52eaeea to
dd998b3
Compare
We care about the order...
closes #4958
Screenshot of the option:

TODO:
all_recepients