Skip to content

Commit 4ba7dd6

Browse files
author
Konstantinacc
committed
Added comments to update_comment function.
1 parent 0a7726f commit 4ba7dd6

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

codebender_testing/disqus.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,11 @@ def update_comment(self, sketch, results, current_date, log_entry, openFailFlag,
6363
`self.last_library`: The library in which belongs the previously compiled example.
6464
`library_to_comment`: The library in which a comment should be added.
6565
"""
66-
6766
library_match = re.match(r'.+\/example\/(.+)\/.+', sketch)
6867
library = None
6968
library_to_comment = None
7069

70+
# Set the library in which belongs the currently compiled example.
7171
if library_match:
7272
library = library_match.group(1)
7373

@@ -80,7 +80,6 @@ def update_comment(self, sketch, results, current_date, log_entry, openFailFlag,
8080
log_entry = self.handle_library_comment(library_to_comment, current_date, log_entry)
8181

8282
self.last_library = library
83-
8483
#Add a comment to the currently compiled library example.
8584
if not openFailFlag:
8685
log_entry = self.handle_example_comment(sketch, results, current_date, log_entry)

0 commit comments

Comments
 (0)