Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
nicol authored and nicol committed Dec 8, 2024
1 parent ceefb65 commit fed1fbb
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -211,24 +211,20 @@ public List<MTGCard> searchCardByCriteria(String att, String crit, MTGEdition me

if(att.equals(ID))
{
q.clearContents();
q.url(BASE_URI+BASE_SUBURI+crit);
try {

return List.of(cacheCards.get(crit, new Callable<MTGCard>() {
@Override
public MTGCard call() throws Exception {
return generateCard(q.toJson().getAsJsonObject(),true);
return generateCard(URLTools.extractAsJson(BASE_URI+BASE_SUBURI+crit).getAsJsonObject(),true);
}
}));

} catch (ExecutionException e) {
logger.error(e);
}

}


return execute(q);

}
Expand Down

0 comments on commit fed1fbb

Please sign in to comment.