Skip to content

Commit

Permalink
chore: Remove unnecessary code for saving data to file
Browse files Browse the repository at this point in the history
  • Loading branch information
techtanic committed Jul 3, 2024
1 parent 030acc7 commit 3d75c6d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions base.py
Original file line number Diff line number Diff line change
Expand Up @@ -573,8 +573,6 @@ def remove_duplicate_courses(self):
existing_links = set()
new_data = {}
data = self.scraped_data
with open("test/data.json", "w") as f:
json.dump(data, f, indent=4)
for key in data:
new_data[key] = []
for title, link in data[key]:
Expand Down
2 changes: 1 addition & 1 deletion gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def scrape():
e = traceback.format_exc()
main_window.write_event_value(
"Error",
e + f"\n\n{udemy.link}\n{udemy.title}" + f"|:|Unknown Error {VERSION}",
f"{e}\n\nVersion:{VERSION}\nLink:{getattr(udemy, 'link', 'None')}\nTitle:{getattr(udemy, 'title','None')}",
)


Expand Down

0 comments on commit 3d75c6d

Please sign in to comment.