Skip to content

Instantly share code, notes, and snippets.

@Cat-Ion
Created October 6, 2017 13:51
Show Gist options
  • Save Cat-Ion/678ec38120e1b41a758cd917834acb19 to your computer and use it in GitHub Desktop.
Save Cat-Ion/678ec38120e1b41a758cd917834acb19 to your computer and use it in GitHub Desktop.
db module:
class CocktailDB:
def __init__(dbfile):
pass
# void
def set_ingredient_position(position, ingredient_id, amount = 0):
pass
# void
def set_ingredient_amount(ingredient_id, amount):
pass
# Returns cocktail ids
def get_available_cocktails():
pass
# Returns total amount, summing over all valid locations
def get_ingredient_amount(ingredient_id):
pass
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment