Skip to content

Commit

Permalink
Merge pull request #6 from zhulik/add-tractive-pos-report
Browse files Browse the repository at this point in the history
Refactor client api
  • Loading branch information
zhulik authored May 18, 2021
2 parents bc657a5 + 1b34213 commit c24cb20
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions aiotractive/tractive.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ async def trackers(self):
trackers = await self._api.request(f"user/{await self._api.user_id()}/trackers")
return [Tracker(self._api, t) for t in trackers]

async def tracker(self, tracker_id):
return await Tracker(self._api, {"_id": tracker_id, "_type": "tracker"}).details()
def tracker(self, tracker_id):
return Tracker(self._api, {"_id": tracker_id, "_type": "tracker"})

async def trackable_objects(self):
objects = await self._api.request(f"user/{await self._api.user_id()}/trackable_objects")
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

setup(
name="aiotractive",
version="0.2.0",
version="0.2.1",
author="Gleb Sinyavskiy",
author_email="zhulik.gleb@gmail.com",
description="Asynchronous Python client for the Tractive REST API",
Expand Down

0 comments on commit c24cb20

Please sign in to comment.