()
| 16 | |
| 17 | |
| 18 | def DBZ(): |
| 19 | # IF NO. OF BOOKS IS ZERO(0) THAN DELETE IT AUTOMATICALLY |
| 20 | |
| 21 | display = "select * from books" |
| 22 | mycur.execute(display) |
| 23 | data2 = mycur.fetchall() |
| 24 | |
| 25 | for y in data2: |
| 26 | if y[6] <= 0: |
| 27 | delete = "delete from books where Numbers_of_book<=0" |
| 28 | mycur.execute(delete) |
| 29 | mycon.commit() |
| 30 | |
| 31 | |
| 32 | def separator(): |
no outgoing calls
no test coverage detected