Example #1
0
 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))
Example #2
0
 def to_dict(self):
     return dict(id=self.id,
                 event_id=self.event_id,
                 match_id=self.match_id,
                 type=self.type,
                 created_at=to_timestamp(self.created_at),
                 updated_at=to_timestamp(self.updated_at))
Example #3
0
 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))
Example #4
0
 def to_dict(self):
     return dict(id=self.id,
                 event_id=self.event_id,
                 brief=self.brief,
                 forecast=self.forecast,
                 round=self.round,
                 visible=self.visible,
                 status=self.status,
                 start_tm=to_timestamp(self.start_tm),
                 finish_tm=to_timestamp(self.finish_tm),
                 viewers=self.viewers,
                 team1_id=self.team1_id,
                 team1_score=self.team1_score,
                 team1_likes=self.team1_likes,
                 team2_id=self.team2_id,
                 team2_score=self.team2_score,
                 team2_likes=self.team2_likes)
Example #5
0
 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))
Example #6
0
 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))
Example #7
0
 def to_dict(self):
     return dict(id=self.id,
                 match_id=self.match_id,
                 display_order=self.display_order,
                 created_at=to_timestamp(self.created_at),
                 updated_at=to_timestamp(self.updated_at))