Fix the mega query.

This commit is contained in:
yackob03 2013-11-08 14:04:03 -05:00
parent 8f5710afe5
commit d63e75ddd2

View file

@ -432,7 +432,7 @@ def get_visible_repositories(username=None, include_public=True, limit=None,
.join(Org, JOIN_LEFT_OUTER, on=(Org.username == Repository.namespace))
.join(AdminTeam, JOIN_LEFT_OUTER, on=(Org.id ==
AdminTeam.organization))
.join(TeamRole, JOIN_LEFT_OUTER)
.join(TeamRole, JOIN_LEFT_OUTER, on=(AdminTeam.role == TeamRole.id))
.switch(AdminTeam)
.join(AdminTeamMember, JOIN_LEFT_OUTER, on=(AdminTeam.id ==
AdminTeamMember.team))