mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-12-02 12:56:24 -05:00
Archive alternatives must have a URL.
This commit is contained in:
parent
c5538222ef
commit
7db4ea73f2
3 changed files with 31 additions and 5 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue