Fix query in the datanommer SAR script
Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
This commit is contained in:
parent
5a319bdcfc
commit
4de44ac0fc
1 changed files with 1 additions and 1 deletions
|
@ -36,7 +36,7 @@ COPY (
|
|||
)
|
||||
TO STDOUT delimiter ',' CSV header;
|
||||
'''
|
||||
query = query.format(username=username, tmpfile=tempfilename)
|
||||
query = query.format(username=username)
|
||||
command = ['sudo', '-u', 'postgres', 'psql', 'datanommer', '-c', '"%s"' % query]
|
||||
subprocess.check_call(' '.join(command), shell=True, cwd='/tmp')
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue