Passport.py
def _find_in_db(self) -> tp.List[str]:
        """:returns employee data, incl. name, position and employee ID if employee found in DB"""

        employee_data = []

        # open employee database
        employee_db = "employee_db.csv"

        try:
            with open(employee_db, "r") as file:
                reader = csv.reader(file)

                # look for employee in the db
                for row in reader:
                    if self._employee_id in row:
                        employee_data = row
                        break
        except FileNotFoundError:
            logging.critical(f"File '{employee_db}' is not in the working directory, cannot retrieve employee data")

        return employee_data
:returns employee data, incl. name, position and employee ID if employee found in DB
:returns employee data, incl. name, position and employee ID if employee found in DB
: returns employee data incl . name position and employee ID if employee found in DB
def _find_in_db(self) -> tp.List[str]:
        employee_data = []
        employee_db = "employee_db.csv"
        try:
            with open(employee_db, "r") as file:
                reader = csv.reader(file)
                for row in reader:
                    if self._employee_id in row:
                        employee_data = row
                        break
        except FileNotFoundError:
            logging.critical(f"File '{employee_db}' is not in the working directory, cannot retrieve employee data")
        return employee_data
def _find_in_db ( self ) -> tp . List [ str ] : employee_data = [ ] employee_db = "employee_db.csv" try : with open ( employee_db , "r" ) as file : reader = csv . reader ( file ) for row in reader : if self . _employee_id in row : employee_data = row break except FileNotFoundError : logging . critical ( f"File '{employee_db}' is not in the working directory, cannot retrieve employee data" ) return employee_data
:returns employee data, incl.
: returns employee data incl .
""":returns employee data, incl. name, position and employee ID if employee found in DB""" # open employee database # look for employee in the db
self