Fixing horrid typo ;-;

This commit is contained in:
shockrah 2025-03-10 20:48:34 -07:00
parent 8f67333050
commit d83bd0a7bf

11
dev.py
View File

@ -4,7 +4,6 @@ from subprocess import run
from argparse import ArgumentParser
import os
if __name__ == '__main__':
parser = ArgumentParser()
parser.add_argument(
@ -20,8 +19,10 @@ if __name__ == '__main__':
default='postgres://psql:example@localhost:5432'
)
args = parser.parse_args()
env = os.environ
os.environ['DB_CONNECTION_STRING'] = args.db_url
if args.init_db:
run('cargo run --bin admin-cli -- --setup'.split(), env=env)
else:
print('Nothing to do')
run(
'cargo run --bin admin-cli -- --setup',
env=os.environ,
shell=True
)