Skip to content
Snippets Groups Projects
Verified Commit a3017fbf authored by Robert Metcalf's avatar Robert Metcalf
Browse files

correct typo with additional photos query

parent 7ac58396
No related branches found
No related tags found
No related merge requests found
...@@ -72,7 +72,7 @@ class Workspace: ...@@ -72,7 +72,7 @@ class Workspace:
(id, name, address, main_photo, description, website, email, phone_number, opening_hours, checkin_instructions) = tuple (id, name, address, main_photo, description, website, email, phone_number, opening_hours, checkin_instructions) = tuple
additional_photos = [] additional_photos = []
conn.execute("SELECT url FROM AdditionalPhotos WHERE workspace_id = ?", ("1")) conn.execute("SELECT url FROM AdditionalPhotos WHERE workspace_id = ?", (id))
for x in conn.cursor.fetchall(): for x in conn.cursor.fetchall():
additional_photos.append(x[0]) additional_photos.append(x[0])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment