(self, name, password)
| 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") |