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

Commit 970c0bf

Browse files
committed
Make ethical ads the default
1 parent fd54bdb commit 970c0bf

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

bookserver/routers/books.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -309,8 +309,9 @@ async def serve_page(
309309
if worker_name == "":
310310
worker_name = socket.gethostname()
311311

312-
# temporary
313-
if course_attrs.get("ad_server", "google") == "ethical":
312+
# This makes serving ethical ads the default, but it can be overridden
313+
# by adding a course attribute for the base course to set the ad_server to google
314+
if course_attrs.get("ad_server", "ethical") == "ethical":
314315
serve_google_ad = False
315316
else:
316317
serve_google_ad = serve_ad

0 commit comments

Comments
 (0)