Skip to content

Commit d50016c

Browse files
authored
Merge pull request #8 from ryancheley/remove_api_token_issue_007
Remove api_token from workspaces
2 parents dc10382 + 8d4fb96 commit d50016c

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from setuptools import setup
22
import os
33

4-
VERSION = "0.3.0"
4+
VERSION = "0.3.1"
55

66

77
def get_long_description():

toggl_to_sqlite/utils.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@ def get_workspaces(api_token):
2929
)
3030
if response.status_code == 200:
3131
workspaces.append(json.loads(response.text))
32+
for workspace in workspaces[0]:
33+
try:
34+
workspace.pop('api_token', None)
35+
except AttributeError:
36+
pass
3237
return workspaces
3338

3439

0 commit comments

Comments
 (0)