Esempio n. 1
0
def pattern():
    with app.app_context():
        mongo.db.operations.drop()
        mongo.db.operations.insert(
            dict(
                name="x",
                pattern="{{ a * b }}"
            )
        )
Esempio n. 2
0
def run():

    with app.app_context():

        mongo.db.operations.insert(dict(name="+", pattern="{{ a + b }}"))

        mongo.db.operations.insert(dict(name="x", pattern="{{ a * b }}"))

        mongo.db.operations.insert(dict(name="d", pattern="{{ a / b }}"))

        mongo.db.operations.insert(dict(name="-", pattern="{{ a - b }}"))

        mongo.db.operations.insert(dict(name="*", pattern="{{ a * b }}"))
Esempio n. 3
0
def pattern():
    with app.app_context():
        mongo.db.operations.drop()
        seeds.run()
Esempio n. 4
0
from webcalc import app, mongo

with app.app_context():

    mongo.db.operations.insert(dict(name="+", pattern="{{ a + b }}"))

    mongo.db.operations.insert(dict(name="x", pattern="{{ a * b }}"))