Skip to content


Browse files Browse the repository at this point in the history
Merge pull request #55 from ActivityWatch/dev/insert-event-no-return
api: Make insert_event not return anything anymore
  • Loading branch information
johan-bjareholt committed Mar 18, 2021
2 parents e427a4d + 669c574 commit eba55f3
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 eba55f3

Please sign in to comment.