Skip to content

Commit

Permalink
Remove odt, fixed dataset staging for push
Browse files Browse the repository at this point in the history
  • Loading branch information
ntlhui committed Mar 3, 2023
1 parent a9e9a21 commit 63b2dca
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions e4e_data_management/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,8 @@ def push(self, path: Path) -> None:
Args:
path (Path): Destination to push completed dataset to
"""
if any(len(mission.staged_files) != 0 for mission in self.active_dataset.missions):
if any(len(mission.staged_files) != 0 for mission in self.active_dataset.missions) or \
len(self.active_dataset.staged_files) != 0:
raise RuntimeError('Files still in staging')

# Check that the README is present
Expand All @@ -238,7 +239,7 @@ def push(self, path: Path) -> None:

if len(readmes) == 0:
raise RuntimeError('Readme not found')
acceptable_exts = ['.md', '.docx', '.odt']
acceptable_exts = ['.md', '.docx']
if any(readme.suffix.lower() not in acceptable_exts for readme in readmes):
raise RuntimeError('Illegal README format')

Expand Down

0 comments on commit 63b2dca

Please sign in to comment.