|
@@ -122,7 +122,7 @@ class File(NamedBaseModel):
|
|
|
|
|
|
:return: another file or None
|
|
|
"""
|
|
|
- return self._get_another_file(File.id > self.id, Collection.id == self.collection_id)\
|
|
|
+ return self._get_another_file(File.id > self.id, File.collection_id == self.collection_id)\
|
|
|
.order_by(File.id).first()
|
|
|
|
|
|
|
|
@@ -132,7 +132,7 @@ class File(NamedBaseModel):
|
|
|
|
|
|
:return: another file or None
|
|
|
"""
|
|
|
- return self._get_another_file(File.id < self.id, Collection.id == self.collection_id)\
|
|
|
+ return self._get_another_file(File.id < self.id, File.collection_id == self.collection_id)\
|
|
|
.order_by(File.id.desc()).first()
|
|
|
|
|
|
|