sfd
This commit is contained in:
parent
53b1a2f862
commit
6a46428d05
8 changed files with 42 additions and 42 deletions
|
@ -196,9 +196,9 @@ class Submission(Base):
|
|||
|
||||
output = self.title.lower()
|
||||
|
||||
output = re.sub('&\w{2,3};', '', output, flags=re.A)
|
||||
output = re.sub('&\w{2,3};', '', output, re.A)
|
||||
|
||||
output = [re.sub('\W', '', word, flags=re.A) for word in output.split()]
|
||||
output = [re.sub('\W', '', word, re.A) for word in output.split()]
|
||||
output = [x for x in output if x][:6]
|
||||
|
||||
output = '-'.join(output)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue