Fixing py3 issue with total being a float.

This commit is contained in:
Samuel Clay 2021-02-25 19:34:21 -05:00
parent c5f4734de4
commit 07e7218d4d

View file

@ -2205,7 +2205,7 @@ class Feed(models.Model):
'~SB%s errors. Time: %s min' % (
self.log_title[:30], self.errors_since_good, total))
random_factor = random.randint(0, total) / 4
random_factor = random.randint(0, int(total)) / 4
next_scheduled_update = datetime.datetime.utcnow() + datetime.timedelta(
minutes = total + random_factor)
original_min_to_decay = self.min_to_decay