(name, url, author)
| 91 | # Insert a new entry into the table |
| 92 | # The hash is auto generated |
| 93 | def insert(name, url, author): |
| 94 | cursor.execute( |
| 95 | f""" |
| 96 | INSERT INTO dbview (name, url, author, hash, date) VALUES ('{name}', '{url}', '{author}', '{str(hash_gen())}', CURRENT_TIMESTAMP) |
| 97 | """ |
| 98 | ) |
| 99 | search("name", name) |
| 100 | |
| 101 | # View the table using a rich table |
| 102 | def table(): |