Goodreads capitalization standardization

This commit is contained in:
Mouse Reeve 2021-10-15 13:47:28 -07:00
parent 7f75cd329a
commit 032dedabb4
5 changed files with 7 additions and 7 deletions

View file

@ -3,10 +3,10 @@ from . import Importer
class GoodreadsImporter(Importer): class GoodreadsImporter(Importer):
"""GoodReads is the default importer, thus Importer follows its structure. """Goodreads is the default importer, thus Importer follows its structure.
For a more complete example of overriding see librarything_import.py""" For a more complete example of overriding see librarything_import.py"""
service = "GoodReads" service = "Goodreads"
def parse_fields(self, entry): def parse_fields(self, entry):
"""handle the specific fields in goodreads csvs""" """handle the specific fields in goodreads csvs"""

View file

@ -1,4 +1,4 @@
""" handle reading a csv from an external service, defaults are from GoodReads """ """ handle reading a csv from an external service, defaults are from Goodreads """
import csv import csv
import logging import logging

View file

@ -22,8 +22,8 @@
<div class="select block"> <div class="select block">
<select name="source" id="source"> <select name="source" id="source">
<option value="GoodReads" {% if current == 'GoodReads' %}selected{% endif %}> <option value="Goodreads" {% if current == 'Goodreads' %}selected{% endif %}>
GoodReads (CSV) Goodreads (CSV)
</option> </option>
<option value="Storygraph" {% if current == 'Storygraph' %}selected{% endif %}> <option value="Storygraph" {% if current == 'Storygraph' %}selected{% endif %}>
Storygraph (CSV) Storygraph (CSV)

View file

@ -3,6 +3,6 @@
{% block tooltip_content %} {% block tooltip_content %}
{% trans 'You can download your GoodReads data from the <a href="https://www.goodreads.com/review/import" target="_blank" rel="noopener">Import/Export page</a> of your GoodReads account.' %} {% trans 'You can download your Goodreads data from the <a href="https://www.goodreads.com/review/import" target="_blank" rel="noopener">Import/Export page</a> of your Goodreads account.' %}
{% endblock %} {% endblock %}

View file

@ -51,7 +51,7 @@ class Import(View):
elif source == "Storygraph": elif source == "Storygraph":
importer = StorygraphImporter() importer = StorygraphImporter()
else: else:
# Default : GoodReads # Default : Goodreads
importer = GoodreadsImporter() importer = GoodreadsImporter()
try: try: