from flask import Blueprint, jsonify, g
from database import Session
from .model import Article
from utils import return_500_if_errors
import random
import string

blueprint = Blueprint('bleprint', __name__)

@blueprint.route("/add", methods=["GET"])
def add():
    new_model = Article(title=''.join([random.choice(string.ascii_letters + string.digits) for n in range(32)]), length=55)
    g.session.add(new_model)
    g.session.commit()
    return "saved"
8b86fe913ca047b8d16ed59663c8b9b27b6bfe5c
<mask token>

<mask token>


@blueprint.route('/add', methods=['GET'])
def add():
    new_model = Article(title=''.join([random.choice(string.ascii_letters +
        string.digits) for n in range(32)]), length=55)
    g.session.add(new_model)
    g.session.commit()
    return 'saved'

<mask token>
blueprint = Blueprint('bleprint', __name__)


@blueprint.route('/add', methods=['GET'])
def add():
    new_model = Article(title=''.join([random.choice(string.ascii_letters +
        string.digits) for n in range(32)]), length=55)
    g.session.add(new_model)
    g.session.commit()
    return 'saved'

from flask import Blueprint, jsonify, g
from database import Session
from .model import Article
from utils import return_500_if_errors
import random
import string
blueprint = Blueprint('bleprint', __name__)


@blueprint.route('/add', methods=['GET'])
def add():
    new_model = Article(title=''.join([random.choice(string.ascii_letters +
        string.digits) for n in range(32)]), length=55)
    g.session.add(new_model)
    g.session.commit()
    return 'saved'

from flask import Blueprint, jsonify, g
from database import Session
from .model import Article
from utils import return_500_if_errors
import random
import string

blueprint = Blueprint('bleprint', __name__)

@blueprint.route("/add", methods=["GET"])
def add():
    new_model = Article(title=''.join([random.choice(string.ascii_letters + string.digits) for n in range(32)]), length=55)
    g.session.add(new_model)
    g.session.commit()
    return "saved"