Commit 930cb6b4 authored by Mario Chirinos Colunga's avatar Mario Chirinos Colunga 💬

database

parent 8a10dc8c
...@@ -63,6 +63,8 @@ class Command(BaseCommand): ...@@ -63,6 +63,8 @@ class Command(BaseCommand):
# print "no news match" # print "no news match"
if d['title'] == None: if d['title'] == None:
d['title'] = "Sin Titulo" d['title'] = "Sin Titulo"
if len(d['title']) >= 512:
d['title'] = d['title'][:500]
print p + " "+ str(newsDate) + ": " + d['title'] print p + " "+ str(newsDate) + ": " + d['title']
# print type(d['topic']) # print type(d['topic'])
news = News() news = News()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment