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:
Roland 2022-12-23 16:04:09 -07:00
parent 5cbea1ba15
commit 93f0e7494f
No known key found for this signature in database
GPG key ID: 9D6DBD3ACF11AB93
45 changed files with 923 additions and 355 deletions

View file

@ -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.