Added more information to the list of subscriptions
Generate openapi.json / generate-docs (push) Successful in 33s
Generate openapi.json / generate-docs (push) Successful in 33s
This commit is contained in:
1 parent
2622944efe
commit
e37b2b0fb1
2 files changed
+3
-1
No files matched your search
@@ -10,6 +10,7 @@ class AnimeRemove(BaseModel):
|
||||
|
||||
class AnimeEntry(BaseModel):
|
||||
name: str
|
||||
custom_name: str | None = None
|
||||
anilist_id: int
|
||||
last_updated: str | None = None
|
||||
|
||||
|
||||
+2
-1
@@ -153,7 +153,8 @@ def list_active_and_inactive_anime(
|
||||
anime_list=AnimeList()
|
||||
for custom_name, anime_name, anilist_id, is_active, last_updated in rows:
|
||||
entry = AnimeEntry(
|
||||
name=custom_name or anime_name,
|
||||
name=anime_name,
|
||||
custom_name=custom_name,
|
||||
anilist_id=anilist_id,
|
||||
last_updated=None if last_updated is None else last_updated,
|
||||
)
|
||||
|
||||
Reference in new issue
Block a user