No bajar SVGs duplicados

This commit is contained in:
Cat /dev/Nulo 2021-11-19 18:34:33 -03:00
parent d086d55fb1
commit e943c10c2b

View file

@ -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