From f40b1a1af0edaae953275f6aea6cfaf336be6ba0 Mon Sep 17 00:00:00 2001 From: feder-cr Date: Sun, 4 Aug 2024 14:40:46 +0100 Subject: [PATCH] primordial setting of the oldset function --- linkedIn_job_manager.py | 13 +++++++------ readme.md | 2 ++ 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/linkedIn_job_manager.py b/linkedIn_job_manager.py index d3f142d..3867bf2 100644 --- a/linkedIn_job_manager.py +++ b/linkedIn_job_manager.py @@ -58,12 +58,13 @@ class LinkedInJobManager: """ self.set_old_answers = {} file_path = 'data_folder/output/old_Questions.csv' - with open(file_path, 'r', newline='', encoding='utf-8', errors='ignore') as file: - csv_reader = csv.reader(file, delimiter=',', quotechar='"') - for row in csv_reader: - if len(row) == 3: - answer_type, question_text, answer = row - self.set_old_answers[(answer_type.lower(), question_text.lower())] = answer + if os.path.exists(file_path): + with open(file_path, 'r', newline='', encoding='utf-8', errors='ignore') as file: + csv_reader = csv.reader(file, delimiter=',', quotechar='"') + for row in csv_reader: + if len(row) == 3: + answer_type, question_text, answer = row + self.set_old_answers[(answer_type.lower(), question_text.lower())] = answer def start_applying(self): diff --git a/readme.md b/readme.md index acb551a..add6fc8 100644 --- a/readme.md +++ b/readme.md @@ -151,6 +151,8 @@ For detailed information on each component and their respective roles, please re - [feder-cr](https://github.com/your-github-profile) - Creator and Maintainer +LinkedIn_AIHawk is still in beta, and your feedback, suggestions, and contributions are highly valued. Feel free to open issues, suggest enhancements, or submit pull requests to help improve the project. Let's work together to make LinkedIn_AIHawk an even more powerful tool for job seekers worldwide. + ## License This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.