From 5c3dcb7bc01a8fd603f3af80311cf1c534272641 Mon Sep 17 00:00:00 2001 From: Jedd Morgan <45512892+JR-Morgan@users.noreply.github.com> Date: Tue, 10 Dec 2024 14:14:31 +0000 Subject: [PATCH 1/2] updated active user streams --- src/specklepy/core/api/resources/deprecated/stream.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/specklepy/core/api/resources/deprecated/stream.py b/src/specklepy/core/api/resources/deprecated/stream.py index 21edafc4..1d9c43bc 100644 --- a/src/specklepy/core/api/resources/deprecated/stream.py +++ b/src/specklepy/core/api/resources/deprecated/stream.py @@ -111,7 +111,7 @@ def list(self, stream_limit: int = 10) -> List[Stream]: query = gql( """ query User($stream_limit: Int!) { - user { + activeUser { id bio name From ed84820995c72356da6ca93a90cec5daf17d923b Mon Sep 17 00:00:00 2001 From: Jedd Morgan <45512892+JR-Morgan@users.noreply.github.com> Date: Tue, 10 Dec 2024 14:27:19 +0000 Subject: [PATCH 2/2] fix --- src/specklepy/core/api/resources/deprecated/stream.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/specklepy/core/api/resources/deprecated/stream.py b/src/specklepy/core/api/resources/deprecated/stream.py index 1d9c43bc..38795733 100644 --- a/src/specklepy/core/api/resources/deprecated/stream.py +++ b/src/specklepy/core/api/resources/deprecated/stream.py @@ -149,7 +149,7 @@ def list(self, stream_limit: int = 10) -> List[Stream]: params = {"stream_limit": stream_limit} return self.make_request( - query=query, params=params, return_type=["user", "streams", "items"] + query=query, params=params, return_type=["activeUser", "streams", "items"] ) @deprecated(reason=FE1_DEPRECATION_REASON, version=FE1_DEPRECATION_VERSION)