Browse Source

Add config to the populate script

Getty Ritter 4 years ago
parent
commit
636e6e2819
1 changed files with 2 additions and 1 deletions
  1. 2 1
      scripts/populate.py

+ 2 - 1
scripts/populate.py

@@ -2,6 +2,7 @@
 
 import datetime
 import json
+import os
 
 import lc.config as c
 import lc.model as m
@@ -14,7 +15,7 @@ def main():
 
     u = m.User.get_or_none(name="gdritter")
     if not u:
-        u = m.User.from_request(r.User(name="gdritter", password="behest",))
+        u = m.User.from_request(r.User(name="gdritter", password=os.getenv("PASSWORD", "behest").strip(),))
         u.set_as_admin()
 
     c.log(f"created user {u.name}")