Skip to content

Commit

Permalink
Fix print_data
Browse files Browse the repository at this point in the history
  • Loading branch information
m-roberts committed Jan 29, 2020
1 parent b596efb commit 007b690
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/get_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import fitbit
import json
from token_handler import set_client_id, set_debug_state, print_json, read_tokens, write_tokens
from sys import stdin
from sys import stdin, stdout
import select

##############################################
Expand All @@ -17,7 +17,7 @@ def print_data(resource, data, goal, debug=False):

print(json.dumps({"type": "data", "resource": resource,
"values": {"data": data, "goal": goal}}))
sys.stdout.flush()
stdout.flush()


def print_empty_resource(resource):
Expand Down

0 comments on commit 007b690

Please sign in to comment.