Skip to content

Commit 95f9051

Browse files
committed
activity payload in wrapped in an activity object
1 parent 09fe595 commit 95f9051

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

api.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ def listPrograms():
118118
## Activities
119119

120120
def saveActivity(data):
121+
data = data["activity"]
121122
if activities.search(query.name == data["name"]) == []:
122123
activities.insert(data)
123124
return 200

0 commit comments

Comments
 (0)