One liner duplication #42
Unanswered
rathorevaibhav
asked this question in
Software Principles
Replies: 1 comment
-
|
Hiii @rathorevaibhav In the above code filter code is being repeated. We can eliminate the duplicacy by assigning the filtered query to the variable. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Description
There is code duplication in the following Python/Django code. Identify it and share the code without the code duplication.
Beta Was this translation helpful? Give feedback.
All reactions