From 472d7acad2fba007d01e13fb8faca76e522f8818 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Sat, 26 Jun 2010 17:42:24 -0400 Subject: [PATCH] position1 == Null if it's not set --- sitecore/prof/export_mysql.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sitecore/prof/export_mysql.py b/sitecore/prof/export_mysql.py index 3c11877..07721dd 100644 --- a/sitecore/prof/export_mysql.py +++ b/sitecore/prof/export_mysql.py @@ -162,7 +162,7 @@ Where the relevant categories are last=prof['lastname'], ) p.title = prof['position'] - if len(prof['position1']) > 0: + if prof['position1'] != None: p.title += ', %s' % prof['position1'] p.graduations = [] print prof['degrees'] -- 2.26.2