From d25cdf931eb27269082889e8dcf78d87fcae93eb Mon Sep 17 00:00:00 2001 From: rlx Date: Wed, 1 Nov 2017 16:10:50 +0000 Subject: [PATCH] fix --- re.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/re.py b/re.py index 2b358f8..071dbe1 100644 --- a/re.py +++ b/re.py @@ -51,11 +51,11 @@ class Engine: def __init__(self): pass - def _shift_clips(clips): + def _shift_clips(self, clips): index = random.randrange(len(clips)) return clips[index:] + clips[:index - 1] - def get_videos(user): + def get_videos(self, user): products = [] for event in user['events']: if 'product' in event['data']: