mirror of
https://github.com/283375/arcaea-offline.git
synced 2025-04-19 06:00:18 +00:00
impr(external): Andreal B30 overflow data
This commit is contained in:
parent
7a64ec4a4a
commit
d79c73df8c
@ -84,11 +84,15 @@ class AndrealImageGeneratorApiDataConverter:
|
|||||||
raise ValueError("No score available.")
|
raise ValueError("No score available.")
|
||||||
best30_avg = self.session.scalar(select(CalculatedPotential.b30))
|
best30_avg = self.session.scalar(select(CalculatedPotential.b30))
|
||||||
|
|
||||||
|
best30_overflow = (
|
||||||
|
[self.score(score) for score in scores[30:40]] if len(scores) > 30 else []
|
||||||
|
)
|
||||||
|
|
||||||
return {
|
return {
|
||||||
"content": {
|
"content": {
|
||||||
"account_info": self.account_info(),
|
"account_info": self.account_info(),
|
||||||
"best30_avg": best30_avg,
|
"best30_avg": best30_avg,
|
||||||
"best30_list": [self.score(score) for score in scores[:30]],
|
"best30_list": [self.score(score) for score in scores[:30]],
|
||||||
"best30_overflow": [self.score(score) for score in scores[-10:]],
|
"best30_overflow": best30_overflow,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user