diff --git a/files/classes/sub.py b/files/classes/sub.py index 783eacca6..9063908b2 100644 --- a/files/classes/sub.py +++ b/files/classes/sub.py @@ -1,4 +1,4 @@ -from random import Random +import random import time from typing import Optional @@ -50,9 +50,8 @@ class Sub(Base): return [] @lazy - def random_banner(self, random:Optional[Random]=None): + def random_banner(self): if not self.banner_urls: return None - if not random: random = Random() return random.choice(self.banner_urls) @property diff --git a/files/templates/sub/settings.html b/files/templates/sub/settings.html index a62c23986..02773da5f 100644 --- a/files/templates/sub/settings.html +++ b/files/templates/sub/settings.html @@ -69,7 +69,7 @@
- +
@@ -88,7 +88,7 @@ - +