8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
PostgresPersistence
1 parent b00485d commit 0e4a01fCopy full SHA for 0e4a01f
ptbcontrib/postgres_persistence/postgrespersistence.py
@@ -77,9 +77,9 @@ def __init__(
77
data_ = self._session.execute(text("SELECT data FROM persistence")).first()
78
data = data_[0] if data_ is not None else {}
79
80
- chat_data_json = data.get("chat_data", "")
81
- user_data_json = data.get("user_data", "")
82
- bot_data_json = data.get("bot_data", "")
+ chat_data_json = data.get("chat_data", "{}")
+ user_data_json = data.get("user_data", "{}")
+ bot_data_json = data.get("bot_data", "{}")
83
conversations_json = data.get("conversations", "{}")
84
callback_data_json = data.get("callback_data_json", "")
85
0 commit comments