+8
-5
appview/db/repos.go
+8
-5
appview/db/repos.go
···
466
var repos []Repo
467
468
rows, err := e.Query(
469
+
`select distinct r.did, r.name, r.knot, r.rkey, r.description, r.created, r.source
470
+
from repos r
471
+
left join collaborators c on r.at_uri = c.repo_at
472
+
where (r.did = ? or c.subject_did = ?)
473
+
and r.source is not null
474
+
and r.source != ''
475
+
order by r.created desc`,
476
+
did, did,
477
)
478
if err != nil {
479
return nil, err