Hi there! I'm Aditya Rajput (he/him), a software developer and enthusiast.
Iโm currently working on scripted and firefox-bookmarks.
Manage your Firefox bookmarks with ease
Home Page: https://pypi.org/project/firefox-bookmarks/
License: GNU Affero General Public License v3.0
Hi there! I'm Aditya Rajput (he/him), a software developer and enthusiast.
Iโm currently working on scripted and firefox-bookmarks.
Hi! I get peewee.OperationalError: database is locked
error if I try to access the database when my Firefox Flatpak is running. I use the following to connect to the database fb.connect(look_under_path='/home/johndoe/.var/app/org.mozilla.firefox/.mozilla/firefox/johndoe.default-release')
. I don't think it's related to Flatpak, perhaps I'm missing something?
Before every .execute()
, log the generated SQL query to a DEBUG
logger
Hello, seems the minimal example don't work on Windows 11 with Python 3.10.8 and Firefox 130.0.
C:/Users/user/AppData/Local/Programs/Python/Python310/python.exe c:/Work/Current/BookmarkRuler/BookMarkRulerFirefox.py
Traceback (most recent call last):
File "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\site-packages\peewee.py", line 3322, in execute_sql
cursor.execute(sql, params or ())
sqlite3.IntegrityError: UNIQUE constraint failed: bookmark.id
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "c:\Work\Current\BookmarkRuler\BookMarkRulerFirefox.py", line 6, in <module>
fb.connect(criterion=ProfileCriterion.LARGEST)
File "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\site-packages\firefox_bookmarks\__init__.py", line 394, in connect
self._load()
File "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\site-packages\firefox_bookmarks\__init__.py", line 434, in _load
).execute()
File "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\site-packages\peewee.py", line 2036, in inner
return method(self, database, *args, **kwargs)
File "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\site-packages\peewee.py", line 2107, in execute
return self._execute(database)
File "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\site-packages\peewee.py", line 2912, in _execute
return super(Insert, self)._execute(database)
File "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\site-packages\peewee.py", line 2625, in _execute
cursor = database.execute(self)
File "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\site-packages\peewee.py", line 3330, in execute
return self.execute_sql(sql, params)
File "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\site-packages\peewee.py", line 3320, in execute_sql
with __exception_wrapper__:
File "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\site-packages\peewee.py", line 3088, in __exit__
reraise(new_type, new_type(exc_value, *exc_args), traceback)
File "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\site-packages\peewee.py", line 196, in reraise
raise value.with_traceback(tb)
File "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\site-packages\peewee.py", line 3322, in execute_sql
cursor.execute(sql, params or ())
peewee.IntegrityError: UNIQUE constraint failed: bookmark.id
We're running the integration tests on ubuntu-latest
and macos-latest
. I'd like to also run them on windows-latest
too.
The steps
will be mostly the same, except some changes in the run-firefox
step.
FirefoxKeyword
model in models.py
Bookmark
contains keyword data alongside keyword_id
in bookmark.py
Most of the steps in he current integration_tests.yml
workflows are exactly the same, except for the run-firefox
step. They should be combined into one job, with an if
condition on the differing step and a strategy.matrix
containing the different OSes.
for example,
OLDEST
SMALLEST
for bonus points, we can also have a MATCHES(q)
criterion, but that'd require upgrading the Enum
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.