hadimaster65555 commited on
Commit
ea61af3
·
1 Parent(s): 6b92fdd

add new router

Browse files
Files changed (1) hide show
  1. function.R +3 -1
function.R CHANGED
@@ -317,6 +317,8 @@ function(req) {
317
 
318
  result_data <- req$body$data %>% janitor::clean_names()
319
 
 
 
320
  feed_data_container <- tibble(
321
  pond_code = as.character(),
322
  doc_data = as.numeric(),
@@ -356,7 +358,7 @@ function(req) {
356
  population_data <- stock_data * (pond_data$sr_input/100)
357
  biomass <- population_data * mbw_data
358
 
359
- date_data <- seq(input$weekly_feeding_date_input, by = "day", length.out = 7)
360
 
361
  tibble(
362
  pond_code = pond_data$pond,
 
317
 
318
  result_data <- req$body$data %>% janitor::clean_names()
319
 
320
+ weekly_feeding_date_input <- req$body$date_input
321
+
322
  feed_data_container <- tibble(
323
  pond_code = as.character(),
324
  doc_data = as.numeric(),
 
358
  population_data <- stock_data * (pond_data$sr_input/100)
359
  biomass <- population_data * mbw_data
360
 
361
+ date_data <- seq(weekly_feeding_date_input, by = "day", length.out = 7)
362
 
363
  tibble(
364
  pond_code = pond_data$pond,