mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-11-20 23:16:17 -05:00
Adding toggle to prevent downloads from starting when cookies are locked.
This commit is contained in:
parent
9b3a03012e
commit
ae7ab1981f
8 changed files with 36 additions and 3 deletions
|
|
@ -76,7 +76,7 @@ class ArchiveDownloader(Downloader, ABC):
|
|||
need_commit = False
|
||||
if tag_names := download.tag_names:
|
||||
for name in tag_names:
|
||||
archive.add_tag(name, session)
|
||||
archive.add_tag(session, name)
|
||||
need_commit = True
|
||||
|
||||
if need_commit:
|
||||
|
|
|
|||
|
|
@ -393,8 +393,8 @@ class Archive(Base, ModelHelper):
|
|||
archive = model_archive(session, file_group)
|
||||
return archive
|
||||
|
||||
def add_tag(self, tag_id_or_name: int | str, session: Session = None) -> TagFile:
|
||||
return self.file_group.add_tag(tag_id_or_name, session)
|
||||
def add_tag(self, session: Session, tag_id_or_name: int | str) -> TagFile:
|
||||
return self.file_group.add_tag(session, tag_id_or_name)
|
||||
|
||||
@property
|
||||
def location(self):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue