Skip to content

Commit

Permalink
use the common preparation function for two more formats
Browse files Browse the repository at this point in the history
  • Loading branch information
marph91 committed Oct 1, 2024
1 parent 5024e5e commit 3ec19aa
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
3 changes: 0 additions & 3 deletions src/formats/simplenote.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@
class Converter(converter.BaseConverter):
accepted_extensions = [".zip"]

def prepare_input(self, input_: Path) -> Path:
return common.extract_zip(input_, "source/notes.json")

def convert(self, file_or_folder: Path):
input_json = json.loads(
(self.root_path / "source/notes.json").read_text(encoding="utf-8")
Expand Down
3 changes: 0 additions & 3 deletions src/formats/standard_notes.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@
class Converter(converter.BaseConverter):
accepted_extensions = [".zip"]

def prepare_input(self, input_: Path) -> Path:
return common.extract_zip(input_, "Standard Notes Backup and Import File.txt")

def convert(self, file_or_folder: Path):
input_json = json.loads(
(self.root_path / "Standard Notes Backup and Import File.txt").read_text(
Expand Down

0 comments on commit 3ec19aa

Please sign in to comment.