fix a silly goofup
This commit is contained in:
parent
6372edad04
commit
713dffa1af
|
@ -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}')
|
||||
|
|
Loading…
Reference in a new issue