Skip to content

Commit

Permalink
views/status: stop depending on packaging.version.LegacyVersion; cl…
Browse files Browse the repository at this point in the history
…oses #2116
  • Loading branch information
kiritofeng committed Dec 18, 2024
1 parent 4db9ef2 commit f14addf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion judge/views/status.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def version_matrix(request):

for data in matrix.values():
for language, versions in data.items():
versions.versions = [version.parse(runtime.version) for runtime in versions]
versions.versions = [version.parse(runtime.version) for runtime in versions if runtime.version]
if versions.versions > latest[language]:
latest[language] = versions.versions

Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ pyotp
qrcode[pil]
jsonfield @ git+https://github.com/DMOJ/jsonfield.git
pymoss
packaging<22
packaging
celery
ansi2html @ git+https://github.com/DMOJ/ansi2html.git
sqlparse
Expand Down

0 comments on commit f14addf

Please sign in to comment.