Skip to content

Commit

Permalink
deploy: a6c626a
Browse files Browse the repository at this point in the history
  • Loading branch information
Askaholic committed Aug 20, 2023
1 parent 89b2adc commit e1e6379
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 6 deletions.
4 changes: 4 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6628,6 +6628,7 @@ <h3>Inherited members</h3>

for rating_result in rating_results:
await self._publish_rating_changes(
rating_result.game_id,
rating_result.rating_type,
rating_result.old_ratings,
rating_result.new_ratings,
Expand Down Expand Up @@ -6689,6 +6690,7 @@ <h3>Inherited members</h3>
)

return GameRatingResult(
game_id,
rating_type,
old_ratings,
new_ratings,
Expand Down Expand Up @@ -6897,6 +6899,7 @@ <h3>Inherited members</h3>

async def _publish_rating_changes(
self,
game_id: int,
rating_type: str,
old_ratings: RatingDict,
new_ratings: RatingDict,
Expand All @@ -6913,6 +6916,7 @@ <h3>Inherited members</h3>
old_rating = old_ratings[player_id]

rating_change_dict = {
&#34;game_id&#34;: game_id,
&#34;player_id&#34;: player_id,
&#34;rating_type&#34;: rating_type,
&#34;new_rating_mean&#34;: new_rating.mean,
Expand Down
4 changes: 4 additions & 0 deletions rating_service/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,7 @@ <h3>Instance variables</h3>

for rating_result in rating_results:
await self._publish_rating_changes(
rating_result.game_id,
rating_result.rating_type,
rating_result.old_ratings,
rating_result.new_ratings,
Expand Down Expand Up @@ -386,6 +387,7 @@ <h3>Instance variables</h3>
)

return GameRatingResult(
game_id,
rating_type,
old_ratings,
new_ratings,
Expand Down Expand Up @@ -594,6 +596,7 @@ <h3>Instance variables</h3>

async def _publish_rating_changes(
self,
game_id: int,
rating_type: str,
old_ratings: RatingDict,
new_ratings: RatingDict,
Expand All @@ -610,6 +613,7 @@ <h3>Instance variables</h3>
old_rating = old_ratings[player_id]

rating_change_dict = {
&#34;game_id&#34;: game_id,
&#34;player_id&#34;: player_id,
&#34;rating_type&#34;: rating_type,
&#34;new_rating_mean&#34;: new_rating.mean,
Expand Down
8 changes: 8 additions & 0 deletions rating_service/rating_service.html
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,7 @@ <h1 class="title">Module <code>server.rating_service.rating_service</code></h1>

for rating_result in rating_results:
await self._publish_rating_changes(
rating_result.game_id,
rating_result.rating_type,
rating_result.old_ratings,
rating_result.new_ratings,
Expand Down Expand Up @@ -276,6 +277,7 @@ <h1 class="title">Module <code>server.rating_service.rating_service</code></h1>
)

return GameRatingResult(
game_id,
rating_type,
old_ratings,
new_ratings,
Expand Down Expand Up @@ -484,6 +486,7 @@ <h1 class="title">Module <code>server.rating_service.rating_service</code></h1>

async def _publish_rating_changes(
self,
game_id: int,
rating_type: str,
old_ratings: RatingDict,
new_ratings: RatingDict,
Expand All @@ -500,6 +503,7 @@ <h1 class="title">Module <code>server.rating_service.rating_service</code></h1>
old_rating = old_ratings[player_id]

rating_change_dict = {
&#34;game_id&#34;: game_id,
&#34;player_id&#34;: player_id,
&#34;rating_type&#34;: rating_type,
&#34;new_rating_mean&#34;: new_rating.mean,
Expand Down Expand Up @@ -723,6 +727,7 @@ <h2 class="section-title" id="header-classes">Classes</h2>

for rating_result in rating_results:
await self._publish_rating_changes(
rating_result.game_id,
rating_result.rating_type,
rating_result.old_ratings,
rating_result.new_ratings,
Expand Down Expand Up @@ -784,6 +789,7 @@ <h2 class="section-title" id="header-classes">Classes</h2>
)

return GameRatingResult(
game_id,
rating_type,
old_ratings,
new_ratings,
Expand Down Expand Up @@ -992,6 +998,7 @@ <h2 class="section-title" id="header-classes">Classes</h2>

async def _publish_rating_changes(
self,
game_id: int,
rating_type: str,
old_ratings: RatingDict,
new_ratings: RatingDict,
Expand All @@ -1008,6 +1015,7 @@ <h2 class="section-title" id="header-classes">Classes</h2>
old_rating = old_ratings[player_id]

rating_change_dict = {
&#34;game_id&#34;: game_id,
&#34;player_id&#34;: player_id,
&#34;rating_type&#34;: rating_type,
&#34;new_rating_mean&#34;: new_rating.mean,
Expand Down
19 changes: 13 additions & 6 deletions rating_service/typedefs.html
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ <h1 class="title">Module <code>server.rating_service.typedefs</code></h1>


class GameRatingResult(NamedTuple):
game_id: int
rating_type: str
old_ratings: RatingDict
new_ratings: RatingDict
Expand All @@ -94,15 +95,16 @@ <h2 class="section-title" id="header-classes">Classes</h2>
<dl>
<dt id="server.rating_service.typedefs.GameRatingResult"><code class="flex name class">
<span>class <span class="ident">GameRatingResult</span></span>
<span>(</span><span>rating_type: str, old_ratings: dict[int, <a title="server.rating.Rating" href="../rating.html#server.rating.Rating">Rating</a>], new_ratings: dict[int, <a title="server.rating.Rating" href="../rating.html#server.rating.Rating">Rating</a>], outcome_map: dict[int, <a title="server.db.typedefs.GameOutcome" href="../db/typedefs.html#server.db.typedefs.GameOutcome">GameOutcome</a>])</span>
<span>(</span><span>game_id: int, rating_type: str, old_ratings: dict[int, <a title="server.rating.Rating" href="../rating.html#server.rating.Rating">Rating</a>], new_ratings: dict[int, <a title="server.rating.Rating" href="../rating.html#server.rating.Rating">Rating</a>], outcome_map: dict[int, <a title="server.db.typedefs.GameOutcome" href="../db/typedefs.html#server.db.typedefs.GameOutcome">GameOutcome</a>])</span>
</code></dt>
<dd>
<div class="desc"><p>GameRatingResult(rating_type, old_ratings, new_ratings, outcome_map)</p></div>
<div class="desc"><p>GameRatingResult(game_id, rating_type, old_ratings, new_ratings, outcome_map)</p></div>
<details class="source">
<summary>
<span>Expand source code</span>
</summary>
<pre><code class="python">class GameRatingResult(NamedTuple):
game_id: int
rating_type: str
old_ratings: RatingDict
new_ratings: RatingDict
Expand All @@ -114,21 +116,25 @@ <h3>Ancestors</h3>
</ul>
<h3>Instance variables</h3>
<dl>
<dt id="server.rating_service.typedefs.GameRatingResult.game_id"><code class="name">var <span class="ident">game_id</span> : int</code></dt>
<dd>
<div class="desc"><p>Alias for field number 0</p></div>
</dd>
<dt id="server.rating_service.typedefs.GameRatingResult.new_ratings"><code class="name">var <span class="ident">new_ratings</span> : dict[int, <a title="server.rating.Rating" href="../rating.html#server.rating.Rating">Rating</a>]</code></dt>
<dd>
<div class="desc"><p>Alias for field number 2</p></div>
<div class="desc"><p>Alias for field number 3</p></div>
</dd>
<dt id="server.rating_service.typedefs.GameRatingResult.old_ratings"><code class="name">var <span class="ident">old_ratings</span> : dict[int, <a title="server.rating.Rating" href="../rating.html#server.rating.Rating">Rating</a>]</code></dt>
<dd>
<div class="desc"><p>Alias for field number 1</p></div>
<div class="desc"><p>Alias for field number 2</p></div>
</dd>
<dt id="server.rating_service.typedefs.GameRatingResult.outcome_map"><code class="name">var <span class="ident">outcome_map</span> : dict[int, <a title="server.db.typedefs.GameOutcome" href="../db/typedefs.html#server.db.typedefs.GameOutcome">GameOutcome</a>]</code></dt>
<dd>
<div class="desc"><p>Alias for field number 3</p></div>
<div class="desc"><p>Alias for field number 4</p></div>
</dd>
<dt id="server.rating_service.typedefs.GameRatingResult.rating_type"><code class="name">var <span class="ident">rating_type</span> : str</code></dt>
<dd>
<div class="desc"><p>Alias for field number 0</p></div>
<div class="desc"><p>Alias for field number 1</p></div>
</dd>
</dl>
</dd>
Expand Down Expand Up @@ -290,6 +296,7 @@ <h1>Index</h1>
<li>
<h4><code><a title="server.rating_service.typedefs.GameRatingResult" href="#server.rating_service.typedefs.GameRatingResult">GameRatingResult</a></code></h4>
<ul class="">
<li><code><a title="server.rating_service.typedefs.GameRatingResult.game_id" href="#server.rating_service.typedefs.GameRatingResult.game_id">game_id</a></code></li>
<li><code><a title="server.rating_service.typedefs.GameRatingResult.new_ratings" href="#server.rating_service.typedefs.GameRatingResult.new_ratings">new_ratings</a></code></li>
<li><code><a title="server.rating_service.typedefs.GameRatingResult.old_ratings" href="#server.rating_service.typedefs.GameRatingResult.old_ratings">old_ratings</a></code></li>
<li><code><a title="server.rating_service.typedefs.GameRatingResult.outcome_map" href="#server.rating_service.typedefs.GameRatingResult.outcome_map">outcome_map</a></code></li>
Expand Down

0 comments on commit e1e6379

Please sign in to comment.