updating contrib trivial_rebase.py for 2.2.2.1
only required a small sql change. Change-Id: I4f5b76041fc0494811dbf3eb459401ea8b1f17f3
This commit is contained in:
parent
49fe6e31b8
commit
b7b202049d
@ -93,8 +93,8 @@ def GetApprovals(changeId, patchset, server, port):
|
|||||||
|
|
||||||
Returns a list of approval dicts"""
|
Returns a list of approval dicts"""
|
||||||
sql_query = ("\"SELECT value,account_id,category_id FROM patch_set_approvals "
|
sql_query = ("\"SELECT value,account_id,category_id FROM patch_set_approvals "
|
||||||
"WHERE change_id = (SELECT change_id FROM changes WHERE "
|
"WHERE patch_set_id = %s AND change_id = (SELECT change_id FROM "
|
||||||
"patch_set_id = %s AND change_key = \'%s\') AND value <> 0\""
|
"changes WHERE change_key = \'%s\') AND value <> 0\""
|
||||||
% ((patchset - 1), changeId))
|
% ((patchset - 1), changeId))
|
||||||
gsql_out = GsqlQuery(sql_query, server, port)
|
gsql_out = GsqlQuery(sql_query, server, port)
|
||||||
approvals = []
|
approvals = []
|
||||||
|
Loading…
Reference in New Issue
Block a user