Skip to content

Commit b0f84c0

Browse files
committed
streamgraph no pubdate failsafe
1 parent 258bc00 commit b0f84c0

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

  • server/preprocessing/other-scripts

server/preprocessing/other-scripts/base.R

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,14 @@ get_papers <- function(query, params,
6666
base_query <- paste(document_types, collapse=" ")
6767
}
6868

69-
if (!is.null(params$exclude_date_filters) && (params$exclude_date_filters == TRUE ||
70-
params$exclude_date_filters == "true")) {
69+
if (!is.null(params$vis_type) && params$vis_type == "timeline") {
70+
if (!is.null(params$exclude_date_filters)) {
71+
params$exclude_date_filters <- NULL
72+
}
73+
}
74+
75+
if (!is.null(params$exclude_date_filters)
76+
&& (params$exclude_date_filters == TRUE || params$exclude_date_filters == "true")) {
7177
} else {
7278
date_string = paste0("dcdate:[", params$from, " TO ", params$to , "]")
7379
base_query <- paste(date_string, base_query)

0 commit comments

Comments
 (0)