Skip to content

adding template from json on sqlite #16

Description

@drheinheim

I'm trying to download/upload templates. My general process is: 1) clean up template (remove ids, etc.), 2) add template, repeating as needed with a new name if a a template with the same name already exists.

The issue is that I get back a unique error: "UNIQUE constraint failed: tAttr.attr_name, tAttr.attr_dimen"

However, I only get this on sqlite (my laptop) not with mysql (online).

My add_template routine is here

I assume this has to do with _get_attr_by_name_and_dimension. I tried messing around with the SQLalchemy query, but to no avail.

Any ideas?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions