fix: foreign_tickers selalu include semua ticker dengan foreign data (bukan hanya saat watchlist>60)
CI / go test + web typecheck (push) Canceled after 0s
CI / build + deploy (Nix) — flowsight (push) Canceled after 0s

This commit is contained in:
asepharyana
2026-09-16 01:29:01 +07:00
parent 9438f2566b
commit 0b00daed39
+4 -6
View File
@@ -69,12 +69,10 @@ func (s *Server) FlowSummary(w http.ResponseWriter, r *http.Request) {
} }
// Rest of the universe: still list them as chart-picker options (foreign // Rest of the universe: still list them as chart-picker options (foreign
// data may exist even if not scanned this request). // data may exist even if not scanned this request).
if len(wl) > 60 { extra, _ := s.DB.TickersWithForeign()
extra, _ := s.DB.TickersWithForeign() for _, tk := range wl {
for _, tk := range wl { if !scanned[tk] && extra[tk] {
if !scanned[tk] && extra[tk] { fkTickers = append(fkTickers, tk)
fkTickers = append(fkTickers, tk)
}
} }
} }
sort.Slice(accs, func(i, j int) bool { return accs[i].NetSum > accs[j].NetSum }) sort.Slice(accs, func(i, j int) bool { return accs[i].NetSum > accs[j].NetSum })