Skip to content

Commit

Permalink
ref: fix some types in sentry.replays
Browse files Browse the repository at this point in the history
  • Loading branch information
asottile-sentry committed Jun 17, 2024
1 parent 29ff72e commit 7303901
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/sentry/replays/lib/storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ def set(self, segment: RecordingSegmentStorageMeta, value: bytes) -> None:
file.putfile(BytesIO(value), blob_size=settings.SENTRY_ATTACHMENT_BLOB_SIZE)

try:
segment = ReplayRecordingSegment.objects.create(
ReplayRecordingSegment.objects.create(
project_id=segment.project_id,
replay_id=segment.replay_id,
segment_id=segment.segment_id,
Expand Down
2 changes: 1 addition & 1 deletion src/sentry/replays/usecases/reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def fetch_filestore_segments_meta(
limit: int,
) -> list[RecordingSegmentStorageMeta]:
"""Return filestore metadata derived from our Postgres table."""
segments: list[ReplayRecordingSegment] = (
segments = (
ReplayRecordingSegment.objects.filter(project_id=project_id, replay_id=replay_id)
.order_by("segment_id")
.all()[offset : limit + offset]
Expand Down

0 comments on commit 7303901

Please sign in to comment.