Skip to content

Commit

Permalink
It's fucking 4 am. Voting shit is done and I'm committing. And going …
Browse files Browse the repository at this point in the history
…to bed. Lets not break anything
  • Loading branch information
ClareCat committed Nov 3, 2012
1 parent f4aaabf commit 64a69dd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions vending/Db.py
Expand Up @@ -159,6 +159,8 @@ def chargeUser(self, amount, item_id):
self.user_database.query("UPDATE `%s` SET `balance`=`balance`-%.2f WHERE `uid`=%d" % (getConfig("db_mysql_user_table_alt"), amount, int(Environment.user.uid)))
self.user_database.commit()
return True


def vend(self, tray):
"""
Update the databases' knowledge of the number of items in a tray.
Expand Down

0 comments on commit 64a69dd

Please sign in to comment.