Skip to content

Commit efcd136

Browse files
committed
revert: "temp: suffix with upstream info, for testing"
This reverts commit ad90b9e.
1 parent e5fb626 commit efcd136

File tree

1 file changed

+2
-16
lines changed

1 file changed

+2
-16
lines changed

xmodule/capa_block.py

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -486,24 +486,10 @@ def display_name_with_default(self):
486486
Default to the display_name if it isn't None or not an empty string,
487487
else fall back to problem category.
488488
"""
489-
# @@TODO: temporary suffix code
490-
if self.upstream:
491-
try:
492-
upstream_meta = self.get_upstream_meta()
493-
except:
494-
suffix = " [BAD UPSTREAM]"
495-
else:
496-
latest = upstream_meta.version_num
497-
suffix = f" [v{self.upstream_version}/v{latest}]"
498-
if self.is_upgrade_available():
499-
suffix += "*"
500-
else:
501-
suffix = ""
502-
503489
if self.display_name is None or not self.display_name.strip():
504-
return self.location.block_type + suffix
490+
return self.location.block_type
505491

506-
return self.display_name + suffix
492+
return self.display_name
507493

508494
def grading_method_display_name(self) -> str | None:
509495
"""

0 commit comments

Comments
 (0)