Archive alternatives must have a URL.

This commit is contained in:
Roland 2022-11-02 15:12:48 -06:00
parent c5538222ef
commit 7db4ea73f2
No known key found for this signature in database
GPG key ID: 9D6DBD3ACF11AB93
3 changed files with 31 additions and 5 deletions

View file

@ -137,6 +137,7 @@ class Archive(Base, ModelHelper):
alternatives = list(session.query(Archive).filter(
Archive.id != self.id,
Archive.url == self.url,
Archive.url != None,
).order_by(Archive.archive_datetime))
return alternatives