Subversion Repositories SmartDukaan

Rev

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

Rev 19868 Rev 19871
Line 9581... Line 9581...
9581
            creditorMap['Sanctions'] = sanctionsList
9581
            creditorMap['Sanctions'] = sanctionsList
9582
            returnMap[sanction.creditor_id] = creditorMap
9582
            returnMap[sanction.creditor_id] = creditorMap
9583
                    
9583
                    
9584
    return returnMap
9584
    return returnMap
9585
 
9585
 
9586
def get_user_sanction_details_paginated(userId, creditorId, limit=0, offset=0,sort):
9586
def get_user_sanction_details_paginated(userId, creditorId, limit=0, offset=0,sort="Default"):
9587
    totalCount = UserSanction.query.filter(UserSanction.active == True).count()
9587
    totalCount = UserSanction.query.filter(UserSanction.active == True).count()
9588
    hasMore = False
9588
    hasMore = False
9589
    if limit >0 and (limit+offset) < totalCount:
9589
    if limit >0 and (limit+offset) < totalCount:
9590
        hasMore = True 
9590
        hasMore = True 
9591
    us_query = UserSanction.query
9591
    us_query = UserSanction.query