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

	cursor = db.cursor()
	cursor.execute('DELETE FROM userinfo WHERE fieldname=?', (fieldname,))
	cursor.execute('INSERT INTO userinfo (fieldname, fieldvalue) VALUES(?,?)',
			(fieldname, fieldvalue))
	db.commit()

	return RetVal()
Saves a user info field to the database. Fieldname is expected to be in dot-separated 
	format.
Saves a user info field to the database. Fieldname is expected to be in dot-separated
format.
Saves a user info field to the database . Fieldname is expected to be in dot - separated format .
def save_user_field(db: sqlite3.Connection, fieldname: str, fieldvalue: str) -> RetVal:
	cursor = db.cursor()
	cursor.execute('DELETE FROM userinfo WHERE fieldname=?', (fieldname,))
	cursor.execute('INSERT INTO userinfo (fieldname, fieldvalue) VALUES(?,?)',
			(fieldname, fieldvalue))
	db.commit()
	return RetVal()
def save_user_field ( db : sqlite3 . Connection , fieldname : str , fieldvalue : str ) -> RetVal : cursor = db . cursor ( ) cursor . execute ( 'DELETE FROM userinfo WHERE fieldname=?' , ( fieldname , ) ) cursor . execute ( 'INSERT INTO userinfo (fieldname, fieldvalue) VALUES(?,?)' , ( fieldname , fieldvalue ) ) db . commit ( ) return RetVal ( )
Saves a user info field to the database.
Saves a user info field to the database .
'''Saves a user info field to the database. Fieldname is expected to be in dot-separated 
	format.'''
db
sqlite3.Connection
fieldname
str
fieldvalue
str