Fix gerrit-delete-comment script

The "real_author" key in may have been an artifact of local testing;
it appears "author" is what we want to use.

Change-Id: I0618412f5afc598eaa783b726d275e52131dc1a4
This commit is contained in:
James E. Blair 2024-02-06 10:29:15 -08:00
parent d3570b6442
commit 1a472e85b4
1 changed files with 3 additions and 3 deletions

View File

@ -54,9 +54,9 @@ class Gerrit:
def list_messages(self, change):
data = self.get(f'/a/changes/{change}/messages')
for msg in data:
name = msg['real_author'].get('name')
username = msg['real_author'].get('username')
email = msg['real_author'].get('email')
name = msg['author'].get('name')
username = msg['author'].get('username')
email = msg['author'].get('email')
date = msg['date']
msgid = msg['id']
print(BREAK)