Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion DHIS2/database_dumps/search_uids.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def main():
fname = sys.argv[1]
uids = sys.argv[2:]

cmd = (['pg_restore', '-f', '-', fname] if fname.endswith('.dump') else
cmd = (['pg_restore', fname] if fname.endswith('.dump') else
['cat', fname])

print(f'Tables and columns in {fname} where any of the uids appear:')
Expand Down