Skip to content

Commit

Permalink
black format samples
Browse files Browse the repository at this point in the history
  • Loading branch information
jacalata committed Oct 17, 2024
1 parent 4a926ab commit 1427a28
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion samples/explore_favorites.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ def main():
# get list of workbooks
all_workbook_items, pagination_item = server.workbooks.get()
if all_workbook_items is not None and len(all_workbook_items) > 0:

my_workbook = all_workbook_items[0]
server.favorites.add_favorite(user, Resource.Workbook, all_workbook_items[0])
print(
Expand Down
6 changes: 3 additions & 3 deletions samples/filter_sort_groups.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,11 +105,11 @@ def main():
print(a)
groups = [urllib.parse.quote_plus(group) for group in ["SALES NORTHWEST", "SALES ROMANIA", "this_group"]]
print(groups)

# BUG: this loop seems to continue making requests long after we've seen all groups
#for group in server.groups.filter(name__in=groups).order_by("-name"):
# for group in server.groups.filter(name__in=groups).order_by("-name"):
# print(group.name)

print("done")


Expand Down

0 comments on commit 1427a28

Please sign in to comment.