
from django import template

from plinth import kvstore

register = template.Library()


@register.simple_tag
def firstboot_is_finished():
    state = kvstore.get_default('firstboot_state', 0)
    return state >= 10


from django import template

from plinth import kvstore

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

Add doc strings for custom tags
firstboot: Add doc strings for custom tags

  
  from django import template
  
  from plinth import kvstore
  
  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
  
Add doc strings for custom tags
## Code Before:

from django import template

from plinth import kvstore

register = template.Library()


@register.simple_tag
def firstboot_is_finished():
    state = kvstore.get_default('firstboot_state', 0)
    return state >= 10

## Instruction:
Add doc strings for custom tags
## Code After:

from django import template

from plinth import kvstore

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
