修復上傳日期
This commit is contained in:
parent
e6fde501e9
commit
b80208cfbc
|
@ -349,7 +349,7 @@ class ArchiveFile
|
||||||
return [data, serial_number, idx]
|
return [data, serial_number, idx]
|
||||||
end
|
end
|
||||||
def get_frontend_data(locale=nil, serial_number=0, idx=0, show_tags=false, more_url=nil)
|
def get_frontend_data(locale=nil, serial_number=0, idx=0, show_tags=false, more_url=nil)
|
||||||
created_at_int = self.created_at.strftime('%Y%m%d').to_i
|
updated_at_int = self.updated_at.strftime('%Y%m%d').to_i
|
||||||
statuses = self.statuses_with_classname.collect do |status|
|
statuses = self.statuses_with_classname.collect do |status|
|
||||||
{
|
{
|
||||||
"status" => status["name"] || "",
|
"status" => status["name"] || "",
|
||||||
|
@ -361,7 +361,7 @@ class ArchiveFile
|
||||||
"archive-file-url" => (files.count != 0 ? files[0]["file-url"] : "javascript:void"),
|
"archive-file-url" => (files.count != 0 ? files[0]["file-url"] : "javascript:void"),
|
||||||
"archive-title" => self.title,
|
"archive-title" => self.title,
|
||||||
"description" => self.description,
|
"description" => self.description,
|
||||||
"created_at" => created_at_int,
|
"created_at" => updated_at_int,
|
||||||
"archive-url" => self.url,
|
"archive-url" => self.url,
|
||||||
"url" => self.url,
|
"url" => self.url,
|
||||||
"statuses" => statuses,
|
"statuses" => statuses,
|
||||||
|
|
Loading…
Reference in New Issue