Commit 2bdb3b77 authored by janis.streib's avatar janis.streib 🦉
Browse files

FIX: correct json function

parent 7f30471e
import json
from . import macfinder
from net_suite.model import *
from net_suite import app
......@@ -61,7 +63,7 @@ def create_job():
pipe = r.pipeline()
pipe.set(job_id, jsonify(MacFinderJob(mac=request.json['mac'], job_id=job_id, vlan=vlan, bcd=vlan.bcd)))
pipe.set(job_id, json.dumps(MacFinderJob(mac=request.json['mac'], job_id=job_id, vlan=vlan, bcd=vlan.bcd)))
pipe.expire(job_id, 60 * 60 * 12)
return jsonify({'success': True, 'job_ids': created_jobs})
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment