code/drinks_lib.py
def add_drinks(new_drinks):
	""" add new drinks to the drink file
	drinks: a list of the new drinks
	returns True if successfull, False if an error occurred
	"""

	global drinks

	print("[DR AD] adding new drinks")

	file = open(gl.gen_path + "/src/drinks_custom", "a")
	for i in new_drinks:
		file.write(i+"\n")
	file.close()
	drinks.sort()

	print("[DR AD] finished adding new drinks")

	return True
 add new drinks to the drink file
	drinks: a list of the new drinks
	returns True if successfull, False if an error occurred
	
add new drinks to the drink file
drinks: a list of the new drinks
returns True if successfull, False if an error occurred
add new drinks to the drink file drinks : a list of the new drinks returns True if successfull False if an error occurred
def add_drinks(new_drinks):
	global drinks
	print("[DR AD] adding new drinks")
	file = open(gl.gen_path + "/src/drinks_custom", "a")
	for i in new_drinks:
		file.write(i+"\n")
	file.close()
	drinks.sort()
	print("[DR AD] finished adding new drinks")
	return True
def add_drinks ( new_drinks ) : global drinks print ( "[DR AD] adding new drinks" ) file = open ( gl . gen_path + "/src/drinks_custom" , "a" ) for i in new_drinks : file . write ( i + "\n" ) file . close ( ) drinks . sort ( ) print ( "[DR AD] finished adding new drinks" ) return True
add new drinks to the drink file
drinks: a list of the new drinks
returns True if successfull, False if an error occurred
add new drinks to the drink file drinks : a list of the new drinks returns True if successfull False if an error occurred
""" add new drinks to the drink file
	drinks: a list of the new drinks
	returns True if successfull, False if an error occurred
	"""
new_drinks