From 1834e8978a5fc2f884459b6a769681568dccc815 Mon Sep 17 00:00:00 2001 From: Alan Hamlett Date: Fri, 28 Aug 2015 15:05:55 -0700 Subject: [PATCH] upgrade wakatime cli to v4.1.3 --- packages/wakatime/__about__.py | 2 +- packages/wakatime/session_cache.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/wakatime/__about__.py b/packages/wakatime/__about__.py index 5fcb73b..9c2c562 100644 --- a/packages/wakatime/__about__.py +++ b/packages/wakatime/__about__.py @@ -1,7 +1,7 @@ __title__ = 'wakatime' __description__ = 'Common interface to the WakaTime api.' __url__ = 'https://github.com/wakatime/wakatime' -__version_info__ = ('4', '1', '2') +__version_info__ = ('4', '1', '3') __version__ = '.'.join(__version_info__) __author__ = 'Alan Hamlett' __author_email__ = 'alan@wakatime.com' diff --git a/packages/wakatime/session_cache.py b/packages/wakatime/session_cache.py index 3cff2a5..2f4578f 100644 --- a/packages/wakatime/session_cache.py +++ b/packages/wakatime/session_cache.py @@ -52,7 +52,7 @@ class SessionCache(object): conn, c = self.connect() c.execute('DELETE FROM session') values = { - 'value': pickle.dumps(session, protocol=2), + 'value': sqlite3.Binary(pickle.dumps(session, protocol=2)), } c.execute('INSERT INTO session VALUES (:value)', values) conn.commit()