Show More
@@ -151,20 +151,22 b' def _store_log(action_name, action_data,' | |||||
151 |
|
151 | |||
152 |
|
152 | |||
153 | def store_web(*args, **kwargs): |
|
153 | def store_web(*args, **kwargs): | |
154 |
|
|
154 | action_data = {} | |
155 |
|
|
155 | org_action_data = kwargs.pop('action_data', {}) | |
156 |
|
|
156 | action_data.update(org_action_data) | |
157 |
|
|
157 | action_data['source'] = SOURCE_WEB | |
158 | }) |
|
158 | kwargs['action_data'] = action_data | |
|
159 | ||||
159 | return store(*args, **kwargs) |
|
160 | return store(*args, **kwargs) | |
160 |
|
161 | |||
161 |
|
162 | |||
162 | def store_api(*args, **kwargs): |
|
163 | def store_api(*args, **kwargs): | |
163 |
|
|
164 | action_data = {} | |
164 |
|
|
165 | org_action_data = kwargs.pop('action_data', {}) | |
165 |
|
|
166 | action_data.update(org_action_data) | |
166 |
|
|
167 | action_data['source'] = SOURCE_API | |
167 | }) |
|
168 | kwargs['action_data'] = action_data | |
|
169 | ||||
168 | return store(*args, **kwargs) |
|
170 | return store(*args, **kwargs) | |
169 |
|
171 | |||
170 |
|
172 |
General Comments 0
You need to be logged in to leave comments.
Login now