oder by id
Browse files
App/Generate/database/Model.py
CHANGED
@@ -57,7 +57,7 @@ class Project(orm.Model):
|
|
57 |
}
|
58 |
|
59 |
async def get_all_scenes(self):
|
60 |
-
return await Scene.objects.filter(project=self).all()
|
61 |
|
62 |
async def generate_json(self):
|
63 |
project_scenes: List[Scene] = await self.get_all_scenes()
|
|
|
57 |
}
|
58 |
|
59 |
async def get_all_scenes(self):
|
60 |
+
return await Scene.objects.filter(project=self).order_by("id").all()
|
61 |
|
62 |
async def generate_json(self):
|
63 |
project_scenes: List[Scene] = await self.get_all_scenes()
|