Reputation: 111
I am currently using the code below to select certain information from an Sqlite3 database to give information back to the user. I am wondering if somebody could point me in the right direction to a library/function that can allow me to create an easy to read HTML report for the user rather than the standard terminal shown?
Kind regards.
connect = sqlite3.connect(sqlitedb)
with connect:
cur = connect.cursor()
cur.execute("""SELECT messages._id,messages.body, participants_info.number, participants_info.display_name, participants_info._id
FROM messages
INNER JOIN participants_info
ON messages.participant_id = participants_info._id;""")
while True:
row = cur.fetchone()
if row == None:
break
print (row)
Upvotes: 1
Views: 1422