X nice, that looks better.
X can you see the placeholders on frontpage template for seed count?
I torrents.html.tmpl?
I which stats?
X frontpage.html.tmpl
I aa
X
Recent Uploads
-->
X
Seeds
-->
X
.Complete
-->
X that's where we want the seed count to be listed.
I i can did array with that
I for
I {{ range .SeedsCount }}
X and same for /s/?id=
I shitcoding top master aka livingstone
X lol
X chocolate star for you!
I search
I ok
X only when search returns results, obviously, not for the Popular Tags table.
I err = s.tmpl.ExecuteTemplate(w, "frontpage.html.tmpl", map[string]interface{}{ ...
X it looks like the SeedsCount array needs to be able to be referenced from the .Torrents array?
X not sure how nested ranges work in go..
I i too
I torrents array its another array
I maybe its struct
X I tried nesting before I think and it didn't work.
I type Torrent struct {
I i think more easy way its download scrape file -> read -> fixmap -> use that array of Scrape struct for template
I but
I we have to use the array in torrents range
X sure, sounds about right.
I torrents, err := s.DB.GetFrontPageTorrents()
I torrents []model.Torrent
I jes its struct
I we can add in struct of Torrent var ... []Scrape
I and use I i think more easy way its download scrape file -> read -> fixmap ->...
I or add seeds/peers/... in db
I and update db seeds/peers/.. in gorouite
X your call, livingstone.. whatever seems best.
I or every time download scrape file = load zzzot server = lags
X yeah, scrapes should be persisted somewhere fo' sure.
X and maybe scrapes get run on a schedule, every 15 minutes?
I jes
X nice, that looks better. X can you see the placeholders on frontpage template for seed count? I torrents.html.tmpl? I which stats? X frontpage.html.tmpl I aa X