Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
2e39131b
Commit
2e39131b
authored
Aug 22, 2012
by
David Ormsbee
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tiny fix to handle when data_or_params isn't passed in
parent
ebf971fa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
lms/lib/comment_client/utils.py
+2
-0
No files found.
lms/lib/comment_client/utils.py
View file @
2e39131b
...
...
@@ -20,6 +20,8 @@ def merge_dict(dic1, dic2):
return
dict
(
dic1
.
items
()
+
dic2
.
items
())
def
perform_request
(
method
,
url
,
data_or_params
=
None
,
*
args
,
**
kwargs
):
if
data_or_params
is
None
:
data_or_params
=
{}
data_or_params
[
'api_key'
]
=
settings
.
API_KEY
if
method
in
[
'post'
,
'put'
,
'patch'
]:
response
=
requests
.
request
(
method
,
url
,
data
=
data_or_params
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment