mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-14 01:02:59 -07:00
Simplify random Arnold quote choice
This commit is contained in:
parent
0ab9cdf97c
commit
cc45ad0b63
1 changed files with 2 additions and 3 deletions
|
@ -4454,7 +4454,7 @@ class WebInterface(object):
|
|||
@addtoapi("arnold")
|
||||
def random_arnold_quotes(self, **kwargs):
|
||||
""" Get to the chopper! """
|
||||
from random import randint
|
||||
import random
|
||||
quote_list = ['To crush your enemies, see them driven before you, and to hear the lamentation of their women!',
|
||||
'Your clothes, give them to me, now!',
|
||||
'Do it!',
|
||||
|
@ -4487,8 +4487,7 @@ class WebInterface(object):
|
|||
'I just had a terrible thought... What if this is a dream?'
|
||||
]
|
||||
|
||||
random_number = randint(0, len(quote_list) - 1)
|
||||
return quote_list[int(random_number)]
|
||||
return random.choice(quote_list)
|
||||
|
||||
### API ###
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue