Skip to content
Snippets Groups Projects
Commit 809699cf authored by Moritz Strohm's avatar Moritz Strohm
Browse files

started work on ticket 7, re #7

parent 2f40385c
No related branches found
No related tags found
No related merge requests found
...@@ -95,13 +95,14 @@ class TandemMatching ...@@ -95,13 +95,14 @@ class TandemMatching
// ) // )
$sql .= "AND tandem_profiles.id NOT IN ( $sql .= "AND tandem_profiles.id NOT IN (
SELECT request_profile_id FROM tandem_pairs WHERE request_profile_id = :profile_id OR offer_profile_id = :profile_id SELECT request_profile_id AS id FROM tandem_pairs WHERE request_profile_id = :profile_id OR offer_profile_id = :profile_id
UNION UNION
SELECT offer_profile_id FROM tandem_pairs WHERE offer_profile_id = :profile_id OR request_profile_id = :profile_id SELECT offer_profile_id AS id FROM tandem_pairs WHERE offer_profile_id = :profile_id OR request_profile_id = :profile_id
UNION UNION
SELECT request_profile_id FROM tandem_pairs WHERE status = '1' SELECT request_profile_id AS id FROM tandem_pairs WHERE status = '1'
UNION UNION
SELECT offer_profile_id FROM tandem_pairs WHERE status = '1' SELECT offer_profile_id AS id FROM tandem_pairs WHERE status = '1'
GROUP BY id
) "; ) ";
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment