Skip to content

Commit

Permalink
fix: Fix CSV separator
Browse files Browse the repository at this point in the history
  • Loading branch information
levaitamas committed Oct 6, 2024
1 parent 7a69d71 commit 28d4f2c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions append.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ func readRepoNames(path string) ([]string, error) {
}
firstLine = strings.TrimRight(firstLine, "\n")

_, firstLine, _ = strings.Cut(firstLine, ";")
_, firstLine, _ = strings.Cut(firstLine, ",")

return strings.Split(firstLine, ";"), nil
return strings.Split(firstLine, ","), nil
}

func queryPolls(repo string) (string, error) {
Expand Down Expand Up @@ -76,7 +76,7 @@ func main() {
}
defer f.Close()

s := strings.Join(row, ";") + "\n"
s := strings.Join(row, ",") + "\n"
if _, err := f.WriteString(s); err != nil {
log.Fatalf("Unable to write data: %s", err.Error())
}
Expand Down
6 changes: 3 additions & 3 deletions pull-stats.csv
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
date;stunnerd;stunner-gateway-operator;stunner-auth-server;net-debug
2024-10-05;76903;137270;59120;5066
2024-10-06;76949;137296;59120;5069
date,stunnerd,stunner-gateway-operator,stunner-auth-server,net-debug
2024-10-05,76903,137270,59120,5066
2024-10-06,76949,137296,59120,5069

0 comments on commit 28d4f2c

Please sign in to comment.