Auth filename recognition
This commit is contained in:
1 parent
2cba32bbca
commit
ff08c15820
1 file changed
+4
-1
@@ -8,8 +8,11 @@ class AuthFile(sqlitedict.SqliteDict):
|
|||||||
auth - v3 onion auth string in format, that can be written to .auth_private file
|
auth - v3 onion auth string in format, that can be written to .auth_private file
|
||||||
"""
|
"""
|
||||||
def __init__(self, service):
|
def __init__(self, service):
|
||||||
|
"""
|
||||||
|
:param service: Service name or service.auth filename
|
||||||
|
"""
|
||||||
super().__init__(
|
super().__init__(
|
||||||
filename=f'{service}.auth',
|
filename=f'{service}.auth' if '.auth' not in service else service,
|
||||||
tablename='auth',
|
tablename='auth',
|
||||||
autocommit=True
|
autocommit=True
|
||||||
)
|
)
|
||||||
Reference in new issue
Block a user