def api_item_usage(request):
    item_id = int(request.matchdict["item_id"])
    return drink_log.get_item_usage(item_id)
示例#2
0
def api_item_usage(request):
    """
    Gets the item usage for the specified drink
    """
    item_id = int(request.matchdict['item_id'])
    return drink_log.get_item_usage(item_id)