Skip to content

Commit 1c67b0d

Browse files
author
Hexalgo
committed
some very little modifs
1 parent 2ff20b6 commit 1c67b0d

File tree

4 files changed

+11
-158
lines changed

4 files changed

+11
-158
lines changed

.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@ __pycache__
33
apis.json
44
certs.json
55
pydofus2.egg-info
6-
latest.yml
6+
latest.yml
7+
.venv

VERSION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.1.0
1+
1.1.1

pydofus2/com/ankamagames/dofus/logic/game/common/frames/AveragePricesFrame.py

+8-8
Original file line numberDiff line numberDiff line change
@@ -43,16 +43,16 @@ class AveragePricesFrame(Frame):
4343

4444
def __init__(self):
4545
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)
5252
for server, prices_data in data.items():
5353
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}")
5656
self._server_name = PlayerManager().server.name
5757
self._prices_data_asked = False
5858

utilities/MapGelRendered.py

-148
This file was deleted.

0 commit comments

Comments
 (0)