pymensago/userinfo.py
def delete_user_field(db: sqlite3.Connection, fieldname: str) -> RetVal:
	'''Deletes a user info field from the database. Fieldname is expected to be in dot-separated 
	format.'''

	if not fieldname or not db:
		return RetVal(ErrBadValue)
	
	cursor = db.cursor()
	cursor.execute('DELETE FROM userinfo WHERE fieldname=?', (fieldname,))
	db.commit()

	return RetVal()
Deletes a user info field from the database. Fieldname is expected to be in dot-separated 
	format.
Deletes a user info field from the database. Fieldname is expected to be in dot-separated
format.
Deletes a user info field from the database . Fieldname is expected to be in dot - separated format .
def delete_user_field(db: sqlite3.Connection, fieldname: str) -> RetVal:
	if not fieldname or not db:
		return RetVal(ErrBadValue)
	cursor = db.cursor()
	cursor.execute('DELETE FROM userinfo WHERE fieldname=?', (fieldname,))
	db.commit()
	return RetVal()
def delete_user_field ( db : sqlite3 . Connection , fieldname : str ) -> RetVal : if not fieldname or not db : return RetVal ( ErrBadValue ) cursor = db . cursor ( ) cursor . execute ( 'DELETE FROM userinfo WHERE fieldname=?' , ( fieldname , ) ) db . commit ( ) return RetVal ( )
Deletes a user info field from the database.
Deletes a user info field from the database .
'''Deletes a user info field from the database. Fieldname is expected to be in dot-separated 
	format.'''
db
sqlite3.Connection
fieldname
str