Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
Merge pull request #116 from climatepolicyradar/feature/pdct-718-upda…
Browse files Browse the repository at this point in the history
…te-pipeline-to-re-process-desired-documents

Adding reparse as an update type.
  • Loading branch information
THOR300 authored Jan 4, 2024
2 parents f55a089 + d0aba32 commit f9c8b5c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/cpr_data_access/parser_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@

_LOGGER = logging.getLogger(__name__)

PARSER_METADATA_KEY = "parser_metadata"
AZURE_API_VERSION_KEY = "azure_api_version"
AZURE_MODEL_ID_KEY = "azure_model_id"
PARSING_DATE_KEY = "parsing_date"


class VerticalFlipError(Exception):
"""Exception for when a vertical flip fails."""
Expand Down
1 change: 1 addition & 0 deletions src/cpr_data_access/pipeline_general_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ class UpdateTypes(str, Enum):
# LANGUAGES = "languages"
# DOCUMENT_STATUS = "document_status"
METADATA = "metadata"
REPARSE = "reparse"


class Update(BaseModel):
Expand Down

0 comments on commit f9c8b5c

Please sign in to comment.