Fixed data location bug in super_like
1 files changed, 5 insertions(+), 3 deletions(-)

M tinder/api.py
M tinder/api.py +5 -3
@@ 197,11 197,11 @@ class API(object):
             log.info('X You have no available Super Likes')
 
         self.super_likes_remaining = \
-            data['rating']['super_likes']['remaining']
+            data['super_likes']['remaining']
         self.super_likes_allotment = \
-            data['rating']['super_likes']['allotment']
+            data['super_likes']['allotment']
         self.super_likes_resets_at = \
-            data['rating']['super_likes']['resets_at']
+            data['super_likes']['resets_at']
         if self.debug:
             log.info('* Super Likes Remaining: {0} (out of {1})'.format(
                 self.super_likes_remaining,

          
@@ 223,6 223,8 @@ class API(object):
                 data['rating']['super_likes']['remaining']
             self.super_likes_allotment = \
                 data['rating']['super_likes']['allotment']
+            self.super_likes_resets_at = \
+                data['rating']['super_likes']['resets_at']
             if self.debug:
                 log.info('* Super Likes Remaining: {0} (out of {1})'.format(
                     self.super_likes_remaining,