Subversion Repositories SmartDukaan

Rev

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

Rev 14038 Rev 14041
Line 524... Line 524...
524
        get_mongo_connection().Catalog.MasterData.update({'_id':data['sku']},{"$set":{'updatedOn':to_java_date(datetime.now())}},multi=False)
524
        get_mongo_connection().Catalog.MasterData.update({'_id':data['sku']},{"$set":{'updatedOn':to_java_date(datetime.now())}},multi=False)
525
        return {1:"Data updated successfully"}
525
        return {1:"Data updated successfully"}
526
    except:
526
    except:
527
        return {0:"Data not updated."}
527
        return {0:"Data not updated."}
528
 
528
 
-
 
529
def resetCache(userId):
-
 
530
    mc.delete(userId)
529
 
531
 
530
def main():
532
def main():
531
    x = getNewDeals(1, 0, 0, 500, None, None)
533
    x = getNewDeals(1, 0, 0, 500, None, None)
532
    for i in x:
534
    for i in x:
533
        print i['_id'],
535
        print i['_id'],