Skip to content

Instantly share code, notes, and snippets.

@Mikodes
Created October 17, 2017 09:37
Show Gist options
  • Save Mikodes/ddafe4f286ea920308178369947641d6 to your computer and use it in GitHub Desktop.
Save Mikodes/ddafe4f286ea920308178369947641d6 to your computer and use it in GitHub Desktop.
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)
@chef88val
Copy link

"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"
}
]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment