Skip to content

Commit

Permalink
Types.
Browse files Browse the repository at this point in the history
  • Loading branch information
bakert committed Dec 2, 2019
1 parent 1a36cc2 commit 5b7bc08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion maintenance/dev_db.py
Expand Up @@ -15,7 +15,7 @@ def run() -> None:
if not (host or port or usr or pwd or db):
safe_pwd = 'PRESENT' if pwd else 'MISSING'
raise InvalidArgumentException(f'Unable to dump dev db with {host} {port} {usr} pwd:{safe_pwd} {db}')
base_command = ['mysqldump', '-h', host, '-P', port, '-u', usr, f'-p{pwd}']
base_command = ['mysqldump', '-h', host, '-P', str(port), '-u', usr, f'-p{pwd}']
structure = subprocess.check_output(base_command + ['--no-data', db])
data = subprocess.check_output(base_command + ['--ignore-table=person_note', db])
with gzip.open('shared_web/static/dev-db.sql.gz', 'wb') as f:
Expand Down

0 comments on commit 5b7bc08

Please sign in to comment.