Skip to content

Commit

Permalink
Merge branch 'release-0.2.0' into feat/daniel-update-footer-1528
Browse files Browse the repository at this point in the history
  • Loading branch information
dhaselhan authored Jan 3, 2025
2 parents 8c67d69 + 412ae66 commit 936e8e7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion backend/lcfs/web/api/compliance_report/repo.py
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,9 @@ async def get_reports_paginated(
.scalars()
.all()
)
total_count = len(query_result)
# Calculate total number of compliance reports available
total_count_query = select(func.count()).select_from(query)
total_count = (await self.db.execute(total_count_query)).scalar()

# Transform results into Pydantic schemas
reports = [
Expand Down

0 comments on commit 936e8e7

Please sign in to comment.