Skip to content

Commit

Permalink
Add glucose webhook test
Browse files Browse the repository at this point in the history
  • Loading branch information
maitham committed Nov 9, 2021
1 parent e2900d8 commit ec7ab8e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "vital"
version = "0.3.2"
version = "0.3.3"
description = ""
authors = ["maitham <[email protected]>"]
license = "GNU"
Expand Down
3 changes: 1 addition & 2 deletions vital/internal/webhook.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import json
import secrets
import time
from collections import OrderedDict
from hashlib import sha256
from typing import Dict, List, Optional, Tuple, Type, TypeVar

Expand All @@ -25,7 +24,7 @@ def construct_event(

WebhookSignature.verify_header(payload, sig_header, secret, tolerance)

data = json.loads(payload, object_pairs_hook=OrderedDict)
data = json.loads(payload, object_pairs_hook=dict)
return data


Expand Down
1 change: 1 addition & 0 deletions vital/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ class WebhookType(Enum):
SLEEP = "sleep"
BODY = "body"
WORKOUTS = "workouts"
VITALS_GLUCOSE = "vitals_glucose"


class WebhookEventCodes(Enum):
Expand Down

0 comments on commit ec7ab8e

Please sign in to comment.