From 27be6bf772166001c9039315d4d452dfab9cec64 Mon Sep 17 00:00:00 2001 From: Florian Baumann Date: Wed, 26 Apr 2023 09:36:40 +0200 Subject: [PATCH] Rename fetch_sets to comply to Golang standards --- src/serra/scryfall.go | 2 +- src/serra/update.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/serra/scryfall.go b/src/serra/scryfall.go index 4140aa5..a3cb66f 100644 --- a/src/serra/scryfall.go +++ b/src/serra/scryfall.go @@ -211,7 +211,7 @@ func fetchCard(path string) (*Card, error) { return val, nil } -func fetch_sets() (*SetList, error) { +func fetchSets() (*SetList, error) { // TODO better URL Building... resp, err := http.Get("https://api.scryfall.com/sets") if err != nil { diff --git a/src/serra/update.go b/src/serra/update.go index cfda762..2f4f65b 100644 --- a/src/serra/update.go +++ b/src/serra/update.go @@ -49,7 +49,7 @@ var updateCmd = &cobra.Command{ {"usdfoil", bson.D{{"$sum", bson.D{{"$multiply", bson.A{"$last_price.usd_foil", "$serra_count_foil"}}}}}}, }}} - sets, _ := fetch_sets() + sets, _ := fetchSets() for _, set := range sets.Data { // When downloading new sets, PriceList needs to be initialized