Subj : MsgBase.get_msg_header() not returning vote info for polls
To   : Digital Man
From : Nightfox
Date : Mon Jun 20 2022 10:45 pm

 Re: MsgBase.get_msg_header() not returning vote info for polls
 By: Digital Man to Nightfox on Mon Jun 20 2022 08:12 pm

>> things like total_votes and information from the tally property in the
>> message header).  Currently, for poll votes, it's not getting any
>> voting results. Even for polls that have been voted on, total_votes is
>> 0 and it doesn't get any tally information.  This is coming from
>> MsgBase.get_msg_header() with the include_votes parameter as true.

DM> Those properties are only populated when using the
DM> MsgBse.get_all_msg_headers() method. The get_msg_header() method just
DM> reads a single message header. All the message headers must read/parsed to
DM> find and total votes.

I don't remember now why I wasn't just using get_all_msg_headers()..
Thanks.

Nightfox

---
� Synchronet � Digital Distortion: digitaldistortionbbs.com