Restyle Remove global lists and read everything from the database. (#71)

This commit is contained in:
restyled-io[bot]
2022-07-06 17:41:01 +03:00
committed by GitHub
parent 73891aa5cf
commit e77f2b9f2b
11 changed files with 97 additions and 70 deletions
+6 -10
View File
@@ -11,13 +11,11 @@ class CopyFiles:
"""Copies assets to the app directory."""
def __init__(self) -> None:
files = [
{
"src": "assets",
"dest": os.path.join(settings.APP_DIR, "assets"),
"is_dir": True,
}
]
files = [{
"src": "assets",
"dest": os.path.join(settings.APP_DIR, "assets"),
"is_dir": True,
}]
for entry in files:
src = os.path.join(os.getcwd(), entry["src"])
@@ -26,9 +24,7 @@ class CopyFiles:
shutil.copytree(
src,
entry["dest"],
ignore=shutil.ignore_patterns(
"*.pyc",
),
ignore=shutil.ignore_patterns("*.pyc", ),
copy_function=shutil.copy2,
dirs_exist_ok=True,
)