Subversion Repositories SmartDukaan

Rev

Rev 17327 | Rev 17329 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 17327 Rev 17328
Line 359... Line 359...
359
 
359
 
360
def userReplaceData(userId,brand,category,source):
360
def userReplaceData(userId,brand,category,source):
361
    print 'Data that needs to be updated for', userId,brand,category
361
    print 'Data that needs to be updated for', userId,brand,category
362
    conn = getDbConnection()
362
    conn = getDbConnection()
363
    cursor = conn.cursor()
363
    cursor = conn.cursor()
-
 
364
    print REPLACE_QUERY%(userId,brand,category,source)
364
    cursor.execute(REPLACE_QUERY,(userId,brand,category,source))
365
    cursor.execute(REPLACE_QUERY,(userId,brand,category,source))
365
    conn.commit()
366
    conn.commit()
366
    conn.close()
367
    conn.close()
367
 
368
 
368
def insertNewUserLinkDetails(userId,brand,category):
369
def insertNewUserLinkDetails(userId,brand,category):