5 Commits
3 changed files with 9 additions and 9 deletions
+2 -2
View File
@@ -276,7 +276,7 @@ def alter(partID):
return '{"status":"ok", "part_id" : ' + str(new_id) + '}'
@app.route('/parts/delete/<partID>')
# @requires_auth
@requires_auth
def delete(partID):
if int(partID) < 0:
abort(400)
@@ -285,7 +285,7 @@ def delete(partID):
return '{"status":"ok"}'
@app.route('/parts/deleteLocation/<locationID>')
# @requires_auth
@requires_auth
def deleteLocation(locationID):
if int(locationID) < 0:
abort(400)
+3 -3
View File
@@ -8,10 +8,10 @@
integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4="
crossorigin="anonymous"></script>
<link href="https://fonts.googleapis.com/css?family=Roboto:300,400" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='style.css') }}">
<link rel="stylesheet" type="text/css" href="/parts/static/style.css">
<script src="https://use.fontawesome.com/2fef7be393.js"></script>
<script type="text/javascript" src="{{ url_for('static', filename='common.js') }}"></script>
<script type="text/javascript" src="{{ url_for('static', filename='locationEditorScript.js') }}"></script>
<script type="text/javascript" src="/parts/static/common.js"></script>
<script type="text/javascript" src="/parts/static/locationEditorScript.js"></script>
</head>
<body>
<h1>LOCATION EDITOR</h1>
+4 -4
View File
@@ -8,12 +8,12 @@
integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4="
crossorigin="anonymous"></script>
<link href="https://fonts.googleapis.com/css?family=Roboto:300,400" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='style.css') }}">
<link rel="apple-touch-icon-precomposed" href="{{ url_for('static', filename='apple-touch-icon.png') }}">
<link rel="stylesheet" type="text/css" href="parts/static/style.css">
<link rel="apple-touch-icon-precomposed" href="parts/static/apple-touch-icon.png">
<script src="https://use.fontawesome.com/2fef7be393.js"></script>
<script type="text/javascript" src="{{ url_for('static', filename='common.js') }}"></script>
<script type="text/javascript" src="{{ url_for('static', filename='script.js') }}"></script>
<script type="text/javascript" src="parts/static/common.js"></script>
<script type="text/javascript" src="parts/static/script.js"></script>
</head>
<body>
<h1>ELAB Part Search Engine</h1>