1
0
mirror of https://gitlab.crans.org/mediatek/med.git synced 2024-12-26 06:22:23 +00:00

FUCK LINTERS TEST, FUCK PEP 8

This commit is contained in:
Yohann D'ANELLO 2020-02-10 21:30:23 +01:00
parent ff224d20cd
commit b69ded4115

View File

@ -104,7 +104,7 @@ class MediaAdminForm(ModelForm):
if self.cleaned_data['title']:
self.cleaned_data['title'] = re.sub(r'\(AUT\) ',
'', self.cleaned_data['title'])
'', self.cleaned_data['title'])
if self.cleaned_data['authors']:
authors = self.cleaned_data['authors']
@ -132,11 +132,11 @@ class MediaAdminForm(ModelForm):
if self.cleaned_data['subtitle']:
self.cleaned_data['subtitle'] = re.sub(r'</span>',
'', self.cleaned_data['subtitle'])
'', self.cleaned_data['subtitle'])
self.cleaned_data['subtitle'] = re.sub(r'<span.*>',
'', self.cleaned_data['subtitle'])
'', self.cleaned_data['subtitle'])
start = self.cleaned_data['subtitle'].split(' ')[0] \
.replace('.', '')
.replace('.', '')
if start.isnumeric():
side_identifier += " {:0>2}".format(start, )