Skip to content

Commit

Permalink
deploy: 47301e3
Browse files Browse the repository at this point in the history
  • Loading branch information
Askaholic committed Nov 24, 2023
1 parent 6a4870d commit 28796d1
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
11 changes: 10 additions & 1 deletion games/game.html
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ <h1 class="title">Module <code>server.games.game</code></h1>
resolve_game
)
from server.rating import InclusiveRange, RatingType
from server.timing import datetime_now

from ..players import Player, PlayerState
from .typedefs import (
Expand Down Expand Up @@ -106,6 +107,7 @@ <h1 class="title">Module <code>server.games.game</code></h1>
self._game_stats_service = game_stats_service
self.game_service = game_service
self._player_options: dict[int, dict[str, Any]] = defaultdict(dict)
self.hosted_at = None
self.launched_at = None
self.finished = False
self._logger = logging.getLogger(
Expand Down Expand Up @@ -292,6 +294,7 @@ <h1 class="title">Module <code>server.games.game</code></h1>

def set_hosted(self):
self._hosted_future.set_result(None)
self.hosted_at = datetime_now()

async def add_result(
self,
Expand Down Expand Up @@ -922,6 +925,7 @@ <h1 class="title">Module <code>server.games.game</code></h1>
&#34;host&#34;: self.host.login if self.host else &#34;&#34;,
&#34;num_players&#34;: len(connected_players),
&#34;max_players&#34;: self.max_players,
&#34;hosted_at&#34;: self.hosted_at.isoformat() if self.hosted_at else None,
&#34;launched_at&#34;: self.launched_at,
&#34;rating_type&#34;: self.rating_type,
&#34;rating_min&#34;: self.displayed_rating_range.lo,
Expand Down Expand Up @@ -1025,6 +1029,7 @@ <h2 class="section-title" id="header-classes">Classes</h2>
self._game_stats_service = game_stats_service
self.game_service = game_service
self._player_options: dict[int, dict[str, Any]] = defaultdict(dict)
self.hosted_at = None
self.launched_at = None
self.finished = False
self._logger = logging.getLogger(
Expand Down Expand Up @@ -1211,6 +1216,7 @@ <h2 class="section-title" id="header-classes">Classes</h2>

def set_hosted(self):
self._hosted_future.set_result(None)
self.hosted_at = datetime_now()

async def add_result(
self,
Expand Down Expand Up @@ -1841,6 +1847,7 @@ <h2 class="section-title" id="header-classes">Classes</h2>
&#34;host&#34;: self.host.login if self.host else &#34;&#34;,
&#34;num_players&#34;: len(connected_players),
&#34;max_players&#34;: self.max_players,
&#34;hosted_at&#34;: self.hosted_at.isoformat() if self.hosted_at else None,
&#34;launched_at&#34;: self.launched_at,
&#34;rating_type&#34;: self.rating_type,
&#34;rating_min&#34;: self.displayed_rating_range.lo,
Expand Down Expand Up @@ -2789,7 +2796,8 @@ <h1 id="params">Params</h1>
<span>Expand source code</span>
</summary>
<pre><code class="python">def set_hosted(self):
self._hosted_future.set_result(None)</code></pre>
self._hosted_future.set_result(None)
self.hosted_at = datetime_now()</code></pre>
</details>
</dd>
<dt id="server.games.game.Game.set_name_unchecked"><code class="name flex">
Expand Down Expand Up @@ -2877,6 +2885,7 @@ <h1 id="params">Params</h1>
&#34;host&#34;: self.host.login if self.host else &#34;&#34;,
&#34;num_players&#34;: len(connected_players),
&#34;max_players&#34;: self.max_players,
&#34;hosted_at&#34;: self.hosted_at.isoformat() if self.hosted_at else None,
&#34;launched_at&#34;: self.launched_at,
&#34;rating_type&#34;: self.rating_type,
&#34;rating_min&#34;: self.displayed_rating_range.lo,
Expand Down
7 changes: 6 additions & 1 deletion games/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -449,6 +449,7 @@ <h3>Class variables</h3>
self._game_stats_service = game_stats_service
self.game_service = game_service
self._player_options: dict[int, dict[str, Any]] = defaultdict(dict)
self.hosted_at = None
self.launched_at = None
self.finished = False
self._logger = logging.getLogger(
Expand Down Expand Up @@ -635,6 +636,7 @@ <h3>Class variables</h3>

def set_hosted(self):
self._hosted_future.set_result(None)
self.hosted_at = datetime_now()

async def add_result(
self,
Expand Down Expand Up @@ -1265,6 +1267,7 @@ <h3>Class variables</h3>
&#34;host&#34;: self.host.login if self.host else &#34;&#34;,
&#34;num_players&#34;: len(connected_players),
&#34;max_players&#34;: self.max_players,
&#34;hosted_at&#34;: self.hosted_at.isoformat() if self.hosted_at else None,
&#34;launched_at&#34;: self.launched_at,
&#34;rating_type&#34;: self.rating_type,
&#34;rating_min&#34;: self.displayed_rating_range.lo,
Expand Down Expand Up @@ -2213,7 +2216,8 @@ <h1 id="params">Params</h1>
<span>Expand source code</span>
</summary>
<pre><code class="python">def set_hosted(self):
self._hosted_future.set_result(None)</code></pre>
self._hosted_future.set_result(None)
self.hosted_at = datetime_now()</code></pre>
</details>
</dd>
<dt id="server.games.Game.set_name_unchecked"><code class="name flex">
Expand Down Expand Up @@ -2301,6 +2305,7 @@ <h1 id="params">Params</h1>
&#34;host&#34;: self.host.login if self.host else &#34;&#34;,
&#34;num_players&#34;: len(connected_players),
&#34;max_players&#34;: self.max_players,
&#34;hosted_at&#34;: self.hosted_at.isoformat() if self.hosted_at else None,
&#34;launched_at&#34;: self.launched_at,
&#34;rating_type&#34;: self.rating_type,
&#34;rating_min&#34;: self.displayed_rating_range.lo,
Expand Down

0 comments on commit 28796d1

Please sign in to comment.