mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
Use new setup state in template tag
This commit is contained in:
2 files changed
+3
-2
No files matched your search
@@ -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
|
||||
Reference in new issue
Block a user