channel-folders: Add order field and backfill it alphabetically.

This commit is contained in:
Shubham Padia
2025-08-05 15:12:39 +00:00
committed by Tim Abbott
parent d609bd44a9
commit 40132e200b
5 changed files with 60 additions and 0 deletions

View File

@@ -15,6 +15,7 @@ class ChannelFolderDict(TypedDict):
name: str
description: str
rendered_description: str
order: int
creator_id: int | None
date_created: int
is_archived: bool
@@ -49,6 +50,7 @@ def get_channel_folder_dict(channel_folder: ChannelFolder) -> ChannelFolderDict:
name=channel_folder.name,
description=channel_folder.description,
rendered_description=channel_folder.rendered_description,
order=channel_folder.order,
date_created=date_created,
creator_id=channel_folder.creator_id,
is_archived=channel_folder.is_archived,