From 95299453942237eeccdc2802b8ce4795309a19d7 Mon Sep 17 00:00:00 2001 From: Sven Heidemann Date: Tue, 7 Nov 2023 00:23:19 +0100 Subject: [PATCH] Temporarily removed server stats --- bot/src/bot_graphql/graphql/server.gql | 2 +- bot/src/bot_graphql/queries/server_query.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bot/src/bot_graphql/graphql/server.gql b/bot/src/bot_graphql/graphql/server.gql index be603f3a..9849f6ab 100644 --- a/bot/src/bot_graphql/graphql/server.gql +++ b/bot/src/bot_graphql/graphql/server.gql @@ -38,7 +38,7 @@ type Server implements TableWithHistoryQuery { config: ServerConfig hasFeatureFlag(flag: String): FeatureFlag - statistic(date: String): ServerStatistic +# statistic(date: String): ServerStatistic createdAt: String modifiedAt: String diff --git a/bot/src/bot_graphql/queries/server_query.py b/bot/src/bot_graphql/queries/server_query.py index 14033101..6f2abb1c 100644 --- a/bot/src/bot_graphql/queries/server_query.py +++ b/bot/src/bot_graphql/queries/server_query.py @@ -108,7 +108,7 @@ class ServerQuery(DataQueryWithHistoryABC): "hasFeatureFlag", lambda server, *_, **kwargs: self._resolve_has_feature_flag(server, *_, **kwargs), ) - self.set_field("statistic", lambda server, *_, **kwargs: ServerStatistics(server, kwargs)) + # self.set_field("statistic", lambda server, *_, **kwargs: ServerStatistics(server, kwargs)) @staticmethod def resolve_id(server: Server, *_):