fix: don't copy file modes (#8867)
This commit is contained in:
1 parent
116512c38d
commit
0b2801bfb4
2 files changed
+2
-2
No files matched your search
@@ -39,7 +39,7 @@ class RepositoryUsers(GroupRepositoryGeneric[PrivateUser, User]):
|
||||
users_assets.img_random_3,
|
||||
]
|
||||
random_image = random.choice(all_images)
|
||||
shutil.copy(random_image, new_user.directory() / "profile.webp")
|
||||
shutil.copyfile(random_image, new_user.directory() / "profile.webp")
|
||||
|
||||
return new_user
|
||||
|
||||
|
||||
@@ -233,7 +233,7 @@ class OpenAIService(BaseService):
|
||||
try:
|
||||
with get_temporary_path() as temp_path:
|
||||
image_path = temp_path / "recipe-image.jpg"
|
||||
shutil.copy(self.TESTING_DIR / "recipe-image.jpg", image_path)
|
||||
shutil.copyfile(self.TESTING_DIR / "recipe-image.jpg", image_path)
|
||||
|
||||
response = await self.ping(
|
||||
provider,
|
||||
|
||||
Reference in new issue
Block a user