Skip to content

Commit 57f8ed7

Browse files
committed
Add comma to prevent unwrapping.
1 parent 9631942 commit 57f8ed7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/samples/filmfestival-sql.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@
8888
film.find(None, "id", "filmyear").add_text(str(year)) # put year
8989

9090
# the actors reside in their own table - find the ones for this film title
91-
cursor_casts.execute(select_casts, tuple(title)) # execute cursor
91+
cursor_casts.execute(select_casts, (title,)) # execute cursor
9292
casts = cursor_casts.fetchall() # read actors for the film
9393
# each actor name appears in its own tuple, so extract it from there
9494
film.find(None, "id", "cast").add_text("\n".join([c[0] for c in casts]))

0 commit comments

Comments
 (0)