MCPcopy Index your code
hub / github.com/geekcomputers/Python / DBZ

Function DBZ

bookstore_manangement_system.py:18–29  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

16
17
18def 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
32def separator():

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected