pymensago/userinfo.py
def delete_user_list_field(db: sqlite3.Connection, fieldname: str) -> RetVal:
	'''Deletes a field which is a list'''
	
	if not fieldname:
		return ErrBadValue
	
	cursor = db.cursor()
	cursor.execute("""DELETE FROM userinfo WHERE fieldname LIKE ?""", (fieldname + '.%',))
	db.commit()
	return RetVal()
Deletes a field which is a list
Deletes a field which is a list
Deletes a field which is a list
def delete_user_list_field(db: sqlite3.Connection, fieldname: str) -> RetVal:
	if not fieldname:
		return ErrBadValue
	cursor = db.cursor()
	cursor.execute("""DELETE FROM userinfo WHERE fieldname LIKE ?""", (fieldname + '.%',))
	db.commit()
	return RetVal()
def delete_user_list_field ( db : sqlite3 . Connection , fieldname : str ) -> RetVal : if not fieldname : return ErrBadValue cursor = db . cursor ( ) cursor . execute ( """DELETE FROM userinfo WHERE fieldname LIKE ?""" , ( fieldname + '.%' , ) ) db . commit ( ) return RetVal ( )
Deletes a field which is a list
Deletes a field which is a list
'''Deletes a field which is a list'''
db
sqlite3.Connection
fieldname
str