Skip to content

Commit

Permalink
Default open option to true if restrictgroup is set
Browse files Browse the repository at this point in the history
As discussed in <#17 (comment)>.
  • Loading branch information
mavit committed Dec 13, 2020
1 parent 39334d1 commit b293e1b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/bga_mediator.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,11 @@ async def parse_options(self, options, table_id):
# options will overwrite defaults if they are there
defaults.update(options)
updated_options = defaults

if "open" not in updated_options \
and "restrictgroup" in updated_options:
updated_options["open"] = "true"

url_data = []
final_url_data = []
for option in updated_options:
Expand Down

0 comments on commit b293e1b

Please sign in to comment.