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

notion.databases.create: Is it possible to rearrange database fields according to some defined order? #204

Open
andrewshvv opened this issue Sep 11, 2023 · 2 comments
Labels
investigate Not sure what label to add yet :)

Comments

@andrewshvv
Copy link

I am trying to create a database, but I want fields of the database to be ordered a specific way. Am I correct in my assumption that because API receives a dict rather than a list of tuples the order can't be defined, at least at the stage of database creation? If so, are the any known ways of doing it?

@andrewshvv
Copy link
Author

andrewshvv commented Sep 11, 2023

Okay, seems like fields are ordered in the alphabetic order, so adding a prefix like 01. ... 0N. helps, but this is ugly as hell.

@ramnes
Copy link
Owner

ramnes commented Sep 11, 2023

I wonder if this is just how Notion's API works, or if it's the JSON we send that has been reordered somehow, e.g. because of json.dumps?

@ramnes ramnes added the investigate Not sure what label to add yet :) label Sep 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
investigate Not sure what label to add yet :)
Projects
None yet
Development

No branches or pull requests

2 participants