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 8810c49 commit ceefb65
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,14 @@ public List<MTGCard> searchCardByCriteria(String att, String crit, MTGEdition me
q.clearContents();
q.url(BASE_URI+BASE_SUBURI+crit);
try {
return List.of(generateCard(q.toJson().getAsJsonObject(),true));

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

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

0 comments on commit ceefb65

Please sign in to comment.