Skip to content

Commit 00cac6c

Browse files
committed
Fix linting again
1 parent 92b0c0b commit 00cac6c

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/eligibility_signposting_api/audit_context.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,18 +89,18 @@ def append_audit_condition(
8989
if value.audit_rules and best_candidate: # Check best_candidate here as well
9090
if best_candidate.status and best_candidate.status.name == Status.not_eligible.name:
9191
audit_filter_rule = AuditFilterRule(
92-
rule_priority=int(value.audit_rules[0].rule_priority),
92+
rule_priority=value.audit_rules[0].rule_priority,
9393
rule_name=value.audit_rules[0].rule_name,
9494
)
9595
if best_candidate.status and best_candidate.status.name == Status.not_actionable.name:
9696
audit_suitability_rule = AuditSuitabilityRule(
97-
rule_priority=int(value.audit_rules[0].rule_priority),
97+
rule_priority=value.audit_rules[0].rule_priority,
9898
rule_name=value.audit_rules[0].rule_name,
9999
rule_message=value.audit_rules[0].rule_description,
100100
)
101101

102102
if best_candidate and best_candidate.status and best_candidate.status.name == Status.actionable.name:
103-
audit_redirect_rule = AuditRedirectRule(redirect_rule_details[0], redirect_rule_details[1])
103+
audit_redirect_rule = AuditRedirectRule(str(redirect_rule_details[0]), redirect_rule_details[1])
104104

105105
if suggested_actions is None:
106106
audit_actions = None

src/eligibility_signposting_api/audit_models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class AuditEligibilityCohortGroups:
4141

4242
@dataclass
4343
class AuditFilterRule:
44-
rule_priority: int | None = None
44+
rule_priority: str | None = None
4545
rule_name: str | None = None
4646

4747

0 commit comments

Comments
 (0)