Created
October 17, 2017 09:37
-
-
Save Mikodes/ddafe4f286ea920308178369947641d6 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
class LadderPrize(Prize): | |
type = StringField(default='TICKET') | |
ladder = ObjectIdField(db_field='ladder') | |
class PermanencePrize(Prize): | |
type = StringField(default='PERMANENCE') | |
competition = ObjectIdField(db_field='competition') | |
competition_type = StringField(db_field='ct') | |
class CashPrize(Prize): | |
type = StringField(default='REAL_CASH') | |
fixed = BooleanField(default=False) | |
amount = DecimalField(required=True, default=0.00) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
"prizes_config": [
{
"from_position": "1.00",
"to_position": "1.00",
"type": [
{
"type": "FAKE_CASH",
"amount": "40.00",
"fixed": true,
"_cls": "PointPrize"
},
{
"type": "FAKE_CASH",
"amount": "55.00",
"fixed": true,
"_cls": "CashPrize"
},
{
"type": "PERMANENCE",
"competition": "59ef3c23719f76191ff56015",
"competition_type": "l",
"_cls": "PermanencePrize"
}
],
"position_type": "m"
}
]