get nickmask when porting facts to django
This commit is contained in:
parent
d507e8f7ac
commit
59d14bf856
@ -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)))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user