Subversion Repositories SmartDukaan

Rev

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

from dtr.main import getStore, tprint, sourceMap
import traceback



def main():
    for key, val in sourceMap.iteritems():
        try:
            tprint("Iterating through affiliate for", val)
            store = getStore(key)
            if store is not None:
                if store.store_id!=4 and store.store_id !=2 and store.store_id != 3:
                    store.scrapeStoreOrders()
        except:
            tprint("Error")
            traceback.print_exc()
if __name__=='__main__':
    main()