feat: default watchlist semua, login-gate fitur, CI anti-stale via /api/version
This commit is contained in:
@@ -55,7 +55,11 @@ func (s *Server) Screen(w http.ResponseWriter, r *http.Request) {
|
||||
if len(universe) == 0 {
|
||||
universe, _ = s.DB.Watchlist(s.userKey(r))
|
||||
if len(universe) == 0 {
|
||||
universe = s.Cfg.Watchlist
|
||||
if all, err := s.DB.AllTickers(); err == nil && len(all) > 0 {
|
||||
universe = all
|
||||
} else {
|
||||
universe = s.Cfg.Watchlist
|
||||
}
|
||||
}
|
||||
}
|
||||
var rows []ScreenRow
|
||||
|
||||
Reference in New Issue
Block a user