Skip to content

Commit

Permalink
fix: Fix broken insert_event
Browse files Browse the repository at this point in the history
Was broken in previous commit, supposed to fix aw-server-rust
compatibility 6521df6
  • Loading branch information
johan-bjareholt committed Mar 15, 2021
1 parent 6fbce36 commit e427a4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aw_client/client.py
Expand Up @@ -162,7 +162,7 @@ def send_events(self, bucket_id: str, events: List[Event]):
def insert_event(self, bucket_id: str, event: Event) -> Event:
endpoint = "buckets/{}/events".format(bucket_id)
data = [event.to_json_dict()]
return Event(**self._post(endpoint, data).json()[0])
return Event(**self._post(endpoint, data).json())

def insert_events(self, bucket_id: str, events: List[Event]) -> None:
endpoint = "buckets/{}/events".format(bucket_id)
Expand Down

0 comments on commit e427a4d

Please sign in to comment.