Remove support for multiple API calls in buffers. Closes #214

This commit is contained in:
2018-05-25 11:35:24 -05:00
parent 8af1e650b7
commit 537d011b40
3 changed files with 16 additions and 10 deletions

View File

@@ -251,7 +251,10 @@ class Session(object):
update_function str: The function to call. This function must be child of self.twitter.twitter
returns a list with all items retrieved."""
max = int(self.settings["general"]["max_api_calls"])-1
if application.streaming_lives():
max = int(self.settings["general"]["max_api_calls"])-1
else:
max = 0
results = []
data = getattr(self.twitter.twitter, update_function)(count=self.settings["general"]["max_tweets_per_call"], *args, **kwargs)
results.extend(data)