mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-08-26 12:46:08 +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
|
||||||
- Added screenshots to Readme.
|
- Added screenshots to Readme.
|
||||||
- repro: Open up RTP ports.
|
- repro: Open up RTP ports.
|
||||||
|
- Allow modules to register steps for first_boot.
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
- Upstream patch from Debian bug #837206 to fix DB and log file
|
- Upstream patch from Debian bug #837206 to fix DB and log file
|
||||||
|
|||||||
@ -29,5 +29,5 @@ register = template.Library()
|
|||||||
@register.simple_tag
|
@register.simple_tag
|
||||||
def firstboot_is_finished():
|
def firstboot_is_finished():
|
||||||
"""Return whether firstboot process is completed."""
|
"""Return whether firstboot process is completed."""
|
||||||
state = kvstore.get_default('firstboot_state', 0)
|
state = kvstore.get_default('setup_state', 0)
|
||||||
return state >= 10
|
return state == 1
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user