sol.models.club
– Clubs¶
-
class
sol.models.club.
Club
(**kwargs)¶ A club, which organizes championships of tourneys.
-
associated_players
¶ Players associated with this club.
-
championships
¶ Championships
organized by this club.
-
countChampionships
()¶ Return the number of championships organized by this club.
-
countPlayers
()¶ Return the number of players associated to this club.
-
country
¶ The name of the club’s country.
-
couplings
¶ Kind of pairing method used to build next round, used as default value for the corresponding field when creating a new championship.
-
description
¶ Description of the club.
-
email
¶ Email address of the club.
-
emblem
¶ Logo of the club, used on badges.
This is just the filename, referencing a picture inside the
sol.emblems_dir
directory.
-
federated_players
¶ Players associated with this federation.
-
idclub
¶ Primary key.
-
isfederation
¶ Flag indicating whether the club is also a federation.
-
nationality
¶ ISO country code to compute national rankings.
-
prizes
¶ Kind of prize-giving, used as default value for the corresponding field when creating a new championship.
This is used to determine which method will be used to assign final prizes. It may be:
- asis
- means that the final prize is the same as the competitor’s points;
- fixed
- means the usual way, that is 18 points to the winner, 16 to the second, 14 to the third, 13 to the fourth, …, 1 point to the 16th, 0 points after that;
- fixed40
similar to fixed, but applied to best fourty scores starting from 1000:
- 1000
- 900
- 800
- 750
- 700
- 650
- 600
- 550
- 500
- 450
- 400
- 375
- 350
- 325
- 300
- 275
- 250
- 225
- 200
- 175
- 150
- 140
- 130
- 120
- 110
- 100
- 90
- 80
- 70
- 60
- 50
- 40
- 35
- 30
- 25
- 20
- 15
- 10
- 5
- 1
- millesimal
- is the classic method, that distributes a multiple of 1000/num-of-competitors.
-
serialize
(serializer)¶ Reduce a single club to a simple dictionary.
Parameters: serializer – a Serializer
instanceReturn type: dict Returns: a plain dictionary containing a flatified view of this club
-
siteurl
¶ Web site URL.
-