data-to-insight / csc-validator-be-cin

1 stars 1 forks source link

Bug: Rule 8839 - Not recognising ICPCnotRequired = 1 #373

Closed SLornieCYC closed 1 year ago

SLornieCYC commented 1 year ago

Describe the bug Rule appears to not be filtering out Section47 records where ICPCnotRequired == 1. I know there was a recent issue (https://github.com/data-to-insight/CIN-validator/issues/318) and fix for ICPCnotRequired == "true" but this is about the 1/0 data.

Proposed fix (Optional) I think the df_check here needs to use "1" (string) rather than 1 (int) to correctly match the data passed from the xml source?

https://github.com/data-to-insight/CIN-validator/blob/dc4559d2362e0efacfe47ebb9b4b3d538c7d0094/cin_validator/rules/cin2022_23/rule_8839.py#L47-L50