Skip to content

Commit

Permalink
lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
nospame committed Dec 19, 2024
1 parent 1d2ec16 commit 2263c26
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion corehq/apps/domain/calculations.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,7 @@ def uses_reminders(domain, *args):
def not_implemented(domain, *args):
return '<p class="text-danger">not implemented</p>'


CALC_ORDER = [
'num_web_users', 'num_mobile_users', 'forms', 'cases',
'active_mobile_users', 'inactive_mobile_users', 'active_mobile_users--365',
Expand Down Expand Up @@ -464,7 +465,7 @@ def num_location_restricted_roles(domain):


def num_case_sharing_loc_types(domain):
loc_types = [l for l in LocationType.objects.by_domain(domain) if l.shares_cases]
loc_types = [l_type for l_type in LocationType.objects.by_domain(domain) if l_type.shares_cases]
return len(loc_types)


Expand Down
1 change: 1 addition & 0 deletions corehq/toggles/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2584,6 +2584,7 @@ def _commtrackify(domain_name, toggle_is_enabled):
owner='[email protected]'
)


def _handle_attendance_tracking_role(domain, is_enabled):
from corehq.apps.accounting.utils import domain_has_privilege
from corehq.apps.users.role_utils import (
Expand Down

0 comments on commit 2263c26

Please sign in to comment.