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

Method create_customer

bank_managment_system/backend.py:79–87  ·  view source on GitHub ↗
(self, name, age, address, balance, acc_type, mobile_number)

Source from the content-addressed store, hash-verified

77
78 # ----------------- Customer -----------------
79 def create_customer(self, name, age, address, balance, acc_type, mobile_number):
80 acc_no = self.acc_no
81 self.cur.execute(
82 "INSERT INTO bank VALUES (?, ?, ?, ?, ?, ?, ?)",
83 (acc_no, name, age, address, balance, acc_type, mobile_number),
84 )
85 self.conn.commit()
86 self.acc_no += 1
87 return acc_no
88
89 def check_acc_no(self, acc_no):
90 self.cur.execute("SELECT 1 FROM bank WHERE acc_no=?", (acc_no,))

Callers 2

add_account_form_submitFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected