Skip to content

Commit

Permalink
fix typo & test
Browse files Browse the repository at this point in the history
  • Loading branch information
Your Name authored and alphatownsman committed Jul 16, 2024
1 parent 1952120 commit f19c16f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
6 changes: 5 additions & 1 deletion catalog/game/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,11 @@ def test_scrape(self):
site.get_resource_ready()
self.assertEqual(site.ready, True)
self.assertIsInstance(site.resource.item, Game)
self.assertEqual(site.resource.item.display_title, "Terraforming Mars")

# TODO this fails occasionally bc languagedetect flips coin
# self.assertEqual(site.resource.item.display_title, "Terraforming Mars")

self.assertEqual(len(site.resource.item.localized_title), 16)
self.assertEqual(site.resource.item.platform, ["Boardgame"])
self.assertEqual(site.resource.item.genre[0], "Economic")
# self.assertEqual(site.resource.item.other_title[0], "殖民火星")
Expand Down
2 changes: 1 addition & 1 deletion catalog/podcast/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class Podcast(Item):

language = LanguageListField()

hosts = jsondata.ArrayField(
host = jsondata.ArrayField(
verbose_name=_("host"),
base_field=models.CharField(blank=True, default="", max_length=200),
default=list,
Expand Down
2 changes: 1 addition & 1 deletion journal/exporters/doufen.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ def export_marks_task(user):
mark = mm.mark
podcast = mark.item
title = podcast.title
summary = ",".join(podcast.hosts or [])
summary = ",".join(podcast.host or [])
tags = ",".join(mark.tags)
world_rating = (podcast.rating / 2) if podcast.rating else None
timestamp = mark.created_time.strftime("%Y-%m-%d %H:%M:%S")
Expand Down

0 comments on commit f19c16f

Please sign in to comment.