From 02277aca9907c955e51156ad9685aae75a5da70d Mon Sep 17 00:00:00 2001 From: Alan Hamlett Date: Fri, 28 Aug 2015 15:05:20 -0700 Subject: [PATCH] upgrade wakatime cli to v4.1.3 --- plugin/packages/wakatime/__about__.py | 2 +- plugin/packages/wakatime/session_cache.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin/packages/wakatime/__about__.py b/plugin/packages/wakatime/__about__.py index 5fcb73b..9c2c562 100644 --- a/plugin/packages/wakatime/__about__.py +++ b/plugin/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/plugin/packages/wakatime/session_cache.py b/plugin/packages/wakatime/session_cache.py index 3cff2a5..2f4578f 100644 --- a/plugin/packages/wakatime/session_cache.py +++ b/plugin/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()