Subversion Repositories SmartDukaan

Rev

Rev 19893 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 19893 Rev 22505
Line 25... Line 25...
25
PASSWORD = "5h0p2o2o"
25
PASSWORD = "5h0p2o2o"
26
SUBJECT = "Summary"
26
SUBJECT = "Summary"
27
SMTP_SERVER = "smtp.gmail.com"
27
SMTP_SERVER = "smtp.gmail.com"
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('127.0.0.1','root','shop2020','dtr')
31
 
31
 
32
def getSkuData(storeId, identifier):
32
def getSkuData(storeId, identifier):
33
    if storeId in (1,2,4,5,6,7):
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:
Line 281... Line 281...
281
         
281
         
282
        if con:
282
        if con:
283
            con.close()               
283
            con.close()               
284
 
284
 
285
if __name__ == '__main__':
285
if __name__ == '__main__':
286
    #addToAllOrders(date(2015,1,1))
286
    #addToAllOrders(date(2017,7,1))
287
    #summaryByBrandAndStore()
287
    #summaryByBrandAndStore()
288
    pass
288
    pass
289
289