code-tofu / project_Pokemart

0 stars 0 forks source link

Database includes products with $0 cost #7

Closed code-tofu closed 1 year ago

code-tofu commented 1 year ago

Add a filter to remove $0 products when doing database import

code-tofu commented 1 year ago

implemented in setup service:

 if (productJson.getJsonNumber("cost").doubleValue() == 0L) {
                    System.out.println(">> [INFO] Item is zero cost. Restarting Download");
                    continue;
                }