it's easy 🤣
def block_url_spam(x):
z=x['content']
for j in z.split():
if j[0:5]=="https":
if len(x['content'])==len(j) or len(x['content'])+5==len(j):
return "no context"
else:
return codifica_link(x)
god python is ugly
Please Login to reply.
I wrote this function, maybe that's why
you can put lipstick on a pig but you can't make a language syntax readable without thinking a lot about it. python isn't as ugly as rust, so there's some upsides to python.