Commit Graph

7 Commits (67289ffc285bd81efdda6d95d1cccccf3becf4c2)

Author SHA1 Message Date
Aevann1 45d5f52388 restore betting 2022-08-26 23:53:17 +02:00
Aevann1 e40f6881d8 fix 500 error 2022-07-15 01:23:15 +02:00
Aevann1 3245656787 show timestamps in the user timezone 2022-07-03 09:41:25 +02:00
Aevann1 5b8b53e312 fix 500 error 2022-07-02 11:47:49 +02:00
Aevann1 3e1ac91b66 fix 500 error 2022-07-02 11:47:35 +02:00
Aevann1 890b21923e remove unnecessary relationships 2022-07-02 08:54:34 +02:00
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