Skip to content

Commit

Permalink
adding "is_public" return to get_layout_by_id
Browse files Browse the repository at this point in the history
  • Loading branch information
adkinsrs committed Aug 2, 2024
1 parent d961946 commit 168a0c1
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/geardb.py
Original file line number Diff line number Diff line change
Expand Up @@ -327,15 +327,16 @@ def get_layout_by_id(layout_id):
layout = None

qry = """
SELECT id, user_id, label, is_current, is_domain, share_id
SELECT id, user_id, label, is_current, is_domain, share_id, is_public
FROM layout
WHERE id = %s
"""
cursor.execute(qry, (layout_id,))

for (id, user_id, label, is_current, is_domain, share_id) in cursor:
for (id, user_id, label, is_current, is_domain, share_id, is_public) in cursor:
layout = Layout(id=id, user_id=user_id, is_domain=is_domain,
label=label, is_current=is_current, share_id=share_id)
label=label, is_current=is_current,
share_id=share_id, is_public=is_public)
break

cursor.close()
Expand Down

0 comments on commit 168a0c1

Please sign in to comment.