mirror of
https://gitlab.crans.org/mediatek/med.git
synced 2025-07-07 16:28:32 +02:00
Translate models in english
This commit is contained in:
@ -4,7 +4,7 @@
|
||||
import re
|
||||
|
||||
import requests
|
||||
from media.models import Auteur
|
||||
from media.models import Author
|
||||
|
||||
|
||||
class BedetequeScraper:
|
||||
@ -99,12 +99,12 @@ class BedetequeScraper:
|
||||
if 'author' not in data:
|
||||
data['authors'] = list()
|
||||
if author:
|
||||
author_obj = Auteur.objects.get_or_create(
|
||||
author_obj = Author.objects.get_or_create(
|
||||
name=author.group(1))[0]
|
||||
data['authors'].append(author_obj)
|
||||
illustrator = re.search(regex_illustrator, content)
|
||||
if illustrator:
|
||||
author_obj = Auteur.objects.get_or_create(
|
||||
author_obj = Author.objects.get_or_create(
|
||||
name=illustrator.group(1))[0]
|
||||
data['authors'].append(author_obj)
|
||||
|
||||
|
Reference in New Issue
Block a user