Skip to content

Conversation

@trand56
Copy link
Collaborator

@trand56 trand56 commented Apr 27, 2020

switched recursive network tweets processing to loop method.

Comment on lines +490 to +491
depthDict = {}
depthDict[0] = [[id2, username]]
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why does this need a dictionary of lists of tuples for all of the different rounds instead of just a single list of tuples of user ids/usernames for the next round?

depthDict[0] = [[id2, username]]

for i in range(0, depth+1):
for l in range(0, len(depthDict[i])):
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

would you please rename this index variable to anything other than the letter 'l' (el)? Even with text highlighting from Github/IDE's, it's still confusing to read (i.e. looks like the number 1).




def get_network_tweets_text(self, id2, username, count, depth):
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this unfortunately conflicts with changes made in the most recent branch merged into master (making the friends-vs-followers toggle on the word cloud page work). Would you please modify this code to mimic those changes to this function?

textsStr = ""
if id2 > 0 or username is not None:
# get bunch of tweets starting with the user of given id
n = depth # goes depth level deep
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what is the value of this alias? it seems to me that it makes the code below less clear.

Comment on lines +501 to +502
friendsid = self.twitter.getFriendsID(depthDict[i][l][0], depthDict[i][l][1], count)
for id3 in friendsid:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this unfortunately conflicts with changes made in the most recent branch merged into master (making the friends-vs-followers toggle on the word cloud page work). Would you please modify this code to mimic those changes to this function?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants