Skip to content

Commit

Permalink
Ignore Row.count mistyping (it's shadowed by the untyped namedtuple a…
Browse files Browse the repository at this point in the history
…ttr)
  • Loading branch information
jace committed Jan 3, 2024
1 parent 12c22f7 commit 5fb0253
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions funnel/models/contact_exchange.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,8 @@ def grouped_counts_for(
cls.scanned_at.label('scanned_at'),
Project.id.label('project_id'),
Project.uuid.label('project_uuid'),
Project.timezone.label('project_timezone'),
Project.title.label('project_title'),
Project.timezone.label('project_timezone'),
).filter(
cls.ticket_participant_id == TicketParticipant.id,
TicketParticipant.project_id == Project.id,
Expand Down Expand Up @@ -225,7 +225,7 @@ def grouped_counts_for(
[
DateCountContacts(
r.scan_date,
r.count,
r.count, # type: ignore[arg-type] # FIXME
cls.contacts_for_project_and_date(
account, k, r.scan_date, archived
),
Expand All @@ -235,12 +235,12 @@ def grouped_counts_for(
)
for k, g in groupby(
query,
lambda r: ProjectId(
id=r.project_id,
uuid=r.project_uuid,
uuid_b58=uuid_to_base58(r.project_uuid),
title=r.project_title,
timezone=timezone(r.project_timezone),
lambda row: ProjectId(
id=row.project_id,
uuid=row.project_uuid,
uuid_b58=uuid_to_base58(row.project_uuid),
title=row.project_title,
timezone=timezone(row.project_timezone),
),
)
]
Expand Down

0 comments on commit 5fb0253

Please sign in to comment.