db.commit() is missing. fixing it later today. On Sunday, 19 May 2019 03:56:19 UTC-7, 黄祥 wrote: > > after hit 'reload' affect the '_dashboard', when do crud for 'recent > tickets' (before hit 'reload', no error occured on terminal) > [OK] reloaded _dashboard > [OK] reloaded _scaffold > [OK] reloaded examples > [OK] reloaded myapp > [OK] reloaded superheroes > [OK] reloaded todo > ERROR:root:Traceback (most recent call last): > File "/Users/sugizo/learn/python/web3py/web3py/core.py", line 385, in > wrapper > ret = func(*func_args, **func_kwargs) > File "/Users/sugizo/learn/python/web3py/apps/_dashboard/__init__.py", > line 145, in api > data = RestAPI(db, ALLOW_ALL_POLICY)(request.method, args[2], id, > request.query, request.json) > File > "/Users/sugizo/miniconda3/envs/python3_test/lib/python3.7/site-packages/pydal/restapi.py" > , line 27, in wrapper > data = func(*args, **kwargs) > File > "/Users/sugizo/miniconda3/envs/python3_test/lib/python3.7/site-packages/pydal/restapi.py" > , line 170, in __call__ > deleted = self.db(table.id == id).delete() > File > "/Users/sugizo/miniconda3/envs/python3_test/lib/python3.7/site-packages/pydal/objects.py" > , line 2422, in delete > ret = db._adapter.delete(table, self.query) > File > "/Users/sugizo/miniconda3/envs/python3_test/lib/python3.7/site-packages/pydal/adapters/sqlite.py" > , line 87, in delete > counter = super(SQLite, self).delete(table, query) > File > "/Users/sugizo/miniconda3/envs/python3_test/lib/python3.7/site-packages/pydal/adapters/base.py" > , line 541, in delete > self.execute(sql) > File > "/Users/sugizo/miniconda3/envs/python3_test/lib/python3.7/site-packages/pydal/adapters/__init__.py" > , line 67, in wrap > return f(*args, **kwargs) > File > "/Users/sugizo/miniconda3/envs/python3_test/lib/python3.7/site-packages/pydal/adapters/base.py" > , line 413, in execute > rv = self.cursor.execute(command, *args[1:], **kwargs) > sqlite3.OperationalError: database is locked > > best regards, > stifan >
-- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/web2py/8c630eb1-5cda-41dd-9d89-53cd852c3280%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.