def to_dict(self): return { 'id': self.id, 'title': self.title, 'display_order': self.display_order, 'visible': self.visible, 'logo': add_image_domain(self.logo), 'image': add_image_domain(self.image), 'created_at': self.created_at, }
def to_dict(self): return dict( id=self.id, title=self.title, image=add_image_domain(self.image), large_image=add_image_domain(self.large_image), type=self.type, ref_id=self.ref_id, data=self.data, position=self.position, created_at=self.created_at, updated_at=self.updated_at )
def to_dict(self): return dict(id=self.id, name=self.name, num=self.num, image=add_image_domain(self.image), created_at=to_timestamp(self.created_at), updated_at=to_timestamp(self.updated_at))
def to_dict(self): return dict(id=self.id, title=self.title, image=add_image_domain(self.image), url=self.url, created_at=self.created_at, updated_at=self.updated_at)
def to_dict(self): return dict(id=self.id, name=self.name, english_name=self.english_name, head_coach=self.head_coach, home_court=self.home_court, website=self.website, badge=add_image_domain(self.badge), badgeCode=self.badge)
def to_dict(self): return { 'id': self.id, 'title': self.title, 'visible': self.visible, 'type': self.type, 'image': add_image_domain(self.image), 'imageCode': self.image, 'created_at': self.created_at, }
def to_dict(self): return dict(id=self.id, name=self.name, english_name=self.english_name, height=self.height, birthday=self.birthday, weight=self.weight, nationality=self.nationality, photo=add_image_domain(self.photo), photoCode=self.photo)
def to_dict(self): return dict(id=self.id, column_id=self.column_id, title=self.title, image=add_image_domain(self.image), type=self.type, ref_id=self.ref_id, display_order=self.display_order, created_at=self.created_at, updated_at=self.updated_at)
def to_dict(self): return dict(id=self.id, title=self.title, brief=self.brief, visible=self.visible, top=self.top, image=add_image_domain(self.image), publish_tm=self.publish_tm, created_at=self.created_at, updated_at=self.updated_at)
def to_dict(self): return dict(id=self.id, title=self.title, type=self.type, display_order=self.display_order, visible=self.visible, image=add_image_domain(self.image), url=self.url, ref_id=self.ref_id, created_at=to_timestamp(self.created_at), updated_at=to_timestamp(self.updated_at))
def to_dict(self): return { 'id': self.id, 'title': self.title, 'event_id': self.event_id, 'brief': self.brief, 'visible': self.visible, 'url': self.url, 'created_at': self.created_at, 'image': add_image_domain(self.image), }
def to_dict(self): return { 'id': self.id, 'title': self.title, 'site': self.site, 'origin': self.origin, 'content': self.content, 'image': add_image_domain(self.image), 'created_at': self.created_at, 'publish_tm': self.publish_tm }
def to_dict(self): return dict(id=self.id, title=self.title, type=self.type, visible=self.visible, subtitle=self.subtitle, top=self.top, site=self.site, image=add_image_domain(self.image), imageCode=self.image, content=self.content, created_at=self.created_at)
def to_dict(self): return dict(id=self.id, title=self.title, site=self.site, display_order=self.display_order, image=add_image_domain(self.image), imageCode=self.image, play_url=self.play_url, play_html=self.play_html, play_code=self.play_code, isvr=self.isvr, publish_tm=to_timestamp(self.publish_tm))
def to_dict(self): return dict(id=self.id, event_id=self.event_id, platform=self.platform, display_order=self.display_order, visible=self.visible, type=self.type, title=self.title, target_id=self.target_id, parent=self.parent, url=self.url, image=add_image_domain(self.image))
def to_dict(self): return dict(id=self.id, title=self.title, type=self.type, top=self.top, visible=self.visible, image=add_image_domain(self.image), imageCode=self.image, play_url=self.play_url, play_code=self.play_code, isvr=self.isvr, created_at=self.created_at, publish_tm=self.publish_tm)
def to_dict(self): return { 'id': self.id, 'title': self.title, 'program_id': self.program_id, 'play_url': self.play_url, 'origin': self.origin, 'site': self.site, 'brief': self.brief, 'image': add_image_domain(self.image), 'play_code': self.play_code, 'play_html': self.play_html, 'isvr': self.isvr, 'publish_tm': self.publish_tm, }
def to_dict(self): return dict(id=self.id, match_id=self.match_id, title=self.title, type=self.type, visible=self.visible, subtitle=self.subtitle, site=self.site, origin=self.origin, content=self.content, image=add_image_domain(self.image), imageCode=self.image, play_url=self.play_url, play_code=self.play_code, play_html=self.play_html, isvr=self.isvr, publish_tm=to_timestamp(self.publish_tm))
def add_info_image(video): video.image = add_image_domain(video.image) return video
def to_simple_dict(self): return { 'title': self.title, 'image': add_image_domain(self.image), }
def get_resource_info(item): data = eval(item['data']) if 'cid' in data.keys(): item['cid'] = data['cid'] item['image'] = add_image_domain(data['image']) return item
def add_info_image(news): news.image = add_image_domain(news.image) return news