use DateTimeRange.max() instead of arbitrary relative range
This commit is contained in:
@@ -212,8 +212,7 @@ public class PdbController implements HardcodedValues, PropertyKeys {
|
||||
@RequestParam(name = "caretIndex") final int caretIndex) {
|
||||
|
||||
// TODO get date range from UI
|
||||
// TODO time range must not be static
|
||||
final DateTimeRange dateRange = DateTimeRange.relativeYears(5);
|
||||
final DateTimeRange dateRange = DateTimeRange.max();
|
||||
final int zeroBasedCaretIndex = caretIndex - 1;
|
||||
final QueryWithCaretMarker q = new QueryWithCaretMarker(query, dateRange, zeroBasedCaretIndex);
|
||||
|
||||
|
||||
@@ -77,8 +77,7 @@ public class PdbExport {
|
||||
try (final PerformanceDb db = new PerformanceDb(dataDirectory);) {
|
||||
|
||||
LOGGER.info("Searching for all files. This may take a while ...");
|
||||
// TODO time range should not be static, but include everything
|
||||
final List<PdbFile> pdbFiles = db.getFilesForQuery(new Query("", DateTimeRange.relativeYears(5)));
|
||||
final List<PdbFile> pdbFiles = db.getFilesForQuery(new Query("", DateTimeRange.max()));
|
||||
|
||||
long count = 0;
|
||||
long lastEpochMilli = 0;
|
||||
|
||||
Reference in New Issue
Block a user