diff --git a/browser/pkg/calories_browser.js b/browser/pkg/calories_browser.js index 92f92bf..940ca08 100644 --- a/browser/pkg/calories_browser.js +++ b/browser/pkg/calories_browser.js @@ -853,12 +853,12 @@ function __wbg_get_imports() { const ret = wasm.memory; return addHeapObject(ret); }; - imports.wbg.__wbindgen_closure_wrapper201 = function(arg0, arg1, arg2) { - const ret = makeMutClosure(arg0, arg1, 43, __wbg_adapter_36); + imports.wbg.__wbindgen_closure_wrapper199 = function(arg0, arg1, arg2) { + const ret = makeMutClosure(arg0, arg1, 33, __wbg_adapter_36); return addHeapObject(ret); }; - imports.wbg.__wbindgen_closure_wrapper202 = function(arg0, arg1, arg2) { - const ret = makeMutClosure(arg0, arg1, 43, __wbg_adapter_39); + imports.wbg.__wbindgen_closure_wrapper200 = function(arg0, arg1, arg2) { + const ret = makeMutClosure(arg0, arg1, 33, __wbg_adapter_39); return addHeapObject(ret); }; imports.wbg.__wbindgen_closure_wrapper1797 = function(arg0, arg1, arg2) { diff --git a/browser/pkg/calories_browser_bg.wasm b/browser/pkg/calories_browser_bg.wasm index 2ef1c09..bbe8390 100644 Binary files a/browser/pkg/calories_browser_bg.wasm and b/browser/pkg/calories_browser_bg.wasm differ diff --git a/browser/src/lib.rs b/browser/src/lib.rs index c54a300..d0a387b 100644 --- a/browser/src/lib.rs +++ b/browser/src/lib.rs @@ -69,6 +69,7 @@ pub fn init_camera_feed(product_options_js: JsValue) -> Result<(), String> { vitamin_b12: 0., calcium: 0., phosphor: 0., + vitamin_d: 0., }; product_options.push(test); diff --git a/shared/src/structs/nutrition.rs b/shared/src/structs/nutrition.rs index 5b77173..a2e7a75 100644 --- a/shared/src/structs/nutrition.rs +++ b/shared/src/structs/nutrition.rs @@ -31,6 +31,7 @@ pub struct Nutrition { pub vitamin_b12: f32, pub calcium: f32, pub phosphor: f32, + pub vitamin_d: f32, } #[cfg(feature = "sql")] @@ -53,6 +54,7 @@ type RowType = HList!( Option, Option, Option, + Option, ); impl Nutrition { @@ -88,7 +90,8 @@ impl Nutrition { vitamin_b2, vitamin_b12, calcium, - phosphor + phosphor, + vitamin_d, ] = row; Nutrition { id, @@ -109,6 +112,7 @@ impl Nutrition { vitamin_b12: vitamin_b12.unwrap_or(0.), calcium: calcium.unwrap_or(0.), phosphor: phosphor.unwrap_or(0.), + vitamin_d: vitamin_d.unwrap_or(0.), } };