Skip to content

Commit

Permalink
#223: Remove commented code
Browse files Browse the repository at this point in the history
- This was the best solution I could find, particularly as the two init's have different method signatures
  • Loading branch information
MRichards99 committed May 17, 2021
1 parent dc583a8 commit c9aa20b
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions datagateway_api/common/database/filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,6 @@ def _get_field(self, table, field):

class DatabaseWhereFilter(WhereFilter, DatabaseFilterUtilities):
def __init__(self, field, value, operation):
# TODO - Apply any 'pythonic' solution here too
WhereFilter.__init__(self, field, value, operation)
DatabaseFilterUtilities.__init__(self)

Expand Down Expand Up @@ -160,8 +159,6 @@ def apply_filter(self, query):

class DatabaseDistinctFieldFilter(DistinctFieldFilter, DatabaseFilterUtilities):
def __init__(self, fields):
# TODO - what's the Pythonic solution here?
# super().__init__(fields)
DistinctFieldFilter.__init__(self, fields)
DatabaseFilterUtilities.__init__(self)

Expand Down

0 comments on commit c9aa20b

Please sign in to comment.