add display of issue title in lists

This commit is contained in:
Thomas Peetz
2025-06-07 21:39:01 +02:00
committed by Thomas Peetz
parent 4a6afcfb76
commit 7bc211c9bd
+7 -1
View File
@@ -1,6 +1,6 @@
import uuid
from datetime import datetime
from typing import Dict, List, Optional, Any
from typing import AnyStr, Dict, List, Optional, Any
from natsort import natsorted
from sqlalchemy import ForeignKey, func
from sqlalchemy.orm import relationship, Mapped, mapped_column
@@ -125,6 +125,12 @@ class Issue(Base, BaseMixin):
return works
def get_full_title(self) -> AnyStr:
full_title: AnyStr = self.issue_number
if self.title:
full_title += ": " + self.title
return full_title
def get_artists(self) -> Dict[Any, List[Any]]:
works: Dict[Any, List[Any]] = {}
for work in self.issue_works: