1
0
Fork 0
mirror of https://codeberg.org/Mo8it/AdvLabDB.git synced 2024-09-19 18:31:16 +00:00

Sort semester starting with newest

This commit is contained in:
Mo 2022-09-12 17:57:29 +02:00
parent 1d8c5db16c
commit 0b4316a713

View file

@ -129,7 +129,7 @@ class UserView(SecureAdminModelView):
@staticmethod @staticmethod
def semesterQueryFactory(): def semesterQueryFactory():
return Semester.query return Semester.query.order_by(Semester.id.desc())
@staticmethod @staticmethod
def default_roles(): def default_roles():