Temporarily removed server stats
This commit is contained in:
parent
7358b67072
commit
9bad75e7c2
@ -38,7 +38,7 @@ type Server implements TableWithHistoryQuery {
|
|||||||
config: ServerConfig
|
config: ServerConfig
|
||||||
hasFeatureFlag(flag: String): FeatureFlag
|
hasFeatureFlag(flag: String): FeatureFlag
|
||||||
|
|
||||||
statistic(date: String): ServerStatistic
|
# statistic(date: String): ServerStatistic
|
||||||
|
|
||||||
createdAt: String
|
createdAt: String
|
||||||
modifiedAt: String
|
modifiedAt: String
|
||||||
|
@ -108,7 +108,7 @@ class ServerQuery(DataQueryWithHistoryABC):
|
|||||||
"hasFeatureFlag",
|
"hasFeatureFlag",
|
||||||
lambda server, *_, **kwargs: self._resolve_has_feature_flag(server, *_, **kwargs),
|
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
|
@staticmethod
|
||||||
def resolve_id(server: Server, *_):
|
def resolve_id(server: Server, *_):
|
||||||
|
@ -92,22 +92,23 @@ export class Queries {
|
|||||||
receivedCommandCount
|
receivedCommandCount
|
||||||
movedUsersCount
|
movedUsersCount
|
||||||
}
|
}
|
||||||
statistic {
|
|
||||||
achievementsAchieved
|
|
||||||
messageCount
|
|
||||||
userCount
|
|
||||||
activeUserCount
|
|
||||||
userJoinedVoiceChannelCount
|
|
||||||
userJoinedVoiceChannelOntime
|
|
||||||
userJoinedGameServerCount
|
|
||||||
userJoinedGameServerOntime
|
|
||||||
userWarningCount
|
|
||||||
activityScore
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
|
|
||||||
|
// statistic {
|
||||||
|
// achievementsAchieved
|
||||||
|
// messageCount
|
||||||
|
// userCount
|
||||||
|
// activeUserCount
|
||||||
|
// userJoinedVoiceChannelCount
|
||||||
|
// userJoinedVoiceChannelOntime
|
||||||
|
// userJoinedGameServerCount
|
||||||
|
// userJoinedGameServerOntime
|
||||||
|
// userWarningCount
|
||||||
|
// activityScore
|
||||||
|
// }
|
||||||
|
|
||||||
static hasServerFeatureFlag = `
|
static hasServerFeatureFlag = `
|
||||||
query HasServerFeatureFlag($filter: ServerFilter, $flag: String) {
|
query HasServerFeatureFlag($filter: ServerFilter, $flag: String) {
|
||||||
servers(filter: $filter) {
|
servers(filter: $filter) {
|
||||||
|
Loading…
Reference in New Issue
Block a user