Skip to content

Commit e16441e

Browse files
committed
Corrected produced Disqus identifier in DisqusWrapper.
Covers the case of commenting examples in staging.
1 parent 4e690ba commit e16441e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

codebender_testing/disqus.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ def handle_library_comment(self, library, current_date, log):
111111
return log
112112

113113
def handle_example_comment(self, url, results, current_date, log):
114-
identifier = url.replace('https://codebender.cc', '')
114+
identifier = re.sub(r'https*://.*codebender.cc', '', url)
115115
identifier = 'ident:' + identifier
116116
try:
117117
log[url]['comment'] = False

0 commit comments

Comments
 (0)