@@ -30,7 +30,7 @@ class db():
return ret
- def cut(self, _id=None):
+ def processed(self, _id=None):
ret = None
if _id:
ret = jsonable(self.cut_files.find_one({"_id": ObjectId(_id)}))
@@ -26,9 +26,9 @@ def raw_file(video_id):
ret["file"]=ret["file"].split("front")[1] #FIXME, path relativo al webserver
return jsonify(ret)
-@app.route(BASE_PATH + '/list/cut/')
-def cut_list():
- ret={'list': d.cut() }
+@app.route(BASE_PATH + '/list/processed/')
+def processed_list():
+ ret={'list': d.processed() }
@app.route(BASE_PATH + '/cut/', methods=["POST"])
def cut():
@@ -1,6 +1,6 @@
app.controller('processedCtrl', ['$scope', '$http', function ($scope, $http) {
$scope.update = function() {
- $http.get('back/list/cut').success(function(data) {
+ $http.get('back/list/processed').success(function(data) {
$scope.videolist = data.list.map(function(el) {
if (el.end_time.indexOf(":") == -1 ) { //1800 => 0:30:00
el.end_time=toHHMMSS(el.end_time);