diff --git a/recipes/settings.py b/recipes/settings.py index 456c1a469..0e79da2e2 100644 --- a/recipes/settings.py +++ b/recipes/settings.py @@ -309,13 +309,13 @@ else: # SQLite testing DB # DATABASES = { -# 'default': { -# 'ENGINE': 'django.db.backends.sqlite3', -# 'OPTIONS': ast.literal_eval(os.getenv('DB_OPTIONS')) if os.getenv('DB_OPTIONS') else {}, -# 'NAME': 'db.sqlite3', -# 'CONN_MAX_AGE': 600, -# } -#} +# 'default': { +# 'ENGINE': 'django.db.backends.sqlite3', +# 'OPTIONS': ast.literal_eval(os.getenv('DB_OPTIONS')) if os.getenv('DB_OPTIONS') else {}, +# 'NAME': 'db.sqlite3', +# 'CONN_MAX_AGE': 600, +# } +# } CACHES = { 'default': { diff --git a/vue/src/apps/ShoppingListView/ShoppingListView.vue b/vue/src/apps/ShoppingListView/ShoppingListView.vue index 49368c989..783454a97 100644 --- a/vue/src/apps/ShoppingListView/ShoppingListView.vue +++ b/vue/src/apps/ShoppingListView/ShoppingListView.vue @@ -682,7 +682,6 @@ export default { this.settings = getUserPreference() this.delay = Number(this.settings.default_delay || 4) - console.log(this.delay) this.supermarket_categories_only = this.settings.filter_to_supermarket if (this.settings.shopping_auto_sync) { window.addEventListener("online", this.updateOnlineStatus) diff --git a/vue/src/components/ShoppingLineItem.vue b/vue/src/components/ShoppingLineItem.vue index 5478b521f..a47d1d92b 100644 --- a/vue/src/components/ShoppingLineItem.vue +++ b/vue/src/components/ShoppingLineItem.vue @@ -151,6 +151,9 @@ export default { } } }) + for (const [k, v] of Object.entries(amount)) { + amount[k] = Math.round(v * 100 + Number.EPSILON) / 100 // javascript hack to force rounding at 2 places + } return amount }, formatCategory: function () {