コード例 #1
0
def fifth_edition_json():
    c = fifth.Character()

    return jsonify(race=c.race,
                   scores=c.scores,
                   bonuses=c.bonuses,
                   skills=c.skills,
                   personality=c.personality_trait,
                   background=c.background,
                   defining_event=c.defining_event,
                   ideal=c.ideal,
                   bond=c.bond,
                   flaw=c.flaw)
コード例 #2
0
def fifth_edition():
    return render_template("5e.html", c=fifth.Character())