Fixed #152
This commit is contained in:
parent
1337ef35dd
commit
1ac5d982ed
@ -99,7 +99,7 @@ class UserGroup(DiscordCommandABC):
|
|||||||
)
|
)
|
||||||
|
|
||||||
ontime = self._user_joined_voice_channel.get_user_joined_voice_channels_by_user_id(user.user_id)\
|
ontime = self._user_joined_voice_channel.get_user_joined_voice_channels_by_user_id(user.user_id)\
|
||||||
.where(lambda x: x is not None)\
|
.where(lambda x: x.leaved_on is not None and x.joined_on is not None)\
|
||||||
.sum(lambda join: round((join.leaved_on - join.joined_on).total_seconds() / 3600, 2))
|
.sum(lambda join: round((join.leaved_on - join.joined_on).total_seconds() / 3600, 2))
|
||||||
|
|
||||||
embed.add_field(name=self._t.transform('modules.base.user.atr.id'), value=member.id)
|
embed.add_field(name=self._t.transform('modules.base.user.atr.id'), value=member.id)
|
||||||
|
Loading…
Reference in New Issue
Block a user