Skip to content

Commit

Permalink
Delete unused fields from the Project model
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew-uoa committed Jul 3, 2024
1 parent fd9282b commit 19dab78
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 10 deletions.
2 changes: 0 additions & 2 deletions samples/smelter_crucible_forge_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,6 @@ def create_project_example(smelter: Smelter, crucible: Crucible, forge: Forge) -
start_time=None,
end_time=None,
embargo_until=None,
delete_in_days=-1,
archive_in_days=-1,
)

smelt_result = smelter.smelt_project(raw_project)
Expand Down
2 changes: 0 additions & 2 deletions src/blueprints/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,6 @@ class RawProject(BaseProject):
start_time: Optional[datetime | str] = None
end_time: Optional[datetime | str] = None
embargo_until: Optional[datetime | str] = None
delete_in_days: int = -1
archive_in_days: int = 365


class RefinedProject(BaseProject):
Expand Down
2 changes: 0 additions & 2 deletions src/profiles/abi_music/parsing.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,6 @@ def read_permissions(json_node: Mapping[str, Any]) -> dict[str, bool]:
start_time=None,
end_time=None,
embargo_until=None,
delete_in_days=-1,
archive_in_days=365,
)

return raw_project
Expand Down
4 changes: 0 additions & 4 deletions tests/test_ingestion_manifest.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,6 @@ def _() -> IngestionManifest:
start_time=datetime(2024, 1, 1, 12, 41, 36),
end_time=datetime(2025, 1, 1, 12, 41, 36),
embargo_until=datetime(2024, 6, 1, 12, 41, 36),
delete_in_days=30,
archive_in_days=365,
),
RawProject(
name="project2_name",
Expand All @@ -66,8 +64,6 @@ def _() -> IngestionManifest:
start_time=datetime(2023, 1, 1, 12, 41, 36),
end_time=datetime(2024, 1, 1, 12, 41, 36),
embargo_until=datetime(2023, 6, 1, 12, 41, 36),
delete_in_days=60,
archive_in_days=730,
),
]
raw_experiments = [
Expand Down

0 comments on commit 19dab78

Please sign in to comment.