Skip to content
This repository was archived by the owner on Jun 7, 2023. It is now read-only.

Commit 43b57cc

Browse files
committed
Fix: cannot unconditinally serve an ad.
1 parent abc75b8 commit 43b57cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bookserver/routers/books.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ async def serve_page(
325325
pagepath=pagepath,
326326
canonical_host=canonical_host,
327327
show_rs_banner=show_rs_banner,
328-
show_ethical_ad=True,
328+
show_ethical_ad=serve_ad,
329329
**course_attrs,
330330
)
331331
# See `templates <https://fastapi.tiangolo.com/advanced/templates/>`_.

0 commit comments

Comments
 (0)