1
0
mirror of https://gitlab.crans.org/mediatek/med.git synced 2025-02-23 23:01:22 +00:00

Compare commits

..

No commits in common. "33a7e5adc67bfaa88184714f3bd8fbc5e49eab41" and "e7dfaf8b8b00f55bebf1c63d2f903fa0a4a6c109" have entirely different histories.

2 changed files with 3 additions and 3 deletions

View File

@ -23,7 +23,7 @@ class BedetequeScraper:
:return: CSRF token
"""
response = self.session.get(self.referer).content.decode()
regex = r'csrf_token_bel\"\s*value=\"(\w*)\"'
regex = r'csrf_token_bedetheque\"\s*value=\"(\w*)\"'
return re.search(regex, response).group(1)
def search_by_isbn(self, isbn: str) -> [str]:

View File

@ -1,4 +1,4 @@
{% load i18n %}
{% include "django/forms/widgets/input.html" %}
<input type="submit" value="{% trans "Fetch data and add another" %}" name="_isbn_addanother" onclick="form.submit()">
<input type="submit" value="{% trans "Fetch only" %}" name="_isbn" onclick="form.submit()">
<input type="button" value="{% trans "Fetch data and add another" %}" name="_isbn_addanother" onclick="form.submit()">
<input type="button" value="{% trans "Fetch only" %}" name="_isbn" onclick="form.submit()">