Skip to content

Commit

Permalink
Merge pull request #92 from cal-itp/schedule-backfill-fields
Browse files Browse the repository at this point in the history
add a couple fields for schedule backfill
  • Loading branch information
atvaccaro authored Jan 3, 2023
2 parents 292791d + 0eeeb9f commit 5e18b46
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.DS_Store
# Docs build folder
docs-build

Expand Down
2 changes: 2 additions & 0 deletions calitp/storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -546,6 +546,7 @@ class GTFSDownloadConfig(BaseModel, extra=Extra.forbid):
schedule_url_for_validation: Optional[HttpUrl]
auth_query_params: Dict[str, str] = {}
auth_headers: Dict[str, str] = {}
computed: bool = False

@validator("extracted_at", allow_reuse=True)
def coerce_extracted_at(cls, v):
Expand Down Expand Up @@ -648,6 +649,7 @@ class GTFSScheduleFeedExtract(GTFSFeedExtract):
table: ClassVar[str] = GTFSFeedType.schedule
feed_type: ClassVar[str] = GTFSFeedType.schedule
partition_names: ClassVar[List[str]] = ["dt", "ts", "base64_url"]
reconstructed: bool = False

@validator("config", allow_reuse=True)
def is_schedule_type(cls, v: GTFSDownloadConfig):
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "calitp"
version = "2022.12.1"
version = "2023.1.3"
description = "Shared code for the Cal-ITP data codebases"
authors = ["Andrew Vaccaro <[email protected]>"]
license = "GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007"
Expand Down

0 comments on commit 5e18b46

Please sign in to comment.