Skip to content

Commit

Permalink
chip icon
Browse files Browse the repository at this point in the history
  • Loading branch information
virtue authored and virtue committed May 28, 2012
1 parent 1f70ef3 commit ec9e3bd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions database.py
Expand Up @@ -296,12 +296,12 @@ def init_database():


#room = Room(exchange="dealer_exchange_1",blind=10,max_player=9)
item = Commodity.new( 201201, "1000 chips", "1000 chips", 10, "NONE", 1000)
item = Commodity.new( 201202, "2000 chips", "2000 chips", 19, "NONE", 2000)
item = Commodity.new( 201203, "5000 chips", "5000 chips", 46, "NONE", 5000)
item = Commodity.new( 201204, "10000 chips", "10000 chips", 90, "NONE", 10000)
item = Commodity.new( 201205, "20000 chips", "20000 chips", 175, "NONE", 20000)
item = Commodity.new( 201206, "50000 chips", "50000 chips", 440, "NONE", 50000)
item = Commodity.new( 201201, "1000 chips", "1000 chips", 10, "./static/chips_icon.png", 1000)
item = Commodity.new( 201202, "2000 chips", "2000 chips", 19, "./static/chips_icon.png", 2000)
item = Commodity.new( 201203, "5000 chips", "5000 chips", 46, "./static/chips_icon.png", 5000)
item = Commodity.new( 201204, "10000 chips", "10000 chips", 90, "./static/chips_icon.png", 10000)
item = Commodity.new( 201205, "20000 chips", "20000 chips", 175, "./static/chips_icon.png", 20000)
item = Commodity.new( 201206, "50000 chips", "50000 chips", 440, "./static/chips_icon.png", 50000)
ting = User.new(username="ting", password=hashlib.md5("123").hexdigest())
mile = User.new(username="mile", password=hashlib.md5("123").hexdigest())
mamingcao = User.new(username="mamingcao", password=hashlib.md5("123").hexdigest())
Expand Down
4 changes: 2 additions & 2 deletions facebook_controller.py
Expand Up @@ -174,8 +174,8 @@ def _process_data(self, data,method):
item = Commodity.find(commodity_id = int(item_id))
itemInfo = {}
itemInfo['item_id'] = item_id
itemInfo['title'] = item.title
itemInfo['price'] = item.price
itemInfo['title'] = item.title
itemInfo['price'] = item.price
itemInfo['description'] = item.description
itemInfo['image_url'] = item.image_url
response = {"content":[itemInfo], "method":request_type}
Expand Down

0 comments on commit ec9e3bd

Please sign in to comment.