From e943c10c2b386a06929515e6d34ad41d356be4f8 Mon Sep 17 00:00:00 2001 From: Nulo Date: Fri, 19 Nov 2021 18:34:33 -0300 Subject: [PATCH] No bajar SVGs duplicados --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 7143166..7062afa 100644 --- a/main.go +++ b/main.go @@ -89,7 +89,7 @@ func getRandomOpenSeaAsset() (Asset, error) { continue } id := getOpenSeaId(a.Id) - file, err := os.Open(filepath.Join(NFTS_DIR, id)) + file, err := os.Open(filepath.Join(NFTS_DIR, id+".json")) defer file.Close() if errors.Is(err, fs.ErrNotExist) { return a, nil