Mbonea commited on
Commit
a8e8676
·
1 Parent(s): 322f167

oder by id

Browse files
Files changed (1) hide show
  1. App/Generate/database/Model.py +1 -1
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()