示例#1
0
 def set_icon_from_steam_api(self, img_url):
     """Sets the game icon from the Steam API URLs"""
     self.icon = ContentFile(steam.get_image(self.steamid, img_url),
                             "%s.jpg" % self.steamid)
示例#2
0
 def get_steam_icon(self, img_url):
     self.icon = ContentFile(steam.get_image(self.steamid, img_url),
                             "%d.jpg" % self.steamid)
示例#3
0
 def set_logo_from_steam_api(self, img_url):
     """Sets the game banner from the Steam API URLs"""
     self.title_logo = ContentFile(steam.get_image(self.steamid, img_url),
                                   "%s.jpg" % self.steamid)
示例#4
0
 def get_steam_logo(self, img_url):
     self.title_logo = ContentFile(steam.get_image(self.steamid, img_url),
                                   "%d.jpg" % self.steamid)
示例#5
0
文件: models.py 项目: lutris/website
 def set_icon_from_steam_api(self, img_url):
     """Sets the game icon from the Steam API URLs"""
     self.icon = ContentFile(
         steam.get_image(self.steamid, img_url), "%s.jpg" % self.steamid
     )
示例#6
0
文件: models.py 项目: lutris/website
 def set_logo_from_steam_api(self, img_url):
     """Sets the game banner from the Steam API URLs"""
     self.title_logo = ContentFile(
         steam.get_image(self.steamid, img_url), "%s.jpg" % self.steamid
     )
示例#7
0
 def get_steam_icon(self, img_url):
     self.icon = ContentFile(steam.get_image(self.steamid, img_url),
                             "%d.jpg" % self.steamid)
示例#8
0
 def get_steam_logo(self, img_url):
     self.title_logo = ContentFile(steam.get_image(self.steamid, img_url),
                                   "%d.jpg" % self.steamid)