Subversion Repositories SmartDukaan

Rev

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

Rev 12369 Rev 12370
Line 679... Line 679...
679
    timestamp = datetime.now()
679
    timestamp = datetime.now()
680
    syncAsin()
680
    syncAsin()
681
    fetchFbaSale()
681
    fetchFbaSale()
682
    itemInfo = populateStuff(timestamp,options.runType)
682
    itemInfo = populateStuff(timestamp,options.runType)
683
    itemsToPopulate = 0
683
    itemsToPopulate = 0
-
 
684
    print len(itemInfo)
684
    while (len(itemInfo)>0):
685
    while (len(itemInfo)>0):
685
        if len(itemInfo) > 50:
686
        if len(itemInfo) > 50:
686
            itemsToPopulate = 50
687
            itemsToPopulate = 50
687
        else:
688
        else:
688
            itemsToPopulate = len(itemInfo)
689
            itemsToPopulate = len(itemInfo)
-
 
690
        print itemsToPopulate
689
        exceptionList, negativeMargin, cheapest, amongCheapestAndCanCompete, canCompete, almostCompete, cantCompete = decideCategory(itemInfo[0:itemsToPopulate])
691
        exceptionList, negativeMargin, cheapest, amongCheapestAndCanCompete, canCompete, almostCompete, cantCompete = decideCategory(itemInfo[0:itemsToPopulate])
690
        itemInfo[0:itemsToPopulate] = []
692
        itemInfo[0:itemsToPopulate] = []
691
        commitExceptionList(exceptionList,timestamp,options.runType)
693
        commitExceptionList(exceptionList,timestamp,options.runType)
692
        commitNegativeMargin(negativeMargin,timestamp,options.runType)
694
        commitNegativeMargin(negativeMargin,timestamp,options.runType)
693
        commitCheapest(cheapest,timestamp,options.runType)
695
        commitCheapest(cheapest,timestamp,options.runType)