Commits

Brad Montgomery committed 42e45ca Draft

only check for api hit counts when sleeping is enabled

Comments (0)

Files changed (1)

                 start = changesets['count'] - remaining_changesets
 
             sleep_enabled = sleep_after and sleep_for
-            hit_count_reached = (api_hit_count > 0 and
+            hit_count_reached = (sleep_enabled and api_hit_count > 0 and
                                  api_hit_count % sleep_after == 0)
-            if sleep_enabled and hit_count_reached:
+            if hit_count_reached:
                 time.sleep(sleep_for)
 
         #TODO sort based on contributions, like github does?