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

Method check_balance

bank_managment_system/backend.py:126–129  ·  view source on GitHub ↗
(self, acc_no)

Source from the content-addressed store, hash-verified

124 return False
125
126 def check_balance(self, acc_no):
127 self.cur.execute("SELECT balance FROM bank WHERE acc_no=?", (acc_no,))
128 bal = self.cur.fetchone()
129 return bal[0] if bal else 0
130
131 def list_all_customers(self):
132 self.cur.execute("SELECT * FROM bank")

Callers 1

search_in_databaseFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected