Subversion Repositories SmartDukaan

Rev

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

Rev 18335 Rev 18338
Line 1850... Line 1850...
1850
def addUserToTable(userList,projectId):
1850
def addUserToTable(userList,projectId):
1851
    counter=0
1851
    counter=0
1852
    for i in userList:
1852
    for i in userList:
1853
        try:
1853
        try:
1854
            userId=i[1]
1854
            userId=i[1]
1855
            if counter==2:
1855
            if counter==20:
1856
                break
1856
                break
1857
            userPresent = session.query(UserCrmCallingData).filter_by(user_id=userId).order_by(desc(UserCrmCallingData.modified)).first()
1857
            userPresent = session.query(UserCrmCallingData).filter_by(user_id=userId).order_by(desc(UserCrmCallingData.modified)).first()
1858
            if userPresent is not None:
1858
            if userPresent is not None:
1859
                if userPresent.user_available==1:
1859
                if userPresent.user_available==1:
1860
                    if userPresent.project_id==projectId:
1860
                    if userPresent.project_id==projectId: