mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-02-04 08:13:38 +00:00
Use new setup state in template tag
This commit is contained in:
parent
6011a7adfa
commit
cf0e8219af
@ -5,6 +5,7 @@ All notable changes to this project will be documented in this file.
|
||||
### Added
|
||||
- Added screenshots to Readme.
|
||||
- repro: Open up RTP ports.
|
||||
- Allow modules to register steps for first_boot.
|
||||
|
||||
### Fixed
|
||||
- Upstream patch from Debian bug #837206 to fix DB and log file
|
||||
|
||||
@ -29,5 +29,5 @@ register = template.Library()
|
||||
@register.simple_tag
|
||||
def firstboot_is_finished():
|
||||
"""Return whether firstboot process is completed."""
|
||||
state = kvstore.get_default('firstboot_state', 0)
|
||||
return state >= 10
|
||||
state = kvstore.get_default('setup_state', 0)
|
||||
return state == 1
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user