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

Method update_balance

bank_managment_system/backend.py:109–113  ·  view source on GitHub ↗
(self, amount, acc_no)

Source from the content-addressed store, hash-verified

107 self.conn.commit()
108
109 def update_balance(self, amount, acc_no):
110 self.cur.execute(
111 "UPDATE bank SET balance = balance + ? WHERE acc_no=?", (amount, acc_no)
112 )
113 self.conn.commit()
114
115 def deduct_balance(self, amount, acc_no):
116 self.cur.execute("SELECT balance FROM bank WHERE acc_no=?", (acc_no,))

Callers 1

update_moneyFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected