Skip to content

Commit

Permalink
Merge branch 'main' of github.com:jazzband/website
Browse files Browse the repository at this point in the history
  • Loading branch information
jezdez committed May 24, 2021
2 parents e3e6d75 + 77325a3 commit 63ef389
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions docs/about/contact.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ Feel free to follow [Jazzband on Twitter](https://twitter.com/jazzbandco), too.
### IRC

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

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)
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)

### Issues

Expand Down
8 changes: 5 additions & 3 deletions jazzband/projects/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
from packaging.version import parse as parse_version
from pkg_resources import safe_name
from requests.exceptions import HTTPError
from sqlalchemy import desc, nullslast
from sqlalchemy import desc, nullsfirst, nullslast
from sqlalchemy.sql.expression import func
from werkzeug.utils import secure_filename

Expand Down Expand Up @@ -77,10 +77,12 @@ def index():

order = request.args.get("order", None)
if order == DEFAULT_ORDER:
criterion = desc(criterion)
criterion = nullslast(desc(criterion))
else:
criterion = nullsfirst(criterion)

projects = Project.query.filter(Project.is_active.is_(True)).order_by(
nullslast(criterion)
criterion
)
return {
"projects": projects,
Expand Down

0 comments on commit 63ef389

Please sign in to comment.