tweak: Add contribution logging.
This commit is contained in:
@@ -126,12 +126,14 @@ class ActiveSubathon:
|
||||
async def add_contribution(
|
||||
self, profileid: int | None, score: float, event_id: int | None
|
||||
) -> SubathonContribution:
|
||||
return await SubathonContribution.create(
|
||||
row = await SubathonContribution.create(
|
||||
subathon_id=self.subathondata.subathon_id,
|
||||
profileid=profileid,
|
||||
score=score,
|
||||
event_id=event_id,
|
||||
)
|
||||
logger.info(f"Added contribution {row!r} to subathon {self.subathondata!r}")
|
||||
return row
|
||||
|
||||
def fetch_contributions(self, **kwargs):
|
||||
query = SubathonContribution.fetch_where(
|
||||
|
||||
Reference in New Issue
Block a user