Example #1
0
 def follows(self, other):
     assert isinstance(other, User)
     from skylines.model.follower import Follower
     return Follower.follows(self, other)
Example #2
0
    def num_following(self):
        from skylines.model.follower import Follower

        return Follower.query(source=self).count()
Example #3
0
 def follows(self, other):
     assert isinstance(other, User)
     from skylines.model.follower import Follower
     return Follower.follows(self, other)
Example #4
0
 def num_following(self):
     from skylines.model.follower import Follower
     return Follower.query(source=self).count()
Example #5
0
    def num_followers(self):
        from skylines.model.follower import Follower

        return Follower.query(destination=self).count()
Example #6
0
 def num_followers(self):
     from skylines.model.follower import Follower
     return Follower.query(destination=self).count()
 def followers_attracted(self):
     return Follower.query().filter_by(destination=self.user).count()
 def users_followed(self):
     return Follower.query().filter_by(source=self.user).count()
Example #9
0
 def followers_attracted(self):
     return Follower.query().filter_by(destination=self.user).count()
Example #10
0
 def users_followed(self):
     return Follower.query().filter_by(source=self.user).count()