Skip to content


api: Make insert_event not return anything anymore
Browse files Browse the repository at this point in the history
This feature has not been used since our very old replace_last code
before heartbeats were a thing.
  • Loading branch information
johan-bjareholt committed Mar 15, 2021
1 parent e427a4d commit 669c574
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions aw_client/
Expand Up @@ -159,10 +159,10 @@ def send_event(self, bucket_id: str, event: Event):
def send_events(self, bucket_id: str, events: List[Event]):
return self.insert_events(bucket_id, events)

def insert_event(self, bucket_id: str, event: Event) -> Event:
def insert_event(self, bucket_id: str, event: Event) -> None:
endpoint = "buckets/{}/events".format(bucket_id)
data = [event.to_json_dict()]
return Event(**self._post(endpoint, data).json())
self._post(endpoint, data)

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

0 comments on commit 669c574

Please sign in to comment.