hydraplatform / hydra-server

GNU Lesser General Public License v3.0
5 stars 0 forks source link

Creating new db does not create default units and dimensions #19

Open robhoney opened 5 years ago

robhoney commented 5 years ago

The hydra-server init.py contains this code for creating the db:

class HydraServer():

    def __init__(self):

        hdb.create_default_users_and_perms()
        make_root_user()
        hdb.create_default_net()

This does not create the default units and dimensions. It looks like the following needs to be added:

hdb.create_default_units_and_dimensions()

I've tested this (adding after _make_rootuser() and it works, it creates both the units and definitions.

I think it might also need adding to hydra-base.