diff --git a/bot/camera.py b/bot/camera.py index e551687..4d0ed56 100644 --- a/bot/camera.py +++ b/bot/camera.py @@ -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()) @@ -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) @@ -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"