1.0.0 #253

Merged
edraft merged 262 commits from 1.0.0 into master 2023-03-27 09:30:50 +02:00
2 changed files with 4 additions and 0 deletions
Showing only changes of commit 1664c67763 - Show all commits

View File

@ -41,6 +41,8 @@ class UserJoinedGameServer(TableABC):
@property
def time(self) -> float:
if self._leaved_on is None or self._joined_on is None:
return 0
return round((self.leaved_on - self.joined_on).total_seconds() / 3600, 2)
@property

View File

@ -47,6 +47,8 @@ class UserJoinedVoiceChannel(TableABC):
@property
def time(self) -> float:
if self._leaved_on is None or self._joined_on is None:
return 0
return round((self.leaved_on - self.joined_on).total_seconds() / 3600, 2)
@property