Skip to content

Commit

Permalink
Merge pull request #2 from Matthijsy/feature/generic-query
Browse files Browse the repository at this point in the history
Make query object extendable
  • Loading branch information
eblis authored Oct 9, 2024
2 parents 64627f0 + 45e3eba commit ecfe516
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion odata/query.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ def _new_query(self) -> "Query[Q]":
o['$filter'] = self.options.get('$filter', [])[:]
o['$expand'] = self.options.get('$expand', [])[:]
o['$orderby'] = self.options.get('$orderby', [])[:]
return Query[Q](self.entity, options=o, connection=self.connection)
return self.__class__[Q](self.entity, options=o, connection=self.connection)

def as_string(self) -> str:
query = self._format_params(self._get_options())
Expand Down

0 comments on commit ecfe516

Please sign in to comment.