diff --git a/snipts/models.py b/snipts/models.py index 6bcac74..4551d6c 100644 --- a/snipts/models.py +++ b/snipts/models.py @@ -61,7 +61,7 @@ class Snipt(models.Model): # YouTube embeds for match in re.findall('\[\[youtube-(\w{11})\-(\d+)x(\d+)\]\]', self.stylized): self.stylized = self.stylized.replace('[[youtube-{}-{}x{}]]'.format(str(match[0]), str(match[1]), str(match[2])), - ''.format(match[1], match[2], match[0])) + ''.format(match[1], match[2], match[0])) else: self.stylized = highlight(self.code,