test fix :(
All checks were successful
Build and Deploy / deploy (push) Successful in 11s

This commit is contained in:
2025-07-21 04:06:33 +05:00
parent 91e54bb4e0
commit 56eaaa4103
4 changed files with 8 additions and 11 deletions

View File

@ -30,7 +30,7 @@ class CapeService:
import os
old_url = user["cloak_url"]
old_filename = os.path.basename(urlparse(old_url).path)
old_path = os.path.join("app/static/capes", old_filename)
old_path = os.path.join("/app/static/capes", old_filename)
if os.path.exists(old_path):
try:
os.remove(old_path)
@ -39,7 +39,7 @@ class CapeService:
# Создаем папку для плащей, если ее нет
from pathlib import Path
cape_dir = Path("app/static/capes")
cape_dir = Path("/app/static/capes")
cape_dir.mkdir(parents=True, exist_ok=True)
cape_filename = f"{username}_{int(datetime.now().timestamp())}.{ext}"