forked from rDrama/rDrama
1
0
Fork 0
rDrama/files/helpers
Aevann1 d0d15c319a Poll rework (#312)
* poll rework

* forgot to do joinedload on comments

* Fix logic errors with voting, SQL syntax.

Kitchen sink commit from review of poll-rework changes:
  1. Fix seed-db.sql syntax error.
  2. Fix SQL patch file duplication of *submissions* tables rather
     than one set of submissions and one for comments.
  3. Start makeshift SQL patch folder, since this is a large change
     that contributors may wish to apply to their local instances.
  4. Fix checkbox (non-`exclusive`) polls being unable to be
     unchecked. For consistency with `exclusive` polls, they should.
  5. Fix changing the option of an `exclusive` poll when both
     exclusive and non-exclusive options are present in one comment/
     post causing the non-exclusive options to become unchecked.
     (which, by my reading of SQLAlchemy `Query.one_or_none()`
     really could break quite badly in some cases).

* link relationships with their counterparts

* small modification to poll unchecking

Co-authored-by: TLSM <duolsm@outlook.com>
2022-07-02 08:48:04 +02:00
..
actions.py Kitchen sink: emoji content, assert, assetcache. 2022-06-15 17:17:31 -04:00
alerts.py refactor push notifs 2022-06-27 21:02:24 +02:00
awards.py reducing query volume, #2 2022-06-26 03:11:02 +02:00
blackjack.py Add can_gamble user setting. 2022-05-30 05:32:45 -04:00
const.py Poll rework (#312) 2022-07-02 08:48:04 +02:00
cron.py refactor push notifs 2022-06-27 21:02:24 +02:00
discord.py sfd 2022-05-07 06:13:19 +02:00
get.py Poll rework (#312) 2022-07-02 08:48:04 +02:00
jinja2.py more testing 2022-07-01 15:34:11 +02:00
lazy.py certified good commit 2022-05-25 19:01:29 +02:00
lottery.py consistent lottershe naming 2022-06-28 02:54:44 +02:00
media.py fix 413 error for patrons 2022-06-22 21:12:12 +02:00
offsitementions.py reducing query volume, #2 2022-06-26 03:11:02 +02:00
regex.py fix marseyschizochadseethecapylovepat 2022-07-02 03:38:32 +02:00
sanitize.py remove empty anchor tags 2022-07-02 02:54:59 +02:00
security.py mn 2022-05-05 01:09:46 +02:00
slots.py Add can_gamble user setting. 2022-05-30 05:32:45 -04:00
stats.py stats: add WAU based on activity timestamp. 2022-06-20 16:33:47 -04:00
treasure.py Treasure: raise minimum reward 10 -> 12. 2022-05-31 20:23:19 -04:00
wrappers.py make poorcel-mode device-specific 2022-06-27 05:46:32 +02:00