Skip to content

Commit

Permalink
Fix linters (#23)
Browse files Browse the repository at this point in the history
* Make linters happy

* Run CI on PR
  • Loading branch information
zhulik authored Jan 13, 2024
1 parent 1510d9d commit 7e2bbac
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
---
name: Continuous Integration

on: [push]
on:
- push
- pull_request

jobs:
test:
Expand Down Expand Up @@ -29,6 +31,7 @@ jobs:
- name: Run linters
run: pipenv run make

publish:
name: Publish a Python distribution to PyPI
runs-on: ubuntu-latest
Expand Down
4 changes: 2 additions & 2 deletions aiotractive/tracker.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ async def pos_report(self):
f"device_pos_report/{self._id}",
)

async def positions(self, time_from, time_to, format):
async def positions(self, time_from, time_to, fmt):
url = f"tracker/{self._id}/positions"
params = {
"time_from": time_from,
"time_to": time_to,
"format": format,
"format": fmt,
}
return await self._api.request(url, params=params)

Expand Down

0 comments on commit 7e2bbac

Please sign in to comment.