Subversion Repositories SmartDukaan

Rev

Rev 19294 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
13725 amit.gupta 1
from dtr.main import getStore, tprint, sourceMap
13622 amit.gupta 2
import traceback
3
 
4
 
5
 
6
def main():
7
    for key, val in sourceMap.iteritems():
8
        try:
13725 amit.gupta 9
            tprint("Iterating through affiliate for", val)
13622 amit.gupta 10
            store = getStore(key)
11
            if store is not None:
21773 amit.gupta 12
                if store.store_id!=4 and store.store_id !=2 and store.store_id != 3:
19294 amit.gupta 13
                    store.scrapeStoreOrders()
13622 amit.gupta 14
        except:
13725 amit.gupta 15
            tprint("Error")
13622 amit.gupta 16
            traceback.print_exc()
17
if __name__=='__main__':
18
    main()