mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-08-22 22:03:46 +08:00
staticmethod
This commit is contained in:
+2
-1
@@ -96,7 +96,8 @@ class StatLogSP(StatLog):
|
||||
if self.comma_statlog:
|
||||
self.comma_statlog._send(metric)
|
||||
|
||||
def default_converter(self, obj):
|
||||
@staticmethod
|
||||
def default_converter(obj):
|
||||
if isinstance(obj, (datetime, date)):
|
||||
return obj.isoformat()
|
||||
if isinstance(obj, set):
|
||||
|
||||
Reference in New Issue
Block a user