v0.2.8: Fix callback AttributeError and enhance metadata display

This commit is contained in:
2026-01-07 15:09:12 +09:00
parent 68d12372ad
commit d0dfef1445
5 changed files with 36 additions and 5 deletions

View File

@@ -57,9 +57,10 @@ 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')
# JS UI expects file_size (with underscore)
ret['file_size'] = self.filesize or 0
return ret
@classmethod