Bob Huang 3 vuotta sitten
vanhempi
commit
13b1032aee
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      backend_refactor/service/photo_analyzer.py

+ 1 - 1
backend_refactor/service/photo_analyzer.py

@@ -24,8 +24,8 @@ class StandingPhotoAnalyzer(BasePhotoAnalyzer):
         self.height = data['height']
         self.height = data['height']
 
 
     def analyze(self, callback: Callable) -> None:
     def analyze(self, callback: Callable) -> None:
-        callback("RUNNING")
         try:
         try:
+            callback("RUNNING",progress=0)
             photos = []
             photos = []
             npys = []
             npys = []