mirror of
				https://gitlab.crans.org/mediatek/med.git
				synced 2025-11-04 09:42:11 +01:00 
			
		
		
		
	Fix indentation
This commit is contained in:
		@@ -103,8 +103,11 @@ class MediaAdminForm(ModelForm):
 | 
				
			|||||||
                    self.download_data_openlibrary(isbn)
 | 
					                    self.download_data_openlibrary(isbn)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                if self.cleaned_data['title']:
 | 
					                if self.cleaned_data['title']:
 | 
				
			||||||
                    self.cleaned_data['title'] = re.sub(r'\(AUT\) ',
 | 
					                    self.cleaned_data['title'] = re.sub(
 | 
				
			||||||
                            '', self.cleaned_data['title'])
 | 
					                        r'\(AUT\) ',
 | 
				
			||||||
 | 
					                        '',
 | 
				
			||||||
 | 
					                        self.cleaned_data['title']
 | 
				
			||||||
 | 
					                    )
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                if self.cleaned_data['authors']:
 | 
					                if self.cleaned_data['authors']:
 | 
				
			||||||
                    authors = self.cleaned_data['authors']
 | 
					                    authors = self.cleaned_data['authors']
 | 
				
			||||||
@@ -131,10 +134,16 @@ class MediaAdminForm(ModelForm):
 | 
				
			|||||||
                        title_normalized.replace(' ', ''), )
 | 
					                        title_normalized.replace(' ', ''), )
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                    if self.cleaned_data['subtitle']:
 | 
					                    if self.cleaned_data['subtitle']:
 | 
				
			||||||
                        self.cleaned_data['subtitle'] = re.sub(r'</span>',
 | 
					                        self.cleaned_data['subtitle'] = re.sub(
 | 
				
			||||||
                                '', self.cleaned_data['subtitle'])
 | 
					                            r'</span>',
 | 
				
			||||||
                        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']
 | 
				
			||||||
 | 
					                        )
 | 
				
			||||||
                        start = self.cleaned_data['subtitle'].split(' ')[0] \
 | 
					                        start = self.cleaned_data['subtitle'].split(' ')[0] \
 | 
				
			||||||
                                    .replace('.', '')
 | 
					                                    .replace('.', '')
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user