swap order

pull/59/head
justcool393 2022-12-09 21:16:18 -06:00
parent 548ef45dbf
commit 8335a13519
1 changed files with 1 additions and 1 deletions

View File

@ -50,8 +50,8 @@ class Sub(Base):
@lazy
def random_banner(self, random:Optional[Random]=None):
if not random: random = Random()
if not self.banner_urls: return None
if not random: random = Random()
return random.choice(self.banner_urls)
@property