Kaynağa Gözat

cut => processed

David 10 yıl önce
ebeveyn
işleme
da8e43b593
3 değiştirilmiş dosya ile 5 ekleme ve 5 silme
  1. 1 1
      back/db.py
  2. 3 3
      back/web.py
  3. 1 1
      front/controllers/processedCtrl.js

+ 1 - 1
back/db.py

@@ -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)}))

+ 3 - 3
back/web.py

@@ -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() }
     return jsonify(ret)
 @app.route(BASE_PATH + '/cut/', methods=["POST"])
 def cut():

+ 1 - 1
front/controllers/processedCtrl.js

@@ -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);