forked from mmmaly/chcemvediet
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
937665e
commit c4922ce
Showing
4 changed files
with
29 additions
and
29 deletions.
There are no files selected for viewing
15 changes: 0 additions & 15 deletions
15
chcemvediet/apps/inforequests/tests/render_query_pattern.py
This file was deleted.
Oops, something went wrong.
15 changes: 15 additions & 0 deletions
15
chcemvediet/apps/inforequests/tests/render_query_patterns.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
from poleno.utils.misc import squeeze | ||
|
||
|
||
base = [ | ||
u'FROM "accounts_profile" WHERE "accounts_profile"."user_id" = %s LIMIT 21', | ||
squeeze(u""" | ||
SELECT COUNT\(\*\) FROM "mail_message" | ||
INNER JOIN "inforequests_inforequestemail" ON \( "mail_message"."id" = "inforequests_inforequestemail"."email_id" \) | ||
INNER JOIN "inforequests_inforequest" ON \( "inforequests_inforequestemail"."inforequest_id" = "inforequests_inforequest"."id" \) | ||
WHERE \("inforequests_inforequestemail"."type" = %s | ||
AND "inforequests_inforequest"."applicant_id" = %s | ||
AND "inforequests_inforequest"."closed" = %s\) | ||
"""), | ||
u'FROM "invitations_invitationsupply" WHERE "invitations_invitationsupply"."user_id" = %s LIMIT 21', | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters