Workout With Friends
Stay fit with a little motivation
|
Public Member Functions | |
def | description |
def | __unicode__ |
def | create |
![]() | |
def | add_competitor |
Add the user to the list of competitors. | |
def | remove_competitor |
Remove the user from the list of competitors. | |
def | is_device_challenge |
Check if the challenge requires the use of a heart rate device. | |
def | is_weight_challenge |
Check if the challenge is a weight lifting challenge. | |
def | is_speed_challenge |
Check if the challenge is a speed challenge. | |
def | is_endurance_challenge |
Check if the challenge is an endurance challenge. | |
def | is_bench_press_challenge |
Check if the challenge is a bench press challenge. | |
def | is_squat_challenge |
Check if the challenge is a squat challenge. | |
def | is_completed |
Check if both competitors have uploaded a workout. | |
def | user_is_winner |
Check if given user is the winner of the challenge. | |
![]() | |
def | __str__ |
def | __repr__ |
def | get_by_id |
def | create |
def | delete |
![]() | |
def | index_type |
def | index_id |
def | index_data |
def | add_index |
Add a fulltext index for this instance. | |
def | delete_index |
Delete the fulltext index for this instance. | |
def | update_index |
Update the fulltext index for this instance. |
Static Public Attributes | |
tuple | distance = Column(SmallInteger(unsigned=True), nullable=False, doc='distance in meters') |
![]() | |
tuple | id = Column(Integer(unsigned=True), primary_key=True) |
tuple | user_id = Column(Integer(unsigned=True), ForeignKey('users.id'), nullable=False) |
tuple | challenge_type_id |
tuple | created_at = Column(DateTime, nullable=False, default=current_timestamp) |
tuple | competitors |
![]() | |
tuple | query = DBSession.query_property() |
![]() | |
list | index_fields = [] |
Static Private Attributes | |
string | __tablename__ = 'speed_challenges' |
dictionary | __mapper_args__ = {'polymorphic_identity': ChallengeType.lookup_data.index('speed') + 1} |
Additional Inherited Members | |
![]() | |
creator = property(_get_creator, _set_creator) |
Definition at line 161 of file challenge.py.
def wowf.models.challenge.SpeedChallenge.__unicode__ | ( | self | ) |
Reimplemented from wowf.models.meta.Base.
Definition at line 172 of file challenge.py.
def wowf.models.challenge.SpeedChallenge.create | ( | cls, | |
creator, | |||
distance | |||
) |
Definition at line 176 of file challenge.py.
def wowf.models.challenge.SpeedChallenge.description | ( | self | ) |
Definition at line 168 of file challenge.py.
|
staticprivate |
Definition at line 164 of file challenge.py.
|
staticprivate |
Definition at line 163 of file challenge.py.
|
static |
Definition at line 165 of file challenge.py.