Exemplo n.º 1
0
def all_issues(args):
    return dict(issues=list(Issue.select()))
Exemplo n.º 2
0
def issue_tags(args):
    return dict(tags=[i.word for i in Keyword.select().where(Keyword.article == Issue.get(args["aid"]))])
Exemplo n.º 3
0
def recent_issues(args):
    return dict(issues=list(Issue.select().order_by(Issue.time.desc()).limit(100)))
Exemplo n.º 4
0
def create_issue(args):
    Title = args["title"]
    Source = args["source"]
    Time = args["time"]
    Text = args["text"]
    return dict(uid=Issue.create(title = Title, source = Source, time = Time, text = Text).id)