Skip to content

Commit bc737ba

Browse files
committed
Update
1 parent 3be395f commit bc737ba

5 files changed

Lines changed: 2 additions & 10 deletions

File tree

civitas.db

128 KB
Binary file not shown.

civitas.db-shm

-32 KB
Binary file not shown.

civitas.db-wal

-4.04 MB
Binary file not shown.

src/civitas/sources/documentcloud.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -301,11 +301,7 @@ def is_configured(self) -> bool:
301301
Returns:
302302
True if authentication method is available
303303
"""
304-
return bool(
305-
(self.username and self.password)
306-
or self._access_token
307-
or self._refresh_token
308-
)
304+
return bool((self.username and self.password) or self._access_token or self._refresh_token)
309305

310306
def test_connection(self) -> bool:
311307
"""Test the connection to DocumentCloud.

src/civitas/sources/muckrock.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -378,11 +378,7 @@ def is_configured(self) -> bool:
378378
Returns:
379379
True if authentication method is available
380380
"""
381-
return bool(
382-
(self.username and self.password)
383-
or self._access_token
384-
or self._refresh_token
385-
)
381+
return bool((self.username and self.password) or self._access_token or self._refresh_token)
386382

387383
def test_connection(self) -> bool:
388384
"""Test the connection to MuckRock.

0 commit comments

Comments
 (0)