dockers/scraper/schedular.py
def save_log(mycursor, count):
    """
    Insert data into database table of mysql
    """
    ts = time.time()
    st = datetime.datetime.fromtimestamp(ts).strftime('%Y-%m-%d %H:%M:%S')
    call = "INSERT INTO kamernet_log (count, date)"
    call += " VALUES ({},'{}');".format(count, st)
    mycursor.execute(call)
    return call

    Insert data into database table of mysql
    
Insert data into database table of mysql
Insert data into database table of mysql
def save_log(mycursor, count):
    ts = time.time()
    st = datetime.datetime.fromtimestamp(ts).strftime('%Y-%m-%d %H:%M:%S')
    call = "INSERT INTO kamernet_log (count, date)"
    call += " VALUES ({},'{}');".format(count, st)
    mycursor.execute(call)
    return call
def save_log ( mycursor , count ) : ts = time . time ( ) st = datetime . datetime . fromtimestamp ( ts ) . strftime ( '%Y-%m-%d %H:%M:%S' ) call = "INSERT INTO kamernet_log (count, date)" call += " VALUES ({},'{}');" . format ( count , st ) mycursor . execute ( call ) return call
Insert data into database table of mysql
Insert data into database table of mysql
"""
    Insert data into database table of mysql
    """
mycursor
count