Skip to content

Commit

Permalink
Fix AttributeError on all pages with posts
Browse files Browse the repository at this point in the history
The custom defined jinja test "a_post" pointed to an old
location for the Post model that did not reflect the changes
seen in #96.

This commit updates it to use the proper location
  • Loading branch information
syeopite committed Oct 4, 2024
1 parent 3236bac commit 01a3c5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ def create_image_client(url, timeout):
app.ext.environment.globals["format_npf"] = ext_npf_renderer.format_npf
app.ext.environment.globals["create_poll_callback"] = helpers.create_poll_callback

app.ext.environment.tests["a_post"] = lambda element : isinstance(element, priviblur_extractor.models.timeline.TimelinePost)
app.ext.environment.tests["a_post"] = lambda element : isinstance(element, priviblur_extractor.models.post.Post)


@app.listener("main_process_start")
Expand Down

0 comments on commit 01a3c5f

Please sign in to comment.