Skip to content

Commit 99d3295

Browse files
authored
Bugfix to accidental data format change in 0.4.0 (#40)
1 parent 4ac97e7 commit 99d3295

File tree

4 files changed

+2865
-2847
lines changed

4 files changed

+2865
-2847
lines changed

README.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
1-
nordpool
2-
========
1+
# nordpool
32

43
Python library for fetching Nord Pool Elspot and Elbas prices.
54

6-
75
#### Installing bleeding edge version from GitHub
86

97
##### Installation
8+
109
`pip install git+https://github.com/kipe/nordpool.git`
1110

1211
##### Upgrading
13-
`pip install -U git+https://github.com/kipe/nordpool.git`
1412

13+
`pip install -U git+https://github.com/kipe/nordpool.git`
1514

1615
#### Example
16+
1717
```
1818
# Import library for fetching Elspot data
1919
from nordpool import elspot, elbas
@@ -34,7 +34,8 @@ pprint(prices_bas.hourly(areas=['FI']))
3434
```
3535

3636
###### Output
37-
```
37+
38+
```python
3839
{u'areas': {
3940
u'FI': {
4041
u'Average': 32.54,

nordpool/elspot.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,8 @@ def _parse_json(self, data, data_type, areas):
9494
if area not in areas:
9595
continue
9696
if area not in area_prices:
97-
area_prices[area] = []
98-
area_prices[area].append(
97+
area_prices[area] = {"values": []}
98+
area_prices[area]["values"].append(
9999
{
100100
"start": start,
101101
"end": end,

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "nordpool"
3-
version = "0.4.0"
3+
version = "0.4.1"
44
description = "Python library for fetching Nord Pool spot prices."
55
authors = ["Kimmo Huoman <kipenroskaposti@gmail.com>"]
66
license = "MIT"

0 commit comments

Comments
 (0)