Adds storygraph tests

This commit is contained in:
Mouse Reeve
2021-11-10 09:53:52 -08:00
parent aeef472ee1
commit 1b9d08414f
4 changed files with 131 additions and 1 deletions

View File

@ -21,7 +21,7 @@ class StorygraphImporter(Importer):
data["ISBN13"] = entry["ISBN"]
data["My Review"] = entry["Review"]
if entry["Star Rating"]:
data["My Rating"] = math.ceil(float(entry["Star Rating"]))
data["My Rating"] = float(entry["Star Rating"])
else:
data["My Rating"] = ""