Verified Commit ae5cd1b6 authored by Peter Stanko's avatar Peter Stanko
Browse files

Should be listing user name

parent 979b47eb
Pipeline #31522 passed with stage
in 7 minutes and 30 seconds
......@@ -25,7 +25,7 @@ flask db upgrade
echo "[INIT] Initializing data for env: $ENVIRONMENT"
flask data init ${ENVIRONMENT}
echo "[INIT] Initializing admin user: ${ADMIN_USER}"
flask users create ${ADMIN_USER} --password ${ADMIN_PASSWORD} --secret ${ADMIN_SECRET} --gitlab ${ADMIN_GITLAB}
flask users create ${ADMIN_USER} --password "${ADMIN_PASSWORD}" --secret "${ADMIN_SECRET}" --gitlab "${ADMIN_GITLAB}"
if [ "$DATASETS" != "" ]; then
echo "[INIT] Additional datasets: $DATASETS"
......@@ -163,7 +163,7 @@ class User(Client, EntityBase):
UPDATABLE = ['name', 'email', 'uco', 'gitlab_username', 'managed']
BASE_PARAMS = ['username', 'codename', 'is_admin', *UPDATABLE, 'managed', 'id']
LISTABLE = ['username', 'gitlab_username']
LISTABLE = ['username', 'gitlab_username', 'name']
__tablename__ = 'user'
id = db.Column(db.String(length=36), db.ForeignKey(''),
default=lambda: str(uuid.uuid4()), primary_key=True)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment