Subversion Repositories SmartDukaan

Rev

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

Rev 17138 Rev 17139
Line 28... Line 28...
28
SMTP_PORT = 587
28
SMTP_PORT = 587
29
client = MongoClient()
29
client = MongoClient()
30
con = mdb.connect('localhost','root','shop2020','dtr')
30
con = mdb.connect('localhost','root','shop2020','dtr')
31
 
31
 
32
def getSkuData(storeId, identifier):
32
def getSkuData(storeId, identifier):
33
    if storeId in (1,2,4,5):
33
    if storeId in (1,2,4,5,6,7):
34
        skuData = client.Catalog.MasterData.find_one({'identifier':identifier, 'source_id':storeId})
34
        skuData = client.Catalog.MasterData.find_one({'identifier':identifier, 'source_id':storeId})
35
    elif storeId == 3:
35
    elif storeId == 3:
36
        skuData = client.Catalog.MasterData.find_one({'secondaryIdentifier':identifier, 'source_id':storeId})
36
        skuData = client.Catalog.MasterData.find_one({'secondaryIdentifier':identifier, 'source_id':storeId})
37
    return skuData
37
    return skuData
38
 
38