Subversion Repositories SmartDukaan

Rev

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

Rev 18268 Rev 18269
Line 1787... Line 1787...
1787
    result = fetchResult("select * from useractive where user_id=%d"%(user.user_id))
1787
    result = fetchResult("select * from useractive where user_id=%d"%(user.user_id))
1788
    if result == ():
1788
    if result == ():
1789
        obj.last_active = None
1789
        obj.last_active = None
1790
    else:
1790
    else:
1791
        obj.last_active =datetime.strftime(result[0][1], '%d/%m/%Y %H:%M:%S')
1791
        obj.last_active =datetime.strftime(result[0][1], '%d/%m/%Y %H:%M:%S')
1792
        
1792
    obj.name = user.name    
1793
    obj.contact = user.contact1
1793
    obj.contact = user.contact1
1794
    obj.timeStamp=None
1794
    obj.timeStamp=None
1795
    
1795
    
1796
#     details = get_mongo_connection().Dtr.merchantOrder.find({"userId":user.user_id}).sort([("createdOn",-1)]).limit(1)
1796
#     details = get_mongo_connection().Dtr.merchantOrder.find({"userId":user.user_id}).sort([("createdOn",-1)]).limit(1)
1797
#     for detail in details:
1797
#     for detail in details: