You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey all - seems to be a bug with converting campaign entities that have aliases / names from 1 to 2. TypeError raised:
You can see that an object is trying to be string'd rather than the value so can't get json serialised. I had a play and think I found the problem:
def convert_campaign(camp, bundle_instance, parent_created_by_ref, parent_timestamp):
campaign_instance = create_basic_object("campaign", camp, parent_timestamp)
process_description_and_short_description(campaign_instance, camp)
campaign_instance["name"] = camp.title
if camp.names is not None:
campaign_instance["aliases"] = []
for name in camp.names:
campaign_instance["aliases"].append(name)
# process information source before any relationships
append(name) should read append(name.value) I think?
Making the change seems to work for my test case:
The text was updated successfully, but these errors were encountered:
Hey all - seems to be a bug with converting campaign entities that have aliases / names from 1 to 2. TypeError raised:
You can see that an object is trying to be string'd rather than the value so can't get json serialised. I had a play and think I found the problem:
append(name)
should readappend(name.value)
I think?Making the change seems to work for my test case:
The text was updated successfully, but these errors were encountered: