v3 auth file
This commit is contained in:
1
dragonion_server/utils/generated_auth/__init__.py
Normal file
1
dragonion_server/utils/generated_auth/__init__.py
Normal file
@@ -0,0 +1 @@
|
||||
pass
|
||||
10
dragonion_server/utils/generated_auth/db.py
Normal file
10
dragonion_server/utils/generated_auth/db.py
Normal file
@@ -0,0 +1,10 @@
|
||||
import sqlitedict
|
||||
|
||||
|
||||
class AuthFile(sqlitedict.SqliteDict):
|
||||
def __init__(self, service):
|
||||
super().__init__(
|
||||
filename=f'{service}.auth',
|
||||
tablename='auth',
|
||||
autocommit=True
|
||||
)
|
||||
Reference in New Issue
Block a user