You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After power down I got this issue on many files.
Other sqlite3 files were working well.
class nestedDictSqlite(defaultdict):
'like defaultdict but default_factory receives the key so table is used to form first argument'
def __missing__(self, table):
self[table] = value = self.default_factory(table)
return value
InstaPyLimits.limiter_db = nestedDictSqlite(
lambda table: SqliteDict(filename='{}{}_limiter.db'.format(Settings.limiter_database_location, user_id),
tablename=table, flag='c', autocommit=True, encode=json.dumps, decode=json.loads))
What can it be ?
The text was updated successfully, but these errors were encountered:
After power down I got this issue on many files.
Other sqlite3 files were working well.
What can it be ?
The text was updated successfully, but these errors were encountered: