Skip to content

Commit

Permalink
summaries api ordered by project id in descending order (#864)
Browse files Browse the repository at this point in the history
  • Loading branch information
nrjadkry authored Sep 29, 2023
1 parent d804065 commit 7029fe1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/backend/app/projects/project_crud.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def get_projects(
db_projects = (
db.query(db_models.DbProject)
.filter(and_(*filters))
.order_by(db_models.DbProject.id.asc())
.order_by(db_models.DbProject.id.desc())
.offset(skip)
.limit(limit)
.all()
Expand All @@ -93,7 +93,7 @@ def get_projects(
else:
db_projects = (
db.query(db_models.DbProject)
.order_by(db_models.DbProject.id.asc())
.order_by(db_models.DbProject.id.desc())
.offset(skip)
.limit(limit)
.all()
Expand Down

0 comments on commit 7029fe1

Please sign in to comment.