Loading rpc/methods.py +3 −3 Original line number Diff line number Diff line Loading @@ -32,7 +32,7 @@ from rpc.const import * import logging import pyvips import tempfile from resources.helpers import handle_local_file from resources.helpers import handle_local_file as _handle_local_file logger = logging.getLogger(__name__) Loading Loading @@ -2763,7 +2763,7 @@ def project_properties(user: User, project_id: int) -> List[dict]: def picture_rotate_crop( user: User, resource_id: int, rotation: float = 0.0, rotation: float = 0, top_crop: int = 0, right_crop: int = 0, bottom_crop: int = 0, Loading Loading @@ -2817,7 +2817,7 @@ def picture_rotate_crop( img.height - top_crop - bottom_crop, ) img.write_to_file(tmp_pic_path) new_file_id = handle_local_file(tmp_pic_path, file_instance.project) new_file_id = _handle_local_file(tmp_pic_path, file_instance.project) if not replace_file(user, new_file_id, resource_id): raise ServiceException(UNKNOWN_ERROR) reloaded_file = File.objects.get(id=resource_id) Loading Loading
rpc/methods.py +3 −3 Original line number Diff line number Diff line Loading @@ -32,7 +32,7 @@ from rpc.const import * import logging import pyvips import tempfile from resources.helpers import handle_local_file from resources.helpers import handle_local_file as _handle_local_file logger = logging.getLogger(__name__) Loading Loading @@ -2763,7 +2763,7 @@ def project_properties(user: User, project_id: int) -> List[dict]: def picture_rotate_crop( user: User, resource_id: int, rotation: float = 0.0, rotation: float = 0, top_crop: int = 0, right_crop: int = 0, bottom_crop: int = 0, Loading Loading @@ -2817,7 +2817,7 @@ def picture_rotate_crop( img.height - top_crop - bottom_crop, ) img.write_to_file(tmp_pic_path) new_file_id = handle_local_file(tmp_pic_path, file_instance.project) new_file_id = _handle_local_file(tmp_pic_path, file_instance.project) if not replace_file(user, new_file_id, resource_id): raise ServiceException(UNKNOWN_ERROR) reloaded_file = File.objects.get(id=resource_id) Loading