Skip to content

Commit

Permalink
Bug with audio duration in summarizejob (#316)
Browse files Browse the repository at this point in the history
* move audio_duration to BaseJob

* release v0.7.2
  • Loading branch information
Thomas Chaigneau committed Sep 25, 2023
1 parent c383462 commit 0fdd782
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/wordcab/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,4 @@
"start_transcription",
]

__version__ = "0.7.1"
__version__ = "0.7.2"
3 changes: 1 addition & 2 deletions src/wordcab/core_objects/job.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ class BaseJob:
display_name: str
job_name: str
source: str
audio_duration: int = field(default=0)
job_status: Optional[str] = field(default="Pending")
metadata: Optional[Dict[str, str]] = field(default=None)
settings: Optional[JobSettings] = field(default=None)
Expand Down Expand Up @@ -111,8 +112,6 @@ def __post_init__(self) -> None:
class TranscribeJob(BaseJob):
"""Wordcab API TranscribeJob object."""

audio_duration: int = field(default=0)

def __post_init__(self) -> None:
"""Post-init."""
super().__post_init__()
Expand Down

0 comments on commit 0fdd782

Please sign in to comment.