Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Antoni-Czaplicki committed Mar 5, 2024
1 parent c52dbb4 commit 6cb5d1c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 1 addition & 3 deletions vulcan/_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,7 @@ async def _request(
full_url = (
url
if url.startswith("http")
else self._rest_url + url
if self._rest_url
else None
else self._rest_url + url if self._rest_url else None
)

if not full_url:
Expand Down
4 changes: 3 additions & 1 deletion vulcan/model/_student.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,4 +76,6 @@ async def get(cls, api, **kwargs) -> List["Student"]:
:rtype: List[:class:`~vulcan.model.Student`]
"""
data = await api.get(STUDENT_LIST, **kwargs)
return [Student.load(student) for student in data if student["State"] == 0] # Ignore old student profiles that Vulcan started returning in their API
return [
Student.load(student) for student in data if student["State"] == 0
] # Ignore old student profiles that Vulcan started returning in their API

0 comments on commit 6cb5d1c

Please sign in to comment.