Skip to content

Commit

Permalink
More question filters for responses (#426)
Browse files Browse the repository at this point in the history
  • Loading branch information
kongzii authored Sep 23, 2024
1 parent a6a0a22 commit d5766e5
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -719,6 +719,9 @@ def get_responses(
question_id: HexBytes | None = None,
question_claimed: bool | None = None,
question_finalized_before: datetime | None = None,
question_finalized_after: datetime | None = None,
question_current_answer_before: datetime | None = None,
question_id_in: list[HexBytes] | None = None,
) -> list[RealityResponse]:
where_stms: dict[str, t.Any] = {}

Expand All @@ -729,6 +732,9 @@ def get_responses(
question_id=question_id,
claimed=question_claimed,
finalized_before=question_finalized_before,
finalized_after=question_finalized_after,
current_answer_before=question_current_answer_before,
question_id_in=question_id_in,
)

responses = self.realityeth_subgraph.Query.responses(where=where_stms)
Expand Down

0 comments on commit d5766e5

Please sign in to comment.