-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[feature/PI-650] Read as device #425
base: feature/PI-572-create_an_as_device
Are you sure you want to change the base?
[feature/PI-650] Read as device #425
Conversation
4188a8d
to
1c21964
Compare
AS Device read feature tests
Update tests
1c21964
to
b4ed41a
Compare
for key, filters in device.device_reference_data.items(): | ||
for drd in device_reference_data_list: | ||
if str(drd.id) == key: | ||
for responses in drd.questionnaire_responses.values(): | ||
for qresponse in responses: | ||
if "*" not in filters: | ||
qresponse.data = { | ||
filter_key: qresponse.data[filter_key] | ||
for filter_key in filters | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is very heavily nested - although I've tried to look at it but not sure how to make it any simpler either, unless some of the logic is pulled out into a separate function for readability at least? Don't know if Joel would have any magic python ideas for this? He's improved a lot of my if statements/for loops before :)
No description provided.