File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -165,22 +165,24 @@ def get_info(obj, attr):
165165 )
166166
167167 comments = client .get_comments (repository , issue )
168+ log_issue_and_comments (csv_name , issue_data , comments )
168169 sleep (TIMEDELTA )
169170
170171
171172def log_issue_and_comments (csv_name , issue_data : IssueData , comments ):
172173 if comments :
173174 for comment in comments :
174- comment_data = CommentData (
175+ comment_data = IssueDataWithComment (
175176 ** issue_data ,
176177 body = comment .body ,
177178 created_at = str (comment .created_at ),
178179 author_name = comment .author .username ,
179180 author_login = comment .author .login ,
180181 author_email = comment .author .email ,
181182 )
183+ comment_data = asdict (comment_data )
182184
183- logger .log_to_csv (csv_name , list (commit_data .keys ()), comment_data )
185+ logger .log_to_csv (csv_name , list (comment_data .keys ()), comment_data )
184186 logger .log_to_stdout (comment_data )
185187 else :
186188 info = asdict (issue_data )
You can’t perform that action at this time.
0 commit comments