You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Starting in line 578 and ending 587, it looks like these two if blocks are exactly the same (i.e. you can delete one of them without affecting the logic).
To Reproduce
View the code at the above lines.
Screenshots
Additional context
I was just browsing the code and came upon this. I am not well-versed in python, nor am I well-versed in the code-base. There could be a legitimate reason for this.
The text was updated successfully, but these errors were encountered:
Looking at this code it should really be refactored to be simplified. If I change all the options to match the name of the PhotoInfo property, e.g. option.isreference and option.not_isreference then much of the code could be greatly simplified. (Today, some of the options have a different name than the PhotoInfo property, e.g. option.is_reference). We could then do something like this (after accounting for the text search properties like description:
Describe the bug
Starting in line 578 and ending 587, it looks like these two if blocks are exactly the same (i.e. you can delete one of them without affecting the logic).
To Reproduce
View the code at the above lines.
Screenshots
Additional context
I was just browsing the code and came upon this. I am not well-versed in python, nor am I well-versed in the code-base. There could be a legitimate reason for this.
The text was updated successfully, but these errors were encountered: