diff --git a/funnel/templates/thumbnail_preview.html.jinja2 b/funnel/templates/thumbnail_preview.html.jinja2
index f14af8858..a58adf232 100644
--- a/funnel/templates/thumbnail_preview.html.jinja2
+++ b/funnel/templates/thumbnail_preview.html.jinja2
@@ -1,8 +1,8 @@
-
+
-
{{project.account.title}}
-
- {{ project.title }}
-
+
{{ project.title }}
{{ project.tagline }}
- {{ project.datelocation }}
- {{ project.primary_venue }}
+ {{ project.datelocation }} {{ project.primary_venue }}
diff --git a/funnel/views/project.py b/funnel/views/project.py
index fc7fda3d6..8e37541b3 100644
--- a/funnel/views/project.py
+++ b/funnel/views/project.py
@@ -48,7 +48,7 @@
db,
sa,
)
-from ..signals import project_role_change, project_data_changed
+from ..signals import project_data_change, project_role_change
from ..typing import ReturnRenderWith, ReturnView
from .helpers import html_in_json, render_redirect
from .jobs import import_tickets, tag_locations
diff --git a/funnel/views/thumnbnails.py b/funnel/views/thumnbnails.py
index 8503c2acb..365338137 100644
--- a/funnel/views/thumnbnails.py
+++ b/funnel/views/thumnbnails.py
@@ -6,19 +6,23 @@
from .jobs import rqjob
from ..signals import project_data_changed
+from ..models import Project
+from ..signals import project_data_change
+from .jobs import rqjob
thumbnail = Html2Image(size=(640, 360))
-@project_data_changed.connect
-def generate_thumbnail_image(project = Project) -> None:
- render_thumbnail_image(project = project)
+@project_data_change.connect
+def generate_thumbnail_image(project=Project) -> None:
+ render_thumbnail_image(project=project)
+
@rqjob()
-def render_thumbnail_image(project = Project) -> None:
+def render_thumbnail_image(project=Project) -> None:
"""Render the thumbnail image and cache the file using a background task"""
- image_html = render_template('thumbnail_preview.html.jinja2', project = project )
+ image_html = render_template('thumbnail_preview.html.jinja2', project=project)
thumbnail_image = thumbnail.screenshot(html_str=image_html, save_as=f'{project.id}_thumbnail.png', size=(640, 360))