Monorepo for Tangled
0

Configure Feed

Select the types of activity you want to include in your feed.

appview/db/repos: fixes fork count args

Signed-off-by: Will <did:plc:dadhhalkfcq3gucaq25hjqon>

author willdot.net committer
Tangled
date (May 12, 2026, 10:29 AM +0300) commit e120048b parent a21c1e37 change-id loxslnsr
+1 -2
+1 -2
appview/db/repos.go
··· 372 372 373 373 // get forks 374 374 forksInClause := strings.TrimSuffix(strings.Repeat("?, ", len(repoMap)), ", ") 375 - forkArgs := make([]any, len(repoMap)) 376 375 377 376 forksCountQuery := fmt.Sprintf( 378 377 `select source, count(1) from repos where source in (%s) group by source`, 379 378 forksInClause, 380 379 ) 381 380 382 - rows, err = e.Query(forksCountQuery, forkArgs...) 381 + rows, err = e.Query(forksCountQuery, args...) 383 382 if err != nil { 384 383 return nil, fmt.Errorf("failed to execute fork-count query: %w", err) 385 384 }