Signed-off-by: Will did:plc:dadhhalkfcq3gucaq25hjqon
+3
-6
appview/db/repos.go
+3
-6
appview/db/repos.go
···
304
304
// get forks
305
305
forksInClause := strings.TrimSuffix(strings.Repeat("?, ", len(repoMap)), ", ")
306
306
forkArgs := make([]any, len(repoMap))
307
+
repoDidMap := make(map[string]syntax.ATURI)
307
308
i = 0
308
-
for _, r := range repoMap {
309
+
for aturi, r := range repoMap {
309
310
forkArgs[i] = r.RepoDid
311
+
repoDidMap[r.RepoDid] = aturi
310
312
i++
311
313
}
312
314
···
321
323
}
322
324
defer rows.Close()
323
325
324
-
repoDidMap := make(map[string]syntax.ATURI)
325
-
for aturi, repo := range repoMap {
326
-
repoDidMap[repo.RepoDid] = aturi
327
-
}
328
-
329
326
for rows.Next() {
330
327
var repodid string
331
328
var count int
appview/models/repo.go
appview/models/repo.go
This file has not been changed.
History
4 rounds
0 comments
willdot.net
submitted
#3
1 commit
expand
collapse
appview/db/repos: calculate the fork count of a repo
Signed-off-by: Will <did:plc:dadhhalkfcq3gucaq25hjqon>
merge conflicts detected
expand
collapse
expand
collapse
- appview/db/repos.go:301
- appview/models/repo.go:97
expand 0 comments
willdot.net
submitted
#2
1 commit
expand
collapse
appview/db/repos: calculate the fork count of a repo
Signed-off-by: Will <did:plc:dadhhalkfcq3gucaq25hjqon>
expand 0 comments
willdot.net
submitted
#1
1 commit
expand
collapse
appview/db/repos: calculate the fork count of a repo
Signed-off-by: Will <did:plc:dadhhalkfcq3gucaq25hjqon>
expand 0 comments
willdot.net
submitted
#0
1 commit
expand
collapse
appview/db/repos: calculate the fork count of a repo
Signed-off-by: Will <did:plc:dadhhalkfcq3gucaq25hjqon>