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()
|
rows = query.order_by(getattr(table.c, orderby).asc()).all()
|
||||||
|
|
||||||
elif orderdir == 'desc':
|
elif orderdir == 'desc':
|
||||||
rows = query.order_by(getattr(table.c, orderby).asc()).all()
|
rows = query.order_by(getattr(table.c, orderby).desc()).all()
|
||||||
|
|
||||||
else:
|
else:
|
||||||
raise ValueError(f'Unsupported order direction: {orderdir}')
|
raise ValueError(f'Unsupported order direction: {orderdir}')
|
||||||
|
|
Loading…
Reference in a new issue