#
# Copyright (c) Daniel Sheffield 2023
#
# All rights reserved
#
# THIS SOFTWARE IS PROVIDED AS IS WITHOUT WARRANTY
from bottle import TEMPLATE_PATH

TEMPLATE_PATH.append("app/rest/templates")
ALL_UNITS = { 'g', 'kg', 'mL', 'L', 'Pieces', 'Bunches', 'Bags' }
PARAMS = { 'group', 'category', 'product', 'unit', 'tag', 'organic' }
BOOLEAN = {
    "1": True,
    True: "1",
    "0": False,
    False: "0",
    None: "0.5",
}