Skip to content

Commit

Permalink
fix: allow lowercase tickers as cli arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
rasnes committed Jan 3, 2025
1 parent d19d3c5 commit 252eff6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion EtL/cmd/eod_backfill.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ func newBackfillCmd() *cobra.Command {
}
defer pipeline.Close()

tickers := strings.Split(args[0], ",") // Assuming comma-separated tickers
tickers := strings.Split(strings.ToUpper(args[0]), ",") // Convert tickers to uppercase
nSuccess, err := pipeline.BackfillEndOfDay(tickers)
if err != nil {
return fmt.Errorf("error backfilling tickers: %w", err)
Expand Down
4 changes: 2 additions & 2 deletions EtL/cmd/fundamentals.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ func newFundamentalsDailyCmd() *cobra.Command {

var tickerSlice []string
if tickers != "" {
tickerSlice = strings.Split(tickers, ",")
tickerSlice = strings.Split(strings.ToUpper(tickers), ",")
}

var skipTickerSlice []string
Expand Down Expand Up @@ -138,7 +138,7 @@ func newStatementsCmd() *cobra.Command {

var tickerSlice []string
if tickers != "" {
tickerSlice = strings.Split(tickers, ",")
tickerSlice = strings.Split(strings.ToUpper(tickers), ",")
}

var skipTickerSlice []string
Expand Down

0 comments on commit 252eff6

Please sign in to comment.