Subversion Repositories SmartDukaan

Rev

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

Rev 13849 Rev 13850
Line 88... Line 88...
88
        print long(saholicCatalogId['identifier'])
88
        print long(saholicCatalogId['identifier'])
89
        print in_stock
89
        print in_stock
90
        print available_price
90
        print available_price
91
        print dealsMap.get(d_item.id)
91
        print dealsMap.get(d_item.id)
92
        print "++++++++++++++++++++++++++"
92
        print "++++++++++++++++++++++++++"
93
        if available_price > 0 or available_price is None:
93
        if available_price > 0 or available_price is not None:
94
            get_mongo_connection().Catalog.MasterData.update({'identifier':saholicCatalogId['identifier']}, {'$set' : {'available_price':available_price,'updatedOn':to_java_date(timestamp),'in_stock':in_stock}}, multi=True)
94
            get_mongo_connection().Catalog.MasterData.update({'identifier':saholicCatalogId['identifier']}, {'$set' : {'available_price':available_price,'updatedOn':to_java_date(timestamp),'in_stock':in_stock}}, multi=True)
95
        else:
95
        else:
96
            get_mongo_connection().Catalog.MasterData.update({'identifier':saholicCatalogId['identifier']}, {'$set' : {'updatedOn':to_java_date(timestamp),'in_stock':in_stock}}, multi=True)
96
            get_mongo_connection().Catalog.MasterData.update({'identifier':saholicCatalogId['identifier']}, {'$set' : {'updatedOn':to_java_date(timestamp),'in_stock':in_stock}}, multi=True)
97
        
97
        
98
def main():
98
def main():