File tree 3 files changed +10
-2
lines changed
3 files changed +10
-2
lines changed Original file line number Diff line number Diff line change 1
1
# Changelog
2
2
All notable changes to this project will be documented in this file.
3
3
4
+ ## 1.2.2 - 2023-12-13
5
+ - Changed daohaus names cache folder
6
+
4
7
## 1.2.1 - 2023-12-12
5
8
- Fixed error that made impossible getting DAOhaus proposals
6
9
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ def solve_decimals(df: pd.DataFrame) -> pd.DataFrame:
36
36
class Collector (ABC ):
37
37
INDEX = ['network' , 'id' ]
38
38
39
- def __init__ (self , name :str , runner ):
39
+ def __init__ (self , name :str , runner : 'Runner' ):
40
40
self .name : str = name
41
41
self .runner = runner
42
42
@@ -112,6 +112,11 @@ def __init__(self, dw: Path = Path()):
112
112
def set_dw (self , dw ) -> Path :
113
113
self .__dw = dw
114
114
115
+ @property
116
+ def cache (self ) -> Path :
117
+ # Common cache folder for everyone
118
+ return self .__dw / '.cache'
119
+
115
120
@property
116
121
def basedir (self ) -> Path :
117
122
return self .__dw / self .name
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ def moloch_names(df: pd.DataFrame) -> pd.DataFrame:
58
58
if config .skip_daohaus_names :
59
59
return df
60
60
61
- cached = requests_cache .CachedSession (self .data_path . parent / '.names_cache ' ,
61
+ cached = requests_cache .CachedSession (self .runner . cache / 'daohaus_names_cache ' ,
62
62
use_cache_dir = False ,
63
63
expire_after = timedelta (days = 30 )
64
64
)
You can’t perform that action at this time.
0 commit comments