From 6cb5d1c685547ea1b29e078e857331a7e8824d64 Mon Sep 17 00:00:00 2001 From: Antoni-Czaplicki <56671347+Antoni-Czaplicki@users.noreply.github.com> Date: Tue, 5 Mar 2024 08:33:40 +0100 Subject: [PATCH] Fix lint --- vulcan/_api.py | 4 +--- vulcan/model/_student.py | 4 +++- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/vulcan/_api.py b/vulcan/_api.py index 41c98f7..1fd29ca 100644 --- a/vulcan/_api.py +++ b/vulcan/_api.py @@ -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: diff --git a/vulcan/model/_student.py b/vulcan/model/_student.py index 531af58..01cf10d 100644 --- a/vulcan/model/_student.py +++ b/vulcan/model/_student.py @@ -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