# -*- coding: utf-8 -*-
"""
    Autor: Jorge A. Toro
"""
import sys
from DB.pgSQL import PgSQL

def insertLog(data=None): 
    """ 
        Query, que inserta la data en la tabla de Log 
    """
    query = """INSERT INTO log_gps (name, address, evento, fecha, posicion, ubicacion, grados, altura, satelites, estado_data, trama) 
               VALUES (%(id)s, %(address)s, 
                       %(codEvent)s, %(datetime)s, 
                       %(position)s, %(geocoding)s, 
                       %(course)s, %(altura)s, %(gpsSource)s, 
                       %(ageData)s, %(data)s)
            """
    db = PgSQL()
    return db.exe(query, data)
    

61d5d077f88272efaf8e89df3d21e15af453f99f
<mask token>

<mask token>


def insertLog(data=None):
    """ 
        Query, que inserta la data en la tabla de Log 
    """
    query = """INSERT INTO log_gps (name, address, evento, fecha, posicion, ubicacion, grados, altura, satelites, estado_data, trama) 
               VALUES (%(id)s, %(address)s, 
                       %(codEvent)s, %(datetime)s, 
                       %(position)s, %(geocoding)s, 
                       %(course)s, %(altura)s, %(gpsSource)s, 
                       %(ageData)s, %(data)s)
            """
    db = PgSQL()
    return db.exe(query, data)

<mask token>
import sys
from DB.pgSQL import PgSQL


def insertLog(data=None):
    """ 
        Query, que inserta la data en la tabla de Log 
    """
    query = """INSERT INTO log_gps (name, address, evento, fecha, posicion, ubicacion, grados, altura, satelites, estado_data, trama) 
               VALUES (%(id)s, %(address)s, 
                       %(codEvent)s, %(datetime)s, 
                       %(position)s, %(geocoding)s, 
                       %(course)s, %(altura)s, %(gpsSource)s, 
                       %(ageData)s, %(data)s)
            """
    db = PgSQL()
    return db.exe(query, data)

# -*- coding: utf-8 -*-
"""
    Autor: Jorge A. Toro
"""
import sys
from DB.pgSQL import PgSQL

def insertLog(data=None): 
    """ 
        Query, que inserta la data en la tabla de Log 
    """
    query = """INSERT INTO log_gps (name, address, evento, fecha, posicion, ubicacion, grados, altura, satelites, estado_data, trama) 
               VALUES (%(id)s, %(address)s, 
                       %(codEvent)s, %(datetime)s, 
                       %(position)s, %(geocoding)s, 
                       %(course)s, %(altura)s, %(gpsSource)s, 
                       %(ageData)s, %(data)s)
            """
    db = PgSQL()
    return db.exe(query, data)
    
