File tree 4 files changed +11
-158
lines changed
pydofus2/com/ankamagames/dofus/logic/game/common/frames
4 files changed +11
-158
lines changed Original file line number Diff line number Diff line change @@ -3,4 +3,5 @@ __pycache__
3
3
apis.json
4
4
certs.json
5
5
pydofus2.egg-info
6
- latest.yml
6
+ latest.yml
7
+ .venv
Original file line number Diff line number Diff line change 1
- 1.1.0
1
+ 1.1.1
Original file line number Diff line number Diff line change @@ -43,16 +43,16 @@ class AveragePricesFrame(Frame):
43
43
44
44
def __init__ (self ):
45
45
super ().__init__ ()
46
- if not AveragePricesFrame . _pricesData :
47
- if os . path . exists ( Constants . AVERAGE_PRICES_PATH ) :
48
- try :
49
- with open ( Constants . AVERAGE_PRICES_PATH , "r" ) as file :
50
- data : Dict = json . load ( file )
51
- with pricesDataLock :
46
+ with pricesDataLock :
47
+ if not AveragePricesFrame . _pricesData :
48
+ if os . path . exists ( Constants . AVERAGE_PRICES_PATH ) :
49
+ try :
50
+ with open ( Constants . AVERAGE_PRICES_PATH , "r" ) as file :
51
+ data : Dict = json . load ( file )
52
52
for server , prices_data in data .items ():
53
53
AveragePricesFrame ._pricesData [server ] = PricesData .from_dict (prices_data )
54
- except json .JSONDecodeError as e :
55
- Logger ().error (f"Error loading average prices JSON data: { e } " )
54
+ except json .JSONDecodeError as e :
55
+ Logger ().error (f"Error loading average prices JSON data: { e } " )
56
56
self ._server_name = PlayerManager ().server .name
57
57
self ._prices_data_asked = False
58
58
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments