@@ -71,18 +71,18 @@ def update_comment(self, sketch, results, current_date, log_entry, openFailFlag,
71
71
if library_match :
72
72
library = library_match .group (1 )
73
73
74
- #Check if the currently compiled example belongs to the same library as the previous one.
74
+ # Check if the currently compiled example belongs to the same library as the previous one.
75
75
# To do so we check if value of library is the same with self.last library value which is updated
76
76
# every time that we log the results of a compiled example.
77
77
if library != self .last_library :
78
78
library_to_comment = library
79
79
80
- #Check if we should add a comment to the library.
80
+ # Check if we should add a comment to the library.
81
81
if library_to_comment and library not in self .examples_without_library :
82
82
log_entry = self .handle_library_comment (library_to_comment , current_date , log_entry )
83
83
84
84
self .last_library = library
85
- #Add a comment to the currently compiled library example.
85
+ # Add a comment to the currently compiled library example.
86
86
if not openFailFlag :
87
87
log_entry = self .handle_example_comment (sketch , results , current_date , log_entry )
88
88
@@ -112,21 +112,21 @@ def handle_library_comment(self, library, current_date, log, examples=True):
112
112
comment_updated = False
113
113
114
114
new_message = self .messages ['library' ].replace ('TEST_DATE' , current_date )
115
- if examples == False :
115
+ if examples == False :
116
116
new_message = self .messages ['library_no_examples' ].replace ('TEST_DATE' , current_date )
117
117
118
118
for thread in paginator :
119
119
120
120
# Check if library has already a comment.
121
121
post_id , existing_message = self .get_posts (thread ['id' ])
122
122
123
- #If library already has a comment, update it.
123
+ # If library already has a comment, update it.
124
124
if post_id and existing_message :
125
125
log [url ]['comment' ] = self .update_post (post_id , new_message )
126
126
comment_updated = True
127
127
break
128
128
129
- #If library doesn't have a comment, create it.
129
+ # If library doesn't have a comment, create it.
130
130
if not comment_updated :
131
131
log [url ]['comment' ] = self .create_post (identifier , new_message )
132
132
0 commit comments