@@ -12,4 +12,4 @@ class ListLabelProviders(View):
methods = ['GET']
def dispatch_request(self):
- return jsonify(LabelProviders.query.all())
+ return jsonify(LabelProvider.query.all())
@@ -58,7 +58,7 @@ def resize_file(project_id, file_id, max_width, max_height):
if os.path.isabs(file.path):
abs_file_path = file.path
else:
- abs_file_path = os.path.join(getcwd(), file.path)
+ abs_file_path = os.path.join(os.getcwd(), file.path)
# extract video thumbnail
if file.type == 'video':
@@ -15,7 +15,7 @@ class ListCollections(View):
def dispatch_request(self, project_id: int):
# 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
found = False
@@ -100,7 +100,7 @@ class GreenWorker(abc.ABC):
elif res is self.CONTINUE_QUEUE:
continue
- self.info(f"Got a job from the chache queue")
+ self.info(f"Got a job from the cache queue")
try:
self.info("Starting work")
self.start_work(*res)