fix bug
This commit is contained in:
parent
f3c37b1ef7
commit
5a3b66924f
@ -81,7 +81,7 @@ class PrivMaps(Resource):
|
||||
max = int(data[0][0]) + 1
|
||||
log.info(f"max id was {max}!")
|
||||
except Exception:
|
||||
log.error(f"error with get company id ", exc_info=True)
|
||||
log.error(f"error with get maps id ", exc_info=True)
|
||||
max = 1001
|
||||
return max
|
||||
|
||||
@ -96,12 +96,14 @@ class PrivMaps(Resource):
|
||||
self.mydb.insert("mymaps", mymaps)
|
||||
return jsonify({'code': 200})
|
||||
except Exception:
|
||||
log.error("set values to company mysql failed!", exc_info=True)
|
||||
log.error("set values to maps mysql failed!", exc_info=True)
|
||||
return jsonify({'code': 500})
|
||||
|
||||
|
||||
def put(self):
|
||||
print(f"args={self.args}")
|
||||
args = my_unquote(self.args['args'])
|
||||
print(f"2={args}")
|
||||
try:
|
||||
mymaps = {}
|
||||
mymaps['mapid'] = args['mapid']
|
||||
|
Loading…
x
Reference in New Issue
Block a user