Skip to content

Calculate recursive child counts#20

Merged
nas5w merged 1 commit intomainfrom
bugfix/correct-tree-counts
Feb 22, 2025
Merged

Calculate recursive child counts#20
nas5w merged 1 commit intomainfrom
bugfix/correct-tree-counts

Conversation

@nas5w
Copy link
Owner

@nas5w nas5w commented Feb 22, 2025

Child counts were displaying incorrectly in the web app because we were just counting direct children without traversing the full tree. This PR adds a recursive function to count all children down the tree.

@cloudflare-workers-and-pages
Copy link

Deploying govsky-v2 with  Cloudflare Pages  Cloudflare Pages

Latest commit: 91de976
Status: ✅  Deploy successful!
Preview URL: https://7d94688a.govsky-v2.pages.dev
Branch Preview URL: https://bugfix-correct-tree-counts.govsky-v2.pages.dev

View logs

@nas5w nas5w merged commit 0c6a259 into main Feb 22, 2025
2 checks passed
@nas5w nas5w deleted the bugfix/correct-tree-counts branch February 22, 2025 01:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant