fdsfjlk
This commit is contained in:
@@ -37,6 +37,7 @@ class PipeObject:
|
||||
"""
|
||||
hash: str
|
||||
store: str
|
||||
provider: Optional[str] = None
|
||||
tag: List[str] = field(default_factory=list)
|
||||
title: Optional[str] = None
|
||||
url: Optional[str] = None
|
||||
@@ -90,6 +91,7 @@ class PipeObject:
|
||||
# Prepare display values
|
||||
hash_display = str(self.hash or "N/A")
|
||||
store_display = str(self.store or "N/A")
|
||||
provider_display = str(self.provider or "N/A")
|
||||
title_display = str(self.title or "N/A")
|
||||
tag_display = ", ".join(self.tag[:3]) if self.tag else "[]"
|
||||
if len(self.tag) > 3:
|
||||
@@ -134,6 +136,7 @@ class PipeObject:
|
||||
rows = [
|
||||
("Hash", hash_display),
|
||||
("Store", store_display),
|
||||
("Provider", provider_display),
|
||||
("Title", title_display),
|
||||
("Tag", tag_display),
|
||||
("URL", str(url_display)),
|
||||
@@ -226,6 +229,9 @@ class PipeObject:
|
||||
"hash": self.hash,
|
||||
"store": self.store,
|
||||
}
|
||||
|
||||
if self.provider:
|
||||
data["provider"] = self.provider
|
||||
|
||||
if self.tag:
|
||||
data["tag"] = self.tag
|
||||
|
||||
Reference in New Issue
Block a user