Commit Graph

76 Commits (4a05910161062504f6ce14cfd360732d1c351459)

Author SHA1 Message Date
Snakes c9aee3ebb8
Eager load badge_def with badge.
Removes N guaranteed queries when rendering a userpage for a user with
N badges. We need the badge_def to provide nearly all properties of a
Badge, and it's nearly free with a one-to-one on indexed columns.
2022-11-09 09:25:47 -05:00
Aevann1 c0c45d9e9a same as last commit 2022-09-25 04:45:22 +02:00
Aevann1 b980c63d1b Revert "created_utc refactor"
This reverts commit 791aececbb.
2022-09-19 22:40:33 +02:00
Aevann1 791aececbb created_utc refactor 2022-09-19 21:24:16 +02:00
Aevann1 73ae8f6e65 give a badge to permenantly marsified users 2022-09-13 20:02:08 +02:00
Aevann1 7c1b6eac77 same as last commit 2022-09-12 13:51:56 +02:00
Aevann1 a4f2260787 fix "until" missing from badge description 2022-09-12 13:51:26 +02:00
Aevann1 d7c3ddf474 add created_utc column to all tables 2022-09-12 12:19:35 +02:00
Aevann1 9475aa27e4 award badges shit 2022-09-07 05:31:55 +02:00
Aevann1 0c32d56cd6 casino + style shit 2022-09-05 01:15:37 +02:00
Aevann1 88a2c69659
Hats (#348)
* hat

* hats

* hats 2

* hats

* hats 4

* hats 5

* hats
2022-09-03 01:58:55 +02:00
Aevann1 c8ed20cd9c add patron badges for WPD 2022-08-25 19:29:31 +02:00
Aevann1 7ee7868185 restore the ability to permachud someone, apparently that stings less than being chudded for a month/year (fascinating) 2022-08-17 21:17:34 +02:00
Aevann1 d572941971 fix 500 error 2022-07-09 13:08:23 +02:00
Aevann1 382df30e1f show ALL timestamps in user's timezone + move scripts to the bottom of HTML templates to mimic rocketloader's behavior on localhost (for testing) 2022-07-09 10:35:47 +02:00
Aevann1 b617321529 move all env-getting to .const 2022-07-08 18:21:13 +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
Aevann1 20585ca543 add a shortened endpoint for static images and rename loading.webp to l.webp (to save bytes) 2022-06-22 17:51:19 +02:00
Aevann1 545f276940 add created_utc column to badges for ordering them on userpages 2022-06-10 23:40:43 +02:00
Aevann1 f823396239 sdf 2022-05-27 02:08:28 +02:00
Aevann1 2a9df987b3 fsd 2022-05-27 02:03:04 +02:00
Aevann1 6b10d097a2 mn 2022-05-05 01:09:46 +02:00
Aevann1 7713fd891d fsd 2022-04-02 19:11:35 +02:00
Aevann1 b538d2a24c gdfg 2022-03-31 18:28:53 +02:00
Aevann1 6681ca4236 fds' 2022-02-23 07:17:03 +02:00
Aevann1 d75f70c431 Many to many (#210)
* 8 legs of love

* 8 legs of love 2
2022-02-14 14:25:44 -08:00
Aevann1 bf3e14bba3 big big chungus big chungus big chungus 2022-02-13 03:08:12 +02:00
Aevann1 22eaa9e7f8 xvc 2022-02-13 01:10:29 +02:00
Aevann1 8c3ba8382c sfd 2022-02-04 12:19:49 +02:00
Aevann1 4fa997866c fsd 2022-02-03 11:16:09 +02:00
Aevann1 83928ab0db fds 2022-02-03 08:42:47 +02:00
Aevann1 b0cd33dcf7 biggest money 2022-01-31 03:41:04 +02:00
Aevann1 2d60a1af62 gfd 2022-01-30 22:43:04 +02:00
Aevann1 c7bab4ec6c fsd 2022-01-28 23:42:09 +02:00
Aevann1 0a06937147 f 2022-01-25 01:49:02 +02:00
Aevann1 b094e976dc cvvc 2022-01-24 18:49:23 +02:00
Aevann1 4afdd8ed46 vcx 2022-01-24 18:46:07 +02:00
Aevann1 823a86b03e cvcv 2022-01-24 18:44:54 +02:00
Aevann1 ac15bd64b3 fgg 2022-01-24 18:17:21 +02:00
Aevann1 c9092e6fcd Update badges.py 2022-01-23 13:59:08 -08:00
Aevann1 c8e3be1c39 fdsfsd 2022-01-23 21:51:56 +02:00
Aevann1 5213add93d fs 2022-01-22 21:28:49 +02:00
Aevann1 0b93902c2b cxzzcx 2022-01-22 21:21:16 +02:00
Aevann1 98de0a01d6 gfdfg 2022-01-22 14:27:28 +02:00
Aevann1 508a8f2e85 devrama 2022-01-22 12:41:37 +02:00
Aevann1 cb2fc90770 gfdg 2022-01-22 00:27:10 +02:00
Aevann1 be669525b3 vxc 2022-01-21 16:42:13 +02:00
Aevann1 30bd0902fa czxczx 2022-01-21 16:40:01 +02:00
Aevann1 81078c5877 fds 2022-01-19 11:07:16 +02:00
Aevann1 45c80f01f9 1k 2022-01-17 17:03:51 +02:00