Skip to content

Commit

Permalink
Merge branch 'dev' into notification_initial
Browse files Browse the repository at this point in the history
  • Loading branch information
KunalTiwary authored Nov 22, 2023
2 parents b954c9e + 484f5f3 commit e65cba9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
7 changes: 3 additions & 4 deletions backend/functions/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -532,10 +532,9 @@ def get_batch_ocr_predictions_using_google(id, image_url):
}

ocr_prediction = ocr_format_conversion(ocr_prediction)
ocr_prediction_json = json.dumps(ocr_prediction, ensure_ascii=False)
ocr_predictions.append(ocr_prediction_json)

return ocr_predictions
ocr_predictions.append(ocr_prediction)
ocr_predictions_json = json.dumps(ocr_predictions, ensure_ascii=False)
return ocr_predictions_json


# Function to get the bounding box for a feature
Expand Down
3 changes: 1 addition & 2 deletions backend/workspaces/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -1647,6 +1647,7 @@ def send_user_analysis_reports_mail_ws(
):
ws = Workspace.objects.get(pk=pk)
user = User.objects.get(id=user_id)
final_reports = []

if reports_type == "review":
proj_objs = Project.objects.filter(workspace_id=pk)
Expand Down Expand Up @@ -1728,7 +1729,6 @@ def send_user_analysis_reports_mail_ws(
supercheck_projects_ids.append(supercheck_project.id)

workspace_superchecker_list = list(set(workspace_superchecker_list))
final_reports = []

if (
user.role == User.ORGANIZATION_OWNER
Expand Down Expand Up @@ -1782,7 +1782,6 @@ def send_user_analysis_reports_mail_ws(
users_id = [user.id for user in ws.members.all()]

selected_language = "-"
final_reports = []
for index, each_annotation_user in enumerate(users_id):
name = user_name[index]
email = user_mail[index]
Expand Down

0 comments on commit e65cba9

Please sign in to comment.