From 9220453258b1720f993313fc61f99785db2a96b0 Mon Sep 17 00:00:00 2001
From: Andreas <andreasv@fsmpi.rwth-aachen.de>
Date: Sun, 9 Oct 2016 19:31:09 +0200
Subject: [PATCH] is_json was added in 0.11 -.- using get_json and testing for
 none

---
 server.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/server.py b/server.py
index 86e4039..67a80bc 100644
--- a/server.py
+++ b/server.py
@@ -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':
-- 
GitLab