pend.py 243 Bytes
Newer Older
Vladislav Rykov's avatar
Vladislav Rykov committed
1
from app.helpers.misc import with_psql
Vladislav Rykov's avatar
Vladislav Rykov committed
2
3
4
5
6
7
8
9
10
11
12
13

@with_psql
def create(cur, appkey, devid, msg):
    query = """
    INSERT INTO
        pend_msgs
    VALUES
        (%s, %s, %s)
    """
    cur.execute(query, (appkey, devid, msg))
    return (True,)