{"filter":false,"title":"app.py","tooltip":"/app.py","undoManager":{"mark":8,"position":8,"stack":[[{"start":{"row":55,"column":0},"end":{"row":56,"column":0},"action":"insert","lines":["",""],"id":2}],[{"start":{"row":56,"column":0},"end":{"row":69,"column":0},"action":"insert","lines":["@app.route('/edit_category/<category_id>')","def edit_category(category_id):","    return render_template('editcategory.html',","                           category=mongo.db.categories.find_one(","                           {'_id': ObjectId(category_id)}))","","","@app.route('/update_category/<category_id>', methods=['POST'])","def update_category(category_id):","    mongo.db.categories.update(","        {'_id': ObjectId(category_id)},","        {'category_name': request.form.get('category_name')})","    return redirect(url_for('get_categories'))",""],"id":3}],[{"start":{"row":60,"column":26},"end":{"row":60,"column":27},"action":"remove","lines":[" "],"id":4},{"start":{"row":60,"column":25},"end":{"row":60,"column":26},"action":"remove","lines":[" "]},{"start":{"row":60,"column":24},"end":{"row":60,"column":25},"action":"remove","lines":[" "]},{"start":{"row":60,"column":20},"end":{"row":60,"column":24},"action":"remove","lines":["    "]},{"start":{"row":60,"column":16},"end":{"row":60,"column":20},"action":"remove","lines":["    "]},{"start":{"row":60,"column":12},"end":{"row":60,"column":16},"action":"remove","lines":["    "]},{"start":{"row":60,"column":8},"end":{"row":60,"column":12},"action":"remove","lines":["    "]},{"start":{"row":60,"column":4},"end":{"row":60,"column":8},"action":"remove","lines":["    "]},{"start":{"row":60,"column":0},"end":{"row":60,"column":4},"action":"remove","lines":["    "]}],[{"start":{"row":59,"column":65},"end":{"row":60,"column":0},"action":"remove","lines":["",""],"id":5}],[{"start":{"row":59,"column":97},"end":{"row":60,"column":0},"action":"remove","lines":["",""],"id":6}],[{"start":{"row":67,"column":0},"end":{"row":72,"column":0},"action":"insert","lines":["@app.route('/delete_category/<category_id>')","def delete_category(category_id):","    mongo.db.categories.remove({'_id': ObjectId(category_id)})","    return redirect(url_for('get_categories'))","",""],"id":7}],[{"start":{"row":66,"column":46},"end":{"row":67,"column":0},"action":"insert","lines":["",""],"id":8},{"start":{"row":67,"column":0},"end":{"row":67,"column":4},"action":"insert","lines":["    "]}],[{"start":{"row":72,"column":0},"end":{"row":73,"column":0},"action":"insert","lines":["",""],"id":9}],[{"start":{"row":73,"column":0},"end":{"row":82,"column":46},"action":"insert","lines":["@app.route('/insert_category', methods=['POST'])","def insert_category():","    category_doc = {'category_name': request.form.get('category_name')}","    mongo.db.categories.insert_one(category_doc)","    return redirect(url_for('get_categories'))","","","@app.route('/add_category')","def add_category():","    return render_template('addcategory.html')"],"id":10}]]},"ace":{"folds":[],"scrolltop":330,"scrollleft":0,"selection":{"start":{"row":17,"column":15},"end":{"row":17,"column":15},"isBackwards":false},"options":{"guessTabSize":true,"useWrapMode":false,"wrapToView":true},"firstLineState":0},"timestamp":1578424147733,"hash":"6f02db1dcdb0878a3e833f982d97405ce243f190"}
35518dce8403cc32a3bf40a1bfecaf245f54c5cd
<mask token>

{'filter': false, 'title': 'app.py', 'tooltip': '/app.py', 'undoManager': {
    'mark': 8, 'position': 8, 'stack': [[{'start': {'row': 55, 'column': 0},
    'end': {'row': 56, 'column': 0}, 'action': 'insert', 'lines': ['', ''],
    'id': 2}], [{'start': {'row': 56, 'column': 0}, 'end': {'row': 69,
    'column': 0}, 'action': 'insert', 'lines': [
    "@app.route('/edit_category/<category_id>')",
    'def edit_category(category_id):',
    "    return render_template('editcategory.html',",
    '                           category=mongo.db.categories.find_one(',
    "                           {'_id': ObjectId(category_id)}))", '', '',
    "@app.route('/update_category/<category_id>', methods=['POST'])",
    'def update_category(category_id):', '    mongo.db.categories.update(',
    "        {'_id': ObjectId(category_id)},",
    "        {'category_name': request.form.get('category_name')})",
    "    return redirect(url_for('get_categories'))", ''], 'id': 3}], [{
    'start': {'row': 60, 'column': 26}, 'end': {'row': 60, 'column': 27},
    'action': 'remove', 'lines': [' '], 'id': 4}, {'start': {'row': 60,
    'column': 25}, 'end': {'row': 60, 'column': 26}, 'action': 'remove',
    'lines': [' ']}, {'start': {'row': 60, 'column': 24}, 'end': {'row': 60,
    'column': 25}, 'action': 'remove', 'lines': [' ']}, {'start': {'row': 
    60, 'column': 20}, 'end': {'row': 60, 'column': 24}, 'action': 'remove',
    'lines': ['    ']}, {'start': {'row': 60, 'column': 16}, 'end': {'row':
    60, 'column': 20}, 'action': 'remove', 'lines': ['    ']}, {'start': {
    'row': 60, 'column': 12}, 'end': {'row': 60, 'column': 16}, 'action':
    'remove', 'lines': ['    ']}, {'start': {'row': 60, 'column': 8}, 'end':
    {'row': 60, 'column': 12}, 'action': 'remove', 'lines': ['    ']}, {
    'start': {'row': 60, 'column': 4}, 'end': {'row': 60, 'column': 8},
    'action': 'remove', 'lines': ['    ']}, {'start': {'row': 60, 'column':
    0}, 'end': {'row': 60, 'column': 4}, 'action': 'remove', 'lines': [
    '    ']}], [{'start': {'row': 59, 'column': 65}, 'end': {'row': 60,
    'column': 0}, 'action': 'remove', 'lines': ['', ''], 'id': 5}], [{
    'start': {'row': 59, 'column': 97}, 'end': {'row': 60, 'column': 0},
    'action': 'remove', 'lines': ['', ''], 'id': 6}], [{'start': {'row': 67,
    'column': 0}, 'end': {'row': 72, 'column': 0}, 'action': 'insert',
    'lines': ["@app.route('/delete_category/<category_id>')",
    'def delete_category(category_id):',
    "    mongo.db.categories.remove({'_id': ObjectId(category_id)})",
    "    return redirect(url_for('get_categories'))", '', ''], 'id': 7}], [
    {'start': {'row': 66, 'column': 46}, 'end': {'row': 67, 'column': 0},
    'action': 'insert', 'lines': ['', ''], 'id': 8}, {'start': {'row': 67,
    'column': 0}, 'end': {'row': 67, 'column': 4}, 'action': 'insert',
    'lines': ['    ']}], [{'start': {'row': 72, 'column': 0}, 'end': {'row':
    73, 'column': 0}, 'action': 'insert', 'lines': ['', ''], 'id': 9}], [{
    'start': {'row': 73, 'column': 0}, 'end': {'row': 82, 'column': 46},
    'action': 'insert', 'lines': [
    "@app.route('/insert_category', methods=['POST'])",
    'def insert_category():',
    "    category_doc = {'category_name': request.form.get('category_name')}",
    '    mongo.db.categories.insert_one(category_doc)',
    "    return redirect(url_for('get_categories'))", '', '',
    "@app.route('/add_category')", 'def add_category():',
    "    return render_template('addcategory.html')"], 'id': 10}]]}, 'ace':
    {'folds': [], 'scrolltop': 330, 'scrollleft': 0, 'selection': {'start':
    {'row': 17, 'column': 15}, 'end': {'row': 17, 'column': 15},
    'isBackwards': false}, 'options': {'guessTabSize': true, 'useWrapMode':
    false, 'wrapToView': true}, 'firstLineState': 0}, 'timestamp': 
    1578424147733, 'hash': '6f02db1dcdb0878a3e833f982d97405ce243f190'}

{"filter":false,"title":"app.py","tooltip":"/app.py","undoManager":{"mark":8,"position":8,"stack":[[{"start":{"row":55,"column":0},"end":{"row":56,"column":0},"action":"insert","lines":["",""],"id":2}],[{"start":{"row":56,"column":0},"end":{"row":69,"column":0},"action":"insert","lines":["@app.route('/edit_category/<category_id>')","def edit_category(category_id):","    return render_template('editcategory.html',","                           category=mongo.db.categories.find_one(","                           {'_id': ObjectId(category_id)}))","","","@app.route('/update_category/<category_id>', methods=['POST'])","def update_category(category_id):","    mongo.db.categories.update(","        {'_id': ObjectId(category_id)},","        {'category_name': request.form.get('category_name')})","    return redirect(url_for('get_categories'))",""],"id":3}],[{"start":{"row":60,"column":26},"end":{"row":60,"column":27},"action":"remove","lines":[" "],"id":4},{"start":{"row":60,"column":25},"end":{"row":60,"column":26},"action":"remove","lines":[" "]},{"start":{"row":60,"column":24},"end":{"row":60,"column":25},"action":"remove","lines":[" "]},{"start":{"row":60,"column":20},"end":{"row":60,"column":24},"action":"remove","lines":["    "]},{"start":{"row":60,"column":16},"end":{"row":60,"column":20},"action":"remove","lines":["    "]},{"start":{"row":60,"column":12},"end":{"row":60,"column":16},"action":"remove","lines":["    "]},{"start":{"row":60,"column":8},"end":{"row":60,"column":12},"action":"remove","lines":["    "]},{"start":{"row":60,"column":4},"end":{"row":60,"column":8},"action":"remove","lines":["    "]},{"start":{"row":60,"column":0},"end":{"row":60,"column":4},"action":"remove","lines":["    "]}],[{"start":{"row":59,"column":65},"end":{"row":60,"column":0},"action":"remove","lines":["",""],"id":5}],[{"start":{"row":59,"column":97},"end":{"row":60,"column":0},"action":"remove","lines":["",""],"id":6}],[{"start":{"row":67,"column":0},"end":{"row":72,"column":0},"action":"insert","lines":["@app.route('/delete_category/<category_id>')","def delete_category(category_id):","    mongo.db.categories.remove({'_id': ObjectId(category_id)})","    return redirect(url_for('get_categories'))","",""],"id":7}],[{"start":{"row":66,"column":46},"end":{"row":67,"column":0},"action":"insert","lines":["",""],"id":8},{"start":{"row":67,"column":0},"end":{"row":67,"column":4},"action":"insert","lines":["    "]}],[{"start":{"row":72,"column":0},"end":{"row":73,"column":0},"action":"insert","lines":["",""],"id":9}],[{"start":{"row":73,"column":0},"end":{"row":82,"column":46},"action":"insert","lines":["@app.route('/insert_category', methods=['POST'])","def insert_category():","    category_doc = {'category_name': request.form.get('category_name')}","    mongo.db.categories.insert_one(category_doc)","    return redirect(url_for('get_categories'))","","","@app.route('/add_category')","def add_category():","    return render_template('addcategory.html')"],"id":10}]]},"ace":{"folds":[],"scrolltop":330,"scrollleft":0,"selection":{"start":{"row":17,"column":15},"end":{"row":17,"column":15},"isBackwards":false},"options":{"guessTabSize":true,"useWrapMode":false,"wrapToView":true},"firstLineState":0},"timestamp":1578424147733,"hash":"6f02db1dcdb0878a3e833f982d97405ce243f190"}