master
Steve L. Nyemba 5 years ago
parent 2a38cfd7ef
commit edb2d7b7c7

@ -95,6 +95,8 @@ class pseudonym :
SQL = SQL.replace(':table',args['table']) SQL = SQL.replace(':table',args['table'])
if args['filter'].strip() != '' : if args['filter'].strip() != '' :
SQL = SQL.replace(":filter", "WHERE "+args['filter']) SQL = SQL.replace(":filter", "WHERE "+args['filter'])
else:
SQL = SQL.replace(":filter","")
SQL += " ".join(['GROUP BY ',args['field'],'ORDER BY 1 ']) SQL += " ".join(['GROUP BY ',args['field'],'ORDER BY 1 '])
TABLE_NAME = ".".join([args['dataset'],args['table']]) TABLE_NAME = ".".join([args['dataset'],args['table']])
credentials = service_account.Credentials.from_service_account_file(args['key']) credentials = service_account.Credentials.from_service_account_file(args['key'])

Loading…
Cancel
Save