Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion twitter_api/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,8 +228,9 @@ def fetch_followers_for_user(self, user, all=False, count=200, **kwargs):
user._followers_ids = []
# user.followers.clear() # this make m2m_history record with count 0 - so its wrong
cursor = tweepy.Cursor(user.tweepy._api.followers, id=user.pk, count=count)
extra_fields = {'fetched': timezone.now()}
for instance in cursor.items():
instance = self.parse_response_object(instance)
instance = self.parse_response_object(instance, extra_fields)
instance = self.get_or_create_from_instance(instance)
# TODO: NOT USE .add method for users, because of ManyToManyHistoryField
# TODO: handle first version in right way - empty time_from field.
Expand Down