Commit 7c3dfd1
authored
Set missing play/completion attributes (#1011)
Adds various more total/unique plays and completion stat attributes like
`lbp1CompletionCount` and `lbp3UniquePlayCount` to game level responses.
This allows LBP3 to correctly show all these stats without defaulting to
0 (including the play count outside the statistics page, on the
tooltip). The server will set all these attributes to the
play/completion stats from all games for now, but in the future they
could be properly separated by game (scores already store the game they
were uploaded from, but none of the play relations do so yet).
Closes #708.
<img width="500" height="300" alt="lel_20260209_200135"
src="https://github.com/user-attachments/assets/0ea5451a-97fa-4540-a491-119ab2a70124"
/>
<img width="500" height="300" alt="lel_20260209_200706"
src="https://github.com/user-attachments/assets/23d68dcb-cb32-4079-a68c-f9e34c1fa78d"
/>File tree
2 files changed
+33
-5
lines changed- Refresh.Interfaces.Game
- Endpoints/DataTypes/Response
- Types/Levels
2 files changed
+33
-5
lines changedLines changed: 11 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
22 | 25 | | |
23 | 26 | | |
24 | 27 | | |
| |||
57 | 60 | | |
58 | 61 | | |
59 | 62 | | |
60 | | - | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
61 | 68 | | |
62 | 69 | | |
63 | 70 | | |
| |||
106 | 113 | | |
107 | 114 | | |
108 | 115 | | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
109 | 119 | | |
110 | 120 | | |
111 | 121 | | |
| |||
Lines changed: 22 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
38 | 44 | | |
39 | 45 | | |
40 | 46 | | |
| |||
87 | 93 | | |
88 | 94 | | |
89 | 95 | | |
90 | | - | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
91 | 101 | | |
92 | 102 | | |
93 | 103 | | |
| |||
131 | 141 | | |
132 | 142 | | |
133 | 143 | | |
134 | | - | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
135 | 149 | | |
136 | 150 | | |
137 | 151 | | |
| |||
223 | 237 | | |
224 | 238 | | |
225 | 239 | | |
226 | | - | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
227 | 245 | | |
228 | 246 | | |
229 | 247 | | |
| |||
0 commit comments