Coverage for app/models/eventParticipant.py: 90%
10 statements
« prev ^ index » next coverage.py v7.2.7, created at 2024-07-11 17:51 +0000
« prev ^ index » next coverage.py v7.2.7, created at 2024-07-11 17:51 +0000
1from app.models import*
2from app.models.user import User
3from app.models.event import Event
5class EventParticipant(baseModel):
6 user = ForeignKeyField(User)
7 event = ForeignKeyField(Event, backref="participants")
8 hoursEarned = FloatField(null=True)
10 # Add this property so that we can combine these objects with EventRsvp objects in one array
11 @property
12 def rsvpWaitlist(self):
13 return False