fix a silly goofup

This commit is contained in:
Izalia Mae 2021-05-18 08:40:22 -04:00
parent 6372edad04
commit 713dffa1af

View file

@ -194,7 +194,7 @@ class Session(object):
rows = query.order_by(getattr(table.c, orderby).asc()).all()
elif orderdir == 'desc':
rows = query.order_by(getattr(table.c, orderby).asc()).all()
rows = query.order_by(getattr(table.c, orderby).desc()).all()
else:
raise ValueError(f'Unsupported order direction: {orderdir}')