Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for data in record_date_store:
- user = data.user
- amount = data.amount
- ticket = data.ticket
- user.got_A = False
- user.got_B = False
- user.got_C = False
- if (amount < 36000) and (ticket > 0) and (user.got_C == True):
- amount = amount - 36000
- ticket = ticket - 1
- user.got_C = True
- if (amount < 12000) and (ticket > 0) and (user.got_B == True):
- amount = amount - 12000
- ticket = ticket - 1
- user.got_B = True
- if (amount < 8000) and (ticket > 0) and (user.got_A == True):
- amount = amount - 8000
- ticket = ticket - 1
- user.got_A = True
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement