mirror of
https://codeberg.org/Mo8it/AdvLabDB.git
synced 2024-11-08 21:21:06 +00:00
Organize cli files
This commit is contained in:
parent
33b08ab383
commit
4332dc54bc
9 changed files with 8 additions and 8 deletions
|
@ -2,9 +2,6 @@ from datetime import date
|
||||||
from math import ceil
|
from math import ceil
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from random import randint, random
|
from random import randint, random
|
||||||
from test.assistant_names import assistant_names
|
|
||||||
from test.experiment_titles import experiment_titles
|
|
||||||
from test.student_names import student_names
|
|
||||||
|
|
||||||
import click
|
import click
|
||||||
from flask_security.utils import hash_password
|
from flask_security.utils import hash_password
|
||||||
|
@ -26,6 +23,9 @@ from advlabdb.models import (
|
||||||
Student,
|
Student,
|
||||||
db,
|
db,
|
||||||
)
|
)
|
||||||
|
from cli.test.generate_test_db.assistant_names import assistant_names
|
||||||
|
from cli.test.generate_test_db.experiment_titles import experiment_titles
|
||||||
|
from cli.test.generate_test_db.student_names import student_names
|
||||||
|
|
||||||
|
|
||||||
def db_add(obj):
|
def db_add(obj):
|
10
manage.py
10
manage.py
|
@ -4,11 +4,11 @@ import subprocess # nosec 404
|
||||||
|
|
||||||
import click
|
import click
|
||||||
|
|
||||||
from cli.maintain.copy_admin_templates import _copy_admin_templates
|
from cli.maintain.copy_admin_templates.main import _copy_admin_templates
|
||||||
from cli.maintain.reset_admin_password import _reset_admin_password
|
from cli.maintain.reset_admin_password.main import _reset_admin_password
|
||||||
from cli.setup.generate_secrets import _generate_secrets
|
from cli.setup.generate_secrets.main import _generate_secrets
|
||||||
from cli.setup.init_db import _init_db
|
from cli.setup.init_db.main import _init_db
|
||||||
from cli.test.generate_test_db import _generate_test_db
|
from cli.test.generate_test_db.main import _generate_test_db
|
||||||
|
|
||||||
|
|
||||||
class Manage:
|
class Manage:
|
||||||
|
|
Loading…
Reference in a new issue