Fix: Preserve expanded state during refresh, format created_time

This commit is contained in:
2026-01-07 00:43:58 +09:00
parent 890ed46e1c
commit 68d12372ad
3 changed files with 16 additions and 1 deletions

View File

@@ -57,6 +57,9 @@ class ModelDownloadItem(ModelBase):
ret['meta'] = {}
else:
ret['meta'] = {}
# Format created_time for frontend
if self.created_time:
ret['created_time'] = self.created_time.strftime('%Y-%m-%d %H:%M:%S')
return ret
@classmethod