Skip to content
This repository has been archived by the owner on Feb 8, 2018. It is now read-only.

Commit

Permalink
use variable names in interpolation
Browse files Browse the repository at this point in the history
  • Loading branch information
Changaco committed Jun 14, 2014
1 parent 879a6ef commit 4410397
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions gittip/models/_mixin_team.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,18 +132,18 @@ def __set_take_for(self, member, amount, recorder):
INSERT INTO takes (ctime, member, team, amount, recorder)
VALUES ( COALESCE (( SELECT ctime
FROM takes
WHERE member=%s
AND team=%s
WHERE member=%(member)s
AND team=%(team)s
LIMIT 1
), CURRENT_TIMESTAMP)
, %s
, %s
, %s
, %s
, %(member)s
, %(team)s
, %(amount)s
, %(recorder)s
)
""", (member.username, self.username, member.username, self.username, \
amount, recorder.username))
""", dict(member=member.username, team=self.username, amount=amount,
recorder=recorder.username))

def get_takes(self, for_payday=False):
"""Return a list of member takes for a team.
Expand Down

1 comment on commit 4410397

@chadwhitacre
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This commit lgtm.

Please sign in to comment.