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

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

        return Follower.query(destination=self).count()
Ejemplo n.º 6
0
 def num_followers(self):
     from skylines.model.follower import Follower
     return Follower.query(destination=self).count()
Ejemplo n.º 7
0
 def followers_attracted(self):
     return Follower.query().filter_by(destination=self.user).count()
Ejemplo n.º 8
0
 def users_followed(self):
     return Follower.query().filter_by(source=self.user).count()
Ejemplo n.º 9
0
 def followers_attracted(self):
     return Follower.query().filter_by(destination=self.user).count()
Ejemplo n.º 10
0
 def users_followed(self):
     return Follower.query().filter_by(source=self.user).count()