Spaces:
Runtime error
Runtime error
Commit ·
cf1aa38
1
Parent(s): bcfc897
backend test fix added
Browse files
backend/app/routers/launchpad.py
CHANGED
|
@@ -25,8 +25,7 @@ from app.services.artifacts import TYPE_LABELS
|
|
| 25 |
from app.services.crypto import decrypt, encrypt
|
| 26 |
from app.services.social import AUTO_POST, LIMITS, PLATFORM_LABELS, SocialError, bluesky, linkedin, x
|
| 27 |
from app.services.social.health import pause_account_posts, resume_account_posts
|
| 28 |
-
from app.services.social.media import
|
| 29 |
-
media_count, upload_kind)
|
| 30 |
from app.services.storage import storage
|
| 31 |
|
| 32 |
router = APIRouter(prefix="/api", tags=["launchpad"])
|
|
|
|
| 25 |
from app.services.crypto import decrypt, encrypt
|
| 26 |
from app.services.social import AUTO_POST, LIMITS, PLATFORM_LABELS, SocialError, bluesky, linkedin, x
|
| 27 |
from app.services.social.health import pause_account_posts, resume_account_posts
|
| 28 |
+
from app.services.social.media import MB, SIZE_LIMITS, UPLOAD_TYPES, check_postable, duration, is_blog2video, media_count, upload_kind
|
|
|
|
| 29 |
from app.services.storage import storage
|
| 30 |
|
| 31 |
router = APIRouter(prefix="/api", tags=["launchpad"])
|
backend/app/worker.py
CHANGED
|
@@ -65,8 +65,8 @@ from app.services.notestack_voices import save_notestack_voice
|
|
| 65 |
from app.services.plans import effective_plan
|
| 66 |
from app.services.renderer import PermanentJobError, request_render
|
| 67 |
from app.services.social.health import social_health
|
| 68 |
-
from app.services.uploads import sweep_orphan_uploads
|
| 69 |
from app.services.storage import keys, storage
|
|
|
|
| 70 |
|
| 71 |
log = logging.getLogger("notestack.worker")
|
| 72 |
|
|
|
|
| 65 |
from app.services.plans import effective_plan
|
| 66 |
from app.services.renderer import PermanentJobError, request_render
|
| 67 |
from app.services.social.health import social_health
|
|
|
|
| 68 |
from app.services.storage import keys, storage
|
| 69 |
+
from app.services.uploads import sweep_orphan_uploads
|
| 70 |
|
| 71 |
log = logging.getLogger("notestack.worker")
|
| 72 |
|