Created
October 6, 2017 13:51
-
-
Save Cat-Ion/678ec38120e1b41a758cd917834acb19 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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