Skip to content

Commit

Permalink
only force data sharing choice when user picks individual
Browse files Browse the repository at this point in the history
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
  • Loading branch information
dirkhh committed Jun 16, 2024
1 parent 729c6f2 commit 8ce1ef1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions release-notes.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
Changes since v2.1.0 include:
- Basic Setup: don't force the user to go through the data sharing page if they pick "all" or "privacy" during basic setup
- DietPi builds: don't clone the feeder image on first boot - we use custom DietPi images that have the correct version pre-installed
- hotspot dietpi: join the network much quicker
- hotspot raspbian: avoid possible race condition that would stop the hotspot from starting
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1972,11 +1972,14 @@ def do_halt():
unique_name = self.unique_site_name(form.get("site_name"), 0)
self._d.env_by_tags("site_name").list_set(0, unique_name)
self.mdns_alias_service(unique_name)
# if this is a regular feeder and the user is changing to 'individual' selection
# (either in initial setup or when coming back to that setting later), show them
# the aggregator selection page next
if (
key == "aggregators"
and not self._d.env_by_tags("aggregators_chosen").value
and not self._d.is_enabled("stage2")
and not value == "micro"
and value == "individual"
and self._d.env_by_tags("aggregators").value != "individual"
):
# show the aggregator selection
next_url = url_for("aggregators")
Expand Down

0 comments on commit 8ce1ef1

Please sign in to comment.