Forráskód Böngészése

Merge branch 'master' of http://git.choozmo.com:3000/ai-anchor/video-maker

tomoya 1 éve
szülő
commit
2552695c58
2 módosított fájl, 3 hozzáadás és 2 törlés
  1. 2 1
      backend/app/app/crud/crud_video.py
  2. 1 1
      frontend/index.html

+ 2 - 1
backend/app/app/crud/crud_video.py

@@ -2,7 +2,7 @@ from typing import List
 
 from fastapi.encoders import jsonable_encoder
 from sqlalchemy.orm import Session
-
+from sqlalchemy import desc
 from app.crud.base import CRUDBase
 from app.models.video import Video
 from app.schemas.video import VideoCreate, VideoUpdate
@@ -26,6 +26,7 @@ class CRUDVideo(CRUDBase[Video, VideoCreate, VideoUpdate]):
         return (
             db.query(self.model)
             .filter(Video.owner_id == owner_id)
+            .order_by(desc(Video.id))
             .offset(skip)
             .limit(limit)
             .all()

+ 1 - 1
frontend/index.html

@@ -10,7 +10,7 @@
   <meta http-equiv="pragma" content="no-cache">
   <meta http-equiv="expires" content="0">
   <meta name="referrer" content="origin">
-  <title>Vite App</title>
+  <title>ChoozMo AI SaaS</title>
 </head>
 
 <body>