Rename ScanListData to ScanListInfo as it containts ScanInfo not ScanData objects
This commit is contained in:
parent
c2b8706fb5
commit
46e9070a33
1 changed files with 4 additions and 4 deletions
|
|
@ -49,8 +49,8 @@ CSMDep = lt.deps.direct_thing_client_dependency(
|
||||||
AutofocusDep = lt.deps.direct_thing_client_dependency(AutofocusThing, "/autofocus/")
|
AutofocusDep = lt.deps.direct_thing_client_dependency(AutofocusThing, "/autofocus/")
|
||||||
|
|
||||||
|
|
||||||
class ScanListData(BaseModel):
|
class ScanListInfo(BaseModel):
|
||||||
"""The data to be sent to the Scan List tab."""
|
"""The information to be sent to the Scan List tab."""
|
||||||
|
|
||||||
scans: list[scan_directories.ScanInfo]
|
scans: list[scan_directories.ScanInfo]
|
||||||
"""The list of scans as ScanInfo objects"""
|
"""The list of scans as ScanInfo objects"""
|
||||||
|
|
@ -589,7 +589,7 @@ class SmartScanThing(lt.Thing):
|
||||||
"""Whether to run a final stitch at the end of a successful scan."""
|
"""Whether to run a final stitch at the end of a successful scan."""
|
||||||
|
|
||||||
@lt.thing_property
|
@lt.thing_property
|
||||||
def scans(self) -> ScanListData:
|
def scans(self) -> ScanListInfo:
|
||||||
"""All the available scans.
|
"""All the available scans.
|
||||||
|
|
||||||
Each scan has a name (which can be used to access it), along with
|
Each scan has a name (which can be used to access it), along with
|
||||||
|
|
@ -598,7 +598,7 @@ class SmartScanThing(lt.Thing):
|
||||||
uses a regular expression, and changes to the naming scheme will
|
uses a regular expression, and changes to the naming scheme will
|
||||||
break it.
|
break it.
|
||||||
"""
|
"""
|
||||||
return ScanListData(
|
return ScanListInfo(
|
||||||
scans=self._scan_dir_manager.all_scans_info(),
|
scans=self._scan_dir_manager.all_scans_info(),
|
||||||
ongoing=None if self._ongoing_scan is None else self._ongoing_scan.name,
|
ongoing=None if self._ongoing_scan is None else self._ongoing_scan.name,
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue