From a7612ff6fc2557fb2b1d394947cf1f1bd8738c53 Mon Sep 17 00:00:00 2001 From: Will Foster Date: Mon, 25 May 2026 15:25:29 +0100 Subject: [PATCH 1/2] fix: utilize the users/{EMAIL} endpoint for role. --- src/quads_lib/quads.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/quads_lib/quads.py b/src/quads_lib/quads.py index e7d00a8..e577a08 100644 --- a/src/quads_lib/quads.py +++ b/src/quads_lib/quads.py @@ -37,8 +37,8 @@ def login(self) -> dict: self.session.headers.update({"Authorization": f"Bearer {self.token}"}) return json_response - def get_current_user(self) -> dict: - return self.get("me") + def get_user(self, email: str) -> dict: + return self.get(f"users/{email}") def logout(self) -> dict: json_response = self._make_request("POST", "logout") From e55fa70515ed97685505f19d838834d52bc60781 Mon Sep 17 00:00:00 2001 From: Will Foster Date: Mon, 25 May 2026 15:26:48 +0100 Subject: [PATCH 2/2] bump versions --- rpm/quads-lib.spec | 2 +- setup.py | 2 +- src/quads_lib/__init__.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/rpm/quads-lib.spec b/rpm/quads-lib.spec index f9886ca..b8c87c9 100644 --- a/rpm/quads-lib.spec +++ b/rpm/quads-lib.spec @@ -12,7 +12,7 @@ %define name quads-lib %define reponame python-quads-lib %define branch development -%define version 0.1.13 +%define version 0.1.14 %define build_timestamp %{lua: print(os.date("%Y%m%d"))} Summary: Python client library for interacting with the QUADS API diff --git a/setup.py b/setup.py index 64f320a..8e0d588 100755 --- a/setup.py +++ b/setup.py @@ -13,7 +13,7 @@ def read(*names, **kwargs): setup( name="quads-lib", - version="0.1.13", + version="0.1.14", license="LGPL-3.0-only", description="Python client library for interacting with the QUADS API", long_description="{}\n{}".format( diff --git a/src/quads_lib/__init__.py b/src/quads_lib/__init__.py index 7ba8667..b22daeb 100644 --- a/src/quads_lib/__init__.py +++ b/src/quads_lib/__init__.py @@ -1,4 +1,4 @@ -__version__ = "0.1.13" +__version__ = "0.1.14" from .quads import QuadsApi