mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-12-03 13:19:58 -05:00
Creating Event and Flag systems. Events are used to send and display a toast to the App. Flags are used to signal if some action has been performed, or if a package is installed.
This commit is contained in:
parent
5cbea1ba15
commit
93f0e7494f
45 changed files with 923 additions and 355 deletions
|
|
@ -7,7 +7,7 @@ from typing import List
|
|||
from sqlalchemy.orm import Session
|
||||
|
||||
from modules.map.models import MapFile
|
||||
from wrolpi.cmd import which
|
||||
from wrolpi.cmd import BASH_BIN
|
||||
from wrolpi.common import get_media_directory, walk, logger, wrol_mode_check
|
||||
from wrolpi.dates import now, timedelta_to_timestamp
|
||||
from wrolpi.db import optional_session, get_db_session
|
||||
|
|
@ -158,9 +158,6 @@ async def import_files(paths: List[str]):
|
|||
IMPORT_EVENT.clear()
|
||||
|
||||
|
||||
BASH_BIN = which('bash', '/bin/bash', warn=True)
|
||||
|
||||
|
||||
async def run_import_command(*paths: Path):
|
||||
"""Run the map import script on the provided paths.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue