Commit Graph

253 Commits

Author SHA1 Message Date
Keenan Gugeler
435839e6b3 Add batch dependencies to site data interface 2024-01-21 07:04:31 +00:00
Evan
292ba1a600 Implement user email change functionality; #1996 2023-10-30 11:48:36 +00:00
int-y1
7294d223a2 Clean up code for chart colors 2023-08-25 08:56:17 +00:00
int-y1
ee60a175f3 Fix filtering problems by full AC 2023-08-23 19:02:27 +00:00
Tudor Brindus
3e597c03b1 Simplify PDF rendering backend
- Drop Puppeteer and Selenium backends
- "Inline" pdfoid, and move `pdf_problems.py` to `utils` + rename it
  `pdfoid.py`
- Drop a lot of pointless error checking; if we fail we'll want to raise
  a 500 regardless

Co-authored-by: Quantum <quantum2048@gmail.com>
2023-03-09 13:33:44 +02:00
Tudor Brindus
30002c09ac texoid: response status is in status_code, not status 2023-03-05 17:27:26 +00:00
Quantum
cda99a631d Fix infinite paginator collections.abc import 2023-02-21 00:57:33 +00:00
Quantum
256875062b Add tests for memo_lazy helper function 2023-02-20 22:15:41 +00:00
Quantum
02944e3fb0 Add memo_lazy helper function 2023-02-20 22:15:41 +00:00
Quantum
a6aa5d7b49 Make DiggPaginator support manual count override 2023-02-18 07:31:18 +00:00
int-y1
23d31a1836 Add OpenGraph to blog posts 2023-01-23 00:27:15 -05:00
int-y1
7be0e320fd Remove png support in mathoid 2023-01-20 18:03:08 -05:00
int-y1
24fa08b74d Remove msp math renderer 2023-01-15 01:11:39 -05:00
int-y1
8bdf61b0ed Fix small bug with problem attempt icon 2023-01-08 00:00:18 -05:00
Fher
566bd04b0a
Allow unicode and nobigmath hints to be used with site data (#2055) 2022-12-20 15:21:13 -05:00
kiritofeng
5ba4f81872 Don't allow for infinite and nan values in safe_float_or_none
Thanks to @int-y1 for finding this bug.
2022-11-19 00:22:41 -05:00
int-y1
ef3c9c7c50 Remove dead function 2022-11-13 01:02:59 -05:00
Tudor Brindus
67cdfbef76 Make pretest_test_cases and test_cases disjoint
Refs DMOJ/judge-server#1068
2022-11-01 00:27:35 -04:00
int-y1
d3df11f297 Remove i18n for coding error messages 2022-10-31 22:07:15 -04:00
Quantum
df50e80e88 Remove RawSQLColumn now that it's unused 2022-10-31 02:04:51 -04:00
Quantum
31ec0bf13b Remove unique_together_left_join helper 2022-10-31 00:58:03 -04:00
Quantum
668960431e Add related_model to FakeJoinField for join_sql_subquery 2022-10-30 17:37:27 -04:00
Quantum
3c7456a409 Make comments work again on Django 3.2 2022-10-30 17:35:13 -04:00
Quantum
fed36cc12e Fix basic Django 3.2 incompatibilities 2022-10-30 16:56:30 -04:00
int-y1
932cbf1b04 Fix period in sentences 2022-10-01 23:07:49 -04:00
Evan Zhang
e683f87a81
Fix pwned passwords throwing ValueError
Relevant upstream issue: https://github.com/ubernostrum/pwned-passwords-django/issues/35
2022-08-27 13:50:46 -04:00
int-y1
5a41535b8f Remove py2 unicode syntax 2022-07-17 23:36:47 -04:00
Quantum
008275ab63 Create safe translation module for Jinja2 2022-03-22 00:25:33 -04:00
Quantum
44e74768cf Add judge.utils.iterator.chunk 2022-03-22 00:22:43 -04:00
Jason Yuen
145f0d9a57
Fix i18n messages for pwned passwords (#1894) 2022-03-20 11:32:22 -04:00
Le Duy Thuc
05ab0ac2e2 Don't write empty init.yml
If the init is an empty dict, don't write '{}' to the init.yml
2022-02-21 23:35:17 -05:00
Quantum
ce30a098c4 Remove uses of django.utils.translation.ungettext
This is just an alias of django.utils.translation.ngettext on Python 3,
and it's deprecated starting Django 3.0.
2021-10-15 21:36:31 -04:00
Quantum
394e97eeca Remove uses of django.utils.translation.ugettext
This is just an alias of django.utils.translation.gettext on Python 3,
and it's deprecated starting Django 3.0.
2021-10-15 21:36:31 -04:00
Quantum
b785d890e1 Remove dependency on django.utils.six
This is done to prepare for upgrade to Django 3.x, which drops six.

Refs #1649
2021-10-02 13:01:41 -04:00
Quantum
99010eb00c Replace utf8bytes and utf8text with judge version
This version is properly Python 3 and has type annotations.
2021-10-02 13:01:41 -04:00
Jason Yuen
df3029c0e9 Fix linter mistake 2021-09-23 00:53:03 -04:00
Keenan Gugeler
27f5a0e2e3 Add flake8-quotes to the linter
Also fix all existing quoting issues
2021-09-07 23:25:28 -04:00
Quantum
dea65e4d0a Refactor implementation of contest rating
This eliminates a raw SQL, instead implementing rating, volatility,
and times fetching with Django Subquery.

As we are now fetching the rating in the query, we can implement rating
floors and ceiling with the correct rating value, which fixes #1684.

Furthermore, ranking is now correctly computed with tiebreaker.

Co-Authored-By: kiritofeng <rogerjfu@hotmail.com>
2021-05-13 01:33:39 -04:00
Quantum
0b60b40c1d Compute user_tester_ids without an inner join 2021-05-07 00:16:31 -04:00
Guanzhong Chen
2821f290ae
Use infinite pagination on all submissions API page (#1519) 2020-10-16 22:19:37 -04:00
Quantum
9230f4491e Add pagination without counting to all submissions (#1403) 2020-05-31 01:22:51 -04:00
Roger Fu
338c512c65 Do not write empty init.yml
If the `init.yml` is empty, we should probably be looking in manually managed data. DMOJ/judge-server#670 will not remove the folder from the cache if it sees an `init.yml`, even an empty one, so we delete it instead.
2020-05-23 17:44:07 -04:00
Evan Zhang
a9c728aecc Add option for user to download their data; #40 2020-05-19 20:55:01 -04:00
Evan Zhang
8c23b47de3
Stop passing both user and profile to filter_visible_tickets (#1377) 2020-05-08 20:19:25 -04:00
Evan Zhang
88589aefad Remove unecessary judge.utils.problems.editable_problems 2020-05-08 12:20:59 -04:00
Evan Zhang
eb0ae97c6b Add Problem.get_editable_problems classmethod 2020-05-08 12:20:59 -04:00
Guanzhong Chen
f50d1318bb
Add WebAuthn support for 2FA (#1352)
Fixes #1201.
2020-05-05 16:11:33 -04:00
Evan
612b307ab0 Pass in problem tester ids to not require a query per submission row 2020-04-12 20:33:55 -04:00
Evan Zhang
c3d01d2b4f
Move problem filtering into class methods (#1308) 2020-04-07 15:47:34 -04:00
kiritofeng
b29098d778 Use local copy of caniuse.json 2020-04-04 18:35:46 -04:00