@@ -793,36 +793,6 @@ def report_expiration(request, country_id=None):
793793 return HttpResponse ("You need to be logged in as superexpert to view this page. If you have have been recruited as an expert and have lost your log-in credentials, please contact MoveLab." )
794794
795795
796- def executive_auto_validate (annotation , request ):
797- users = []
798- report = annotation .report
799- users .append (User .objects .get (username = "innie" ))
800- users .append (User .objects .get (username = "minnie" ))
801- super_reritja = User .objects .get (username = "super_reritja" )
802- for u in users :
803- if not ExpertReportAnnotation .objects .filter (report = report ).filter (user = u ).exists ():
804- new_annotation = ExpertReportAnnotation (report = report , user = u )
805- new_annotation .simplified_annotation = True
806- new_annotation .tiger_certainty_notes = 'exec_auto'
807- new_annotation .tiger_certainty_category = annotation .tiger_certainty_category
808- new_annotation .aegypti_certainty_category = annotation .aegypti_certainty_category
809- new_annotation .status = annotation .status
810- new_annotation .category = annotation .category
811- new_annotation .complex = annotation .complex
812- new_annotation .validation_value = annotation .validation_value
813- new_annotation .other_species = annotation .other_species
814- new_annotation .validation_complete = True
815- new_annotation .save ()
816- try :
817- roger_annotation = ExpertReportAnnotation .objects .get (user = super_reritja , report = report )
818- except ExpertReportAnnotation .DoesNotExist :
819- roger_annotation = ExpertReportAnnotation (user = super_reritja , report = report )
820-
821- roger_annotation .validation_complete = True
822- roger_annotation .save ()
823- current_domain = get_current_domain (request )
824- issue_notification (roger_annotation , current_domain )
825-
826796@transaction .atomic
827797@login_required
828798def expert_report_annotation (request , scroll_position = '' , tasks_per_page = '10' , note_language = 'es' , load_new_reports = 'F' , year = 'all' , orderby = 'date' , tiger_certainty = 'all' , site_certainty = 'all' , pending = 'na' , checked = 'na' , status = 'all' , final_status = 'na' , max_pending = 5 , max_given = 3 , version_uuid = 'na' , linked_id = 'na' , ns_exec = 'all' , edit_mode = 'off' , tags_filter = 'na' ,loc = 'na' ):
@@ -880,8 +850,6 @@ def expert_report_annotation(request, scroll_position='', tasks_per_page='10', n
880850 one_form .status = 0
881851 one_form .save ()
882852 f .save_m2m ()
883- if one_form .validation_complete_executive :
884- executive_auto_validate (one_form , request )
885853 if (this_user_is_reritja and one_form .validation_complete == True ):
886854 issue_notification (one_form ,current_domain )
887855 if auto_flag :
0 commit comments