mirror of
https://github.com/discourse/discourse-data-explorer.git
synced 2025-03-09 13:24:53 +00:00
FEATURE: Adds the full HTML of a vote option to poll export
This commit is contained in:
parent
3ea9a77b27
commit
6f1b246b65
@ -471,13 +471,16 @@ class Queries
|
|||||||
users.id AS user_id,
|
users.id AS user_id,
|
||||||
users.username,
|
users.username,
|
||||||
users.name,
|
users.name,
|
||||||
users.trust_level
|
users.trust_level,
|
||||||
|
poll_options.html AS vote_option_full
|
||||||
FROM
|
FROM
|
||||||
poll_votes
|
poll_votes
|
||||||
INNER JOIN
|
INNER JOIN
|
||||||
polls ON polls.id = poll_votes.poll_id
|
polls ON polls.id = poll_votes.poll_id
|
||||||
INNER JOIN
|
INNER JOIN
|
||||||
users ON users.id = poll_votes.user_id
|
users ON users.id = poll_votes.user_id
|
||||||
|
INNER JOIN
|
||||||
|
poll_options ON poll_votes.poll_id = poll_options.poll_id AND poll_votes.poll_option_id = poll_options.id
|
||||||
WHERE
|
WHERE
|
||||||
polls.name = :poll_name AND
|
polls.name = :poll_name AND
|
||||||
polls.post_id = :post_id
|
polls.post_id = :post_id
|
||||||
|
Loading…
x
Reference in New Issue
Block a user