Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
nlef committed Sep 27, 2024
1 parent 80f9b5f commit 6f3c370
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions bot/camera.py
Original file line number Diff line number Diff line change
Expand Up @@ -657,11 +657,11 @@ def take_photo(self, ndarr: ndarray = None, force_rotate: bool = True) -> BytesI
response.raw.decode_content = True

if force_rotate:
# os.nice(15) # type: ignore
os.nice(15) # type: ignore
img = self._rotate_img(Image.open(response.raw).convert("RGB"))
img.save(bio, format="JPEG")
img.close()
# os.nice(0) # type: ignore
os.nice(0) # type: ignore
del img
else:
bio.write(response.raw.read())
Expand Down Expand Up @@ -701,7 +701,7 @@ def _get_frame(self, path: str):
def take_video(self) -> Tuple[BytesIO, BytesIO, int, int]:

with self._camera_lock:
# os.nice(15) # type: ignore
os.nice(15) # type: ignore
frame = self._image_to_frame(self.take_photo(force_rotate=False))
height, width, channels = frame.shape
thumb_bio = self._create_thumb(frame)
Expand Down Expand Up @@ -748,7 +748,7 @@ def take_video(self) -> Tuple[BytesIO, BytesIO, int, int]:
del frame_local

out.release()
# os.nice(0) # type: ignore
os.nice(0) # type: ignore

video_bio = BytesIO()
video_bio.name = "video.mp4"
Expand Down

0 comments on commit 6f3c370

Please sign in to comment.