File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed
Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ interface SelectedFile {
1111 mime_type : string ;
1212 last_modified_at : string ;
1313 summary : string ;
14+ meta_data : object ;
1415 download_url : string ;
1516 thumbnail_url : string ;
1617 labels : string [ ] ;
@@ -28,6 +29,7 @@ function parseDataset(dataset: string|object) : SelectedFile|null {
2829 mime_type,
2930 last_modified_at,
3031 summary,
32+ meta_data,
3133 download_url,
3234 thumbnail_url,
3335 labels
@@ -41,10 +43,11 @@ function parseDataset(dataset: string|object) : SelectedFile|null {
4143 mime_type,
4244 last_modified_at,
4345 summary,
46+ meta_data,
4447 download_url,
4548 thumbnail_url,
4649 labels
47- } ;
50+ } as SelectedFile ;
4851 }
4952 return null ;
5053}
Original file line number Diff line number Diff line change @@ -144,6 +144,9 @@ def file_path(self):
144144 def summary (self ):
145145 return filesizeformat (self .file_size )
146146
147+ def get_meta_data (self ):
148+ return {}
149+
147150 @classmethod
148151 def generate_filename (cls , filename ):
149152 return default_storage .generate_filename (filename ).lower ()
@@ -190,6 +193,7 @@ def as_dict(self):
190193 'mime_type' : self .mime_type ,
191194 'last_modified_at' : self .last_modified_at ,
192195 'summary' : self .summary ,
196+ 'meta_data' : self .get_meta_data (),
193197 'folderitem_component' : self .folderitem_component ,
194198 'browser_component' : self .browser_component ,
195199 'download_url' : self .get_download_url (),
You can’t perform that action at this time.
0 commit comments