1
0
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:
2021-10-23 18:31:03 +02:00
parent 2a17a32d4c
commit 52ecd59bf6
21 changed files with 210 additions and 155 deletions

View File

@ -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)