View Single Post
Old 05-11-2017, 02:10 PM   #119
Terisa de morgan
Grand Sorcerer
Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.
 
Terisa de morgan's Avatar
 
Posts: 6,638
Karma: 12595249
Join Date: Jun 2009
Location: Madrid, Spain
Device: Kobo Clara/Aura One/Forma,XiaoMI 5, iPad, Huawei MediaPad, YotaPhone 2
Quote:
Originally Posted by Terisa de morgan View Post
I have found a problem with templates and functions. You can see the message at the screen:
Attachment 156660

TEMPLATE ERROR Formatter: unknown function obt_reaf near obt_reaf... But books 50 and 51 have the same template... and it works in 2.84.

This is the code, I suppose it is not necessary but...

Spoiler:
Code:
def evaluate(self, formatter, kwargs, mi, locals):
	res = ''
	perc = formatter.get_value('#ple', [], kwargs)
	leic = formatter.get_value('#lec', [], kwargs)
	haySer = formatter.get_value('#cos', [], kwargs)
	noti = formatter.get_value('#noti', [], kwargs)

	res = '1'

	if (haySer == ''):
		if (perc == '100'):
			res = '1'
		else:
			if (leic == 'Sí'):
				res = '1'
			else:
				if (noti == 'Sí'):
					res = '1'
				else:
					res = ''

	return res
And it works now. There is something strange.
Terisa de morgan is offline   Reply With Quote