| Line 912... |
Line 912... |
| 912 |
flipkartPricing = __FlipkartPricing(ourSp,ourTp,lowestTp,lowestPossibleTp,None,lowestPossibleSp,prefSellerTp)
|
912 |
flipkartPricing = __FlipkartPricing(ourSp,ourTp,lowestTp,lowestPossibleTp,None,lowestPossibleSp,prefSellerTp)
|
| 913 |
temp.append(flipkartPricing)
|
913 |
temp.append(flipkartPricing)
|
| 914 |
temp.append(mpItem)
|
914 |
temp.append(mpItem)
|
| 915 |
cantCompete.append(temp)
|
915 |
cantCompete.append(temp)
|
| 916 |
|
916 |
|
| - |
|
917 |
itemInfo[:]=[]
|
| 917 |
return cantCompete, buyBoxItems, competitive, competitiveNoInventory, exceptionItems, negativeMargin, cheapButNotPref, prefButNotCheap
|
918 |
return cantCompete, buyBoxItems, competitive, competitiveNoInventory, exceptionItems, negativeMargin, cheapButNotPref, prefButNotCheap
|
| 918 |
|
919 |
|
| 919 |
def getOtherTp(flipkartDetails,val,spm,prefferedSeller):
|
920 |
def getOtherTp(flipkartDetails,val,spm,prefferedSeller):
|
| 920 |
if val.parent_category==10011 or val.parent_category==12001:
|
921 |
if val.parent_category==10011 or val.parent_category==12001:
|
| 921 |
commissionPercentage = spm.competitorCommissionAccessory
|
922 |
commissionPercentage = spm.competitorCommissionAccessory
|
| Line 2104... |
Line 2105... |
| 2104 |
r = requests.get(request_url, auth=('m2z93iskuj81qiid', '0c7ab6a5-98c0-4cdc-8be3-72c591e0add4'))
|
2105 |
r = requests.get(request_url, auth=('m2z93iskuj81qiid', '0c7ab6a5-98c0-4cdc-8be3-72c591e0add4'))
|
| 2105 |
print "Inventory info",r.json()
|
2106 |
print "Inventory info",r.json()
|
| 2106 |
stock_count = int((r.json()['attributeValues'])['stock_count'])
|
2107 |
stock_count = int((r.json()['attributeValues'])['stock_count'])
|
| 2107 |
except:
|
2108 |
except:
|
| 2108 |
stock_count = 0
|
2109 |
stock_count = 0
|
| - |
|
2110 |
finally:
|
| - |
|
2111 |
r={}
|
| 2109 |
|
2112 |
|
| 2110 |
val.ourFlipkartInventory = stock_count
|
2113 |
val.ourFlipkartInventory = stock_count
|
| 2111 |
|
2114 |
|
| 2112 |
def threadsToSpawn(runType,itemInfo,scraper,itemPopulated):
|
2115 |
def threadsToSpawn(runType,itemInfo,scraper,itemPopulated):
|
| 2113 |
if runType == RunType.FAVOURITE:
|
2116 |
if runType == RunType.FAVOURITE:
|