Exemplo n.º 1
0
def my_collect():
    u = current_user()
    token = new_csrf_token()
    bs = Board.all()
    t = Collect.all(user_id=u.id)
    l = []
    for c in t:
        l.append(Topic.one(id=c.topic_id))

    return render_template("topic/collect.html", u=u, ms=l, bs=bs, token=token)
Exemplo n.º 2
0
 def collects(self):
     l = Collect.all(topic_id=self.id)
     return l