Browse Source

fixed some typos

Dimitri Korsch 3 năm trước cách đây
mục cha
commit
825050209a

+ 1 - 1
pycs/frontend/endpoints/ListLabelProviders.py

@@ -12,4 +12,4 @@ class ListLabelProviders(View):
     methods = ['GET']
     methods = ['GET']
 
 
     def dispatch_request(self):
     def dispatch_request(self):
-        return jsonify(LabelProviders.query.all())
+        return jsonify(LabelProvider.query.all())

+ 1 - 1
pycs/frontend/endpoints/data/GetResizedFile.py

@@ -58,7 +58,7 @@ def resize_file(project_id, file_id, max_width, max_height):
     if os.path.isabs(file.path):
     if os.path.isabs(file.path):
         abs_file_path = file.path
         abs_file_path = file.path
     else:
     else:
-        abs_file_path = os.path.join(getcwd(), file.path)
+        abs_file_path = os.path.join(os.getcwd(), file.path)
 
 
     # extract video thumbnail
     # extract video thumbnail
     if file.type == 'video':
     if file.type == 'video':

+ 1 - 1
pycs/frontend/endpoints/projects/ListCollections.py

@@ -15,7 +15,7 @@ class ListCollections(View):
     def dispatch_request(self, project_id: int):
     def dispatch_request(self, project_id: int):
 
 
         # get collection list
         # get collection list
-        collections = Collections.query.filter_by(project_id=project_id).all()
+        collections = Collection.query.filter_by(project_id=project_id).all()
 
 
         # disable autoselect if there are no elements in the collection
         # disable autoselect if there are no elements in the collection
         found = False
         found = False

+ 1 - 1
pycs/util/green_worker.py

@@ -100,7 +100,7 @@ class GreenWorker(abc.ABC):
             elif res is self.CONTINUE_QUEUE:
             elif res is self.CONTINUE_QUEUE:
                 continue
                 continue
 
 
-            self.info(f"Got a job from the chache queue")
+            self.info(f"Got a job from the cache queue")
             try:
             try:
                 self.info("Starting work")
                 self.info("Starting work")
                 self.start_work(*res)
                 self.start_work(*res)