Subversion Repositories SmartDukaan

Rev

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

Rev 17325 Rev 17326
Line 243... Line 243...
243
            brand= bra
243
            brand= bra
244
            count=cow
244
            count=cow
245
            weight=cow*product_view_weight
245
            weight=cow*product_view_weight
246
            source='product_view'
246
            source='product_view'
247
            category_id=3
247
            category_id=3
248
            sql = "insert into newuserlinkssegmentation7days (user_id, brand, category_id, source, count,weight,created) values(%s, %s, %s, %s, %s,%s%s)"
248
            sql = "insert into newuserlinkssegmentation7days (user_id, brand, category_id, source, count,weight,created) values(%s, %s, %s, %s, %s,%s,%s)"
249
            cursor.execute(sql,(user_id,brand, category_id, source, count,weight,datetime.now()))
249
            cursor.execute(sql,(user_id,brand, category_id, source, count,weight,datetime.now()))
250
            conn.commit()
250
            conn.commit()
251
            
251
            
252
    for x, y in userTabletCategory.iteritems():
252
    for x, y in userTabletCategory.iteritems():
253
        for bra,cow in y.iteritems():
253
        for bra,cow in y.iteritems():