Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
website
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Video AG Infrastruktur
website
Commits
92204532
Commit
92204532
authored
8 years ago
by
Andreas Valder
Browse files
Options
Downloads
Patches
Plain Diff
is_json was added in 0.11 -.- using get_json and testing for none
parent
585df417
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
server.py
+2
-2
2 additions, 2 deletions
server.py
with
2 additions
and
2 deletions
server.py
+
2
−
2
View file @
92204532
...
...
@@ -390,7 +390,7 @@ def edit(prefix='', ignore=[]):
prefix
=
request
.
args
[
'
prefix
'
]
modify
(
'
BEGIN
'
)
changes
=
request
.
values
.
items
()
if
(
request
.
method
==
'
POST
'
)
and
(
request
.
is
_json
):
if
(
request
.
method
==
'
POST
'
)
and
(
request
.
get
_json
()
):
changes
=
request
.
get_json
().
items
()
for
key
,
val
in
changes
:
if
key
in
ignore
:
...
...
@@ -419,7 +419,7 @@ def create(table):
columns
.
append
(
column
)
values
.
append
(
val
)
args
=
request
.
values
if
(
request
.
method
==
'
POST
'
)
and
(
request
.
is
_json
):
if
(
request
.
method
==
'
POST
'
)
and
(
request
.
get
_json
()
):
args
=
request
.
get_json
()
for
column
,
val
in
args
.
items
():
if
column
==
'
ref
'
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment