Removed server from queries where user set #162

This commit is contained in:
Sven Heidemann 2023-02-08 12:34:47 +01:00
parent fde318b85d
commit 23e238b7d5
2 changed files with 0 additions and 10 deletions

View File

@ -8,7 +8,6 @@ class UserJoinedServerQuery(DataQueryABC):
self.set_field("id", self.resolve_id) self.set_field("id", self.resolve_id)
self.set_field("user", self.resolve_user) self.set_field("user", self.resolve_user)
self.set_field("server", self.resolve_server)
self.set_field("joined_on", self.resolve_joined_on) self.set_field("joined_on", self.resolve_joined_on)
self.set_field("leaved_on", self.resolve_leaved_on) self.set_field("leaved_on", self.resolve_leaved_on)
@ -20,10 +19,6 @@ class UserJoinedServerQuery(DataQueryABC):
def resolve_user(x: UserJoinedServer, *_): def resolve_user(x: UserJoinedServer, *_):
return x.user return x.user
@staticmethod
def resolve_server(x: UserJoinedServer, *_):
return x.user.server
@staticmethod @staticmethod
def resolve_joined_on(x: UserJoinedServer, *_): def resolve_joined_on(x: UserJoinedServer, *_):
return x.joined_on return x.joined_on

View File

@ -14,7 +14,6 @@ class UserJoinedVoiceChannelQuery(DataQueryABC):
self.set_field("channel_id", self.resolve_channel_id) self.set_field("channel_id", self.resolve_channel_id)
self.set_field("channel_name", self.resolve_channel_name) self.set_field("channel_name", self.resolve_channel_name)
self.set_field("user", self.resolve_user) self.set_field("user", self.resolve_user)
self.set_field("server", self.resolve_server)
self.set_field("joined_on", self.resolve_joined_on) self.set_field("joined_on", self.resolve_joined_on)
self.set_field("leaved_on", self.resolve_leaved_on) self.set_field("leaved_on", self.resolve_leaved_on)
@ -33,10 +32,6 @@ class UserJoinedVoiceChannelQuery(DataQueryABC):
def resolve_user(x: UserJoinedVoiceChannel, *_): def resolve_user(x: UserJoinedVoiceChannel, *_):
return x.user return x.user
@staticmethod
def resolve_server(x: UserJoinedVoiceChannel, *_):
return x.user.server
@staticmethod @staticmethod
def resolve_joined_on(x: UserJoinedVoiceChannel, *_): def resolve_joined_on(x: UserJoinedVoiceChannel, *_):
return x.joined_on return x.joined_on