(p1)
| 33 | |
| 34 | |
| 35 | def delete_button(p1): |
| 36 | global index |
| 37 | global results |
| 38 | global cursor |
| 39 | |
| 40 | # fetch id of the current note |
| 41 | id = results[index][0] |
| 42 | |
| 43 | sql_command = """ DELETE FROM notes WHERE id = {0}; """ |
| 44 | sql_command = sql_command.format(id) |
| 45 | |
| 46 | cursor.execute(sql_command) |
| 47 | |
| 48 | connection.commit() |
| 49 | |
| 50 | |
| 51 | def create_button(p1): |
nothing calls this directly
no outgoing calls
no test coverage detected