From 2296a0185f0aa013b187198f4e6283e295e74bc8 Mon Sep 17 00:00:00 2001 From: Yan Wong Date: Mon, 15 Apr 2024 17:57:14 +0100 Subject: [PATCH] Fix #791 --- controllers/manage.py | 2 +- views/manage/SET_PRICES.html | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/controllers/manage.py b/controllers/manage.py index 8b147713..851d9992 100755 --- a/controllers/manage.py +++ b/controllers/manage.py @@ -870,7 +870,7 @@ def SET_PRICES(): response.flash = DIV( f"SET THE FOLLOWING DEFAULT PRICE STRUCTURE for {n_leaves} species:", BR(),PRE(*output), - f"Total revenue: {fmt_pounds(revenue)}!\nNow overriding the following special exclusions (and setting banned):", BR(), + f"Total revenue: {OZfunc.fmt_pounds(revenue)}!\nNow overriding the following special exclusions (and setting banned):", BR(), f"{bespoke_spp}" ) diff --git a/views/manage/SET_PRICES.html b/views/manage/SET_PRICES.html index c841b3a3..01cf18ab 100755 --- a/views/manage/SET_PRICES.html +++ b/views/manage/SET_PRICES.html @@ -6,8 +6,9 @@

Set the prices from the pre-calculated popularities

{{=form.custom.begin}} +{{if pop_min is not None and pop_max is not None:}} Popularity ranges from {{=int(round(pop_min,0))}} to {{=int(round(pop_max,0))}}. As a guide, here are the popularities of a few species: - +{{pass}}