File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -79,16 +79,18 @@ def initialize_db(credentials):
79
79
print ("[LOG] Could not create tables. Either database does not exist or tables already created" )
80
80
if populate_data :
81
81
credentials = credentials .split (":" )
82
- create_super_admin (credentials [0 ], credentials [1 ])
82
+ admin_email = os .environ .get ('SUPER_ADMIN_EMAIL' , credentials [0 ])
83
+ admin_password = os .environ .get ('SUPER_ADMIN_PASSWORD' , credentials [1 ])
84
+ create_super_admin (admin_email , admin_password )
83
85
populate ()
84
86
else :
85
87
print ("[LOG] Tables already exist. Skipping data population & creation." )
86
88
87
89
88
90
@manager .command
89
- def prepare_kubernetes_db ():
91
+ def prepare_kubernetes_db (credentials = 'open_event_test_user@fossasia.org:fossasia' ):
90
92
with app .app_context ():
91
- initialize_db ('open_event_test_user@fossasia.org:fossasia' )
93
+ initialize_db (credentials )
92
94
93
95
94
96
if __name__ == "__main__" :
You can’t perform that action at this time.
0 commit comments