Skip to content

Commit

Permalink
finalize tests
Browse files Browse the repository at this point in the history
  • Loading branch information
faebebin committed Jun 28, 2023
1 parent e35b7c6 commit a21efc8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions docker-app/qfieldcloud/core/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -724,8 +724,8 @@ def active_users_jobs_deltas_count(
user.deltas_count = (
deltas_created.filter(created_by=user)
.values_list("deltas_count", flat=True)
.first() or 0

.first()
or 0
)

return sorted(
Expand Down
2 changes: 1 addition & 1 deletion docker-app/qfieldcloud/core/tests/test_organization.py
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ def _active_users_jobs_deltas_count(base_date=None):

# Report at a different time is empty
self.assertEqual(
_active_users_jobs_deltas_count(now() + timedelta(days=365)), 0
_active_users_jobs_deltas_count(now() + timedelta(days=365)), []
)

# User 3 creates a job
Expand Down

0 comments on commit a21efc8

Please sign in to comment.