Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
dumbmatter committed Jan 1, 2025
1 parent 769517a commit b3c512f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions TODO
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
Setting pass tendency to zero doesn't prevent pass attempts on two point conversions https://discord.com/channels/290013534023057409/290015591216054273/1323838219598561363

Change (or add an option for) the coin flip to be like the old NBA coin flip, which was between the worst teams in each conference, not the worst two teams overall. Alternatively add the ability to edit the teams in the lottery. Probably no one else cares, but I like to be accurate. https://discord.com/channels/290013534023057409/331882115119448065/1322397494335897692

FBGM playoff overtime minor bug - 1st team scores TD+XP, 2nd scores TD and misses XP. that should end the game, but it doesn't actually end until the next kickoff https://discord.com/channels/290013534023057409/290015591216054273/1322426704832106527
Expand Down
6 changes: 4 additions & 2 deletions src/worker/db/connectLeague.ts
Original file line number Diff line number Diff line change
Expand Up @@ -744,7 +744,9 @@ const migrate = async ({

await cursor.update(gm);
}
for await (const cursor of transaction.objectStore("playerStats")) {
for await (const cursor of transaction.objectStore(
"playerStats" as any,
)) {
const ps = cursor.value;
delete ps.trb;
await cursor.update(ps);
Expand All @@ -763,7 +765,7 @@ const migrate = async ({
// Only non-retired players, for efficiency
for await (const cursor of transaction.objectStore("players")) {
const p = cursor.value;
for (const r of p.ratings) {
for (const r of p.ratings as any[]) {
// Replace blk/stl with diq
if (typeof r.diq !== "number") {
if (typeof r.blk === "number" && typeof r.stl === "number") {
Expand Down

0 comments on commit b3c512f

Please sign in to comment.