Skip to content
Snippets Groups Projects
Commit 4ed962c5 authored by Samuel GAIST's avatar Samuel GAIST
Browse files

[code][model] Fix language full name retrieval

parent 3885f59d
No related branches found
No related tags found
2 merge requests!2551.4.x,!249Web fixes
......@@ -483,7 +483,8 @@ class Code(StoredContribution):
def language_fullname(self):
if self.language in Code.CODE_NAMES:
return Code.CODE_NAMES[self.language]
return [language for language in Code.CODE_LANGUAGE if language == self.language][0][1]
return [language for language in Code.CODE_LANGUAGE if language[0] == self.language][0][1]
def json_language(self):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment