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

Sheet: Category does not match any given tables.Please be aware of case sensitivity. #43

Closed
Rorshachk opened this issue Aug 5, 2019 · 3 comments

Comments

@Rorshachk
Copy link

It is a question.
It's the example from docs I copy the code and download the sample-data.
It works but when I rename the sheet in the sample file, like changing category into Category, It complains like this.

Sheet: Category does not match any given tables.Please be aware of case sensitivity.

And I check the code and manual carefully and still don't know how this "match" works. Without understanding this I can't use save_book_to_database. Could you explain how it works?

Thanks, and sorry for my poor English.

@chfw
Copy link
Member

chfw commented Aug 5, 2019

flask-sqlalchemy also put ORM table name into lower case. So in python code, you see Category but inside the database, it is 'category'.

@chfw
Copy link
Member

chfw commented Aug 5, 2019

and sorry for my poor English.

Hey, you are lying. Your English is very good!

@Rorshachk
Copy link
Author

Thanks for answering!
You mean that the because flask-sqlalchemy will automatically put capital letter into a lower case, so the name of sheet shouldn't contain any capital letter?
But I just want to know how this "match" works, to be more specifically, if I change the sheet's name, how to modify the sample code to make it work?

Hey, you are lying. Your English is very good!

Thanks for your encouragement XD. I learn English hard in recent days.

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

2 participants