mirror of
				https://gitlab.crans.org/mediatek/med.git
				synced 2025-11-04 09:42:11 +01:00 
			
		
		
		
	FUCK LINTERS TEST (ERDNAXE C'EST RELOUUU)
This commit is contained in:
		@@ -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']
 | 
			
		||||
@@ -112,8 +112,8 @@ class MediaAdminForm(ModelForm):
 | 
			
		||||
 | 
			
		||||
                    def sort(author):
 | 
			
		||||
                        return str(-author.note) + "." \
 | 
			
		||||
                               + str(old_authors.index(author)) \
 | 
			
		||||
                               + "." + author.name
 | 
			
		||||
                            + str(old_authors.index(author)) \
 | 
			
		||||
                            + "." + author.name
 | 
			
		||||
 | 
			
		||||
                    authors.sort(key=sort)
 | 
			
		||||
                    author_name = self.cleaned_data['authors'][0].name
 | 
			
		||||
@@ -132,9 +132,9 @@ 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('.', '')
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user