while looking through the notifications, I was wondering if it would be possible to delete the language >inconsistencies in the field “inconsistent RED CAP Subecjt” and just keeping the inconsistencies concerning >date of birth?
missing_language = False if len(red_cap_subject.languages) < 4: for language in study_subject.subject.languages.all(): if language not in red_cap_subject.languages: missing_language = True for language in red_cap_subject.languages: if language not in study_subject.subject.languages.all(): missing_language = True
If red cap is able to handle up to 4 languages, why is the first loop limited to 1, 2 or 3 languages on redcap. Why not <=4 instead of <4?
And also. Why if redcap is limited to 4 languages is not enough to check if any of those 4 languages is missing on the study subject languages? Why do you do that both ways?
Here's how I see it. If red cap languages (RC) is a set, and study subject languages (SS) is another set. And we know that the size of the set is always RC <= SS, then, why don't we check if RC is contained in SS set? In other words, wouldn't be enough with the second loop?