def api_item_usage(request): item_id = int(request.matchdict["item_id"]) return drink_log.get_item_usage(item_id)
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)