Commit 4755a86
authored
Add
Currently in the logs the delivery period is always printed as an object
(e.g.
`delivery_period=<frequenz.client.electricity_trading._types.DeliveryPeriod
object at 0x7fdfcef729d0>`).
In order to increase clarity, this PR adds a __str__ function so that
the delivery period can be clearly printed, (e.g.:
`DeliveryPeriod(start=2024-11-11 16:00:00 +00:00, duration=15min)`).__str__ method for DeliveryPeriod (#67)File tree
2 files changed
+27
-0
lines changed- src/frequenz/client/electricity_trading
2 files changed
+27
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
365 | 365 | | |
366 | 366 | | |
367 | 367 | | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
368 | 394 | | |
369 | 395 | | |
370 | 396 | | |
| |||
0 commit comments