Subversion Repositories SmartDukaan

Rev

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

Rev 14041 Rev 14043
Line 525... Line 525...
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):
529
def resetCache(userId):
-
 
530
    try:
530
    mc.delete(userId)
531
        mc.delete(userId)
-
 
532
        return {1:'Cache cleared.'}
-
 
533
    except:
-
 
534
        return {0:'Unable to clear cache.'}
-
 
535
    
531
 
536
 
532
def main():
537
def main():
533
    x = getNewDeals(1, 0, 0, 500, None, None)
538
    x = getNewDeals(1, 0, 0, 500, None, None)
534
    for i in x:
539
    for i in x:
535
        print i['_id'],
540
        print i['_id'],