We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5cc4cf0 commit e285363Copy full SHA for e285363
1 file changed
app/analytics.py
@@ -28,9 +28,11 @@ def analyze(event_id):
28
def decorator(function):
29
@wraps(function)
30
def wrapper(*args, **kwargs):
31
- post(event_id)
+ result = function(*args, **kwargs)
32
33
- return function(*args, **kwargs)
+ # record the analytics *after* a function is done
34
+ post(event_id)
35
+ return result
36
37
return wrapper
38
0 commit comments