summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Baumann <derflob@derflob.de>2016-07-15 22:21:01 +1200
committerFlorian Baumann <derflob@derflob.de>2016-07-15 22:21:01 +1200
commit088cadada16548732c3613156c843c475753ae65 (patch)
tree219c4521771fc856887058e3d2c5b8e84fb6e110
parent9267551b36e80dac55514bb10bef5abfd38d03b1 (diff)
downloadxmpp-088cadada16548732c3613156c843c475753ae65.tar.gz
xmpp-088cadada16548732c3613156c843c475753ae65.tar.bz2
fix status job
-rw-r--r--__init__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/__init__.py b/__init__.py
index bd56788..b5ed95f 100644
--- a/__init__.py
+++ b/__init__.py
@@ -183,10 +183,10 @@ class OctoXMPP(EventHandlerPlugin, SettingsPlugin):
for (k, v) in state['job']['filament'].items():
if (v['length'] > 1000.0):
lines.append("Filament ({}): {:.1f}cm³/{:.2f}m".format(
- v['volume'], v['length']/1000.0))
+ k, v['volume'], v['length']/1000.0))
else:
lines.append("Filament ({}): {:.1f}cm³/{:.0f}mm".format(
- v['volume'], v['length']))
+ k, v['volume'], v['length']))
else:
lines.append("No job loaded.")