No bajar SVGs duplicados
This commit is contained in:
parent
d086d55fb1
commit
e943c10c2b
1 changed files with 1 additions and 1 deletions
2
main.go
2
main.go
|
@ -89,7 +89,7 @@ func getRandomOpenSeaAsset() (Asset, error) {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
id := getOpenSeaId(a.Id)
|
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()
|
defer file.Close()
|
||||||
if errors.Is(err, fs.ErrNotExist) {
|
if errors.Is(err, fs.ErrNotExist) {
|
||||||
return a, nil
|
return a, nil
|
||||||
|
|
Loading…
Reference in a new issue