MCPcopy Create free account
hub / github.com/geekcomputers/Python / _get_last_acc_no

Method _get_last_acc_no

bank_managment_system/backend.py:39–42  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

37 self.conn.commit()
38
39 def _get_last_acc_no(self):
40 self.cur.execute("SELECT MAX(acc_no) FROM bank")
41 last = self.cur.fetchone()[0]
42 return last if last else 0
43
44 # ----------------- Admin -----------------
45 def check_admin(self, name, password):

Callers 1

__init__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected