from django import template
 
register = template.Library()

def tdelta(value, arg):
	tds=[]
	if not value:
		td = 'kosong'
	else:
		if arg: 
			td = "haha" 
			tds = value[arg-1]
		else: 
			td = "hihi" + "prot" 

	print ("TD => "+td)
	return tds

register.filter('tdelta', tdelta)

def tauthor(value, arg):
	tds=[]
	if not value:
		td = 'kosong'
	else:
		if arg: 
			td = "haha" 
			tds = value[arg-1]
		else: 
			td = "hihi" + "prot" 

	print ("TD => "+td)
	return tds

register.filter('tauthor', tauthor)

def taff(value, arg):
	tds=[]
	if not value:
		td = 'kosong'
	else:
		if arg: 
			td = "haha" 
			tds = value[arg-1]
		else: 
			td = "hihi" + "prot" 

	print ("TD => "+td)
	return tds

register.filter('taff', taff)
239585119227cb7b85ded36f2671bdfe6653c381
<mask token>


def tdelta(value, arg):
    tds = []
    if not value:
        td = 'kosong'
    elif arg:
        td = 'haha'
        tds = value[arg - 1]
    else:
        td = 'hihi' + 'prot'
    print('TD => ' + td)
    return tds


<mask token>


def tauthor(value, arg):
    tds = []
    if not value:
        td = 'kosong'
    elif arg:
        td = 'haha'
        tds = value[arg - 1]
    else:
        td = 'hihi' + 'prot'
    print('TD => ' + td)
    return tds


<mask token>


def taff(value, arg):
    tds = []
    if not value:
        td = 'kosong'
    elif arg:
        td = 'haha'
        tds = value[arg - 1]
    else:
        td = 'hihi' + 'prot'
    print('TD => ' + td)
    return tds


<mask token>

<mask token>


def tdelta(value, arg):
    tds = []
    if not value:
        td = 'kosong'
    elif arg:
        td = 'haha'
        tds = value[arg - 1]
    else:
        td = 'hihi' + 'prot'
    print('TD => ' + td)
    return tds


register.filter('tdelta', tdelta)


def tauthor(value, arg):
    tds = []
    if not value:
        td = 'kosong'
    elif arg:
        td = 'haha'
        tds = value[arg - 1]
    else:
        td = 'hihi' + 'prot'
    print('TD => ' + td)
    return tds


register.filter('tauthor', tauthor)


def taff(value, arg):
    tds = []
    if not value:
        td = 'kosong'
    elif arg:
        td = 'haha'
        tds = value[arg - 1]
    else:
        td = 'hihi' + 'prot'
    print('TD => ' + td)
    return tds


register.filter('taff', taff)

<mask token>
register = template.Library()


def tdelta(value, arg):
    tds = []
    if not value:
        td = 'kosong'
    elif arg:
        td = 'haha'
        tds = value[arg - 1]
    else:
        td = 'hihi' + 'prot'
    print('TD => ' + td)
    return tds


register.filter('tdelta', tdelta)


def tauthor(value, arg):
    tds = []
    if not value:
        td = 'kosong'
    elif arg:
        td = 'haha'
        tds = value[arg - 1]
    else:
        td = 'hihi' + 'prot'
    print('TD => ' + td)
    return tds


register.filter('tauthor', tauthor)


def taff(value, arg):
    tds = []
    if not value:
        td = 'kosong'
    elif arg:
        td = 'haha'
        tds = value[arg - 1]
    else:
        td = 'hihi' + 'prot'
    print('TD => ' + td)
    return tds


register.filter('taff', taff)

from django import template
register = template.Library()


def tdelta(value, arg):
    tds = []
    if not value:
        td = 'kosong'
    elif arg:
        td = 'haha'
        tds = value[arg - 1]
    else:
        td = 'hihi' + 'prot'
    print('TD => ' + td)
    return tds


register.filter('tdelta', tdelta)


def tauthor(value, arg):
    tds = []
    if not value:
        td = 'kosong'
    elif arg:
        td = 'haha'
        tds = value[arg - 1]
    else:
        td = 'hihi' + 'prot'
    print('TD => ' + td)
    return tds


register.filter('tauthor', tauthor)


def taff(value, arg):
    tds = []
    if not value:
        td = 'kosong'
    elif arg:
        td = 'haha'
        tds = value[arg - 1]
    else:
        td = 'hihi' + 'prot'
    print('TD => ' + td)
    return tds


register.filter('taff', taff)

from django import template
 
register = template.Library()

def tdelta(value, arg):
	tds=[]
	if not value:
		td = 'kosong'
	else:
		if arg: 
			td = "haha" 
			tds = value[arg-1]
		else: 
			td = "hihi" + "prot" 

	print ("TD => "+td)
	return tds

register.filter('tdelta', tdelta)

def tauthor(value, arg):
	tds=[]
	if not value:
		td = 'kosong'
	else:
		if arg: 
			td = "haha" 
			tds = value[arg-1]
		else: 
			td = "hihi" + "prot" 

	print ("TD => "+td)
	return tds

register.filter('tauthor', tauthor)

def taff(value, arg):
	tds=[]
	if not value:
		td = 'kosong'
	else:
		if arg: 
			td = "haha" 
			tds = value[arg-1]
		else: 
			td = "hihi" + "prot" 

	print ("TD => "+td)
	return tds

register.filter('taff', taff)