Skip to content

Commit

Permalink
Fixed comments
Browse files Browse the repository at this point in the history
  • Loading branch information
rathin22 committed Mar 9, 2022
1 parent 90e8581 commit 3b81fbb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions flaskr/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,22 +53,22 @@
for uni in uni_list:
c.Search = 'IBM university ("' + uni + '") -filter:replies'
twint.run.Search(c)
#Get the last-added tweets
# Get the last-added tweets
new_tweets = twint.output.tweets_list[counter::]

for tweet_object in new_tweets[:]:
if tweet_object.id_str not in tweet_unis:
tweet_unis[tweet_object.id_str] = [uni]

#If tweet already exists because of mention of another uni name
# If tweet already exists because of mention of another uni name
else:
#Append current uni name to list of uni names of this tweet
# Append current uni name to list of uni names of this tweet
tweet_unis[tweet_object.id_str].append(uni)
new_tweets.remove(tweet_object)

all_tweets += new_tweets

#Update counter to length of entire list, to be able to slice from this point in the next loop
# Update counter to length of entire list, to be able to slice from this point in the next loop
counter = len(twint.output.tweets_list)

conn = mysql.connect()
Expand Down

0 comments on commit 3b81fbb

Please sign in to comment.