OPEN: Add option to skip prolongability check
@@ -965,8 +965,15 @@ public class OpenAccountScraper extends OpenSearch {
}
CompletableFuture.allOf(futures.toArray(new CompletableFuture[0])).join();
+ if (data.optBoolean("account_skip_prolongability", false)) {
+ for (Map.Entry<String, LentItem> p : copyIds.entrySet()) {
+ p.getValue().setProlongData(p.getKey());
+ p.getValue().setRenewable(true);
+ }
+ } else {
fetchProlongability(copyIds, doc, account);
}
+ }
public void fetchProlongability(Map<String, LentItem> copyIds,
Document doc, Account account) {
