chiark / gitweb /
add print time and filament usage to stats
authordaid <daid303@gmail.com>
Mon, 8 Dec 2014 10:05:54 +0000 (11:05 +0100)
committerYouness Alaoui <kakaroto@kakaroto.homelinux.net>
Thu, 15 Jan 2015 18:54:15 +0000 (13:54 -0500)
Cura/util/sliceEngine.py

index 1c5d540a69d7295f7abb6750adade385fc777f2d..f0032a910665cc6d71932a878d3f5f175c9a4657 100644 (file)
@@ -156,6 +156,8 @@ class EngineResult(object):
                        'preferences': self._preferencesString,
                        'modelhash': self._modelHash,
                        'version': version.getVersion(),
+                       'printtime': self._printTimeSeconds,
+                       'filament': ','.join(map(str, self._filamentMM)),
                }
                try:
                        f = urllib2.urlopen("https://stats.youmagine.com/curastats/slice", data = urllib.urlencode(data), timeout = 1)