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

Method check_employee

bank_managment_system/backend.py:58–62  ·  view source on GitHub ↗
(self, name, password)

Source from the content-addressed store, hash-verified

56 self.conn.commit()
57
58 def check_employee(self, name, password):
59 self.cur.execute(
60 "SELECT 1 FROM staff WHERE name=? AND pass=?", (name, password)
61 )
62 return self.cur.fetchone() is not None
63
64 def show_employees(self):
65 self.cur.execute("SELECT name, salary, position FROM staff")

Callers 1

check_empFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected