diff --git a/packages/wakatime/__about__.py b/packages/wakatime/__about__.py index 13b3578..5fcb73b 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', '1') +__version_info__ = ('4', '1', '2') __version__ = '.'.join(__version_info__) __author__ = 'Alan Hamlett' __author_email__ = 'alan@wakatime.com' diff --git a/packages/wakatime/offlinequeue.py b/packages/wakatime/offlinequeue.py index ab05189..3ef3d30 100644 --- a/packages/wakatime/offlinequeue.py +++ b/packages/wakatime/offlinequeue.py @@ -61,7 +61,7 @@ class Queue(object): 'misc': u(misc), 'plugin': u(plugin), } - c.execute(u('INSERT INTO heartbeat VALUES (:file,:time,:project,:branch,:is_write,:stats,:misc,:plugin)'), heartbeat) + c.execute('INSERT INTO heartbeat VALUES (:file,:time,:project,:branch,:is_write,:stats,:misc,:plugin)', heartbeat) conn.commit() conn.close() except sqlite3.Error: @@ -92,14 +92,14 @@ class Queue(object): for row_name in ['file', 'time', 'project', 'branch', 'is_write']: if row[index] is not None: clauses.append('{0}=?'.format(row_name)) - values.append(u(row[index])) + values.append(row[index]) else: clauses.append('{0} IS NULL'.format(row_name)) index += 1 if len(values) > 0: - c.execute(u('DELETE FROM heartbeat WHERE {0}').format(u(' AND ').join(clauses)), values) + c.execute('DELETE FROM heartbeat WHERE {0}'.format(' AND '.join(clauses)), values) else: - c.execute(u('DELETE FROM heartbeat WHERE {0}').format(u(' AND ').join(clauses))) + c.execute('DELETE FROM heartbeat WHERE {0}'.format(' AND '.join(clauses))) conn.commit() if row is not None: heartbeat = {