Poetry with Poems inLoveLike

Poetic in Nature

EFT 0.24456000000000003 SHA2-512 SHA3-512

poem_is_code_template_filter.py

Author: Nathaniel Steven Henry Brown
Started: April 24, 2021
Last Edited: August 17, 2021
@register.filter
def poem_is_code(poem_title):
	if re.findall(r"\<CODE\>", poem_title, flags=re.IGNORECASE):
		return True

	return False
Characters: 142
Lines: 6
Words: 12

Views: 452

Changes Made

Revision #2
Body
2,5c2,3
< def poem_is_code(poem):
< val = poem.title
<
< if re.findall(r"\\<CODE\\>", val, flags=re.IGNORECASE):
---
> def poem_is_code(poem_title):
> if re.findall(r"\\<CODE\\>", poem_title, flags=re.IGNORECASE):
Revision #1
Title

1c1
< <code><python>poem_is_code_django_template_filter</python></code>
---
> <code><python>poem_is_code_template_filter</python></code>