Skip to content

Commit 63ef389

Browse files
committed
Merge branch 'main' of github.com:jazzband/website
2 parents e3e6d75 + 77325a3 commit 63ef389

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

docs/about/contact.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ Feel free to follow [Jazzband on Twitter](https://twitter.com/jazzbandco), too.
2020
### IRC
2121

2222
Jazzband members and interested folk may want to join the discussion in the IRC
23-
channel on Freenode (`irc.freenode.net`): `#jazzband`
23+
channel on Libera.Chat (`irc.libera.chat`): `#jazzband`
2424

25-
Direct link to channel via [IRCCloud](https://www.irccloud.com/): [![#jazzband](https://www.irccloud.com/invite-svg?channel=%23jazzband&hostname=irc.freenode.net&port=6697&ssl=1)](https://www.irccloud.com/invite?channel=%23jazzband&hostname=irc.freenode.net&port=6697&ssl=1)
25+
Direct link to channel via [IRCCloud](https://www.irccloud.com/): [![#jazzband](https://www.irccloud.com/invite-svg?channel=%23jazzband&hostname=irc.libera.chat&port=6697&ssl=1)](https://www.irccloud.com/invite?channel=%23jazzband&hostname=irc.libera.chat&port=6697&ssl=1)
2626

2727
### Issues
2828

jazzband/projects/views.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
from packaging.version import parse as parse_version
2727
from pkg_resources import safe_name
2828
from requests.exceptions import HTTPError
29-
from sqlalchemy import desc, nullslast
29+
from sqlalchemy import desc, nullsfirst, nullslast
3030
from sqlalchemy.sql.expression import func
3131
from werkzeug.utils import secure_filename
3232

@@ -77,10 +77,12 @@ def index():
7777

7878
order = request.args.get("order", None)
7979
if order == DEFAULT_ORDER:
80-
criterion = desc(criterion)
80+
criterion = nullslast(desc(criterion))
81+
else:
82+
criterion = nullsfirst(criterion)
8183

8284
projects = Project.query.filter(Project.is_active.is_(True)).order_by(
83-
nullslast(criterion)
85+
criterion
8486
)
8587
return {
8688
"projects": projects,

0 commit comments

Comments
 (0)