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

Add error checking for missing columns #7

Open
Kchour opened this issue Mar 24, 2020 · 4 comments
Open

Add error checking for missing columns #7

Kchour opened this issue Mar 24, 2020 · 4 comments

Comments

@Kchour
Copy link

Kchour commented Mar 24, 2020

I didnt have a category for "unfiled" in my notes, so naturally we get the following error:

Traceback (most recent call last): File "papyrus.py", line 296, in <module> notes = getNotes(i[1]) File "papyrus.py", line 70, in getNotes '(SELECT note_uuid FROM notebook_note_association WHERE notebook_uuid=?)', (uuid, )) sqlite3.OperationalError: no such column: unfiled

Need to add ability to check which column is available, and only export those

@denysvitali
Copy link
Owner

What version of Squid are you using?

@hakan-demirli
Copy link

hakan-demirli commented Apr 16, 2022

What version of Squid are you using?

v3.9.3.4 is the version where I have created a backup.

deleting the "unfiled" solves the problem.

c.execute('SELECT uuid, name, created, modified, starred, unfiled, ui_mode, current_page, password, version FROM notes WHERE uuid IN ' +

@denysvitali
Copy link
Owner

Can you please make a PR?

@hakan-demirli
Copy link

Can you please make a PR?

OK. But, I have also encountered this issue #6. So, I had to make other changes that didn't completely solve the problem but reduced the chance of occurrence, and also I don't know whether those changes including the deletion of the "unfiled", cause any side effects.
But, if you still want it sure.

And I didn't open another issue for this problem but there is a file limit in python. If you try to export a 1033 page long notebook, you get "Python IO error: too many open files". Possible solution.

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

3 participants