Subversion Repositories SmartDukaan

Rev

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

Rev 11624 Rev 11625
Line 2076... Line 2076...
2076
    xstr = lambda s: s or ""
2076
    xstr = lambda s: s or ""
2077
    catalog_client = CatalogClient().get_client()
2077
    catalog_client = CatalogClient().get_client()
2078
    inventory_client = InventoryClient().get_client()
2078
    inventory_client = InventoryClient().get_client()
2079
    message="""<html>
2079
    message="""<html>
2080
            <body>
2080
            <body>
-
 
2081
            <h3 style="color:red;font-weight:bold;">This is test run.Prices are not being updated by system.</h3>
2081
            <h3>Auto Decrease Items</h3>
2082
            <h3>Auto Decrease Items</h3>
2082
            <table border="1" style="width:100%;">
2083
            <table border="1" style="width:100%;">
2083
            <thead>
2084
            <thead>
2084
            <tr><th>Item Id</th>
2085
            <tr><th>Item Id</th>
2085
            <th>Product Name</th>
2086
            <th>Product Name</th>
Line 2362... Line 2363...
2362
    if options.runType =='FULL':
2363
    if options.runType =='FULL':
2363
        write_report(previousAutoFav,nowAutoFav,timestamp,options.runType)
2364
        write_report(previousAutoFav,nowAutoFav,timestamp,options.runType)
2364
    else:
2365
    else:
2365
        write_report(None,None,timestamp,options.runType)
2366
        write_report(None,None,timestamp,options.runType)
2366
    sendAutoPricingMail(successfulAutoDecrease,successfulAutoIncrease)
2367
    sendAutoPricingMail(successfulAutoDecrease,successfulAutoIncrease)
-
 
2368
    if previousProcessingTimestamp[0] is not None:
2367
    processLostBuyBoxItems(previousProcessingTimestamp[0],timestamp)
2369
        processLostBuyBoxItems(previousProcessingTimestamp[0],timestamp)
2368
    if options.runType=='FULL':
2370
    if options.runType=='FULL':
2369
        cheapButNotPrefAlert(timestamp)
2371
        cheapButNotPrefAlert(timestamp)
2370
 
2372
 
2371
if __name__ == '__main__':
2373
if __name__ == '__main__':
2372
    main()
2374
    main()
2373
2375