Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adding template from json on sqlite #16

Open
drheinheimer opened this issue Nov 30, 2017 · 0 comments
Open

adding template from json on sqlite #16

drheinheimer opened this issue Nov 30, 2017 · 0 comments

Comments

@drheinheimer
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant