TAK-70 history empty

This commit is contained in:
Rafał Piskorski 2021-01-09 11:29:22 +01:00
parent 98dddc9f6e
commit aa5a9218d7

View File

@ -220,7 +220,9 @@ profilServer <- function(input, output,session) {
# print(typeof(do.call(c,(content(r)$predictions))))
# v<-do.call(c,(content(r)$predictions))
if(is.null(content(r)$predictions)){
DT::datatable(data.frame(Nazwa=character(),Wynik=numeric(),Data=character()),options = list(scrollX = TRUE,language=pl))
}else{
df_historyTable<-as.data.frame(do.call(rbind, (content(r)$predictions)))
# print(typeof(df_historyTable))
@ -245,6 +247,7 @@ profilServer <- function(input, output,session) {
# as.Date(df_historyTable$Data)
DT::datatable(df_historyTable,options = list(scrollX = TRUE,language=pl))}
}
})
@ -275,6 +278,7 @@ profilServer <- function(input, output,session) {
})
pl <- list(
emptyTable="Tabela jest pusta",
sSearch = "Szukaj",
sInfo="Wyniki od _START_ do _END_ z _TOTAL_ rekordow",
sZeroRecords="Brak rekordow",