limit author properties to the SQL column widths
This commit is contained in:
parent
28c1ab5058
commit
56927d4224
1 changed files with 7 additions and 0 deletions
|
@ -526,6 +526,13 @@ def hentry_to_entry(hentry, feed, backfill, now):
|
|||
author_photo = author.get('photo')
|
||||
author_url = author.get('url')
|
||||
|
||||
if author_name and len(author_name) > Entry.author_name.property.columns[0].type.length:
|
||||
author_name = None
|
||||
if author_photo and len(author_photo) > Entry.author_photo.property.columns[0].type.length:
|
||||
author_photo = None
|
||||
if author_url and len(author_url) > Entry.author_url.property.columns[0].type.length:
|
||||
author_url = None
|
||||
|
||||
entry = Entry(
|
||||
uid=uid,
|
||||
retrieved=retrieved,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue