예제 #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)