Compare commits
No commits in common. "c269318528968d7946cda456aaa14a1396db1e86" and "5f62287913f9557c9884ce4b0323388f57599a40" have entirely different histories.
c269318528
...
5f62287913
@ -3,8 +3,7 @@ import json
|
||||
|
||||
# external imports
|
||||
from clicada.user import FileUserStore
|
||||
from pathlib import Path
|
||||
import os
|
||||
|
||||
|
||||
categories = [
|
||||
'phone',
|
||||
@ -36,7 +35,7 @@ def validate(config, args):
|
||||
|
||||
|
||||
def execute(ctrl):
|
||||
store_path = os.path.join(str(Path.home()), '.clicada')
|
||||
store_path = '.clicada'
|
||||
user_store = FileUserStore(None, ctrl.chain(), ctrl.get('_CATEGORY'), store_path, int(ctrl.get('FILESTORE_TTL')))
|
||||
user_store.put(ctrl.get('_IDENTIFIER'), json.dumps(ctrl.get('_TAG')), force=True)
|
||||
user_store.stick(ctrl.get('_IDENTIFIER'))
|
||||
|
@ -2,8 +2,6 @@
|
||||
import sys
|
||||
import logging
|
||||
import datetime
|
||||
from pathlib import Path
|
||||
import os
|
||||
|
||||
# external imports
|
||||
from cic_eth_registry import CICRegistry
|
||||
@ -56,7 +54,7 @@ def validate(config, args):
|
||||
def execute(ctrl):
|
||||
tx_getter = TxGetter(ctrl.get('TX_CACHE_URL'), 10)
|
||||
|
||||
store_path = os.path.join(str(Path.home()), '.clicada')
|
||||
store_path = '.clicada'
|
||||
user_phone_file_label = 'phone'
|
||||
user_phone_store = FileUserStore(ctrl.opener('meta'), ctrl.chain(), user_phone_file_label, store_path, int(ctrl.get('FILESTORE_TTL')), encrypter=ctrl.encrypter)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user