mirror of
https://github.com/viq/NewsBlur.git
synced 2025-09-18 21:43:31 +00:00
Fixing py3 issue with total being a float.
This commit is contained in:
parent
c5f4734de4
commit
07e7218d4d
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue