Skip to content
This repository has been archived by the owner on Sep 17, 2021. It is now read-only.

Fix for issue 1150 #1153

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions security_monkey/views/item.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,6 @@ def get(self):
query = query.filter(Account.name.in_(accounts))
if 'accounttypes' in args:
accounttypes = args['accounttypes'].split(',')
query = query.join((Account, Account.id == Item.account_id))
query = query.join((AccountType, AccountType.id == Account.account_type_id))
query = query.filter(AccountType.name.in_(accounttypes))
if 'technologies' in args:
Expand All @@ -248,7 +247,6 @@ def get(self):
if 'active' in args:
active = args['active'].lower() == "true"
query = query.filter(ItemRevision.active == active)
query = query.join((Account, Account.id == Item.account_id))
query = query.filter(Account.active == True)
if 'searchconfig' in args:
searchconfig = args['searchconfig']
Expand Down