Fix KeyValue __repr__.

This commit is contained in:
eSeR1805 2022-06-05 12:18:07 +03:00
parent de01aaf290
commit abda02572b
No known key found for this signature in database
GPG Key ID: BA53686259B46936

View File

@ -38,8 +38,8 @@ class KeyValue(_DECL_BASE):
if self.created_at is not None else None)
update_time = (self.updated_at.strftime(DATETIME_PRINT_FORMAT)
if self.updated_at is not None else None)
return (f'KeyValue(id={self.id}, key={self.kv_key}, type={self.kv_type}, ',
f'value={self.kv_value}, trade_id={self.ft_trade_id}, created={create_time}, ',
return (f'KeyValue(id={self.id}, key={self.kv_key}, type={self.kv_type}, ' +
f'value={self.kv_value}, trade_id={self.ft_trade_id}, created={create_time}, ' +
f'updated={update_time})')
@staticmethod