get nickmask when porting facts to django

This commit is contained in:
Brian S. Stephan 2015-06-20 10:26:10 -05:00
parent d507e8f7ac
commit 59d14bf856

View File

@ -27,7 +27,8 @@ try:
category, c = FactCategory.objects.get_or_create(name=category_name)
fact_text = row[2]
fact = Fact.objects.create(category=category, fact=fact_text)
nickmask = row[4]
fact = Fact.objects.create(category=category, fact=fact_text, nickmask=nickmask)
except NoOptionError as noe:
sys.exit("Aborted due to error in config: {0:s}".format(str(noe)))