mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2025-04-25 19:54:07 +00:00
Goodreads capitalization standardization
This commit is contained in:
parent
7f75cd329a
commit
032dedabb4
5 changed files with 7 additions and 7 deletions
|
@ -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"""
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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)
|
||||||
|
|
|
@ -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 %}
|
||||||
|
|
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue