mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-12-02 12:56:24 -05:00
Configs can be saved in background using switches.
This commit is contained in:
parent
44d4921c84
commit
d54735c4bb
53 changed files with 967 additions and 574 deletions
|
|
@ -192,7 +192,7 @@ class Zim(Base):
|
|||
else Tag.get_by_id(tag_id_or_name, session)
|
||||
tag_zim_entry = TagZimEntry(tag=tag, zim=self, zim_entry=zim_entry)
|
||||
session.add(tag_zim_entry)
|
||||
tags.save_tags_config()
|
||||
tags.save_tags_config.activate_switch()
|
||||
return tag_zim_entry
|
||||
|
||||
def untag_entry(self, tag_id_or_name: int | str, zim_entry: str):
|
||||
|
|
@ -207,7 +207,7 @@ class Zim(Base):
|
|||
session.delete(tag_zim_entry)
|
||||
else:
|
||||
raise UnknownZimTagEntry(f'Could not find at {repr(str(zim_entry))}')
|
||||
tags.save_tags_config()
|
||||
tags.save_tags_config.activate_switch()
|
||||
|
||||
@staticmethod
|
||||
def _entries_with_tags_process(limit: int, offset: int, params: dict, session: Session, tags_sub_select: str):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue