Skip to content

Commit

Permalink
Remove obsolete comments
Browse files Browse the repository at this point in the history
  • Loading branch information
schedutron committed May 1, 2019
1 parent b2b4dbf commit 650ba19
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions chirps/managers.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
screen_name = os.environ['SCREEN_NAME']

# Perhaps using a database would be better if frequent updation is needed.
# This gets links to files containing relevant data.

# Add hashtabgs to tweets - they generate more views.
# Simply use Twitter to add keywords to the database instead of using Dropbox.
# Move fast and break things!
Expand Down Expand Up @@ -54,8 +54,7 @@ def __init__(self, identifier, stream_handler, account_handler, url, action_func

def run(self):
"""This is the function for main listener loop."""
# TBD: Add periodic data checks to get updated data for messages, bads.
# Listen to bad people.
# TBD: Add periodic data checks to get updated data for messages.
print(self.identifier, "started.")
if self.identifier == 'Streamer':
rel_name = 'accounts'
Expand All @@ -78,7 +77,7 @@ def run(self):
# we have to ensure that the id is the person we're tracking. Maybe 'in' isn't good for that.
continue
kwargs = {'tweet': tweet, 'handler': self.handler, 'db_access': self.db_access}
self.action_func(kwargs) # Note the nontraditional use of kwargs here.
self.action_func(kwargs) # Note the nontraditional use of kwargs here. Fix it soon.
except Exception as exception:
# Loop shouldn't stop if error occurs, and exception should be
# logged.
Expand Down Expand Up @@ -123,7 +122,7 @@ def run(self):
word = functions.get_keyword(cur)
# Add '-from:TheRealEqualizer' in the following line.
tweets = self.handler.search.tweets(
q=word+subtract_string, count=100,
q=word+subtract_string, count=25,
lang="en")["statuses"] # Understand OR operator.
print("Chosen word:", word)

Expand Down

0 comments on commit 650ba19

Please sign in to comment.