mirror of
https://github.com/Infinidat/infi.clickhouse_orm.git
synced 2024-11-22 17:16:34 +03:00
TRIVIAL code style
This commit is contained in:
parent
4b086d5b21
commit
6c4640bb24
|
@ -156,8 +156,9 @@ class Model(with_metaclass(ModelBase)):
|
||||||
:param bool insertable_only: If True, returns only fields, that can be inserted into database
|
:param bool insertable_only: If True, returns only fields, that can be inserted into database
|
||||||
'''
|
'''
|
||||||
data = self.__dict__
|
data = self.__dict__
|
||||||
|
fields = self._fields
|
||||||
fields = [f for f in self._fields if f[1].is_insertable()] if insertable_only else self._fields
|
if insertable_only:
|
||||||
|
fields = [f for f in fields if f[1].is_insertable()]
|
||||||
return '\t'.join(field.to_db_string(data[name], quote=False) for name, field in fields)
|
return '\t'.join(field.to_db_string(data[name], quote=False) for name, field in fields)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user