mirror of
https://github.com/wassname/Open-Assistant.git
synced 2026-06-27 16:10:30 +08:00
add 'cache_ok = True' to PayloadJSONBType type decorator
This commit is contained in:
@@ -48,6 +48,8 @@ def payload_column_type(pydantic_type):
|
||||
class PayloadJSONBType(TypeDecorator, Generic[T]):
|
||||
impl = pg.JSONB()
|
||||
|
||||
cache_ok = True
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
json_encoder=json,
|
||||
|
||||
Reference in New Issue
Block a user