python /home/admin/mtr/script_for_cron.py -j datou_current3 -m 20 -a ' -a 4302 -v ' -s datou_current_4302 -M 0 -S 0 -U 95,95,120 import MySQLdb succeeded Import error (python version) ['/Users/moilerat/Documents/Fotonower/install/caffe/distribute/python', '/home/admin/workarea/git/Velours/python/prod', '/home/admin/workarea/install/caffe_cuda8_python3/python', '/home/admin/workarea/install/darknet', '/home/admin/workarea/git/Velours/python', '/home/admin/workarea/install/caffe_frcnn_python3/py-faster-rcnn/caffe-fast-rcnn/python', '/home/admin/mtr/.credentials', '/home/admin/workarea/install/caffe/python', '/home/admin/workarea/install/caffe_frcnn/py-faster-rcnn/tools', '/home/admin/workarea/git/fotonowerpip', '/home/admin/workarea/install/segment-anything', '/home/admin/workarea/git/pyfvs', '/usr/lib/python38.zip', '/usr/lib/python3.8', '/usr/lib/python3.8/lib-dynload', '/home/admin/.local/lib/python3.8/site-packages', '/usr/local/lib/python3.8/dist-packages', '/usr/lib/python3/dist-packages'] Namespace(auto=False, cert_args='/home/fotonower/https/cert.pem', contextDataFile='', custom_size=0, database='', datou_id='4302', datou_id_excluded='', fifo=False, host='', is_cpu_mode=False, job='batch_current', json_args='', key_args='/home/fotonower/https/vision.fotonower.com.key', limit=1000, list_photo_ids='', local='', mtr_current_id=0, mtr_portfolio_ids='', nb_thread=1, no_current=False, offset=0, only_client=False, output_file='', password='', port=5100, rand=0, save=2, use_client=False, user_id=440, username='', verbose=True) process id : 1655573 load datou : 4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! Unexpected type seems boolean for variable list_input_json ERROR or WARNING : can't parse json string Expecting value: line 1 column 1 (char 0) Tried to parse : None was removed should we ? donnée sous forme de texte was removed should we ? (photo_id, hashtag_id, score_max) was removed should we ? id de la photo (peut être local ou global) was removed should we ? donnée sous forme de texte was removed should we ? donnée sous forme de texte was removed should we ? donnée sous forme de texte was removed should we ? None was removed should we ? donnée sous forme de nombre was removed should we ? (photo_id, hashtag_id, score_max) was removed should we ? (photo_id, hashtag_id, score_max) was removed should we ? (photo_id, hashtag_id, score_max) was removed should we ? (photo_id, hashtag_id, score_max) was removed should we ? (photo_id, hashtag_id, score_max) was removed should we ? donnée sous forme de texte was removed should we ? None was removed should we ? donnée sous forme de texte was removed should we ? [ptf_id0,ptf_id1...] was removed should we ? load thcls load pdts Running datou job : batch_current 4302 [] TODO datou_current to load to do maybe to take outside batchDatouExec SELECT * from MTRPhoto.mtr_datou_current where state = 0 AND mtr_portfolio_id is not NULL AND mtd_id = 4302 order by created_at desc LIMIT 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (3801359) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (3801359) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27337055 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['3801359'] with mtr_portfolio_ids : ['27337055'] and first list_photo_ids : [] new path : /proc/1655573/ Name: python3 Umask: 0002 State: R (running) Tgid: 1655573 Ngid: 0 Pid: 1655573 PPid: 1655572 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 1655573 NSpid: 1655573 NSpgid: 1654928 NSsid: 1654928 VmPeak: 1106856 kB VmSize: 1106856 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 99076 kB VmRSS: 99076 kB RssAnon: 59840 kB RssFile: 39236 kB RssShmem: 0 kB VmData: 865608 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 608 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63019 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 56 nonvoluntary_ctxt_switches: 111 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '1655573', 'Ngid': '0', 'Pid': '1655573', 'PPid': '1655572', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '1655573', 'NSpid': '1655573', 'NSpgid': '1654928', 'NSsid': '1654928', 'VmPeak': '1106856 kB', 'VmSize': '1106856 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '99076 kB', 'VmRSS': '99076 kB', 'RssAnon': '59840 kB', 'RssFile': '39236 kB', 'RssShmem': '0 kB', 'VmData': '865608 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '608 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63019', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '56', 'nonvoluntary_ctxt_switches': '111'} ('datou_batch_current', '1655573', '1106856', '0', '1106856', '865608', '99076', b'', 'marlene', '3801359') insert ignore into MTRAdmin.mem_info (script_name, PID, VMpeak,VMswap,VMsize,VMdata,VMrss,GPU_ram, hostname, mtr_current_id) VALUES (%s,%s,%s,%s,%s,%s,%s,%s,%s,%s) Inside batchDatouExec : verbose : True ##### chargement datou SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify List Step Type Loaded in datou : ventilate_hashtags_in_portfolio, final, velours_tree, send_mail_cod, split_time_score over limit max, limiting to limit_max 200 list_input_json : [] ##### fin chargement datou ##### chargement data ##### Call load_data_input : nb_thread : 1 origin SELECT ph.photo_id, ph.url FROM MTRBack.photos_view ph WHERE ph.photo_id IN (SELECT mtr_photo_id from MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (27337055) and hide_status = 0 ) AND ph.photo_id not in (SELECT mtr_photo_id from MTRPhoto.mtr_datou_result_search where mtr_current_id in (3801359 ) ) ORDER BY ph.photo_id DESC LIMIT 0, 200 We have 1 , {} SELECT mtr_photo_id, mtr_portfolio_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (27337055) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1386849306, 'portfolio_id': 27337055}, {'photo_id': 1386849278, 'portfolio_id': 27337055}, {'photo_id': 1386847816, 'portfolio_id': 27337055}, {'photo_id': 1386847812, 'portfolio_id': 27337055}, {'photo_id': 1386846111, 'portfolio_id': 27337055}, {'photo_id': 1386845154, 'portfolio_id': 27337055}, {'photo_id': 1386845150, 'portfolio_id': 27337055}, {'photo_id': 1386845116, 'portfolio_id': 27337055}] map_portfolio_id_photo_id: {27337055: [1386849306, 1386849278, 1386847816, 1386847812, 1386846111, 1386845154, 1386845150, 1386845116]} ##### Call download_photos : nb_thread : 1 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos ##### After load_data_input time to download the photos : 0.05331134796142578 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Wed Oct 1 05:36:30 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (27337055) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {} map_subphoto_mainphoto : {} beginning of datou step ventilate_hashtags_in_portfolio : To implement ! To do loadFromThcl(), then load ParamDescType : thcl2725 get_desc_type_from_thcl : type of cat SELECT id, mtr_user_id, name, pb_hashtag_id, hashtag_id_list, button_legend_list, portfolio_id_lists, photo_hashtag_type, photo_desc_type, svm_limit, limit_tagging, is_public, live, created_at, updated_at, type_classification FROM MTRDatou.classification_theme WHERE `id` IN (2725) thcls : [{'id': 2725, 'mtr_user_id': 31, 'name': 'learn_qualipapia_rle_210302_2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Carton_brun,Carton_gris,Teint_Dans_La_Masse,autre_refus,cartonnette,environnement,kraft,metal,papier,plastique', 'svm_portfolios_learning': '3460440,3460441,3460446,3460434,3460439,3467416,3460442,3460443,3486028,3460445', 'photo_hashtag_type': 3410, 'photo_desc_type': 5186, 'type_classification': 'caffe', 'hashtag_id_list': '2107753024,2107753020,2107752385,2107752406,702398920,493012381,493202403,492628673,492668766,492725882'}] thcl {'id': 2725, 'mtr_user_id': 31, 'name': 'learn_qualipapia_rle_210302_2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Carton_brun,Carton_gris,Teint_Dans_La_Masse,autre_refus,cartonnette,environnement,kraft,metal,papier,plastique', 'svm_portfolios_learning': '3460440,3460441,3460446,3460434,3460439,3467416,3460442,3460443,3486028,3460445', 'photo_hashtag_type': 3410, 'photo_desc_type': 5186, 'type_classification': 'caffe', 'hashtag_id_list': '2107753024,2107753020,2107752385,2107752406,702398920,493012381,493202403,492628673,492668766,492725882'} Update svm_hashtag_type_desc : 5186 remove imagettes from duplicated photo Iterating over portfolio : 27337055 get user id for portfolio 27337055 get sub ptf for main ptf 27337055, type 3726 and hashtags ['environnement', 'plastique', 'autre_refus', 'Carton_brun', 'cartonnette', 'flou', 'Carton_gris', 'papier', 'kraft', 'Teint_Dans_La_Masse', 'metal', 'mal_croppe'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27337055 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','plastique','autre_refus','Carton_brun','cartonnette','flou','Carton_gris','papier','kraft','Teint_Dans_La_Masse','metal','mal_croppe')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27337055 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','plastique','autre_refus','Carton_brun','cartonnette','flou','Carton_gris','papier','kraft','Teint_Dans_La_Masse','metal','mal_croppe')) AND mptpi.`min_score`=0.5 To do returned map {'flou': {'main_port_id': 27337055, 'sub_port_id': 27337056, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18469811, 'last_updated_at': datetime.datetime(2025, 9, 30, 14, 41, 6), 'last_updated_at_desc': datetime.datetime(2025, 9, 30, 14, 41, 6), 'last_updated_at_asc': datetime.datetime(2025, 9, 30, 3, 53, 25)}, 'Carton_gris': {'main_port_id': 27337055, 'sub_port_id': 27337057, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18469812, 'last_updated_at': datetime.datetime(2025, 9, 30, 14, 41, 6), 'last_updated_at_desc': datetime.datetime(2025, 9, 30, 14, 41, 6), 'last_updated_at_asc': datetime.datetime(2025, 9, 30, 3, 53, 25)}, 'metal': {'main_port_id': 27337055, 'sub_port_id': 27337058, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18469813, 'last_updated_at': datetime.datetime(2025, 9, 30, 14, 41, 6), 'last_updated_at_desc': datetime.datetime(2025, 9, 30, 14, 41, 6), 'last_updated_at_asc': datetime.datetime(2025, 9, 30, 3, 53, 25)}, 'kraft': {'main_port_id': 27337055, 'sub_port_id': 27337059, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18469814, 'last_updated_at': datetime.datetime(2025, 9, 30, 14, 41, 6), 'last_updated_at_desc': datetime.datetime(2025, 9, 30, 14, 41, 6), 'last_updated_at_asc': datetime.datetime(2025, 9, 30, 3, 53, 25)}, 'papier': {'main_port_id': 27337055, 'sub_port_id': 27337060, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18469815, 'last_updated_at': datetime.datetime(2025, 9, 30, 14, 41, 6), 'last_updated_at_desc': datetime.datetime(2025, 9, 30, 14, 41, 6), 'last_updated_at_asc': datetime.datetime(2025, 9, 30, 3, 53, 25)}, 'environnement': {'main_port_id': 27337055, 'sub_port_id': 27337061, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18469816, 'last_updated_at': datetime.datetime(2025, 9, 30, 14, 41, 6), 'last_updated_at_desc': datetime.datetime(2025, 9, 30, 14, 41, 6), 'last_updated_at_asc': datetime.datetime(2025, 9, 30, 3, 53, 25)}, 'plastique': {'main_port_id': 27337055, 'sub_port_id': 27337062, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18469817, 'last_updated_at': datetime.datetime(2025, 9, 30, 14, 41, 6), 'last_updated_at_desc': datetime.datetime(2025, 9, 30, 14, 41, 6), 'last_updated_at_asc': datetime.datetime(2025, 9, 30, 3, 53, 25)}, 'Carton_brun': {'main_port_id': 27337055, 'sub_port_id': 27337063, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18469818, 'last_updated_at': datetime.datetime(2025, 9, 30, 14, 41, 6), 'last_updated_at_desc': datetime.datetime(2025, 9, 30, 14, 41, 6), 'last_updated_at_asc': datetime.datetime(2025, 9, 30, 3, 53, 25)}, 'autre_refus': {'main_port_id': 27337055, 'sub_port_id': 27337064, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18469819, 'last_updated_at': datetime.datetime(2025, 9, 30, 14, 41, 6), 'last_updated_at_desc': datetime.datetime(2025, 9, 30, 14, 41, 6), 'last_updated_at_asc': datetime.datetime(2025, 9, 30, 3, 53, 25)}, 'Teint_Dans_La_Masse': {'main_port_id': 27337055, 'sub_port_id': 27337065, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18469820, 'last_updated_at': datetime.datetime(2025, 9, 30, 14, 41, 6), 'last_updated_at_desc': datetime.datetime(2025, 9, 30, 14, 41, 6), 'last_updated_at_asc': datetime.datetime(2025, 9, 30, 3, 53, 25)}, 'cartonnette': {'main_port_id': 27337055, 'sub_port_id': 27337066, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18469821, 'last_updated_at': datetime.datetime(2025, 9, 30, 14, 41, 6), 'last_updated_at_desc': datetime.datetime(2025, 9, 30, 14, 41, 6), 'last_updated_at_asc': datetime.datetime(2025, 9, 30, 3, 53, 25)}, 'mal_croppe': {'main_port_id': 27337055, 'sub_port_id': 27337067, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18469822, 'last_updated_at': datetime.datetime(2025, 9, 30, 14, 41, 6), 'last_updated_at_desc': datetime.datetime(2025, 9, 30, 14, 41, 6), 'last_updated_at_asc': datetime.datetime(2025, 9, 30, 3, 53, 25)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27337056 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=27337055 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='flou' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27337056) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27337055) result : ((1386845116,), (1386845150,), (1386845154,), (1386846111,), (1386847812,), (1386847816,), (1386849278,), (1386849306,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27337057 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=27337055 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='Carton_gris' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27337057) result : ((1386848536,), (1386848537,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27337055) result : ((1386845116,), (1386845150,), (1386845154,), (1386846111,), (1386847812,), (1386847816,), (1386849278,), (1386849306,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27337058 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=27337055 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='metal' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27337058) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27337055) result : ((1386845116,), (1386845150,), (1386845154,), (1386846111,), (1386847812,), (1386847816,), (1386849278,), (1386849306,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27337059 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=27337055 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='kraft' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27337059) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27337055) result : ((1386845116,), (1386845150,), (1386845154,), (1386846111,), (1386847812,), (1386847816,), (1386849278,), (1386849306,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27337060 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=27337055 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='papier' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27337060) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27337055) result : ((1386845116,), (1386845150,), (1386845154,), (1386846111,), (1386847812,), (1386847816,), (1386849278,), (1386849306,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27337061 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=27337055 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='environnement' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27337061) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27337055) result : ((1386845116,), (1386845150,), (1386845154,), (1386846111,), (1386847812,), (1386847816,), (1386849278,), (1386849306,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27337062 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=27337055 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='plastique' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27337062) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27337055) result : ((1386845116,), (1386845150,), (1386845154,), (1386846111,), (1386847812,), (1386847816,), (1386849278,), (1386849306,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27337063 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=27337055 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='Carton_brun' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27337063) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27337055) result : ((1386845116,), (1386845150,), (1386845154,), (1386846111,), (1386847812,), (1386847816,), (1386849278,), (1386849306,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27337064 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=27337055 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='autre_refus' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27337064) result : ((1386848534,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27337055) result : ((1386845116,), (1386845150,), (1386845154,), (1386846111,), (1386847812,), (1386847816,), (1386849278,), (1386849306,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27337065 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=27337055 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='Teint_Dans_La_Masse' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27337065) result : ((1386848528,), (1386848529,), (1386848530,), (1386848531,), (1386848532,), (1386852510,), (1386852511,), (1386852512,), (1386852513,), (1386852514,), (1386852515,), (1386852516,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27337055) result : ((1386845116,), (1386845150,), (1386845154,), (1386846111,), (1386847812,), (1386847816,), (1386849278,), (1386849306,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27337066 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=27337055 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='cartonnette' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27337066) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27337055) result : ((1386845116,), (1386845150,), (1386845154,), (1386846111,), (1386847812,), (1386847816,), (1386849278,), (1386849306,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27337067 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=27337055 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='mal_croppe' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27337067) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27337055) result : ((1386845116,), (1386845150,), (1386845154,), (1386846111,), (1386847812,), (1386847816,), (1386849278,), (1386849306,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") To do ! Use context local managing function ! SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27337055 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','plastique','autre_refus','Carton_brun','cartonnette','flou','Carton_gris','papier','kraft','Teint_Dans_La_Masse','metal','mal_croppe')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27337055 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','plastique','autre_refus','Carton_brun','cartonnette','flou','Carton_gris','papier','kraft','Teint_Dans_La_Masse','metal','mal_croppe')) AND mptpi.`min_score`=0.5 To do returned map {'flou': {'main_port_id': 27337055, 'sub_port_id': 27337068, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18469823, 'last_updated_at': datetime.datetime(2025, 9, 30, 3, 53, 26), 'last_updated_at_desc': datetime.datetime(2025, 9, 30, 3, 53, 26), 'last_updated_at_asc': datetime.datetime(2025, 9, 30, 3, 53, 26)}, 'Carton_gris': {'main_port_id': 27337055, 'sub_port_id': 27337069, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18469824, 'last_updated_at': datetime.datetime(2025, 9, 30, 3, 53, 26), 'last_updated_at_desc': datetime.datetime(2025, 9, 30, 3, 53, 26), 'last_updated_at_asc': datetime.datetime(2025, 9, 30, 3, 53, 26)}, 'metal': {'main_port_id': 27337055, 'sub_port_id': 27337070, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18469825, 'last_updated_at': datetime.datetime(2025, 9, 30, 3, 53, 26), 'last_updated_at_desc': datetime.datetime(2025, 9, 30, 3, 53, 26), 'last_updated_at_asc': datetime.datetime(2025, 9, 30, 3, 53, 26)}, 'kraft': {'main_port_id': 27337055, 'sub_port_id': 27337071, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18469826, 'last_updated_at': datetime.datetime(2025, 9, 30, 3, 53, 26), 'last_updated_at_desc': datetime.datetime(2025, 9, 30, 3, 53, 26), 'last_updated_at_asc': datetime.datetime(2025, 9, 30, 3, 53, 26)}, 'papier': {'main_port_id': 27337055, 'sub_port_id': 27337072, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18469827, 'last_updated_at': datetime.datetime(2025, 9, 30, 3, 53, 26), 'last_updated_at_desc': datetime.datetime(2025, 9, 30, 3, 53, 26), 'last_updated_at_asc': datetime.datetime(2025, 9, 30, 3, 53, 26)}, 'environnement': {'main_port_id': 27337055, 'sub_port_id': 27337073, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18469828, 'last_updated_at': datetime.datetime(2025, 9, 30, 3, 53, 26), 'last_updated_at_desc': datetime.datetime(2025, 9, 30, 3, 53, 26), 'last_updated_at_asc': datetime.datetime(2025, 9, 30, 3, 53, 26)}, 'plastique': {'main_port_id': 27337055, 'sub_port_id': 27337074, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18469829, 'last_updated_at': datetime.datetime(2025, 9, 30, 3, 53, 26), 'last_updated_at_desc': datetime.datetime(2025, 9, 30, 3, 53, 26), 'last_updated_at_asc': datetime.datetime(2025, 9, 30, 3, 53, 26)}, 'Carton_brun': {'main_port_id': 27337055, 'sub_port_id': 27337075, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18469830, 'last_updated_at': datetime.datetime(2025, 9, 30, 3, 53, 26), 'last_updated_at_desc': datetime.datetime(2025, 9, 30, 3, 53, 26), 'last_updated_at_asc': datetime.datetime(2025, 9, 30, 3, 53, 26)}, 'autre_refus': {'main_port_id': 27337055, 'sub_port_id': 27337076, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18469831, 'last_updated_at': datetime.datetime(2025, 9, 30, 3, 53, 26), 'last_updated_at_desc': datetime.datetime(2025, 9, 30, 3, 53, 26), 'last_updated_at_asc': datetime.datetime(2025, 9, 30, 3, 53, 26)}, 'Teint_Dans_La_Masse': {'main_port_id': 27337055, 'sub_port_id': 27337077, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18469832, 'last_updated_at': datetime.datetime(2025, 9, 30, 3, 53, 26), 'last_updated_at_desc': datetime.datetime(2025, 9, 30, 3, 53, 26), 'last_updated_at_asc': datetime.datetime(2025, 9, 30, 3, 53, 26)}, 'cartonnette': {'main_port_id': 27337055, 'sub_port_id': 27337078, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18469833, 'last_updated_at': datetime.datetime(2025, 9, 30, 3, 53, 26), 'last_updated_at_desc': datetime.datetime(2025, 9, 30, 3, 53, 26), 'last_updated_at_asc': datetime.datetime(2025, 9, 30, 3, 53, 26)}, 'mal_croppe': {'main_port_id': 27337055, 'sub_port_id': 27337079, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18469834, 'last_updated_at': datetime.datetime(2025, 9, 30, 14, 41, 6), 'last_updated_at_desc': datetime.datetime(2025, 9, 30, 14, 41, 6), 'last_updated_at_asc': datetime.datetime(2025, 9, 30, 3, 53, 26)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27337068,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27337056 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27337069,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27337057 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27337070,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27337058 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27337071,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27337059 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27337072,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27337060 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27337073,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27337061 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27337074,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27337062 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27337075,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27337063 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27337076,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27337064 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27337077,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27337065 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27337078,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27337066 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27337079,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27337067 lien utilise dans velours : https://marlene.fotonower.com/velours/27337068,27337069,27337070,27337071,27337072,27337073,27337074,27337075,27337076,27337077,27337078,27337079?tags=flou,Carton_gris,metal,kraft,papier,environnement,plastique,Carton_brun,autre_refus,Teint_Dans_La_Masse,cartonnette,mal_croppe After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([27337055]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1386849306, 1386849278, 1386847816, 1386847812, 1386846111, 1386845154, 1386845150, 1386845116] map_info['map_portfolio_photo'] : {27337055: [1386849306, 1386849278, 1386847816, 1386847812, 1386846111, 1386845154, 1386845150, 1386845116]} final : False mtd_id 4302 list_pids : [1386849306, 1386849278, 1386847816, 1386847812, 1386846111, 1386845154, 1386845150, 1386845116] Looping around the photos to save general results len do output : 1 /27337055. before output type Here is an output not treated by saveGeneral : Managing all output in save final without adding information in the mtr_datou_result ('4302', None, None, None, None, None, None, None, '3801359') ('4302', '27337055', '1386849306', None, None, None, None, None, '3801359') ('4302', None, None, None, None, None, None, None, '3801359') ('4302', '27337055', '1386849278', None, None, None, None, None, '3801359') ('4302', None, None, None, None, None, None, None, '3801359') ('4302', '27337055', '1386847816', None, None, None, None, None, '3801359') ('4302', None, None, None, None, None, None, None, '3801359') ('4302', '27337055', '1386847812', None, None, None, None, None, '3801359') ('4302', None, None, None, None, None, None, None, '3801359') ('4302', '27337055', '1386846111', None, None, None, None, None, '3801359') ('4302', None, None, None, None, None, None, None, '3801359') ('4302', '27337055', '1386845154', None, None, None, None, None, '3801359') ('4302', None, None, None, None, None, None, None, '3801359') ('4302', '27337055', '1386845150', None, None, None, None, None, '3801359') ('4302', None, None, None, None, None, None, None, '3801359') ('4302', '27337055', '1386845116', None, None, None, None, None, '3801359') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 9 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '27337055', "{'flou': 27337056, 'Carton_gris': 27337057, 'metal': 27337058, 'kraft': 27337059, 'papier': 27337060, 'environnement': 27337061, 'plastique': 27337062, 'Carton_brun': 27337063, 'autre_refus': 27337064, 'Teint_Dans_La_Masse': 27337065, 'cartonnette': 27337066, 'mal_croppe': 27337067}", None, None, None, None, '3801359'), ('4302', '27337055', '1386849306', None, None, None, None, None, '3801359'), ('4302', '27337055', '1386849278', None, None, None, None, None, '3801359'), ('4302', '27337055', '1386847816', None, None, None, None, None, '3801359'), ('4302', '27337055', '1386847812', None, None, None, None, None, '3801359'), ('4302', '27337055', '1386846111', None, None, None, None, None, '3801359'), ('4302', '27337055', '1386845154', None, None, None, None, None, '3801359'), ('4302', '27337055', '1386845150', None, None, None, None, None, '3801359'), ('4302', '27337055', '1386845116', None, None, None, None, None, '3801359')] time used for this insertion : 0.036971330642700195 save_final save missing photos in datou_result : time spend for datou_step_exec : 5.053496360778809 time spend to save output : 0.037259817123413086 total time spend for step 1 : 5.090756177902222 step2:final Wed Oct 1 05:36:35 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (27337055) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {} map_subphoto_mainphoto : {} Beginning of datou step final ! query to retrieve results for portfolio 27337055 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1386845154,1386845116,1386845150,1386846111,1386847816,1386847812,1386849278,1386849306); insert ignore into MTRUser.portfolio_carac_ratio (portfolio_id, hashtag_type, hashtag_id, value) values (%s,%s,%s,%s) on DUPLICATE KEY UPDATE value=VALUES(value) After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([27337055]) Inside saveOutput : final : False verbose : True original output for save of step final : {1386849306: ('0.11175540744958323',), 1386849278: ('0.11175540744958323',), 1386847816: ('0.11175540744958323',), 1386847812: ('0.11175540744958323',), 1386846111: ('0.11175540744958323',), 1386845154: ('0.11175540744958323',), 1386845150: ('0.11175540744958323',), 1386845116: ('0.11175540744958323',)} new output for save of step final : {1386849306: ('0.11175540744958323',), 1386849278: ('0.11175540744958323',), 1386847816: ('0.11175540744958323',), 1386847812: ('0.11175540744958323',), 1386846111: ('0.11175540744958323',), 1386845154: ('0.11175540744958323',), 1386845150: ('0.11175540744958323',), 1386845116: ('0.11175540744958323',)} [1386849306, 1386849278, 1386847816, 1386847812, 1386846111, 1386845154, 1386845150, 1386845116] map_info['map_portfolio_photo'] : {27337055: [1386849306, 1386849278, 1386847816, 1386847812, 1386846111, 1386845154, 1386845150, 1386845116]} final : False mtd_id 4302 list_pids : [1386849306, 1386849278, 1386847816, 1386847812, 1386846111, 1386845154, 1386845150, 1386845116] Looping around the photos to save general results len do output : 8 /1386849306.Didn't retrieve data . /1386849278.Didn't retrieve data . /1386847816.Didn't retrieve data . /1386847812.Didn't retrieve data . /1386846111.Didn't retrieve data . /1386845154.Didn't retrieve data . /1386845150.Didn't retrieve data . /1386845116.Didn't retrieve data . before output type Used above Used above Managing all output in save final without adding information in the mtr_datou_result ('4302', None, None, None, None, None, None, None, '3801359') ('4302', '27337055', '1386849306', None, None, None, None, None, '3801359') ('4302', None, None, None, None, None, None, None, '3801359') ('4302', '27337055', '1386849278', None, None, None, None, None, '3801359') ('4302', None, None, None, None, None, None, None, '3801359') ('4302', '27337055', '1386847816', None, None, None, None, None, '3801359') ('4302', None, None, None, None, None, None, None, '3801359') ('4302', '27337055', '1386847812', None, None, None, None, None, '3801359') ('4302', None, None, None, None, None, None, None, '3801359') ('4302', '27337055', '1386846111', None, None, None, None, None, '3801359') ('4302', None, None, None, None, None, None, None, '3801359') ('4302', '27337055', '1386845154', None, None, None, None, None, '3801359') ('4302', None, None, None, None, None, None, None, '3801359') ('4302', '27337055', '1386845150', None, None, None, None, None, '3801359') ('4302', None, None, None, None, None, None, None, '3801359') ('4302', '27337055', '1386845116', None, None, None, None, None, '3801359') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 24 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '27337055', '1386849306', '0.11175540744958323', None, None, None, None, '3801359'), ('4302', '27337055', '1386849278', '0.11175540744958323', None, None, None, None, '3801359'), ('4302', '27337055', '1386847816', '0.11175540744958323', None, None, None, None, '3801359'), ('4302', '27337055', '1386847812', '0.11175540744958323', None, None, None, None, '3801359'), ('4302', '27337055', '1386846111', '0.11175540744958323', None, None, None, None, '3801359'), ('4302', '27337055', '1386845154', '0.11175540744958323', None, None, None, None, '3801359'), ('4302', '27337055', '1386845150', '0.11175540744958323', None, None, None, None, '3801359'), ('4302', '27337055', '1386845116', '0.11175540744958323', None, None, None, None, '3801359')] time used for this insertion : 0.03768014907836914 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.24139857292175293 time spend to save output : 0.03813934326171875 total time spend for step 2 : 0.2795379161834717 step3:velours_tree Wed Oct 1 05:36:35 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {27337055: [{'flou': 27337056, 'Carton_gris': 27337057, 'metal': 27337058, 'kraft': 27337059, 'papier': 27337060, 'environnement': 27337061, 'plastique': 27337062, 'Carton_brun': 27337063, 'autre_refus': 27337064, 'Teint_Dans_La_Masse': 27337065, 'cartonnette': 27337066, 'mal_croppe': 27337067}]} input_args_next_step : {27337055: ()} output_args : {27337055: [{'flou': 27337056, 'Carton_gris': 27337057, 'metal': 27337058, 'kraft': 27337059, 'papier': 27337060, 'environnement': 27337061, 'plastique': 27337062, 'Carton_brun': 27337063, 'autre_refus': 27337064, 'Teint_Dans_La_Masse': 27337065, 'cartonnette': 27337066, 'mal_croppe': 27337067}]} args : 27337055 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'flou': 27337056, 'Carton_gris': 27337057, 'metal': 27337058, 'kraft': 27337059, 'papier': 27337060, 'environnement': 27337061, 'plastique': 27337062, 'Carton_brun': 27337063, 'autre_refus': 27337064, 'Teint_Dans_La_Masse': 27337065, 'cartonnette': 27337066, 'mal_croppe': 27337067},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (27337055) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {} map_subphoto_mainphoto : {} can't find the photo_desc_type After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([27337055]) Inside saveOutput : final : False verbose : True ouput is None No outpout to save, returning out of save general time spend for datou_step_exec : 0.3207387924194336 time spend to save output : 6.0558319091796875e-05 total time spend for step 3 : 0.3207993507385254 step4:send_mail_cod Wed Oct 1 05:36:36 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1386849306: ('0.11175540744958323',), 1386849278: ('0.11175540744958323',), 1386847816: ('0.11175540744958323',), 1386847812: ('0.11175540744958323',), 1386846111: ('0.11175540744958323',), 1386845154: ('0.11175540744958323',), 1386845150: ('0.11175540744958323',), 1386845116: ('0.11175540744958323',)} input_args_next_step : {1386849306: ()} output_args : {1386849306: ('0.11175540744958323',), 1386849278: ('0.11175540744958323',), 1386847816: ('0.11175540744958323',), 1386847812: ('0.11175540744958323',), 1386846111: ('0.11175540744958323',), 1386845154: ('0.11175540744958323',), 1386845150: ('0.11175540744958323',), 1386845116: ('0.11175540744958323',)} args : 1386849306 depend.output_id : 0 input_args_next_step : {1386849306: ('0.11175540744958323',), 1386849278: ()} output_args : {1386849306: ('0.11175540744958323',), 1386849278: ('0.11175540744958323',), 1386847816: ('0.11175540744958323',), 1386847812: ('0.11175540744958323',), 1386846111: ('0.11175540744958323',), 1386845154: ('0.11175540744958323',), 1386845150: ('0.11175540744958323',), 1386845116: ('0.11175540744958323',)} args : 1386849278 depend.output_id : 0 input_args_next_step : {1386849306: ('0.11175540744958323',), 1386849278: ('0.11175540744958323',), 1386847816: ()} output_args : {1386849306: ('0.11175540744958323',), 1386849278: ('0.11175540744958323',), 1386847816: ('0.11175540744958323',), 1386847812: ('0.11175540744958323',), 1386846111: ('0.11175540744958323',), 1386845154: ('0.11175540744958323',), 1386845150: ('0.11175540744958323',), 1386845116: ('0.11175540744958323',)} args : 1386847816 depend.output_id : 0 input_args_next_step : {1386849306: ('0.11175540744958323',), 1386849278: ('0.11175540744958323',), 1386847816: ('0.11175540744958323',), 1386847812: ()} output_args : {1386849306: ('0.11175540744958323',), 1386849278: ('0.11175540744958323',), 1386847816: ('0.11175540744958323',), 1386847812: ('0.11175540744958323',), 1386846111: ('0.11175540744958323',), 1386845154: ('0.11175540744958323',), 1386845150: ('0.11175540744958323',), 1386845116: ('0.11175540744958323',)} args : 1386847812 depend.output_id : 0 input_args_next_step : {1386849306: ('0.11175540744958323',), 1386849278: ('0.11175540744958323',), 1386847816: ('0.11175540744958323',), 1386847812: ('0.11175540744958323',), 1386846111: ()} output_args : {1386849306: ('0.11175540744958323',), 1386849278: ('0.11175540744958323',), 1386847816: ('0.11175540744958323',), 1386847812: ('0.11175540744958323',), 1386846111: ('0.11175540744958323',), 1386845154: ('0.11175540744958323',), 1386845150: ('0.11175540744958323',), 1386845116: ('0.11175540744958323',)} args : 1386846111 depend.output_id : 0 input_args_next_step : {1386849306: ('0.11175540744958323',), 1386849278: ('0.11175540744958323',), 1386847816: ('0.11175540744958323',), 1386847812: ('0.11175540744958323',), 1386846111: ('0.11175540744958323',), 1386845154: ()} output_args : {1386849306: ('0.11175540744958323',), 1386849278: ('0.11175540744958323',), 1386847816: ('0.11175540744958323',), 1386847812: ('0.11175540744958323',), 1386846111: ('0.11175540744958323',), 1386845154: ('0.11175540744958323',), 1386845150: ('0.11175540744958323',), 1386845116: ('0.11175540744958323',)} args : 1386845154 depend.output_id : 0 input_args_next_step : {1386849306: ('0.11175540744958323',), 1386849278: ('0.11175540744958323',), 1386847816: ('0.11175540744958323',), 1386847812: ('0.11175540744958323',), 1386846111: ('0.11175540744958323',), 1386845154: ('0.11175540744958323',), 1386845150: ()} output_args : {1386849306: ('0.11175540744958323',), 1386849278: ('0.11175540744958323',), 1386847816: ('0.11175540744958323',), 1386847812: ('0.11175540744958323',), 1386846111: ('0.11175540744958323',), 1386845154: ('0.11175540744958323',), 1386845150: ('0.11175540744958323',), 1386845116: ('0.11175540744958323',)} args : 1386845150 depend.output_id : 0 input_args_next_step : {1386849306: ('0.11175540744958323',), 1386849278: ('0.11175540744958323',), 1386847816: ('0.11175540744958323',), 1386847812: ('0.11175540744958323',), 1386846111: ('0.11175540744958323',), 1386845154: ('0.11175540744958323',), 1386845150: ('0.11175540744958323',), 1386845116: ()} output_args : {1386849306: ('0.11175540744958323',), 1386849278: ('0.11175540744958323',), 1386847816: ('0.11175540744958323',), 1386847812: ('0.11175540744958323',), 1386846111: ('0.11175540744958323',), 1386845154: ('0.11175540744958323',), 1386845150: ('0.11175540744958323',), 1386845116: ('0.11175540744958323',)} args : 1386845116 depend.output_id : 0 Inconsistent number of input and output, step which parrallelize and manage error in input by avoiding sending an output for this data can't be used in tree dependencies of input and output complete output_args for input 3 : {27337055: [{'flou': 27337056, 'Carton_gris': 27337057, 'metal': 27337058, 'kraft': 27337059, 'papier': 27337060, 'environnement': 27337061, 'plastique': 27337062, 'Carton_brun': 27337063, 'autre_refus': 27337064, 'Teint_Dans_La_Masse': 27337065, 'cartonnette': 27337066, 'mal_croppe': 27337067}]} input_args_next_step : {1386849306: ('0.11175540744958323',), 1386849278: ('0.11175540744958323',), 1386847816: ('0.11175540744958323',), 1386847812: ('0.11175540744958323',), 1386846111: ('0.11175540744958323',), 1386845154: ('0.11175540744958323',), 1386845150: ('0.11175540744958323',), 1386845116: ('0.11175540744958323',), 27337055: ()} output_args : {27337055: [{'flou': 27337056, 'Carton_gris': 27337057, 'metal': 27337058, 'kraft': 27337059, 'papier': 27337060, 'environnement': 27337061, 'plastique': 27337062, 'Carton_brun': 27337063, 'autre_refus': 27337064, 'Teint_Dans_La_Masse': 27337065, 'cartonnette': 27337066, 'mal_croppe': 27337067}]} args : 27337055 depend.output_id : 0 We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :9, first value : ('0.11175540744958323',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (27337055) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {} map_subphoto_mainphoto : {} dans la step send mail cod work_area: /home/admin/workarea/git/Velours/python in order to get the selector url, please entre the license of selector SELECT photo_id, url FROM MTRBack.photos_view ph WHERE photo_id IN (1386849306,1386849278,1386847816,1386847812,1386846111,1386845154,1386845150,1386845116) Found this number of photos: 8 ##### Call download_photos : nb_thread : 5 begin to download photo : 1386845116 begin to download photo : 1386845154 begin to download photo : 1386847812 begin to download photo : 1386849278 download finish for photo 1386847812 begin to download photo : 1386847816 download finish for photo 1386845154 begin to download photo : 1386846111 download finish for photo 1386845116 begin to download photo : 1386845150 download finish for photo 1386849278 begin to download photo : 1386849306 download finish for photo 1386845150 download finish for photo 1386847816 download finish for photo 1386846111 download finish for photo 1386849306 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette273370561759289796/ imagette273370581759289796/ imagette273370591759289796/ imagette273370621759289796/ length of list_filenames : 8 ; length of list_pids : 8 ; length of list_args : 8 results_Auto_P27337055_01-10-2025_05_36_36.pdf 27337056 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27337056 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette273370561759289796 27337058 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27337058 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette273370581759289796 27337059 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27337059 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette273370591759289796 27337062 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27337062 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette273370621759289796 27337064 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27337064 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1386848534: '1759197426_1139331_1386846111_a291b5a126eebb3527d65f08474d2afc_rle_crop_3980332995_0.png'} change filename to text .imagette273370641759289796/ imagette273370641759289796/1759197426_1139331_1386846111_a291b5a126eebb3527d65f08474d2afc_rle_crop_3980332995_0.png.png imagette273370661759289796/ imagette273370671759289796/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/30/30536c0d0407c4509f1e623e1362a095_47838217.png imagette273370641759289796 27337066 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27337066 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette273370661759289796 27337067 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27337067 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette273370671759289796 27337057 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27337057 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1386848536: '1759197426_1139331_1386846111_a291b5a126eebb3527d65f08474d2afc_rle_crop_3980332996_0.png', 1386848537: '1759197426_1139331_1386845150_43eddbc3182ad16c1118fd18da7495eb_rle_crop_3980333022_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/30/a8cf575eed9f42fa72301f4e1a5e37fb_42097355.png change filename to text .imagette273370571759289796/ imagette273370571759289796/1759197426_1139331_1386845150_43eddbc3182ad16c1118fd18da7495eb_rle_crop_3980333022_0.png.png imagette273370571759289796/1759197426_1139331_1386846111_a291b5a126eebb3527d65f08474d2afc_rle_crop_3980332996_0.png.png imagette273370631759289797/ wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/30/479251859ffb660740a662a784683cb6_85066563.png imagette273370571759289796 27337063 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27337063 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette273370631759289797 27337065 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27337065 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1386848528: '1759197426_1139331_1386846111_a291b5a126eebb3527d65f08474d2afc_rle_crop_3980333000_0.png', 1386848529: '1759197426_1139331_1386846111_a291b5a126eebb3527d65f08474d2afc_rle_crop_3980332999_0.png', 1386848530: '1759197426_1139331_1386846111_a291b5a126eebb3527d65f08474d2afc_rle_crop_3980333009_0.png', 1386848531: '1759197426_1139331_1386846111_a291b5a126eebb3527d65f08474d2afc_rle_crop_3980333004_0.png', 1386848532: '1759197426_1139331_1386845150_43eddbc3182ad16c1118fd18da7495eb_rle_crop_3980333024_0.png', 1386852510: '1759198385_1237753_1386849278_ae67f0a549711ed3d0aaf14d980555b4_rle_crop_3980352289_0.png', 1386852511: '1759198385_1237753_1386849278_ae67f0a549711ed3d0aaf14d980555b4_rle_crop_3980352290_0.png', 1386852512: '1759198385_1237753_1386849278_ae67f0a549711ed3d0aaf14d980555b4_rle_crop_3980352288_0.png', 1386852513: '1759198385_1237753_1386847812_c315843ec67e20655c1490b8230caf6b_rle_crop_3980352306_0.png', 1386852514: '1759198385_1237753_1386847812_c315843ec67e20655c1490b8230caf6b_rle_crop_3980352305_0.png', 1386852515: '1759198385_1237753_1386847812_c315843ec67e20655c1490b8230caf6b_rle_crop_3980352308_0.png', 1386852516: '1759198385_1237753_1386847812_c315843ec67e20655c1490b8230caf6b_rle_crop_3980352307_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/30/733bd6f8507f0cdd0d49572daba924de_46715227.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/30/7e516e285505576a6a5f1db1e8b7e862_41778976.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/30/b177099337b669b034eef8997fcd2994_98790453.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/30/2f47f74346c01ded3b9adb938c075f0e_13496321.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/30/b2b753ebb5e372cc8452835b06f4060d_95811663.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/30/481f134a544a0ac8ef13dead9e30967e_11712661.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/30/15662b7880e9b97f582a8e828ef42d47_16319267.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/30/b7aff98705192121fbf9ef8935275c8a_92387082.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/30/e9e912e70541fca445fbbbec6bb378ce_26939711.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/30/1f1f6da74a80a5a581e31d00576793c3_36478630.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/30/fcc2ab2ae6854d76b4a95341ec555a80_27672745.png change filename to text .imagette273370651759289797/ imagette273370651759289797/1759198385_1237753_1386849278_ae67f0a549711ed3d0aaf14d980555b4_rle_crop_3980352290_0.png.png imagette273370651759289797/1759198385_1237753_1386847812_c315843ec67e20655c1490b8230caf6b_rle_crop_3980352305_0.png.png imagette273370651759289797/1759198385_1237753_1386847812_c315843ec67e20655c1490b8230caf6b_rle_crop_3980352306_0.png.png imagette273370651759289797/1759197426_1139331_1386846111_a291b5a126eebb3527d65f08474d2afc_rle_crop_3980333009_0.png.png imagette273370651759289797/1759197426_1139331_1386846111_a291b5a126eebb3527d65f08474d2afc_rle_crop_3980333000_0.png.png imagette273370651759289797/1759198385_1237753_1386847812_c315843ec67e20655c1490b8230caf6b_rle_crop_3980352308_0.png.png imagette273370651759289797/1759197426_1139331_1386846111_a291b5a126eebb3527d65f08474d2afc_rle_crop_3980333004_0.png.png imagette273370651759289797/1759198385_1237753_1386847812_c315843ec67e20655c1490b8230caf6b_rle_crop_3980352307_0.png.png imagette273370651759289797/1759198385_1237753_1386849278_ae67f0a549711ed3d0aaf14d980555b4_rle_crop_3980352289_0.png.png imagette273370651759289797/1759197426_1139331_1386845150_43eddbc3182ad16c1118fd18da7495eb_rle_crop_3980333024_0.png.png imagette273370651759289797/1759197426_1139331_1386846111_a291b5a126eebb3527d65f08474d2afc_rle_crop_3980332999_0.png.png imagette273370651759289797/1759198385_1237753_1386849278_ae67f0a549711ed3d0aaf14d980555b4_rle_crop_3980352288_0.png.png wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/30/2bbc6f8b96d24b222479ce0ffdc626e0_59593250.png imagette273370651759289797 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=27337055 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/27337068,27337069,27337070,27337071,27337072,27337073,27337074,27337075,27337076,27337077,27337078,27337079?tags=flou,Carton_gris,metal,kraft,papier,environnement,plastique,Carton_brun,autre_refus,Teint_Dans_La_Masse,cartonnette,mal_croppe your option no_mail is active, we will not send the real mail to your client args[1386849306] : ('0.11175540744958323',) no score found for photo 1386849306 We are sending mail with results at report@fotonower.com args[1386849278] : ('0.11175540744958323',) no score found for photo 1386849278 We are sending mail with results at report@fotonower.com args[1386847816] : ('0.11175540744958323',) no score found for photo 1386847816 We are sending mail with results at report@fotonower.com args[1386847812] : ('0.11175540744958323',) no score found for photo 1386847812 We are sending mail with results at report@fotonower.com args[1386846111] : ('0.11175540744958323',) no score found for photo 1386846111 We are sending mail with results at report@fotonower.com args[1386845154] : ('0.11175540744958323',) no score found for photo 1386845154 We are sending mail with results at report@fotonower.com args[1386845150] : ('0.11175540744958323',) no score found for photo 1386845150 We are sending mail with results at report@fotonower.com args[1386845116] : ('0.11175540744958323',) no score found for photo 1386845116 We are sending mail with results at report@fotonower.com refus_total : 0.11175540744958323 2022-04-13 10:29:59 0 SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27337055 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 1000 start upload file to ovh https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27337055_01-10-2025_05_36_36.pdf results_Auto_P27337055_01-10-2025_05_36_36.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27337055_01-10-2025_05_36_36.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','27337055','results_Auto_P27337055_01-10-2025_05_36_36.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27337055_01-10-2025_05_36_36.pdf','pdf','','0.14','0.11175540744958323') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([27337055]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1386849306, 1386849278, 1386847816, 1386847812, 1386846111, 1386845154, 1386845150, 1386845116] map_info['map_portfolio_photo'] : {27337055: [1386849306, 1386849278, 1386847816, 1386847812, 1386846111, 1386845154, 1386845150, 1386845116]} final : False mtd_id 4302 list_pids : [1386849306, 1386849278, 1386847816, 1386847812, 1386846111, 1386845154, 1386845150, 1386845116] Looping around the photos to save general results len do output : 0 before output type Used above Managing all output in save final without adding information in the mtr_datou_result ('4302', None, None, None, None, None, None, None, '3801359') ('4302', '27337055', '1386849306', None, None, None, None, None, '3801359') ('4302', None, None, None, None, None, None, None, '3801359') ('4302', '27337055', '1386849278', None, None, None, None, None, '3801359') ('4302', None, None, None, None, None, None, None, '3801359') ('4302', '27337055', '1386847816', None, None, None, None, None, '3801359') ('4302', None, None, None, None, None, None, None, '3801359') ('4302', '27337055', '1386847812', None, None, None, None, None, '3801359') ('4302', None, None, None, None, None, None, None, '3801359') ('4302', '27337055', '1386846111', None, None, None, None, None, '3801359') ('4302', None, None, None, None, None, None, None, '3801359') ('4302', '27337055', '1386845154', None, None, None, None, None, '3801359') ('4302', None, None, None, None, None, None, None, '3801359') ('4302', '27337055', '1386845150', None, None, None, None, None, '3801359') ('4302', None, None, None, None, None, None, None, '3801359') ('4302', '27337055', '1386845116', None, None, None, None, None, '3801359') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 8 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '27337055', '1386849306', None, None, None, None, None, '3801359'), ('4302', '27337055', '1386849278', None, None, None, None, None, '3801359'), ('4302', '27337055', '1386847816', None, None, None, None, None, '3801359'), ('4302', '27337055', '1386847812', None, None, None, None, None, '3801359'), ('4302', '27337055', '1386846111', None, None, None, None, None, '3801359'), ('4302', '27337055', '1386845154', None, None, None, None, None, '3801359'), ('4302', '27337055', '1386845150', None, None, None, None, None, '3801359'), ('4302', '27337055', '1386845116', None, None, None, None, None, '3801359')] time used for this insertion : 0.03686046600341797 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.8404858112335205 time spend to save output : 0.03708195686340332 total time spend for step 4 : 3.877567768096924 step5:split_time_score Wed Oct 1 05:36:40 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['27337055'] We expect there is only one output and this part is used while all output are not tuple or array Inconsistent number of input and output, step which parrallelize and manage error in input by avoiding sending an output for this data can't be used in tree dependencies of input and output complete output_args for input 1 : VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : [('27337055',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (27337055) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1386845116: {'path': 'temp/1759289796_1655573_1386845116_9407c5725e8575e7bee753a1faa4c332.jpg', 'extension': 'jpg'}, 1386845150: {'path': 'temp/1759289796_1655573_1386845150_43eddbc3182ad16c1118fd18da7495eb.jpg', 'extension': 'jpg'}, 1386847812: {'path': 'temp/1759289796_1655573_1386847812_c315843ec67e20655c1490b8230caf6b.jpg', 'extension': 'jpg'}, 1386847816: {'path': 'temp/1759289796_1655573_1386847816_8e0a2b8e3418c971e33b0e6576103562.jpg', 'extension': 'jpg'}, 1386845154: {'path': 'temp/1759289796_1655573_1386845154_5c675fb9ce2d8ad35e7e7efd9c0f4602.jpg', 'extension': 'jpg'}, 1386846111: {'path': 'temp/1759289796_1655573_1386846111_a291b5a126eebb3527d65f08474d2afc.jpg', 'extension': 'jpg'}, 1386849278: {'path': 'temp/1759289796_1655573_1386849278_ae67f0a549711ed3d0aaf14d980555b4.jpg', 'extension': 'jpg'}, 1386849306: {'path': 'temp/1759289796_1655573_1386849306_e30ad1549d6b78b1bc8847a5739290d2.jpg', 'extension': 'jpg'}} map_subphoto_mainphoto : {} begin split time score SELECT app_name, token FROM MTRUser.mtr_app_api_token WHERE mtr_user_id=979 AND app_name="token_split_time_score" AND expire_at > NOW() select distinct dp.name from MTRPhoto.dashboard_entry_day ded, MTRPhoto.dashboard_places dp, MTRPhoto.dashboard_results dr where ded.dashboard_place_id = dp.id and ded.last_run_id = dr.dashboard_run_id and dp.id = ded.dashboard_place_id and dr.mtr_portfolio_id = 27337055; (('arc_en_ciel_jrm',), ('arc_en_ciel_jrm_bis',)) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos_view ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 27337055 group by h (('03', 8),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27337055 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 100000 SELECT cps.photo_id, cps.score, h.hashtag, cps.hashtag_id, mpp1.mtr_portfolio_id FROM MTRPhoto.class_photo_score cps, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp1 where mpp1.mtr_photo_id=cps.photo_id AND h.hashtag_id=cps.hashtag_id AND mpp1.hide_status=0 AND mpp1.mtr_portfolio_id in (27337055) AND cps.thcl in (861) order by cps.score desc LIMIT 0, 100000 SELECT cps.photo_id, cps.score, h.hashtag, cps.hashtag_id, mpp1.mtr_portfolio_id FROM MTRPhoto.class_photo_score cps, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp1 where mpp1.mtr_photo_id=cps.photo_id AND h.hashtag_id=cps.hashtag_id AND mpp1.hide_status=0 AND mpp1.mtr_portfolio_id in (27337055) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 30092025 27337055 Nombre de photos uploadées : 8 / 23040 (0%) 30092025 27337055 Nombre de photos taguées (types de déchets): 0 / 8 (0%) 30092025 27337055 Nombre de photos taguées (volume) : 0 / 8 (0%) [{'photo_id': 1386845154, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/30/5c675fb9ce2d8ad35e7e7efd9c0f4602.jpg', 'username': None, 'uploaded_at': 1759196947, 'text': 'image_30092025_03_45_05_10141.jpg'}, {'photo_id': 1386845116, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/30/9407c5725e8575e7bee753a1faa4c332.jpg', 'username': None, 'uploaded_at': 1759196884, 'text': 'image_30092025_03_47_54_10133.jpg'}, {'photo_id': 1386845150, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/30/43eddbc3182ad16c1118fd18da7495eb.jpg', 'username': None, 'uploaded_at': 1759196947, 'text': 'image_30092025_03_48_14_010134m0.jpg 1e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1386846111, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/30/a291b5a126eebb3527d65f08474d2afc.jpg', 'username': None, 'uploaded_at': 1759197128, 'text': 'image_30092025_03_48_24_010135m0.jpg 2e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 1.6689300537109375e-06 elapsed_time : order_list_meta_photo_and_scores 5.0067901611328125e-06 ???????? elapsed_time : fill_and_build_computed_from_old_data 0.0004520416259765625 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 27337055, '2025-09-30' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); Catched exception ! Connect or reconnect ! INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2363251,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.6418330669403076 We will return after consolidate but for now we need the day, how to get it, for now depending on the previous heavy steps SELECT dri.dashboard_entry_day, dr.dashboard_run_id, dr.mtr_portfolio_id, dr.id, dr.hashtag, dr.completion_json FROM MTRPhoto.dashboard_results dr, MTRPhoto.dashboard_run_ids dri, MTRPhoto.dashboard_entry_day ded WHERE ded.id= 2363251 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2363251, 'dashboard_run_id': 2376587, 'mtr_portfolio_id': 27335682, 'dashboard_result_id': 15836923, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27335682_01-10-2025_05_34_34.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27335683, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27335684, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27335685, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27335686, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27335687, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27335688, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27335689, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27335690, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27335691, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27335692, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27335693, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27335694, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2376587, 'mtr_portfolio_id': 27335814, 'dashboard_result_id': 15836924, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27335814_01-10-2025_05_35_34.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27335815, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27335816, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27335817, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27335818, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27335819, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27335820, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27335821, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27335822, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27335823, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27335824, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27335825, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27335826, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2376587, 'mtr_portfolio_id': 27335961, 'dashboard_result_id': 15836925, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27335961_01-10-2025_05_36_06.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27336048, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27336049, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27336050, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27336051, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27336052, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27336053, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27336054, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27336055, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27336056, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27336057, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27336058, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27336059, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2376587, 'mtr_portfolio_id': 27336428, 'dashboard_result_id': 15836926, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27336428_01-10-2025_05_36_09.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27336465, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27336466, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27336467, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27336468, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27336469, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27336470, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27336471, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27336472, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27336473, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27336474, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27336475, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27336476, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2376587, 'mtr_portfolio_id': 27337055, 'dashboard_result_id': 15836927, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27337055_30-09-2025_14_41_07.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27337056, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27337057, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27337058, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27337059, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27337060, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27337061, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27337062, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27337063, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27337064, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27337065, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27337066, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27337067, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2376587, 'mtr_portfolio_id': 27337483, 'dashboard_result_id': 15836928, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27337483_30-09-2025_14_31_07.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27337621, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27337622, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27337623, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27337624, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27337625, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27337626, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27337627, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27337628, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27337629, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27337630, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27337631, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27337632, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2376587, 'mtr_portfolio_id': 27338516, 'dashboard_result_id': 15836929, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27338516_30-09-2025_13_46_07.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27338534, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27338535, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27338536, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27338537, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27338538, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27338539, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27338540, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27338541, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27338542, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27338543, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27338544, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27338545, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2376587, 'mtr_portfolio_id': 27338908, 'dashboard_result_id': 15836930, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27338908_30-09-2025_16_48_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27338909, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27338910, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27338911, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27338912, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27338913, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27338914, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27338915, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27338916, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27338917, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27338918, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27338919, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27338920, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2376587, 'mtr_portfolio_id': 27339780, 'dashboard_result_id': 15836931, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27339780_30-09-2025_06_51_25.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27339783, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27339784, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27339785, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27339786, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27339787, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27339788, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27339789, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27339790, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27339791, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27339792, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27339793, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27339794, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2376587, 'mtr_portfolio_id': 27339914, 'dashboard_result_id': 15836932, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27339914_30-09-2025_13_26_08.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27339915, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27339916, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27339917, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27339918, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27339919, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27339920, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27339921, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27339922, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27339923, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27339924, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27339925, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27339926, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2376587, 'mtr_portfolio_id': 27346603, 'dashboard_result_id': 15836933, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27346603_30-09-2025_13_21_10.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27347383, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27347384, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27347385, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27347386, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27347387, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27347388, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27347389, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27347390, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27347391, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27347392, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27347393, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27347394, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2376587, 'mtr_portfolio_id': 27346604, 'dashboard_result_id': 15836934, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27346604_30-09-2025_13_01_10.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27346634, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27346635, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27346636, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27346637, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27346638, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27346639, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27346640, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27346641, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27346642, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27346643, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27346644, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27346645, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2376587, 'mtr_portfolio_id': 27346605, 'dashboard_result_id': 15836935, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27346605_30-09-2025_13_06_10.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27346880, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27346881, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27346882, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27346883, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27346884, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27346885, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27346886, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27346887, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27346888, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27346889, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27346890, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27346891, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2376587, 'mtr_portfolio_id': 27343961, 'dashboard_result_id': 15836936, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27343961_30-09-2025_12_51_07.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27346326, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27346327, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27346328, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27346329, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27346330, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27346331, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27346332, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27346333, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27346334, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27346335, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27346336, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27346337, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2376587, 'mtr_portfolio_id': 27343964, 'dashboard_result_id': 15836937, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27343964_30-09-2025_12_56_10.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27346485, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27346486, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27346487, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27346488, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27346489, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27346490, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27346491, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27346492, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27346493, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27346494, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27346495, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27346496, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2376587, 'mtr_portfolio_id': 27346606, 'dashboard_result_id': 15836938, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27346606_30-09-2025_13_11_09.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27347098, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27347099, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27347100, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27347101, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27347102, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27347103, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27347104, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27347105, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27347106, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27347107, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27347108, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27347109, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2376587, 'mtr_portfolio_id': 27346607, 'dashboard_result_id': 15836939, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27346607_30-09-2025_13_16_09.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27347236, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27347237, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27347238, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27347239, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27347240, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27347241, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27347242, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27347243, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27347244, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27347245, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27347246, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27347247, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2376587, 'mtr_portfolio_id': 27343995, 'dashboard_result_id': 15836940, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27343995_30-09-2025_12_46_09.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27346255, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27346256, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27346257, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27346258, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27346259, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27346260, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27346261, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27346262, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27346263, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27346264, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27346265, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27346266, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2376587, 'mtr_portfolio_id': 27341302, 'dashboard_result_id': 15836941, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27341302_30-09-2025_11_26_08.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27341840, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27341841, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27341842, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27341843, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27341844, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27341845, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27341846, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27341847, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27341848, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27341849, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27341850, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27341851, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2376587, 'mtr_portfolio_id': 27343998, 'dashboard_result_id': 15836942, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27343998_30-09-2025_12_41_07.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27346083, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27346084, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27346085, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27346086, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27346087, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27346088, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27346089, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27346090, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27346091, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27346092, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27346093, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27346094, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2376587, 'mtr_portfolio_id': 27344000, 'dashboard_result_id': 15836943, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27344000_30-09-2025_12_36_07.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27345883, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27345884, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27345885, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27345886, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27345887, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27345888, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27345889, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27345890, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27345891, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27345892, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27345893, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27345894, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2376587, 'mtr_portfolio_id': 27341336, 'dashboard_result_id': 15836944, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27341336_30-09-2025_11_31_09.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27342056, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27342057, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27342058, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27342059, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27342060, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27342061, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27342062, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27342063, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27342064, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27342065, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27342066, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27342067, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2376587, 'mtr_portfolio_id': 27344002, 'dashboard_result_id': 15836945, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27344002_30-09-2025_12_26_10.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27345305, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27345306, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27345307, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27345308, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27345309, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27345310, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27345311, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27345312, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27345313, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27345314, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27345315, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27345316, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2376587, 'mtr_portfolio_id': 27340889, 'dashboard_result_id': 15836946, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27340889_30-09-2025_11_21_08.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27341272, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27341273, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27341274, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27341275, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27341276, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27341277, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27341278, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27341279, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27341280, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27341281, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27341282, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27341283, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2376587, 'mtr_portfolio_id': 27342266, 'dashboard_result_id': 15836947, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27342266_30-09-2025_11_36_11.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27342442, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27342443, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27342444, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27342445, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27342446, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27342447, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27342448, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27342449, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27342450, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27342451, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27342452, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27342453, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2376587, 'mtr_portfolio_id': 27343199, 'dashboard_result_id': 15836948, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27343199_30-09-2025_11_56_09.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27343718, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27343719, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27343720, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27343721, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27343722, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27343723, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27343724, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27343725, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27343726, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27343727, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27343728, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27343729, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2376587, 'mtr_portfolio_id': 27342690, 'dashboard_result_id': 15836949, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27342690_30-09-2025_11_51_08.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27342735, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27342736, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27342737, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27342738, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27342739, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27342740, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27342741, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27342742, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27342743, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27342744, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27342745, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27342746, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2376587, 'mtr_portfolio_id': 27343836, 'dashboard_result_id': 15836950, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27343836_30-09-2025_12_21_05.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27343967, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27343968, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27343969, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27343970, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27343971, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27343972, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27343973, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27343974, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27343975, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27343976, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27343977, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27343978, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2376587, 'mtr_portfolio_id': 27344539, 'dashboard_result_id': 15836951, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27344539_30-09-2025_12_39_24.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27344546, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27344547, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27344548, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27344549, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27344550, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27344551, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27344552, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27344553, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27344554, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27344555, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27344556, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27344557, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2376587, 'mtr_portfolio_id': 27348083, 'dashboard_result_id': 15836952, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27348083_30-09-2025_14_11_06.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27348140, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27348141, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27348142, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27348143, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27348144, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27348145, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27348146, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27348147, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27348148, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27348149, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27348150, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27348151, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2376587, 'mtr_portfolio_id': 27348699, 'dashboard_result_id': 15836953, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27348699_30-09-2025_14_21_04.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27349167, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27349168, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27349169, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27349170, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27349171, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27349172, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27349173, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27349174, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27349175, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27349176, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27349177, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27349178, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2376587, 'mtr_portfolio_id': 27349371, 'dashboard_result_id': 15836954, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27349371_30-09-2025_14_36_07.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27349639, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27349640, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27349641, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27349642, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27349643, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27349644, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27349645, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27349646, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27349647, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27349648, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27349649, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27349650, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2376587, 'mtr_portfolio_id': 27350226, 'dashboard_result_id': 15836955, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27350226_30-09-2025_14_51_06.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27350227, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27350228, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27350229, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27350230, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27350231, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27350232, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27350233, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27350234, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27350235, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27350236, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27350237, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27350238, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2376587, 'mtr_portfolio_id': 27350819, 'dashboard_result_id': 15836956, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27350819_30-09-2025_15_06_05.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27350827, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27350828, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27350829, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27350830, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27350831, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27350832, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27350833, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27350834, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27350835, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27350836, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27350837, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27350838, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2376587, 'mtr_portfolio_id': 27351603, 'dashboard_result_id': 15836957, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27351603_30-09-2025_15_26_04.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27351611, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27351612, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27351613, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27351614, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27351615, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27351616, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27351617, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27351618, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27351619, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27351620, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27351621, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27351622, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2376587, 'mtr_portfolio_id': 27351983, 'dashboard_result_id': 15836958, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27351983_30-09-2025_15_36_06.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27352046, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27352047, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27352048, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27352049, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27352050, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27352051, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27352052, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27352053, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27352054, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27352055, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27352056, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27352057, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2376587, 'mtr_portfolio_id': 27352576, 'dashboard_result_id': 15836959, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27352576_30-09-2025_15_53_26.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27352682, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27352683, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27352684, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27352685, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27352686, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27352687, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27352688, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27352689, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27352690, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27352691, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27352692, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27352693, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2376587, 'mtr_portfolio_id': 27353601, 'dashboard_result_id': 15836960, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27353601_30-09-2025_16_11_06.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27353690, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27353691, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27353692, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27353693, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27353694, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27353695, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27353696, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27353697, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27353698, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27353699, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27353700, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27353701, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2376587, 'mtr_portfolio_id': 27354235, 'dashboard_result_id': 15836961, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27354235_30-09-2025_16_21_09.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27354629, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27354630, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27354631, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27354632, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27354633, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27354634, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27354635, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27354636, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27354637, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27354638, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27354639, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27354640, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2376587, 'mtr_portfolio_id': 27355020, 'dashboard_result_id': 15836962, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27355020_30-09-2025_16_41_07.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27355031, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27355032, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27355033, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27355034, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27355035, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27355036, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27355037, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27355038, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27355039, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27355040, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27355041, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27355042, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2376587, 'mtr_portfolio_id': 27355733, 'dashboard_result_id': 15836963, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27355733_30-09-2025_16_51_27.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27355744, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27355745, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27355746, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27355747, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27355748, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27355749, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27355750, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27355751, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27355752, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27355753, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27355754, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27355755, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2376587, 'mtr_portfolio_id': 27356323, 'dashboard_result_id': 15836964, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27356323_30-09-2025_17_05_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27356338, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27356339, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27356340, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27356341, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27356342, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27356343, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27356344, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27356345, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27356346, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27356347, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27356348, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27356349, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2376587, 'mtr_portfolio_id': 27356877, 'dashboard_result_id': 15836965, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27356877_30-09-2025_17_19_24.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27356939, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27356940, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27356941, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27356942, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27356943, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27356944, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27356945, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27356946, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27356947, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27356948, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27356949, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27356950, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2376587, 'mtr_portfolio_id': 27357789, 'dashboard_result_id': 15836966, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27357789_30-09-2025_18_05_05.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27357807, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27357808, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27357809, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27357810, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27357811, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27357812, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27357813, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27357814, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27357815, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27357816, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27357817, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27357818, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2376587, 'mtr_portfolio_id': 27359942, 'dashboard_result_id': 15836967, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27359942_30-09-2025_18_17_04.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27359986, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27359987, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27359988, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27359989, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27359990, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27359991, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27359992, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27359993, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27359994, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27359995, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27359996, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27359997, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2376587, 'mtr_portfolio_id': 27360591, 'dashboard_result_id': 15836968, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27360591_30-09-2025_18_35_06.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27360602, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27360603, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27360604, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27360605, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27360606, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27360607, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27360608, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27360609, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27360610, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27360611, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27360612, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27360613, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2376587, 'mtr_portfolio_id': 27361214, 'dashboard_result_id': 15836969, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27361214_30-09-2025_18_49_03.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27361278, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27361279, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27361280, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27361281, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27361282, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27361283, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27361284, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27361285, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27361286, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27361287, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27361288, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27361289, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2376587, 'mtr_portfolio_id': 27361733, 'dashboard_result_id': 15836970, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27361733_30-09-2025_19_05_26.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27361750, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27361751, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27361752, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27361753, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27361754, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27361755, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27361757, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27361758, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27361759, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27361760, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27361761, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27361762, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2376587, 'mtr_portfolio_id': 27362389, 'dashboard_result_id': 15836971, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27362389_30-09-2025_19_17_03.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27362402, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27362403, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27362404, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27362405, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27362406, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27362407, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27362408, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27362409, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27362410, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27362411, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27362412, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27362413, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2376587, 'mtr_portfolio_id': 27363066, 'dashboard_result_id': 15836972, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27363066_30-09-2025_19_33_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27363114, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27363115, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27363116, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27363117, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27363118, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27363119, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27363120, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27363121, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27363122, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27363123, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27363124, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27363125, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2376587, 'mtr_portfolio_id': 27363779, 'dashboard_result_id': 15836973, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27363779_30-09-2025_19_49_04.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27363818, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27363819, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27363820, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27363821, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27363822, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27363823, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27363824, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27363825, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27363826, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27363827, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27363828, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27363829, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2376587, 'mtr_portfolio_id': 27364486, 'dashboard_result_id': 15836974, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27364486_30-09-2025_20_05_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27364512, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27364520, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27364530, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27364531, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27364532, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27364533, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27364534, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27364535, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27364536, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27364537, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27364538, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27364539, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2376587, 'mtr_portfolio_id': 27365188, 'dashboard_result_id': 15836975, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27365188_30-09-2025_20_19_04.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27365198, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27365199, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27365200, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27365201, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27365202, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27365203, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27365204, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27365205, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27365206, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27365207, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27365209, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27365210, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2376587, 'mtr_portfolio_id': 27365970, 'dashboard_result_id': 15836976, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27365970_30-09-2025_20_33_05.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27365993, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27365994, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27365995, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27365996, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27365997, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27365998, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27365999, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27366000, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27366001, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27366002, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27366003, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27366004, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2376587, 'mtr_portfolio_id': 27366469, 'dashboard_result_id': 15836977, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27366469_30-09-2025_21_04_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27366475, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27366476, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27366477, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27366478, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27366479, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27366480, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27366481, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27366482, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27366483, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27366484, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27366485, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27366486, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2376587, 'mtr_portfolio_id': 27367917, 'dashboard_result_id': 15836978, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27367917_30-09-2025_21_19_03.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27367971, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27367972, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27367973, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27367974, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27367975, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27367976, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27367977, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27367978, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27367979, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27367980, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27367981, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27367982, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2376587, 'mtr_portfolio_id': 27368441, 'dashboard_result_id': 15836979, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27368441_30-09-2025_21_33_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27368472, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27368473, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27368474, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27368475, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27368476, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27368477, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27368478, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27368479, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27368480, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27368481, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27368482, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27368483, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2376587, 'mtr_portfolio_id': 27368974, 'dashboard_result_id': 15836980, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27368974_30-09-2025_21_49_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27369012, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27369013, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27369014, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27369015, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27369016, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27369017, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27369018, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27369019, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27369020, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27369021, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27369022, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27369023, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2376587, 'mtr_portfolio_id': 27369635, 'dashboard_result_id': 15836981, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27369635_30-09-2025_22_07_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27369647, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27369648, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27369649, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27369650, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27369651, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27369652, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27369653, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27369654, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27369655, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27369656, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27369657, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27369658, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2376587, 'mtr_portfolio_id': 27370115, 'dashboard_result_id': 15836982, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27370115_30-09-2025_22_19_03.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27370125, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27370126, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27370127, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27370128, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27370129, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27370130, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27370131, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27370132, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27370133, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27370134, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27370135, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27370136, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2376587, 'mtr_portfolio_id': 27370829, 'dashboard_result_id': 15836983, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27370829_30-09-2025_22_33_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27370887, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27370888, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27370889, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27370890, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27370891, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27370892, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27370893, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27370894, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27370895, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27370896, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27370897, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27370898, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2376587, 'mtr_portfolio_id': 27371578, 'dashboard_result_id': 15836984, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27371578_30-09-2025_22_49_03.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27371603, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27371604, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27371605, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27371606, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27371607, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27371608, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27371609, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27371610, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27371611, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27371612, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27371613, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27371614, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2376587, 'mtr_portfolio_id': 27372424, 'dashboard_result_id': 15836985, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27372424_30-09-2025_23_07_25.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27372435, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27372436, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27372437, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27372438, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27372439, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27372440, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27372441, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27372442, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27372443, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27372444, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27372445, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27372446, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2376587, 'mtr_portfolio_id': 27373048, 'dashboard_result_id': 15836986, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27373048_30-09-2025_23_17_03.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27373093, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27373094, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27373095, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27373096, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27373097, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27373098, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27373099, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27373100, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27373101, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27373102, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27373103, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27373104, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2376587, 'mtr_portfolio_id': 27373753, 'dashboard_result_id': 15836987, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27373753_30-09-2025_23_33_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27373770, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27373771, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27373772, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27373773, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27373774, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27373775, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27373776, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27373777, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27373778, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27373779, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27373780, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27373781, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2376587, 'mtr_portfolio_id': 27374485, 'dashboard_result_id': 15836988, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27374485_30-09-2025_23_47_05.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27374490, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27374491, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27374492, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27374493, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27374494, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27374495, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27374496, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27374497, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27374498, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27374499, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27374500, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27374501, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2376587, 'mtr_portfolio_id': 27375132, 'dashboard_result_id': 15836989, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27375132_01-10-2025_00_01_08.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27375172, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27375173, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27375174, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27375175, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27375176, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27375177, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27375178, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27375180, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27375181, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27375182, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27375183, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27375184, 'pht': 3726}}"}] SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27335682 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3801353, 'mtr_portfolio_id': 27335682, 'created_at': datetime.datetime(2025, 10, 1, 5, 34, 33), 'result': '0.6203903545862574', 'result_long': None, 'result_double': None}] Qualite : 0.6203903545862574 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27335682 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27335682_01-10-2025_05_34_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27335682 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27335682_01-10-2025_05_34_34.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27335683, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27335684, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27335685, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27335686, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27335687, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27335688, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27335689, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27335690, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27335691, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27335692, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27335693, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27335694, 'pht': 3726}}" where mtr_portfolio_id = 27335682 and dashboard_run_id = 2376587 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27335682 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15836923, 0.6203903545862574, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27335682_01-10-2025_05_34_34.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27335683, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27335684, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27335685, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27335686, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27335687, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27335688, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27335689, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27335690, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27335691, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27335692, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27335693, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27335694, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27335814 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3801355, 'mtr_portfolio_id': 27335814, 'created_at': datetime.datetime(2025, 10, 1, 5, 35, 34), 'result': '0.5751229385869768', 'result_long': None, 'result_double': None}] Qualite : 0.5751229385869768 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27335814 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27335814_01-10-2025_05_35_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27335814 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27335814_01-10-2025_05_35_34.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27335815, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27335816, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27335817, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27335818, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27335819, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27335820, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27335821, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27335822, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27335823, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27335824, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27335825, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27335826, 'pht': 3726}}" where mtr_portfolio_id = 27335814 and dashboard_run_id = 2376587 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27335814 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15836924, 0.5751229385869768, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27335814_01-10-2025_05_35_34.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27335815, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27335816, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27335817, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27335818, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27335819, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27335820, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27335821, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27335822, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27335823, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27335824, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27335825, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27335826, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27335961 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3801357, 'mtr_portfolio_id': 27335961, 'created_at': datetime.datetime(2025, 10, 1, 5, 36, 5), 'result': '0.05682456087437678', 'result_long': None, 'result_double': None}] Qualite : 0.05682456087437678 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27335961 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27335961_01-10-2025_05_36_06.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27335961 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27335961_01-10-2025_05_36_06.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27336048, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27336049, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27336050, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27336051, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27336052, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27336053, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27336054, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27336055, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27336056, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27336057, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27336058, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27336059, 'pht': 3726}}" where mtr_portfolio_id = 27335961 and dashboard_run_id = 2376587 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27335961 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15836925, 0.05682456087437678, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27335961_01-10-2025_05_36_06.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27336048, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27336049, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27336050, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27336051, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27336052, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27336053, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27336054, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27336055, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27336056, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27336057, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27336058, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27336059, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27336428 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3801358, 'mtr_portfolio_id': 27336428, 'created_at': datetime.datetime(2025, 10, 1, 5, 36, 8), 'result': '0.03513037243292421', 'result_long': None, 'result_double': None}] Qualite : 0.03513037243292421 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27336428 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27336428_01-10-2025_05_36_09.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27336428 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27336428_01-10-2025_05_36_09.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27336465, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27336466, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27336467, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27336468, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27336469, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27336470, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27336471, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27336472, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27336473, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27336474, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27336475, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27336476, 'pht': 3726}}" where mtr_portfolio_id = 27336428 and dashboard_run_id = 2376587 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27336428 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15836926, 0.03513037243292421, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27336428_01-10-2025_05_36_09.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27336465, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27336466, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27336467, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27336468, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27336469, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27336470, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27336471, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27336472, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27336473, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27336474, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27336475, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27336476, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27337055 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3801359, 'mtr_portfolio_id': 27337055, 'created_at': datetime.datetime(2025, 10, 1, 5, 36, 35), 'result': '0.11175540744958323', 'result_long': None, 'result_double': None}] Qualite : 0.11175540744958323 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27337055 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27337055_01-10-2025_05_36_36.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27337055 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27337055_01-10-2025_05_36_36.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27337056, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27337057, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27337058, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27337059, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27337060, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27337061, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27337062, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27337063, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27337064, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27337065, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27337066, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27337067, 'pht': 3726}}" where mtr_portfolio_id = 27337055 and dashboard_run_id = 2376587 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27337055 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15836927, 0.11175540744958323, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27337055_01-10-2025_05_36_36.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27337056, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27337057, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27337058, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27337059, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27337060, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27337061, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27337062, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27337063, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27337064, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27337065, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27337066, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27337067, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27337483 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3792810, 'mtr_portfolio_id': 27337483, 'created_at': datetime.datetime(2025, 9, 30, 14, 31, 6), 'result': '0.13236143831560637', 'result_long': None, 'result_double': None}] Qualite : 0.13236143831560637 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27337483 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27337483_30-09-2025_14_31_07.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27337483 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27337483_30-09-2025_14_31_07.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27337621, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27337622, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27337623, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27337624, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27337625, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27337626, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27337627, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27337628, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27337629, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27337630, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27337631, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27337632, 'pht': 3726}}" where mtr_portfolio_id = 27337483 and dashboard_run_id = 2376587 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27337483 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15836928, 0.13236143831560637, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27337483_30-09-2025_14_31_07.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27337621, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27337622, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27337623, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27337624, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27337625, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27337626, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27337627, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27337628, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27337629, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27337630, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27337631, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27337632, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27338516 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3792811, 'mtr_portfolio_id': 27338516, 'created_at': datetime.datetime(2025, 9, 30, 13, 46, 5), 'result': '0.08477776823286796', 'result_long': None, 'result_double': None}] Qualite : 0.08477776823286796 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27338516 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27338516_30-09-2025_13_46_07.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27338516 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27338516_30-09-2025_13_46_07.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27338534, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27338535, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27338536, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27338537, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27338538, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27338539, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27338540, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27338541, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27338542, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27338543, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27338544, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27338545, 'pht': 3726}}" where mtr_portfolio_id = 27338516 and dashboard_run_id = 2376587 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27338516 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15836929, 0.08477776823286796, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27338516_30-09-2025_13_46_07.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27338534, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27338535, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27338536, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27338537, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27338538, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27338539, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27338540, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27338541, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27338542, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27338543, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27338544, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27338545, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27338908 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3792733, 'mtr_portfolio_id': 27338908, 'created_at': datetime.datetime(2025, 9, 30, 16, 48, 32), 'result': '0.018743900037648104', 'result_long': None, 'result_double': None}] Qualite : 0.018743900037648104 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27338908 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27338908_30-09-2025_16_48_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27338908 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27338908_30-09-2025_16_48_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27338909, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27338910, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27338911, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27338912, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27338913, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27338914, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27338915, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27338916, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27338917, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27338918, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27338919, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27338920, 'pht': 3726}}" where mtr_portfolio_id = 27338908 and dashboard_run_id = 2376587 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27338908 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15836930, 0.018743900037648104, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27338908_30-09-2025_16_48_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27338909, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27338910, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27338911, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27338912, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27338913, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27338914, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27338915, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27338916, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27338917, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27338918, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27338919, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27338920, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27339780 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3792882, 'mtr_portfolio_id': 27339780, 'created_at': datetime.datetime(2025, 9, 30, 6, 51, 25), 'result': '0.027011637195848395', 'result_long': None, 'result_double': None}] Qualite : 0.027011637195848395 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27339780 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27339780_30-09-2025_06_51_25.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27339780 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27339780_30-09-2025_06_51_25.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27339783, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27339784, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27339785, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27339786, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27339787, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27339788, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27339789, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27339790, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27339791, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27339792, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27339793, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27339794, 'pht': 3726}}" where mtr_portfolio_id = 27339780 and dashboard_run_id = 2376587 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27339780 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15836931, 0.027011637195848395, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27339780_30-09-2025_06_51_25.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27339783, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27339784, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27339785, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27339786, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27339787, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27339788, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27339789, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27339790, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27339791, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27339792, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27339793, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27339794, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27339914 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3792899, 'mtr_portfolio_id': 27339914, 'created_at': datetime.datetime(2025, 9, 30, 13, 26, 5), 'result': '0.03242617448801075', 'result_long': None, 'result_double': None}] Qualite : 0.03242617448801075 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27339914 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27339914_30-09-2025_13_26_08.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27339914 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27339914_30-09-2025_13_26_08.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27339915, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27339916, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27339917, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27339918, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27339919, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27339920, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27339921, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27339922, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27339923, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27339924, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27339925, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27339926, 'pht': 3726}}" where mtr_portfolio_id = 27339914 and dashboard_run_id = 2376587 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27339914 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15836932, 0.03242617448801075, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27339914_30-09-2025_13_26_08.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27339915, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27339916, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27339917, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27339918, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27339919, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27339920, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27339921, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27339922, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27339923, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27339924, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27339925, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27339926, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27346603 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27346603 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 27346603 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27346603 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27346603 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27346603 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27346603_30-09-2025_13_21_10.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27346603 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27346603_30-09-2025_13_21_10.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27347383, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27347384, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27347385, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27347386, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27347387, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27347388, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27347389, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27347390, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27347391, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27347392, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27347393, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27347394, 'pht': 3726}}" where mtr_portfolio_id = 27346603 and dashboard_run_id = 2376587 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27346604 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27346604 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 27346604 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27346604 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27346604 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27346604 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27346604_30-09-2025_13_01_10.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27346604 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27346604_30-09-2025_13_01_10.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27346634, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27346635, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27346636, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27346637, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27346638, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27346639, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27346640, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27346641, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27346642, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27346643, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27346644, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27346645, 'pht': 3726}}" where mtr_portfolio_id = 27346604 and dashboard_run_id = 2376587 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27346605 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27346605 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 27346605 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27346605 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27346605 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27346605 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27346605_30-09-2025_13_06_10.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27346605 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27346605_30-09-2025_13_06_10.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27346880, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27346881, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27346882, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27346883, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27346884, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27346885, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27346886, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27346887, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27346888, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27346889, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27346890, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27346891, 'pht': 3726}}" where mtr_portfolio_id = 27346605 and dashboard_run_id = 2376587 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27343961 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27343961 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 27343961 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27343961 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27343961 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27343961 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27343961_30-09-2025_12_51_07.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27343961 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27343961_30-09-2025_12_51_07.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27346326, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27346327, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27346328, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27346329, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27346330, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27346331, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27346332, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27346333, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27346334, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27346335, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27346336, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27346337, 'pht': 3726}}" where mtr_portfolio_id = 27343961 and dashboard_run_id = 2376587 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27343964 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27343964 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 27343964 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27343964 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27343964 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27343964 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27343964_30-09-2025_12_56_10.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27343964 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27343964_30-09-2025_12_56_10.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27346485, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27346486, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27346487, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27346488, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27346489, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27346490, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27346491, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27346492, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27346493, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27346494, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27346495, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27346496, 'pht': 3726}}" where mtr_portfolio_id = 27343964 and dashboard_run_id = 2376587 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27346606 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27346606 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 27346606 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27346606 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27346606 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27346606 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27346606_30-09-2025_13_11_09.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27346606 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27346606_30-09-2025_13_11_09.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27347098, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27347099, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27347100, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27347101, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27347102, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27347103, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27347104, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27347105, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27347106, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27347107, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27347108, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27347109, 'pht': 3726}}" where mtr_portfolio_id = 27346606 and dashboard_run_id = 2376587 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27346607 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27346607 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 27346607 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27346607 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27346607 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27346607 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27346607_30-09-2025_13_16_09.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27346607 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27346607_30-09-2025_13_16_09.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27347236, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27347237, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27347238, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27347239, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27347240, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27347241, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27347242, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27347243, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27347244, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27347245, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27347246, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27347247, 'pht': 3726}}" where mtr_portfolio_id = 27346607 and dashboard_run_id = 2376587 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27343995 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27343995 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 27343995 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27343995 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27343995 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27343995 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27343995_30-09-2025_12_46_09.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27343995 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27343995_30-09-2025_12_46_09.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27346255, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27346256, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27346257, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27346258, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27346259, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27346260, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27346261, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27346262, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27346263, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27346264, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27346265, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27346266, 'pht': 3726}}" where mtr_portfolio_id = 27343995 and dashboard_run_id = 2376587 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27341302 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27341302 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 27341302 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27341302 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27341302 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27341302 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27341302_30-09-2025_11_26_08.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27341302 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27341302_30-09-2025_11_26_08.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27341840, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27341841, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27341842, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27341843, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27341844, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27341845, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27341846, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27341847, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27341848, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27341849, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27341850, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27341851, 'pht': 3726}}" where mtr_portfolio_id = 27341302 and dashboard_run_id = 2376587 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27343998 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27343998 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 27343998 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27343998 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27343998 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27343998 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27343998_30-09-2025_12_41_07.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27343998 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27343998_30-09-2025_12_41_07.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27346083, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27346084, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27346085, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27346086, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27346087, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27346088, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27346089, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27346090, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27346091, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27346092, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27346093, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27346094, 'pht': 3726}}" where mtr_portfolio_id = 27343998 and dashboard_run_id = 2376587 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27344000 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27344000 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 27344000 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27344000 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27344000 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27344000 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27344000_30-09-2025_12_36_07.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27344000 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27344000_30-09-2025_12_36_07.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27345883, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27345884, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27345885, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27345886, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27345887, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27345888, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27345889, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27345890, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27345891, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27345892, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27345893, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27345894, 'pht': 3726}}" where mtr_portfolio_id = 27344000 and dashboard_run_id = 2376587 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27341336 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27341336 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 27341336 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27341336 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27341336 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27341336 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27341336_30-09-2025_11_31_09.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27341336 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27341336_30-09-2025_11_31_09.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27342056, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27342057, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27342058, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27342059, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27342060, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27342061, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27342062, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27342063, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27342064, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27342065, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27342066, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27342067, 'pht': 3726}}" where mtr_portfolio_id = 27341336 and dashboard_run_id = 2376587 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27344002 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27344002 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 27344002 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27344002 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27344002 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27344002 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27344002_30-09-2025_12_26_10.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27344002 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27344002_30-09-2025_12_26_10.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27345305, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27345306, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27345307, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27345308, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27345309, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27345310, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27345311, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27345312, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27345313, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27345314, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27345315, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27345316, 'pht': 3726}}" where mtr_portfolio_id = 27344002 and dashboard_run_id = 2376587 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27340889 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27340889 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 27340889 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27340889 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27340889 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27340889 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27340889_30-09-2025_11_21_08.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27340889 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27340889_30-09-2025_11_21_08.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27341272, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27341273, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27341274, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27341275, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27341276, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27341277, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27341278, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27341279, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27341280, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27341281, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27341282, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27341283, 'pht': 3726}}" where mtr_portfolio_id = 27340889 and dashboard_run_id = 2376587 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27342266 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3793369, 'mtr_portfolio_id': 27342266, 'created_at': datetime.datetime(2025, 9, 30, 11, 36, 6), 'result': '0.032037475049841224', 'result_long': None, 'result_double': None}] Qualite : 0.032037475049841224 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27342266 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27342266_30-09-2025_11_36_11.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27342266 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27342266_30-09-2025_11_36_11.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27342442, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27342443, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27342444, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27342445, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27342446, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27342447, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27342448, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27342449, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27342450, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27342451, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27342452, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27342453, 'pht': 3726}}" where mtr_portfolio_id = 27342266 and dashboard_run_id = 2376587 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27342266 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15836947, 0.032037475049841224, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27342266_30-09-2025_11_36_11.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27342442, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27342443, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27342444, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27342445, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27342446, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27342447, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27342448, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27342449, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27342450, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27342451, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27342452, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27342453, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27343199 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3793694, 'mtr_portfolio_id': 27343199, 'created_at': datetime.datetime(2025, 9, 30, 11, 56, 5), 'result': '0.031162266974524126', 'result_long': None, 'result_double': None}] Qualite : 0.031162266974524126 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27343199 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27343199_30-09-2025_11_56_09.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27343199 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27343199_30-09-2025_11_56_09.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27343718, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27343719, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27343720, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27343721, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27343722, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27343723, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27343724, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27343725, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27343726, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27343727, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27343728, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27343729, 'pht': 3726}}" where mtr_portfolio_id = 27343199 and dashboard_run_id = 2376587 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27343199 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15836948, 0.031162266974524126, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27343199_30-09-2025_11_56_09.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27343718, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27343719, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27343720, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27343721, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27343722, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27343723, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27343724, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27343725, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27343726, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27343727, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27343728, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27343729, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27342690 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3793447, 'mtr_portfolio_id': 27342690, 'created_at': datetime.datetime(2025, 9, 30, 11, 51, 7), 'result': '0.08112103612526256', 'result_long': None, 'result_double': None}] Qualite : 0.08112103612526256 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27342690 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27342690_30-09-2025_11_51_08.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27342690 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27342690_30-09-2025_11_51_08.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27342735, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27342736, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27342737, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27342738, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27342739, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27342740, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27342741, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27342742, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27342743, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27342744, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27342745, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27342746, 'pht': 3726}}" where mtr_portfolio_id = 27342690 and dashboard_run_id = 2376587 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27342690 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15836949, 0.08112103612526256, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27342690_30-09-2025_11_51_08.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27342735, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27342736, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27342737, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27342738, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27342739, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27342740, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27342741, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27342742, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27342743, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27342744, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27342745, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27342746, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27343836 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3793803, 'mtr_portfolio_id': 27343836, 'created_at': datetime.datetime(2025, 9, 30, 12, 21, 4), 'result': '0.06402936172566988', 'result_long': None, 'result_double': None}] Qualite : 0.06402936172566988 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27343836 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27343836_30-09-2025_12_21_05.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27343836 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27343836_30-09-2025_12_21_05.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27343967, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27343968, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27343969, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27343970, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27343971, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27343972, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27343973, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27343974, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27343975, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27343976, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27343977, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27343978, 'pht': 3726}}" where mtr_portfolio_id = 27343836 and dashboard_run_id = 2376587 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27343836 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15836950, 0.06402936172566988, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27343836_30-09-2025_12_21_05.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27343967, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27343968, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27343969, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27343970, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27343971, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27343972, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27343973, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27343974, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27343975, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27343976, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27343977, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27343978, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27344539 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3793931, 'mtr_portfolio_id': 27344539, 'created_at': datetime.datetime(2025, 9, 30, 12, 39, 24), 'result': '0.06871672178279924', 'result_long': None, 'result_double': None}] Qualite : 0.06871672178279924 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27344539 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27344539_30-09-2025_12_39_24.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27344539 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27344539_30-09-2025_12_39_24.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27344546, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27344547, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27344548, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27344549, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27344550, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27344551, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27344552, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27344553, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27344554, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27344555, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27344556, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27344557, 'pht': 3726}}" where mtr_portfolio_id = 27344539 and dashboard_run_id = 2376587 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27344539 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15836951, 0.06871672178279924, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27344539_30-09-2025_12_39_24.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27344546, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27344547, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27344548, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27344549, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27344550, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27344551, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27344552, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27344553, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27344554, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27344555, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27344556, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27344557, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27348083 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3794214, 'mtr_portfolio_id': 27348083, 'created_at': datetime.datetime(2025, 9, 30, 14, 11, 6), 'result': '0.05605132116591798', 'result_long': None, 'result_double': None}] Qualite : 0.05605132116591798 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27348083 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27348083_30-09-2025_14_11_06.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27348083 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27348083_30-09-2025_14_11_06.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27348140, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27348141, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27348142, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27348143, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27348144, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27348145, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27348146, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27348147, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27348148, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27348149, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27348150, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27348151, 'pht': 3726}}" where mtr_portfolio_id = 27348083 and dashboard_run_id = 2376587 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27348083 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15836952, 0.05605132116591798, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27348083_30-09-2025_14_11_06.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27348140, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27348141, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27348142, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27348143, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27348144, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27348145, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27348146, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27348147, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27348148, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27348149, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27348150, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27348151, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27348699 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3794256, 'mtr_portfolio_id': 27348699, 'created_at': datetime.datetime(2025, 9, 30, 14, 21, 4), 'result': '0.04381904414100635', 'result_long': None, 'result_double': None}] Qualite : 0.04381904414100635 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27348699 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27348699_30-09-2025_14_21_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27348699 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27348699_30-09-2025_14_21_04.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27349167, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27349168, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27349169, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27349170, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27349171, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27349172, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27349173, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27349174, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27349175, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27349176, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27349177, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27349178, 'pht': 3726}}" where mtr_portfolio_id = 27348699 and dashboard_run_id = 2376587 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27348699 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15836953, 0.04381904414100635, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27348699_30-09-2025_14_21_04.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27349167, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27349168, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27349169, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27349170, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27349171, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27349172, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27349173, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27349174, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27349175, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27349176, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27349177, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27349178, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27349371 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3794299, 'mtr_portfolio_id': 27349371, 'created_at': datetime.datetime(2025, 9, 30, 14, 36, 5), 'result': '0.03183588031159431', 'result_long': None, 'result_double': None}] Qualite : 0.03183588031159431 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27349371 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27349371_30-09-2025_14_36_07.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27349371 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27349371_30-09-2025_14_36_07.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27349639, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27349640, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27349641, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27349642, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27349643, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27349644, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27349645, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27349646, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27349647, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27349648, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27349649, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27349650, 'pht': 3726}}" where mtr_portfolio_id = 27349371 and dashboard_run_id = 2376587 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27349371 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15836954, 0.03183588031159431, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27349371_30-09-2025_14_36_07.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27349639, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27349640, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27349641, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27349642, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27349643, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27349644, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27349645, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27349646, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27349647, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27349648, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27349649, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27349650, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27350226 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3794387, 'mtr_portfolio_id': 27350226, 'created_at': datetime.datetime(2025, 9, 30, 14, 51, 5), 'result': '0.06751035463601696', 'result_long': None, 'result_double': None}] Qualite : 0.06751035463601696 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27350226 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27350226_30-09-2025_14_51_06.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27350226 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27350226_30-09-2025_14_51_06.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27350227, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27350228, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27350229, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27350230, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27350231, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27350232, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27350233, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27350234, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27350235, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27350236, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27350237, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27350238, 'pht': 3726}}" where mtr_portfolio_id = 27350226 and dashboard_run_id = 2376587 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27350226 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15836955, 0.06751035463601696, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27350226_30-09-2025_14_51_06.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27350227, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27350228, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27350229, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27350230, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27350231, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27350232, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27350233, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27350234, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27350235, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27350236, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27350237, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27350238, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27350819 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3794478, 'mtr_portfolio_id': 27350819, 'created_at': datetime.datetime(2025, 9, 30, 15, 6, 5), 'result': '0.06836435408594851', 'result_long': None, 'result_double': None}] Qualite : 0.06836435408594851 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27350819 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27350819_30-09-2025_15_06_05.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27350819 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27350819_30-09-2025_15_06_05.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27350827, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27350828, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27350829, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27350830, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27350831, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27350832, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27350833, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27350834, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27350835, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27350836, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27350837, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27350838, 'pht': 3726}}" where mtr_portfolio_id = 27350819 and dashboard_run_id = 2376587 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27350819 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15836956, 0.06836435408594851, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27350819_30-09-2025_15_06_05.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27350827, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27350828, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27350829, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27350830, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27350831, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27350832, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27350833, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27350834, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27350835, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27350836, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27350837, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27350838, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27351603 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3794570, 'mtr_portfolio_id': 27351603, 'created_at': datetime.datetime(2025, 9, 30, 15, 26, 4), 'result': '0.060426941062765714', 'result_long': None, 'result_double': None}] Qualite : 0.060426941062765714 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27351603 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27351603_30-09-2025_15_26_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27351603 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27351603_30-09-2025_15_26_04.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27351611, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27351612, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27351613, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27351614, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27351615, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27351616, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27351617, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27351618, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27351619, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27351620, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27351621, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27351622, 'pht': 3726}}" where mtr_portfolio_id = 27351603 and dashboard_run_id = 2376587 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27351603 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15836957, 0.060426941062765714, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27351603_30-09-2025_15_26_04.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27351611, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27351612, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27351613, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27351614, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27351615, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27351616, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27351617, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27351618, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27351619, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27351620, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27351621, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27351622, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27351983 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3794606, 'mtr_portfolio_id': 27351983, 'created_at': datetime.datetime(2025, 9, 30, 15, 36, 5), 'result': '0.03756418339818615', 'result_long': None, 'result_double': None}] Qualite : 0.03756418339818615 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27351983 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27351983_30-09-2025_15_36_06.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27351983 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27351983_30-09-2025_15_36_06.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27352046, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27352047, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27352048, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27352049, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27352050, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27352051, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27352052, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27352053, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27352054, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27352055, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27352056, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27352057, 'pht': 3726}}" where mtr_portfolio_id = 27351983 and dashboard_run_id = 2376587 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27351983 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15836958, 0.03756418339818615, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27351983_30-09-2025_15_36_06.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27352046, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27352047, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27352048, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27352049, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27352050, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27352051, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27352052, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27352053, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27352054, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27352055, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27352056, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27352057, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27352576 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3794664, 'mtr_portfolio_id': 27352576, 'created_at': datetime.datetime(2025, 9, 30, 15, 53, 25), 'result': '0.056827191337181726', 'result_long': None, 'result_double': None}] Qualite : 0.056827191337181726 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27352576 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27352576_30-09-2025_15_53_26.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27352576 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27352576_30-09-2025_15_53_26.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27352682, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27352683, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27352684, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27352685, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27352686, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27352687, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27352688, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27352689, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27352690, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27352691, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27352692, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27352693, 'pht': 3726}}" where mtr_portfolio_id = 27352576 and dashboard_run_id = 2376587 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27352576 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15836959, 0.056827191337181726, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27352576_30-09-2025_15_53_26.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27352682, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27352683, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27352684, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27352685, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27352686, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27352687, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27352688, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27352689, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27352690, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27352691, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27352692, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27352693, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27353601 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3794801, 'mtr_portfolio_id': 27353601, 'created_at': datetime.datetime(2025, 9, 30, 16, 11, 6), 'result': '0.06005432698009597', 'result_long': None, 'result_double': None}] Qualite : 0.06005432698009597 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27353601 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27353601_30-09-2025_16_11_06.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27353601 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27353601_30-09-2025_16_11_06.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27353690, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27353691, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27353692, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27353693, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27353694, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27353695, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27353696, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27353697, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27353698, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27353699, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27353700, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27353701, 'pht': 3726}}" where mtr_portfolio_id = 27353601 and dashboard_run_id = 2376587 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27353601 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15836960, 0.06005432698009597, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27353601_30-09-2025_16_11_06.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27353690, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27353691, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27353692, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27353693, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27353694, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27353695, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27353696, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27353697, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27353698, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27353699, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27353700, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27353701, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27354235 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3794868, 'mtr_portfolio_id': 27354235, 'created_at': datetime.datetime(2025, 9, 30, 16, 21, 7), 'result': '0.052175548624391554', 'result_long': None, 'result_double': None}] Qualite : 0.052175548624391554 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27354235 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27354235_30-09-2025_16_21_09.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27354235 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27354235_30-09-2025_16_21_09.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27354629, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27354630, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27354631, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27354632, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27354633, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27354634, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27354635, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27354636, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27354637, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27354638, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27354639, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27354640, 'pht': 3726}}" where mtr_portfolio_id = 27354235 and dashboard_run_id = 2376587 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27354235 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15836961, 0.052175548624391554, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27354235_30-09-2025_16_21_09.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27354629, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27354630, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27354631, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27354632, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27354633, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27354634, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27354635, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27354636, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27354637, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27354638, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27354639, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27354640, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27355020 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3794930, 'mtr_portfolio_id': 27355020, 'created_at': datetime.datetime(2025, 9, 30, 16, 41, 7), 'result': '0.03992816911486089', 'result_long': None, 'result_double': None}] Qualite : 0.03992816911486089 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27355020 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27355020_30-09-2025_16_41_07.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27355020 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27355020_30-09-2025_16_41_07.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27355031, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27355032, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27355033, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27355034, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27355035, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27355036, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27355037, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27355038, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27355039, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27355040, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27355041, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27355042, 'pht': 3726}}" where mtr_portfolio_id = 27355020 and dashboard_run_id = 2376587 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27355020 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15836962, 0.03992816911486089, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27355020_30-09-2025_16_41_07.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27355031, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27355032, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27355033, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27355034, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27355035, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27355036, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27355037, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27355038, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27355039, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27355040, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27355041, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27355042, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27355733 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3795055, 'mtr_portfolio_id': 27355733, 'created_at': datetime.datetime(2025, 9, 30, 16, 51, 26), 'result': '0.03956578148142965', 'result_long': None, 'result_double': None}] Qualite : 0.03956578148142965 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27355733 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27355733_30-09-2025_16_51_27.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27355733 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27355733_30-09-2025_16_51_27.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27355744, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27355745, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27355746, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27355747, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27355748, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27355749, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27355750, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27355751, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27355752, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27355753, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27355754, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27355755, 'pht': 3726}}" where mtr_portfolio_id = 27355733 and dashboard_run_id = 2376587 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27355733 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15836963, 0.03956578148142965, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27355733_30-09-2025_16_51_27.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27355744, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27355745, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27355746, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27355747, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27355748, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27355749, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27355750, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27355751, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27355752, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27355753, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27355754, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27355755, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27356323 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3795120, 'mtr_portfolio_id': 27356323, 'created_at': datetime.datetime(2025, 9, 30, 17, 4, 59), 'result': '0.03351866036357782', 'result_long': None, 'result_double': None}] Qualite : 0.03351866036357782 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27356323 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27356323_30-09-2025_17_05_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27356323 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27356323_30-09-2025_17_05_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27356338, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27356339, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27356340, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27356341, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27356342, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27356343, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27356344, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27356345, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27356346, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27356347, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27356348, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27356349, 'pht': 3726}}" where mtr_portfolio_id = 27356323 and dashboard_run_id = 2376587 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27356323 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15836964, 0.03351866036357782, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27356323_30-09-2025_17_05_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27356338, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27356339, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27356340, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27356341, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27356342, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27356343, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27356344, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27356345, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27356346, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27356347, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27356348, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27356349, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27356877 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3795212, 'mtr_portfolio_id': 27356877, 'created_at': datetime.datetime(2025, 9, 30, 17, 19, 23), 'result': '0.04055982741025997', 'result_long': None, 'result_double': None}] Qualite : 0.04055982741025997 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27356877 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27356877_30-09-2025_17_19_24.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27356877 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27356877_30-09-2025_17_19_24.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27356939, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27356940, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27356941, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27356942, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27356943, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27356944, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27356945, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27356946, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27356947, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27356948, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27356949, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27356950, 'pht': 3726}}" where mtr_portfolio_id = 27356877 and dashboard_run_id = 2376587 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27356877 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15836965, 0.04055982741025997, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27356877_30-09-2025_17_19_24.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27356939, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27356940, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27356941, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27356942, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27356943, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27356944, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27356945, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27356946, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27356947, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27356948, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27356949, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27356950, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27357789 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3795311, 'mtr_portfolio_id': 27357789, 'created_at': datetime.datetime(2025, 9, 30, 18, 5, 4), 'result': '0.04134207455672641', 'result_long': None, 'result_double': None}] Qualite : 0.04134207455672641 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27357789 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27357789_30-09-2025_18_05_05.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27357789 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27357789_30-09-2025_18_05_05.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27357807, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27357808, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27357809, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27357810, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27357811, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27357812, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27357813, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27357814, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27357815, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27357816, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27357817, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27357818, 'pht': 3726}}" where mtr_portfolio_id = 27357789 and dashboard_run_id = 2376587 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27357789 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15836966, 0.04134207455672641, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27357789_30-09-2025_18_05_05.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27357807, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27357808, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27357809, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27357810, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27357811, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27357812, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27357813, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27357814, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27357815, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27357816, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27357817, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27357818, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27359942 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3795575, 'mtr_portfolio_id': 27359942, 'created_at': datetime.datetime(2025, 9, 30, 18, 17, 3), 'result': '0.04682273514079712', 'result_long': None, 'result_double': None}] Qualite : 0.04682273514079712 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27359942 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27359942_30-09-2025_18_17_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27359942 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27359942_30-09-2025_18_17_04.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27359986, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27359987, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27359988, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27359989, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27359990, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27359991, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27359992, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27359993, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27359994, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27359995, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27359996, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27359997, 'pht': 3726}}" where mtr_portfolio_id = 27359942 and dashboard_run_id = 2376587 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27359942 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15836967, 0.04682273514079712, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27359942_30-09-2025_18_17_04.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27359986, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27359987, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27359988, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27359989, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27359990, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27359991, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27359992, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27359993, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27359994, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27359995, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27359996, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27359997, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27360591 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3795626, 'mtr_portfolio_id': 27360591, 'created_at': datetime.datetime(2025, 9, 30, 18, 35, 6), 'result': '0.06108782636962525', 'result_long': None, 'result_double': None}] Qualite : 0.06108782636962525 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27360591 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27360591_30-09-2025_18_35_06.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27360591 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27360591_30-09-2025_18_35_06.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27360602, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27360603, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27360604, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27360605, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27360606, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27360607, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27360608, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27360609, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27360610, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27360611, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27360612, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27360613, 'pht': 3726}}" where mtr_portfolio_id = 27360591 and dashboard_run_id = 2376587 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27360591 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15836968, 0.06108782636962525, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27360591_30-09-2025_18_35_06.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27360602, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27360603, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27360604, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27360605, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27360606, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27360607, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27360608, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27360609, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27360610, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27360611, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27360612, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27360613, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27361214 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3795704, 'mtr_portfolio_id': 27361214, 'created_at': datetime.datetime(2025, 9, 30, 18, 49, 3), 'result': '0.040197135565628296', 'result_long': None, 'result_double': None}] Qualite : 0.040197135565628296 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27361214 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27361214_30-09-2025_18_49_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27361214 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27361214_30-09-2025_18_49_03.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27361278, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27361279, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27361280, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27361281, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27361282, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27361283, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27361284, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27361285, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27361286, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27361287, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27361288, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27361289, 'pht': 3726}}" where mtr_portfolio_id = 27361214 and dashboard_run_id = 2376587 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27361214 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15836969, 0.040197135565628296, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27361214_30-09-2025_18_49_03.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27361278, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27361279, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27361280, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27361281, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27361282, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27361283, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27361284, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27361285, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27361286, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27361287, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27361288, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27361289, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27361733 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3795798, 'mtr_portfolio_id': 27361733, 'created_at': datetime.datetime(2025, 9, 30, 19, 5, 25), 'result': '0.08001342542891669', 'result_long': None, 'result_double': None}] Qualite : 0.08001342542891669 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27361733 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27361733_30-09-2025_19_05_26.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27361733 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27361733_30-09-2025_19_05_26.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27361750, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27361751, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27361752, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27361753, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27361754, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27361755, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27361757, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27361758, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27361759, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27361760, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27361761, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27361762, 'pht': 3726}}" where mtr_portfolio_id = 27361733 and dashboard_run_id = 2376587 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27361733 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15836970, 0.08001342542891669, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27361733_30-09-2025_19_05_26.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27361750, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27361751, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27361752, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27361753, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27361754, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27361755, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27361757, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27361758, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27361759, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27361760, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27361761, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27361762, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27362389 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3795916, 'mtr_portfolio_id': 27362389, 'created_at': datetime.datetime(2025, 9, 30, 19, 17, 1), 'result': '0.03990075924470431', 'result_long': None, 'result_double': None}] Qualite : 0.03990075924470431 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27362389 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27362389_30-09-2025_19_17_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27362389 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27362389_30-09-2025_19_17_03.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27362402, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27362403, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27362404, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27362405, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27362406, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27362407, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27362408, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27362409, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27362410, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27362411, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27362412, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27362413, 'pht': 3726}}" where mtr_portfolio_id = 27362389 and dashboard_run_id = 2376587 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27362389 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15836971, 0.03990075924470431, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27362389_30-09-2025_19_17_03.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27362402, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27362403, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27362404, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27362405, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27362406, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27362407, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27362408, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27362409, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27362410, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27362411, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27362412, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27362413, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27363066 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3796012, 'mtr_portfolio_id': 27363066, 'created_at': datetime.datetime(2025, 9, 30, 19, 33), 'result': '0.04919134925850653', 'result_long': None, 'result_double': None}] Qualite : 0.04919134925850653 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27363066 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27363066_30-09-2025_19_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27363066 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27363066_30-09-2025_19_33_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27363114, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27363115, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27363116, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27363117, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27363118, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27363119, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27363120, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27363121, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27363122, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27363123, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27363124, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27363125, 'pht': 3726}}" where mtr_portfolio_id = 27363066 and dashboard_run_id = 2376587 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27363066 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15836972, 0.04919134925850653, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27363066_30-09-2025_19_33_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27363114, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27363115, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27363116, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27363117, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27363118, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27363119, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27363120, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27363121, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27363122, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27363123, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27363124, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27363125, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27363779 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3796140, 'mtr_portfolio_id': 27363779, 'created_at': datetime.datetime(2025, 9, 30, 19, 49, 4), 'result': '0.061652323278321645', 'result_long': None, 'result_double': None}] Qualite : 0.061652323278321645 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27363779 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27363779_30-09-2025_19_49_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27363779 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27363779_30-09-2025_19_49_04.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27363818, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27363819, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27363820, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27363821, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27363822, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27363823, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27363824, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27363825, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27363826, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27363827, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27363828, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27363829, 'pht': 3726}}" where mtr_portfolio_id = 27363779 and dashboard_run_id = 2376587 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27363779 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15836973, 0.061652323278321645, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27363779_30-09-2025_19_49_04.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27363818, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27363819, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27363820, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27363821, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27363822, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27363823, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27363824, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27363825, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27363826, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27363827, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27363828, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27363829, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27364486 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3796256, 'mtr_portfolio_id': 27364486, 'created_at': datetime.datetime(2025, 9, 30, 20, 5), 'result': '0.05320708801057103', 'result_long': None, 'result_double': None}] Qualite : 0.05320708801057103 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27364486 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27364486_30-09-2025_20_05_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27364486 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27364486_30-09-2025_20_05_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27364512, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27364520, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27364530, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27364531, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27364532, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27364533, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27364534, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27364535, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27364536, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27364537, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27364538, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27364539, 'pht': 3726}}" where mtr_portfolio_id = 27364486 and dashboard_run_id = 2376587 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27364486 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15836974, 0.05320708801057103, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27364486_30-09-2025_20_05_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27364512, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27364520, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27364530, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27364531, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27364532, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27364533, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27364534, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27364535, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27364536, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27364537, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27364538, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27364539, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27365188 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3796361, 'mtr_portfolio_id': 27365188, 'created_at': datetime.datetime(2025, 9, 30, 20, 19, 3), 'result': '0.061260001620685706', 'result_long': None, 'result_double': None}] Qualite : 0.061260001620685706 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27365188 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27365188_30-09-2025_20_19_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27365188 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27365188_30-09-2025_20_19_04.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27365198, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27365199, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27365200, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27365201, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27365202, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27365203, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27365204, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27365205, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27365206, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27365207, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27365209, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27365210, 'pht': 3726}}" where mtr_portfolio_id = 27365188 and dashboard_run_id = 2376587 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27365188 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15836975, 0.061260001620685706, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27365188_30-09-2025_20_19_04.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27365198, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27365199, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27365200, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27365201, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27365202, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27365203, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27365204, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27365205, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27365206, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27365207, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27365209, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27365210, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27365970 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3796476, 'mtr_portfolio_id': 27365970, 'created_at': datetime.datetime(2025, 9, 30, 20, 33, 4), 'result': '0.0719164820812083', 'result_long': None, 'result_double': None}] Qualite : 0.0719164820812083 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27365970 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27365970_30-09-2025_20_33_05.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27365970 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27365970_30-09-2025_20_33_05.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27365993, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27365994, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27365995, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27365996, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27365997, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27365998, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27365999, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27366000, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27366001, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27366002, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27366003, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27366004, 'pht': 3726}}" where mtr_portfolio_id = 27365970 and dashboard_run_id = 2376587 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27365970 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15836976, 0.0719164820812083, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27365970_30-09-2025_20_33_05.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27365993, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27365994, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27365995, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27365996, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27365997, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27365998, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27365999, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27366000, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27366001, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27366002, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27366003, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27366004, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27366469 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3796564, 'mtr_portfolio_id': 27366469, 'created_at': datetime.datetime(2025, 9, 30, 21, 4, 58), 'result': '0.06237384333281851', 'result_long': None, 'result_double': None}] Qualite : 0.06237384333281851 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27366469 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27366469_30-09-2025_21_04_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27366469 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27366469_30-09-2025_21_04_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27366475, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27366476, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27366477, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27366478, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27366479, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27366480, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27366481, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27366482, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27366483, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27366484, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27366485, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27366486, 'pht': 3726}}" where mtr_portfolio_id = 27366469 and dashboard_run_id = 2376587 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27366469 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15836977, 0.06237384333281851, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27366469_30-09-2025_21_04_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27366475, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27366476, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27366477, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27366478, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27366479, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27366480, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27366481, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27366482, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27366483, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27366484, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27366485, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27366486, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27367917 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3796773, 'mtr_portfolio_id': 27367917, 'created_at': datetime.datetime(2025, 9, 30, 21, 19, 3), 'result': '0.2664214355694786', 'result_long': None, 'result_double': None}] Qualite : 0.2664214355694786 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27367917 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27367917_30-09-2025_21_19_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27367917 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27367917_30-09-2025_21_19_03.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27367971, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27367972, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27367973, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27367974, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27367975, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27367976, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27367977, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27367978, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27367979, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27367980, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27367981, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27367982, 'pht': 3726}}" where mtr_portfolio_id = 27367917 and dashboard_run_id = 2376587 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27367917 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15836978, 0.2664214355694786, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27367917_30-09-2025_21_19_03.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27367971, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27367972, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27367973, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27367974, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27367975, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27367976, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27367977, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27367978, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27367979, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27367980, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27367981, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27367982, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27368441 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3796814, 'mtr_portfolio_id': 27368441, 'created_at': datetime.datetime(2025, 9, 30, 21, 32, 59), 'result': '0.03200867551893525', 'result_long': None, 'result_double': None}] Qualite : 0.03200867551893525 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27368441 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27368441_30-09-2025_21_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27368441 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27368441_30-09-2025_21_33_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27368472, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27368473, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27368474, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27368475, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27368476, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27368477, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27368478, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27368479, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27368480, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27368481, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27368482, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27368483, 'pht': 3726}}" where mtr_portfolio_id = 27368441 and dashboard_run_id = 2376587 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27368441 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15836979, 0.03200867551893525, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27368441_30-09-2025_21_33_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27368472, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27368473, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27368474, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27368475, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27368476, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27368477, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27368478, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27368479, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27368480, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27368481, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27368482, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27368483, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27368974 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3796886, 'mtr_portfolio_id': 27368974, 'created_at': datetime.datetime(2025, 9, 30, 21, 49, 1), 'result': '0.05501689573186681', 'result_long': None, 'result_double': None}] Qualite : 0.05501689573186681 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27368974 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27368974_30-09-2025_21_49_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27368974 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27368974_30-09-2025_21_49_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27369012, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27369013, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27369014, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27369015, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27369016, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27369017, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27369018, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27369019, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27369020, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27369021, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27369022, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27369023, 'pht': 3726}}" where mtr_portfolio_id = 27368974 and dashboard_run_id = 2376587 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27368974 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15836980, 0.05501689573186681, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27368974_30-09-2025_21_49_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27369012, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27369013, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27369014, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27369015, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27369016, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27369017, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27369018, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27369019, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27369020, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27369021, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27369022, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27369023, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27369635 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3797007, 'mtr_portfolio_id': 27369635, 'created_at': datetime.datetime(2025, 9, 30, 22, 7), 'result': '0.0580696428745729', 'result_long': None, 'result_double': None}] Qualite : 0.0580696428745729 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27369635 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27369635_30-09-2025_22_07_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27369635 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27369635_30-09-2025_22_07_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27369647, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27369648, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27369649, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27369650, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27369651, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27369652, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27369653, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27369654, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27369655, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27369656, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27369657, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27369658, 'pht': 3726}}" where mtr_portfolio_id = 27369635 and dashboard_run_id = 2376587 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27369635 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15836981, 0.0580696428745729, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27369635_30-09-2025_22_07_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27369647, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27369648, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27369649, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27369650, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27369651, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27369652, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27369653, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27369654, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27369655, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27369656, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27369657, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27369658, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27370115 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3797156, 'mtr_portfolio_id': 27370115, 'created_at': datetime.datetime(2025, 9, 30, 22, 19, 2), 'result': '0.06314917407152192', 'result_long': None, 'result_double': None}] Qualite : 0.06314917407152192 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27370115 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27370115_30-09-2025_22_19_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27370115 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27370115_30-09-2025_22_19_03.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27370125, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27370126, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27370127, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27370128, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27370129, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27370130, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27370131, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27370132, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27370133, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27370134, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27370135, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27370136, 'pht': 3726}}" where mtr_portfolio_id = 27370115 and dashboard_run_id = 2376587 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27370115 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15836982, 0.06314917407152192, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27370115_30-09-2025_22_19_03.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27370125, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27370126, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27370127, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27370128, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27370129, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27370130, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27370131, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27370132, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27370133, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27370134, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27370135, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27370136, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27370829 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3797263, 'mtr_portfolio_id': 27370829, 'created_at': datetime.datetime(2025, 9, 30, 22, 32, 59), 'result': '0.06440424489987416', 'result_long': None, 'result_double': None}] Qualite : 0.06440424489987416 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27370829 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27370829_30-09-2025_22_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27370829 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27370829_30-09-2025_22_33_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27370887, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27370888, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27370889, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27370890, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27370891, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27370892, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27370893, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27370894, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27370895, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27370896, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27370897, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27370898, 'pht': 3726}}" where mtr_portfolio_id = 27370829 and dashboard_run_id = 2376587 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27370829 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15836983, 0.06440424489987416, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27370829_30-09-2025_22_33_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27370887, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27370888, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27370889, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27370890, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27370891, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27370892, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27370893, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27370894, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27370895, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27370896, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27370897, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27370898, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27371578 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3797373, 'mtr_portfolio_id': 27371578, 'created_at': datetime.datetime(2025, 9, 30, 22, 49, 3), 'result': '0.03843475901269109', 'result_long': None, 'result_double': None}] Qualite : 0.03843475901269109 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27371578 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27371578_30-09-2025_22_49_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27371578 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27371578_30-09-2025_22_49_03.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27371603, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27371604, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27371605, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27371606, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27371607, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27371608, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27371609, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27371610, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27371611, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27371612, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27371613, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27371614, 'pht': 3726}}" where mtr_portfolio_id = 27371578 and dashboard_run_id = 2376587 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27371578 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15836984, 0.03843475901269109, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27371578_30-09-2025_22_49_03.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27371603, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27371604, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27371605, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27371606, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27371607, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27371608, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27371609, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27371610, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27371611, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27371612, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27371613, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27371614, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27372424 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3797462, 'mtr_portfolio_id': 27372424, 'created_at': datetime.datetime(2025, 9, 30, 23, 7, 25), 'result': '0.04554653824385964', 'result_long': None, 'result_double': None}] Qualite : 0.04554653824385964 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27372424 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27372424_30-09-2025_23_07_25.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27372424 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27372424_30-09-2025_23_07_25.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27372435, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27372436, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27372437, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27372438, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27372439, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27372440, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27372441, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27372442, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27372443, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27372444, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27372445, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27372446, 'pht': 3726}}" where mtr_portfolio_id = 27372424 and dashboard_run_id = 2376587 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27372424 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15836985, 0.04554653824385964, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27372424_30-09-2025_23_07_25.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27372435, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27372436, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27372437, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27372438, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27372439, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27372440, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27372441, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27372442, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27372443, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27372444, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27372445, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27372446, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27373048 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3797565, 'mtr_portfolio_id': 27373048, 'created_at': datetime.datetime(2025, 9, 30, 23, 17, 2), 'result': '0.04419719404761164', 'result_long': None, 'result_double': None}] Qualite : 0.04419719404761164 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27373048 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27373048_30-09-2025_23_17_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27373048 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27373048_30-09-2025_23_17_03.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27373093, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27373094, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27373095, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27373096, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27373097, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27373098, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27373099, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27373100, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27373101, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27373102, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27373103, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27373104, 'pht': 3726}}" where mtr_portfolio_id = 27373048 and dashboard_run_id = 2376587 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27373048 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15836986, 0.04419719404761164, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27373048_30-09-2025_23_17_03.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27373093, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27373094, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27373095, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27373096, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27373097, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27373098, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27373099, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27373100, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27373101, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27373102, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27373103, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27373104, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27373753 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3797663, 'mtr_portfolio_id': 27373753, 'created_at': datetime.datetime(2025, 9, 30, 23, 33), 'result': '0.08350205380694765', 'result_long': None, 'result_double': None}] Qualite : 0.08350205380694765 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27373753 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27373753_30-09-2025_23_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27373753 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27373753_30-09-2025_23_33_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27373770, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27373771, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27373772, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27373773, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27373774, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27373775, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27373776, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27373777, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27373778, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27373779, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27373780, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27373781, 'pht': 3726}}" where mtr_portfolio_id = 27373753 and dashboard_run_id = 2376587 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27373753 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15836987, 0.08350205380694765, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27373753_30-09-2025_23_33_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27373770, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27373771, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27373772, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27373773, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27373774, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27373775, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27373776, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27373777, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27373778, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27373779, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27373780, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27373781, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27374485 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3797753, 'mtr_portfolio_id': 27374485, 'created_at': datetime.datetime(2025, 9, 30, 23, 47, 4), 'result': '0.04421594474512441', 'result_long': None, 'result_double': None}] Qualite : 0.04421594474512441 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27374485 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27374485_30-09-2025_23_47_05.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27374485 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27374485_30-09-2025_23_47_05.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27374490, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27374491, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27374492, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27374493, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27374494, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27374495, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27374496, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27374497, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27374498, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27374499, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27374500, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27374501, 'pht': 3726}}" where mtr_portfolio_id = 27374485 and dashboard_run_id = 2376587 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27374485 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15836988, 0.04421594474512441, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27374485_30-09-2025_23_47_05.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27374490, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27374491, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27374492, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27374493, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27374494, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27374495, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27374496, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27374497, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27374498, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27374499, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27374500, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27374501, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27375132 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3797828, 'mtr_portfolio_id': 27375132, 'created_at': datetime.datetime(2025, 10, 1, 0, 1, 7), 'result': '0.05826279547332048', 'result_long': None, 'result_double': None}] Qualite : 0.05826279547332048 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27375132 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27375132_01-10-2025_00_01_08.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27375132 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27375132_01-10-2025_00_01_08.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27375172, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27375173, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27375174, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27375175, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27375176, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27375177, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27375178, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27375180, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27375181, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27375182, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27375183, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27375184, 'pht': 3726}}" where mtr_portfolio_id = 27375132 and dashboard_run_id = 2376587 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27375132 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15836989, 0.05826279547332048, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27375132_01-10-2025_00_01_08.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27375172, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27375173, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27375174, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27375175, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27375176, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27375177, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27375178, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27375180, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27375181, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27375182, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27375183, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27375184, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27335682,27335814,27335961,27336428,27337055,27337483,27338516,27338908,27339780,27339914,27346603,27346604,27346605,27343961,27343964,27346606,27346607,27343995,27341302,27343998,27344000,27341336,27344002,27340889,27342266,27343199,27342690,27343836,27344539,27348083,27348699,27349371,27350226,27350819,27351603,27351983,27352576,27353601,27354235,27355020,27355733,27356323,27356877,27357789,27359942,27360591,27361214,27361733,27362389,27363066,27363779,27364486,27365188,27365970,27366469,27367917,27368441,27368974,27369635,27370115,27370829,27371578,27372424,27373048,27373753,27374485,27375132) result : ((1386830906,), (1386831058,), (1386831149,), (1386831559,), (1386831560,), (1386831612,), (1386831630,), (1386831953,), (1386834594,), (1386834611,), (1386834722,), (1386834745,), (1386834749,), (1386835358,), (1386835525,), (1386835526,), (1386835555,), (1386835577,), (1386835578,), (1386835580,), (1386835617,), (1386836087,), (1386836114,), (1386836146,), (1386836150,), (1386836173,), (1386836773,), (1386837033,), (1386837163,), (1386837614,), (1386837618,), (1386837640,), (1386838514,), (1386838480,), (1386838598,), (1386838757,), (1386838762,), (1386838817,), (1386838821,), (1386838873,), (1386839202,), (1386839206,), (1386839236,), (1386840158,), (1386840162,), (1386840829,), (1386845116,), (1386845150,), (1386845154,), (1386846111,), (1386847812,), (1386847816,), (1386849278,), (1386849306,), (1386849361,), (1386849364,), (1386849384,), (1386849388,), (1386850015,), (1386850930,), (1386850944,), (1386851321,), (1386864607,), (1386864599,), (1386864603,), (1386865238,), (1386866133,), (1386866142,), (1386866326,), (1386866337,), (1386866524,), (1386866820,), (1386866863,), (1386866867,), (1386867039,), (1386867095,), (1386867134,), (1386867139,), (1386867143,), (1386867298,), (1386867302,), (1386867341,), (1386867364,), (1386867367,), (1386867371,), (1386867403,), (1386867505,), (1386867561,), (1386867683,), (1386867703,), (1386867914,), (1386868130,), (1386868156,), (1386868534,), (1386868833,), (1386868840,), (1386868973,), (1386868977,), (1386868979,), (1386868980,), (1386868983,), (1386869000,), (1386869003,), (1386869005,), (1386869175,), (1386869179,), (1386869337,), (1386869444,), (1386884239,), (1386884236,), (1386884259,), (1386884264,), (1386884266,), (1386884270,), (1386884273,), (1386884276,), (1386884285,), (1386884288,), (1386884495,), (1386884499,), (1386884505,), (1386884523,), (1386884526,), (1386884551,), (1386884603,), (1386884580,), (1386884592,), (1386884597,), (1386884600,), (1386884620,), (1386884624,), (1386884626,), (1386884627,), (1386884629,), (1386884647,), (1386884651,), (1386884743,), (1386884746,), (1386884748,), (1386884750,), (1386884753,), (1386884771,), (1386884775,), (1386884777,), (1386884780,), (1386884803,), (1386884807,), (1386884809,), (1386884811,), (1386884814,), (1386885703,), (1386885707,), (1386885710,), (1386885713,), (1386885733,), (1386885736,), (1386885739,), (1386885742,), (1386885746,), (1386885751,), (1386886102,), (1386886187,), (1386886190,), (1386886212,), (1386886215,), (1386886218,), (1386886222,), (1386886226,), (1386886537,), (1386886542,), (1386886548,), (1386886554,), (1386886557,), (1386886561,), (1386886565,), (1386886567,), (1386886570,), (1386886598,), (1386893352,), (1386893355,), (1386893357,), (1386893360,), (1386893363,), (1386893367,), (1386893383,), (1386893386,), (1386893400,), (1386893403,), (1386893407,), (1386893420,), (1386893423,), (1386893425,), (1386893429,), (1386893433,), (1386893453,), (1386893454,), (1386893456,), (1386893459,), (1386893462,), (1386893466,), (1386893471,), (1386893473,), (1386893475,), (1386893477,), (1386893482,), (1386893484,), (1386893487,), (1386893491,), (1386893493,), (1386893509,), (1386893513,), (1386893538,), (1386893542,), (1386893547,), (1386893550,), (1386893572,), (1386893575,), (1386893577,), (1386893580,), (1386893583,), (1386893598,), (1386893603,), (1386893607,), (1386893612,), (1386893616,), (1386893632,), (1386893637,), (1386893640,), (1386893671,), (1386893674,), (1386893678,), (1386893683,), (1386893687,), (1386893691,), (1386893704,), (1386893709,), (1386893715,), (1386893720,), (1386893726,), (1386893780,), (1386893782,), (1386893787,), (1386893789,), (1386893792,), (1386893795,), (1386893797,), (1386893799,), (1386893816,), (1386893819,), (1386891495,), (1386891526,), (1386891528,), (1386891530,), (1386891533,), (1386891536,), (1386891539,), (1386891570,), (1386891719,), (1386892445,), (1386892539,), (1386892559,), (1386892560,), (1386892561,), (1386892584,), (1386892588,), (1386892591,), (1386892623,), (1386892628,), (1386892631,), (1386892653,), (1386892657,), (1386892660,), (1386892661,), (1386892664,), (1386892668,), (1386892685,), (1386892689,), (1386892691,), (1386892713,), (1386892717,), (1386892720,), (1386892723,), (1386892727,), (1386892731,), (1386892747,), (1386892750,), (1386892751,), (1386892752,), (1386892755,), (1386892774,), (1386892776,), (1386892778,), (1386892783,), (1386892790,), (1386892792,), (1386892808,), (1386892811,), (1386892813,), (1386892815,), (1386892817,), (1386892820,), (1386892826,), (1386892828,), (1386892831,), (1386892833,), (1386892838,), (1386892842,), (1386892856,), (1386893766,), (1386893769,), (1386893773,), (1386893777,), (1386893802,), (1386893804,), (1386893807,), (1386893810,), (1386893813,), (1386893826,), (1386893829,), (1386893832,), (1386893836,), (1386893840,), (1386893841,), (1386893853,), (1386893856,), (1386893857,), (1386893859,), (1386893882,), (1386893885,), (1386893888,), (1386893892,), (1386893896,), (1386893899,), (1386893911,), (1386893915,), (1386893918,), (1386893922,), (1386893927,), (1386893953,), (1386893957,), (1386893959,), (1386893961,), (1386893965,), (1386893981,), (1386893983,), (1386893985,), (1386893988,), (1386893992,), (1386893996,), (1386894015,), (1386894018,), (1386894020,), (1386894022,), (1386894066,), (1386894079,), (1386894097,), (1386894113,), (1386894119,), (1386894134,), (1386894152,), (1386894160,), (1386894164,), (1386894167,), (1386894173,), (1386894178,), (1386894209,), (1386894211,), (1386894215,), (1386894217,), (1386894222,), (1386894230,), (1386894232,), (1386894236,), (1386894239,), (1386894246,), (1386894253,), (1386894836,), (1386894850,), (1386894854,), (1386894915,), (1386895141,), (1386895144,), (1386895146,), (1386895148,), (1386895156,), (1386895162,), (1386895299,), (1386895309,), (1386895342,), (1386895723,), (1386895735,), (1386895926,), (1386900156,), (1386900188,), (1386900194,), (1386900201,), (1386900206,), (1386900412,), (1386900446,), (1386900448,), (1386900505,), (1386900545,), (1386900548,), (1386900550,), (1386900552,), (1386900555,), (1386900716,), (1386900720,), (1386900723,), (1386900726,), (1386900730,), (1386900760,), (1386900826,), (1386900955,), (1386900985,), (1386900990,), (1386901085,), (1386901090,), (1386901093,), (1386901118,), (1386901123,), (1386901126,), (1386901152,), (1386901161,), (1386901166,), (1386901170,), (1386901188,), (1386901328,), (1386901335,), (1386901337,), (1386901338,), (1386901354,), (1386901357,), (1386901359,), (1386901362,), (1386901366,), (1386901484,), (1386901487,), (1386901532,), (1386901535,), (1386901538,), (1386902218,), (1386902222,), (1386902224,), (1386902226,), (1386902853,), (1386902907,), (1386902909,), (1386902911,), (1386902914,), (1386903185,), (1386903190,), (1386903209,), (1386903606,), (1386903609,), (1386903610,), (1386903648,), (1386903701,), (1386903705,), (1386903707,), (1386903711,), (1386903719,), (1386903723,), (1386903810,), (1386895910,), (1386895914,), (1386895922,), (1386895924,), (1386895925,), (1386896032,), (1386896038,), (1386896051,), (1386896054,), (1386896057,), (1386896131,), (1386896134,), (1386896138,), (1386896142,), (1386896147,), (1386896151,), (1386896618,), (1386896624,), (1386896637,), (1386896638,), (1386897098,), (1386897100,), (1386897103,), (1386897108,), (1386897576,), (1386897585,), (1386897599,), (1386897603,), (1386897608,), (1386897618,), (1386897874,), (1386897977,), (1386897990,), (1386898003,), (1386898005,), (1386898032,), (1386898038,), (1386898179,), (1386898183,), (1386898217,), (1386898233,), (1386898363,), (1386898368,), (1386898400,), (1386898410,), (1386898441,), (1386898481,), (1386898486,), (1386898489,), (1386898492,), (1386898534,), (1386898599,), (1386898601,), (1386898604,), (1386898606,), (1386898609,), (1386898641,), (1386898924,), (1386898950,), (1386898952,), (1386898956,), (1386899097,), (1386899210,), (1386899213,), (1386899223,), (1386899237,), (1386899240,), (1386899406,), (1386899410,), (1386899411,), (1386899417,), (1386899623,), (1386899835,), (1386899935,), (1386899942,), (1386899953,), (1386899978,), (1386900214,), (1386903798,), (1386903803,), (1386903807,), (1386903828,), (1386903832,), (1386903833,), (1386903835,), (1386903840,), (1386903925,), (1386903939,), (1386903942,), (1386903981,), (1386904001,), (1386904006,), (1386904033,), (1386904036,), (1386904173,), (1386904825,), (1386905049,), (1386905099,), (1386905224,), (1386905287,), (1386905328,), (1386905701,), (1386905704,), (1386905706,), (1386905709,), (1386905712,), (1386905900,), (1386905917,), (1386905934,), (1386905939,), (1386905944,), (1386905947,), (1386906360,), (1386906370,), (1386906479,), (1386906481,), (1386906520,), (1386906617,), (1386906644,), (1386906654,), (1386906658,), (1386906662,), (1386906665,), (1386906709,), (1386906713,), (1386906739,), (1386906744,), (1386906768,), (1386906771,), (1386906773,), (1386906971,), (1386906973,), (1386907263,), (1386907267,), (1386907270,), (1386907274,), (1386907284,), (1386907349,), (1386907352,), (1386907356,), (1386907360,), (1386908221,), (1386908290,), (1386908385,), (1386908388,), (1386908393,), (1386908444,), (1386908474,), (1386908484,), (1386908517,), (1386908556,), (1386887862,), (1386887869,), (1386887949,), (1386888130,), (1386888160,), (1386888165,), (1386888201,), (1386888232,), (1386888221,), (1386888225,), (1386888229,), (1386888256,), (1386888259,), (1386888262,), (1386888264,), (1386888265,), (1386888267,), (1386888284,), (1386888285,), (1386888305,), (1386888307,), (1386888310,), (1386888312,), (1386888314,), (1386888316,), (1386888328,), (1386888334,), (1386888338,), (1386888341,), (1386888343,), (1386888361,), (1386888365,), (1386888368,), (1386888372,), (1386888377,), (1386888380,), (1386888396,), (1386888399,), (1386888402,), (1386888405,), (1386888408,), (1386888424,), (1386888426,), (1386888430,), (1386888432,), (1386888433,), (1386888447,), (1386888451,), (1386888454,), (1386888457,), (1386888461,), (1386888464,), (1386888479,), (1386888481,), (1386888483,), (1386888486,), (1386888489,), (1386888491,), (1386888494,), (1386888497,), (1386888499,), (1386888501,), (1386888511,), (1386888514,), (1386888517,), (1386888521,), (1386888525,), (1386888544,), (1386888546,), (1386888548,), (1386888551,), (1386888556,), (1386888580,), (1386888584,), (1386888591,), (1386888594,), (1386888606,), (1386888612,), (1386888616,), (1386888620,), (1386888623,), (1386888626,), (1386888638,), (1386888641,), (1386888644,), (1386888648,), (1386888653,), (1386888656,), (1386888678,), (1386889632,), (1386889660,), (1386889691,), (1386889695,), (1386889699,), (1386889735,), (1386889739,), (1386889743,), (1386889744,), (1386889747,), (1386889772,), (1386889774,), (1386889777,), (1386889781,), (1386889785,), (1386889789,), (1386889815,), (1386889819,), (1386889825,), (1386889828,), (1386889846,), (1386889850,), (1386889854,), (1386889859,), (1386889864,), (1386889868,), (1386889888,), (1386889890,), (1386889891,), (1386889893,), (1386889895,), (1386889899,), (1386889918,), (1386889922,), (1386889925,), (1386889928,), (1386889956,), (1386889960,), (1386889963,), (1386889967,), (1386889971,), (1386889975,), (1386889992,), (1386890028,), (1386890032,), (1386890037,), (1386890039,), (1386890044,), (1386890070,), (1386890076,), (1386890080,), (1386890085,), (1386890118,), (1386890124,), (1386890130,), (1386890136,), (1386890140,), (1386890145,), (1386890169,), (1386891885,), (1386891919,), (1386891924,), (1386891926,), (1386891928,), (1386891931,), (1386891945,), (1386891947,), (1386892029,), (1386892034,), (1386892037,), (1386892065,), (1386892061,), (1386892128,), (1386892276,), (1386892279,), (1386892281,), (1386892285,), (1386892305,), (1386892307,), (1386892310,), (1386892313,), (1386892316,), (1386892330,), (1386892337,), (1386892338,), (1386892340,), (1386892342,), (1386892345,), (1386892356,), (1386892358,), (1386892449,), (1386892849,), (1386892851,), (1386892853,), (1386892871,), (1386892872,), (1386892874,), (1386892876,), (1386892882,), (1386892885,), (1386892907,), (1386892911,), (1386892914,), (1386892917,), (1386892936,), (1386892938,), (1386892940,), (1386892942,), (1386892945,), (1386892962,), (1386892965,), (1386892968,), (1386892971,), (1386892973,), (1386892988,), (1386892989,), (1386892990,), (1386892992,), (1386893010,), (1386893014,), (1386893017,), (1386893021,), (1386893025,), (1386893029,), (1386893045,), (1386893047,), (1386893049,), (1386893050,), (1386893053,), (1386893074,), (1386893079,), (1386893082,), (1386893086,), (1386893091,), (1386893111,), (1386893115,), (1386893119,), (1386893122,), (1386893138,), (1386893144,), (1386893146,), (1386893148,), (1386893151,), (1386893154,), (1386893167,), (1386893169,), (1386893172,), (1386893176,), (1386893178,), (1386893182,), (1386893198,), (1386893206,), (1386893211,), (1386893214,), (1386893217,), (1386893232,), (1386893236,), (1386893238,), (1386893241,), (1386893245,), (1386893248,), (1386893273,), (1386893276,), (1386893325,), (1386908539,), (1386908544,), (1386908549,), (1386908552,), (1386908553,), (1386909801,), (1386909836,), (1386909842,), (1386910212,), (1386910274,), (1386910277,), (1386910280,), (1386910282,), (1386910462,), (1386910465,), (1386910468,), (1386910469,), (1386910505,), (1386910507,), (1386910509,), (1386910511,), (1386910515,), (1386910522,), (1386910539,), (1386910545,), (1386910550,), (1386910946,), (1386910950,), (1386911121,), (1386911141,), (1386911143,), (1386911145,), (1386911147,), (1386911285,), (1386911288,), (1386911301,), (1386911306,), (1386911486,), (1386911566,), (1386911815,), (1386911888,), (1386911911,), (1386911915,), (1386912114,), (1386912117,), (1386912119,), (1386912122,), (1386912243,), (1386912306,), (1386912310,), (1386912346,), (1386912354,), (1386920013,), (1386886587,), (1386886592,), (1386886594,), (1386886596,), (1386886613,), (1386886616,), (1386886620,), (1386886626,), (1386886631,), (1386886635,), (1386886646,), (1386886650,), (1386886653,), (1386886657,), (1386886678,), (1386886682,), (1386886686,), (1386886690,), (1386886694,), (1386886696,), (1386886703,), (1386886705,), (1386886707,), (1386886710,), (1386886713,), (1386886734,), (1386886735,), (1386886738,), (1386886764,), (1386886769,), (1386886772,), (1386886775,), (1386886780,), (1386886793,), (1386886796,), (1386886798,), (1386886804,), (1386886815,), (1386886817,), (1386886819,), (1386886822,), (1386886838,), (1386886845,), (1386886848,), (1386886852,), (1386886855,), (1386886864,), (1386886867,), (1386886870,), (1386886872,), (1386886875,), (1386886877,), (1386886895,), (1386886899,), (1386886900,), (1386886901,), (1386886924,), (1386886927,), (1386886930,), (1386886933,), (1386886935,), (1386886938,), (1386886947,), (1386886950,), (1386886953,), (1386886957,), (1386886979,), (1386886982,), (1386886985,), (1386886986,), (1386886988,), (1386887024,), (1386887009,), (1386887013,), (1386887015,), (1386887018,), (1386887021,), (1386887037,), (1386887040,), (1386887042,), (1386887044,), (1386887047,), (1386887065,), (1386887070,), (1386887074,), (1386887076,), (1386887094,), (1386887095,), (1386887096,), (1386887098,), (1386887101,), (1386887104,), (1386887121,), (1386887124,), (1386887129,), (1386887134,), (1386887137,), (1386887140,), (1386887145,), (1386887147,), (1386887148,), (1386887150,), (1386887153,), (1386887158,), (1386887167,), (1386887170,), (1386887174,), (1386887175,), (1386887183,), (1386887187,), (1386887190,), (1386887192,), (1386887194,), (1386887197,), (1386887211,), (1386887213,), (1386887217,), (1386887220,), (1386887237,), (1386887241,), (1386887244,), (1386887248,), (1386887252,), (1386887256,), (1386887280,), (1386887284,), (1386887286,), (1386887287,), (1386887289,), (1386887305,), (1386887308,), (1386887310,), (1386887315,), (1386887319,), (1386887336,), (1386887338,), (1386887340,), (1386887342,), (1386887345,), (1386887348,), (1386887362,), (1386887371,), (1386887374,), (1386887377,), (1386887380,), (1386887397,), (1386887398,), (1386887400,), (1386887403,), (1386887406,), (1386887407,), (1386887423,), (1386887426,), (1386887429,), (1386887431,), (1386887433,), (1386887434,), (1386887456,), (1386887453,), (1386887455,), (1386887477,), (1386887481,), (1386887484,), (1386887488,), (1386887492,), (1386887495,), (1386887509,), (1386887514,), (1386887518,), (1386887522,), (1386887527,), (1386887531,), (1386887541,), (1386887543,), (1386887545,), (1386887548,), (1386887552,), (1386887564,), (1386887571,), (1386887573,), (1386887575,), (1386887578,), (1386887579,), (1386887592,), (1386887596,), (1386887598,), (1386887618,), (1386887623,), (1386887627,), (1386887629,), (1386887631,), (1386887633,), (1386887644,), (1386887648,), (1386887651,), (1386887654,), (1386887658,), (1386887662,), (1386887686,), (1386887687,), (1386887688,), (1386887713,), (1386887717,), (1386887721,), (1386887726,), (1386887749,), (1386887752,), (1386887755,), (1386887759,), (1386887775,), (1386887776,), (1386887871,), (1386888668,), (1386888671,), (1386888675,), (1386888695,), (1386888697,), (1386888698,), (1386888700,), (1386888703,), (1386888718,), (1386888723,), (1386888727,), (1386888761,), (1386888765,), (1386888767,), (1386888768,), (1386888772,), (1386888776,), (1386888789,), (1386888790,), (1386888793,), (1386888797,), (1386888800,), (1386888803,), (1386888808,), (1386888809,), (1386888810,), (1386888811,), (1386888815,), (1386888823,), (1386888828,), (1386888832,), (1386888834,), (1386888844,), (1386888846,), (1386888847,), (1386888849,), (1386888852,), (1386888869,), (1386888872,), (1386888875,), (1386888877,), (1386888889,), (1386888892,), (1386888895,), (1386888899,), (1386888903,), (1386888932,), (1386888936,), (1386888939,), (1386888944,), (1386888967,), (1386889014,), (1386889047,), (1386889051,), (1386889053,), (1386889056,), (1386889060,), (1386889076,), (1386889078,), (1386889081,), (1386889084,), (1386889087,), (1386889088,), (1386889109,), (1386889102,), (1386889105,), (1386889107,), (1386889134,), (1386889137,), (1386889141,), (1386889165,), (1386889168,), (1386889170,), (1386889172,), (1386889175,), (1386889177,), (1386889193,), (1386889196,), (1386889199,), (1386889203,), (1386889224,), (1386889228,), (1386889230,), (1386889233,), (1386889238,), (1386889266,), (1386889270,), (1386889273,), (1386889276,), (1386889280,), (1386889284,), (1386889307,), (1386889312,), (1386889315,), (1386889317,), (1386889320,), (1386889347,), (1386889352,), (1386889357,), (1386889362,), (1386889366,), (1386889449,), (1386889454,), (1386889484,), (1386889488,), (1386889491,), (1386889493,), (1386889497,), (1386889501,), (1386889528,), (1386889532,), (1386889535,), (1386889537,), (1386889539,), (1386889566,), (1386889569,), (1386889572,), (1386889600,), (1386889604,), (1386889606,), (1386889636,), (1386934434,), (1386934714,), (1386934768,), (1386934771,), (1386934773,), (1386934774,), (1386934777,), (1386934942,), (1386934972,), (1386934996,), (1386935001,), (1386935076,), (1386935080,), (1386935295,), (1386935299,), (1386935334,), (1386935337,), (1386935341,), (1386935344,), (1386935357,), (1386935361,), (1386935365,), (1386935369,), (1386935373,), (1386935420,), (1386935426,), (1386935429,), (1386935431,), (1386935434,), (1386935437,), (1386935461,), (1386935464,), (1386935646,), (1386935856,), (1386935871,), (1386935873,), (1386935876,), (1386935880,), (1386935890,), (1386935929,), (1386935933,), (1386935935,), (1386935937,), (1386935939,), (1386935940,), (1386937204,), (1386937530,), (1386937581,), (1386937830,), (1386937834,), (1386937842,), (1386937844,), (1386937814,), (1386937817,), (1386937819,), (1386937823,), (1386937868,), (1386937872,), (1386937875,), (1386937879,), (1386937896,), (1386937899,), (1386937901,), (1386937903,), (1386937906,), (1386937913,), (1386937947,), (1386937951,), (1386937953,), (1386937963,), (1386937970,), (1386938005,), (1386938008,), (1386938011,), (1386938373,), (1386938405,), (1386938427,), (1386938433,), (1386938437,), (1386938747,), (1386939573,), (1386939578,), (1386939590,), (1386939591,), (1386939593,), (1386939596,), (1386939974,), (1386939983,), (1386940099,), (1386940241,), (1386940364,), (1386940368,), (1386940373,), (1386940441,), (1386940444,), (1386940446,), (1386940478,), (1386940481,), (1386940482,), (1386940483,), (1386940504,), (1386940547,), (1386940550,), (1386940553,), (1386940556,), (1386940961,), (1386940992,), (1386941007,), (1386941010,), (1386941012,), (1386941197,), (1386941200,), (1386941203,), (1386941207,), (1386941215,), (1386941217,), (1386941235,), (1386941238,), (1386941239,), (1386941241,), (1386941245,), (1386941248,), (1386941260,), (1386941264,), (1386941614,), (1386941873,), (1386941847,), (1386941866,), (1386941870,), (1386941937,), (1386941950,), (1386941951,), (1386941952,), (1386941954,), (1386942276,), (1386942279,), (1386942282,), (1386942370,), (1386942477,), (1386942480,), (1386942483,), (1386942487,), (1386942511,), (1386942825,), (1386942827,), (1386942829,), (1386942831,), (1386942933,), (1386943012,), (1386943054,), (1386943441,), (1386943445,), (1386943447,), (1386943482,), (1386943484,), (1386943486,), (1386943489,), (1386943512,), (1386943516,), (1386943517,), (1386943519,), (1386943521,), (1386943523,), (1386943909,), (1386943919,), (1386943921,), (1386943923,), (1386943925,), (1386943939,), (1386943943,), (1386943946,), (1386943949,), (1386943951,), (1386943953,), (1386943964,), (1386943965,), (1386943966,), (1386944327,), (1386944330,), (1386944380,), (1386944408,), (1386944411,), (1386944900,), (1386944904,), (1386944921,), (1386945254,), (1386945291,), (1386945293,), (1386945295,), (1386945297,), (1386945347,), (1386945351,), (1386945353,), (1386945356,), (1386945359,), (1386945368,), (1386945404,), (1386945412,), (1386945415,), (1386945418,), (1386945422,), (1386945780,), (1386945782,), (1386945783,), (1386945784,), (1386945807,), (1386945810,), (1386945812,), (1386945814,), (1386945829,), (1386945831,), (1386945832,), (1386945834,), (1386945838,), (1386945841,), (1386945877,), (1386945880,), (1386945882,), (1386945904,), (1386945907,), (1386945910,), (1386946010,), (1386946588,), (1386946621,), (1386946625,), (1386946627,), (1386946771,), (1386946864,), (1386946953,), (1386946954,), (1386946977,), (1386946979,), (1386947350,), (1386947708,), (1386947636,), (1386947678,), (1386947681,), (1386947748,), (1386947754,), (1386947755,), (1386947756,), (1386947758,), (1386948084,), (1386948087,), (1386948089,), (1386948180,), (1386948212,), (1386948291,), (1386948329,), (1386948330,), (1386948355,), (1386948360,), (1386948362,), (1386948364,), (1386948366,), (1386948692,), (1386948695,), (1386948698,), (1386948826,), (1386948902,), (1386948913,), (1386948934,), (1386948937,), (1386948939,), (1386948941,), (1386948951,), (1386948954,), (1386948958,), (1386948968,), (1386948972,), (1386949023,), (1386949026,), (1386949330,), (1386949332,), (1386949497,), (1386949502,), (1386949504,), (1386949525,), (1386949527,), (1386949539,), (1386949586,), (1386949597,), (1386949608,), (1386949653,), (1386949669,), (1386949671,), (1386949673,), (1386950288,), (1386950292,), (1386950295,), (1386950577,), (1386950584,), (1386950586,), (1386950700,), (1386950702,), (1386950704,), (1386951421,), (1386952364,), (1386952409,), (1386952411,), (1386950694,), (1386950697,), (1386950699,), (1386952421,), (1386952423,), (1386953378,), (1386953396,), (1386953407,), (1386953413,), (1386953418,), (1386953479,), (1386953483,), (1386953485,), (1386953487,), (1386953489,), (1386953513,), (1386953518,), (1386953521,), (1386953522,), (1386953602,), (1386953608,), (1386953611,), (1386953614,), (1386953617,), (1386953650,), (1386953655,), (1386953670,), (1386953673,), (1386953676,), (1386953710,), (1386953714,), (1386953718,), (1386953720,), (1386953744,), (1386953747,), (1386953750,), (1386953824,), (1386953828,), (1386953830,), (1386954463,), (1386954647,), (1386954648,), (1386954769,), (1386955025,), (1386955039,), (1386955100,), (1386955104,), (1386955106,), (1386955133,), (1386955136,), (1386955571,), (1386955769,), (1386955759,), (1386955762,), (1386955765,), (1386955791,), (1386955802,), (1386955813,), (1386955822,), (1386955825,), (1386955835,), (1386955839,), (1386955843,), (1386955845,), (1386955872,), (1386955876,), (1386955880,), (1386955900,), (1386955904,), (1386955908,), (1386955926,), (1386955930,), (1386955933,), (1386956050,), (1386956059,), (1386956122,), (1386956674,), (1386956678,), (1386956820,), (1386956826,), (1386956829,), (1386956832,), (1386957209,), (1386957230,), (1386957232,), (1386957297,), (1386957477,), (1386957950,), (1386958259,), (1386958390,), (1386958393,), (1386958394,), (1386958396,), (1386958399,), (1386958913,), (1386958916,), (1386958919,), (1386958922,), (1386959242,), (1386959246,), (1386959248,), (1386959251,), (1386959253,), (1386959255,), (1386959261,), (1386959281,), (1386959282,), (1386959307,), (1386959297,), (1386959301,), (1386959303,), (1386959476,), (1386959493,), (1386959496,), (1386959560,), (1386959596,), (1386959638,), (1386959641,), (1386959644,), (1386959655,), (1386959694,), (1386959697,), (1386959700,), (1386959703,), (1386959706,), (1386960601,), (1386960605,), (1386960645,), (1386960664,), (1386961011,), (1386961015,), (1386961201,), (1386961205,), (1386961207,), (1386961441,), (1386961445,), (1386961448,), (1386961451,), (1386961885,), (1386961899,), (1386961902,), (1386961904,), (1386962002,), (1386962075,), (1386962078,), (1386962080,), (1386962110,), (1386962113,), (1386962115,), (1386962773,), (1386962802,), (1386962808,), (1386962810,), (1386962912,), (1386962903,), (1386962906,), (1386962908,), (1386962967,), (1386962982,), (1386963142,), (1386963146,), (1386963196,), (1386963323,), (1386963328,), (1386963377,), (1386963461,), (1386963468,), (1386963479,), (1386963520,), (1386963521,), (1386963522,), (1386963524,), (1386963881,), (1386963886,), (1386963889,), (1386963893,), (1386963896,), (1386964068,), (1386964071,), (1386964073,), (1386964075,), (1386964094,), (1386964097,), (1386964099,), (1386964103,), (1386964130,), (1386964134,), (1386964137,), (1386964140,), (1386964144,), (1386964659,), (1386964682,), (1386964701,), (1386964703,), (1386964874,), (1386964925,), (1386964941,), (1386964950,), (1386964990,), (1386965002,), (1386965058,), (1386965061,), (1386965785,), (1386965791,), (1386965797,), (1386965802,), (1386965883,), (1386965888,), (1386965891,), (1386965902,), (1386965920,), (1386965926,), (1386965931,), (1386965964,), (1386965973,), (1386966900,), (1386965867,), (1386965873,), (1386965877,), (1386966845,), (1386966894,), (1386966897,), (1386967080,), (1386967268,), (1386967270,), (1386967273,), (1386967548,), (1386967933,), (1386967937,), (1386967941,), (1386968009,), (1386968014,), (1386968017,), (1386968018,), (1386968021,), (1386968045,), (1386968049,), (1386968647,), (1386968656,), (1386968804,), (1386968812,), (1386968844,), (1386968874,), (1386968904,), (1386968908,), (1386968911,), (1386968913,), (1386968917,), (1386968935,), (1386968937,), (1386968939,), (1386968942,), (1386969529,), (1386969532,), (1386969534,), (1386969759,), (1386969812,), (1386969844,), (1386969849,), (1386970340,), (1386970352,), (1386970354,), (1386970358,), (1386970362,), (1386970379,), (1386970451,), (1386970459,), (1386970470,), (1386970489,), (1386970491,), (1386970492,), (1386970494,), (1386970496,), (1386970512,), (1386970517,), (1386970519,), (1386970522,), (1386970526,), (1386971320,), (1386971192,), (1386971316,), (1386971709,), (1386971712,), (1386971829,), (1386971832,), (1386971923,), (1386971926,), (1386972462,), (1386972621,), (1386972645,), (1386972672,), (1386972677,), (1386972856,), (1386972857,), (1386972866,), (1386972935,), (1386972957,), (1386972960,), (1386972966,), (1386972967,), (1386972968,), (1386972996,), (1386973094,), (1386973107,), (1386973113,), (1386973132,), (1386973149,), (1386973157,), (1386973158,), (1386973160,), (1386973161,), (1386973163,), (1386973165,), (1386973167,), (1386973168,), (1386973172,), (1386973173,), (1386973185,), (1386973189,), (1386973191,), (1386973193,), (1386973543,), (1386973546,), (1386973648,), (1386973704,), (1386973709,), (1386973724,), (1386973728,), (1386973735,), (1386973755,), (1386973900,), (1386973903,), (1386973906,), (1386973966,), (1386973983,), (1386974016,), (1386974037,), (1386974077,), (1386974081,), (1386974084,), (1386974086,), (1386974089,), (1386974091,), (1386974203,), (1386974206,), (1386974209,), (1386976025,), (1386976009,), (1386976019,), (1386976339,), (1386976343,), (1386976386,), (1386976388,), (1386976432,), (1386976435,), (1386976479,), (1386976481,), (1386976502,), (1386976506,), (1386976509,), (1386977428,), (1386977344,), (1386977370,), (1386977410,), (1386977412,), (1386977424,), (1386977590,), (1386977593,), (1386977604,), (1386977868,), (1386977966,), (1386978090,), (1386978095,), (1386978104,), (1386978125,), (1386978128,), (1386978150,), (1386978152,), (1386978154,), (1386978525,), (1386978528,), (1386978532,), (1386978646,), (1386978711,), (1386978743,), (1386978754,), (1386978758,), (1386978923,), (1386978953,), (1386978957,), (1386978959,), (1386979087,), (1386979225,), (1386979226,), (1386979227,), (1386979229,), (1386979280,), (1386979289,), (1386979293,), (1386979297,), (1386979300,), (1386979302,), (1386979367,), (1386979369,), (1386979371,), (1386979373,), (1386979375,), (1386979580,), (1386979592,), (1386979598,), (1386979794,), (1386979798,), (1386979800,), (1386979803,), (1386979806,), (1386979845,), (1386980044,), (1386980607,), (1386980723,), (1386980728,), (1386980755,), (1386982809,), (1386982878,), (1386982917,), (1386982918,), (1386982919,), (1386982939,), (1386982963,), (1386983256,), (1386983257,), (1386981628,), (1386981856,), (1386981933,), (1386982578,), (1386982803,), (1386983011,), (1386983254,), (1386983393,), (1386983397,), (1386983401,), (1386983403,), (1386983415,), (1386983499,), (1386983500,), (1386983506,), (1386983511,), (1386983516,), (1386983589,), (1386983593,), (1386983597,), (1386983622,), (1386983681,), (1386983686,), (1386983688,), (1386983690,), (1386983822,), (1386983835,), (1386983867,), (1386983875,), (1386983878,), (1386983890,), (1386984087,), (1386984114,), (1386984166,), (1386984393,), (1386984398,), (1386984400,), (1386984456,), (1386984461,), (1386984730,), (1386984731,), (1386984835,), (1386984837,), (1386984866,), (1386984883,), (1386984889,), (1386984992,), (1386985012,), (1386985040,), (1386985052,), (1386985072,), (1386985095,), (1386985097,), (1386985098,), (1386985100,), (1386985122,), (1386985126,), (1386985130,), (1386985135,), (1386985140,), (1386985155,), (1386985158,), (1386985162,), (1386985367,), (1386985229,), (1386985297,), (1386985310,), (1386985328,), (1386985353,), (1386985609,), (1386985613,), (1386985645,), (1386985960,), (1386985964,), (1386985983,), (1386986102,), (1386986110,), (1386986301,), (1386986306,), (1386986348,), (1386986353,), (1386986472,), (1386986489,), (1386986518,), (1386986533,), (1386986631,), (1386986678,), (1386986689,), (1386986743,), (1386986745,), (1386986762,), (1386987384,), (1386987389,), (1386987412,), (1386987428,), (1386987437,), (1386987526,), (1386987530,), (1386987559,), (1386987634,), (1386987636,), (1386987637,), (1386987836,), (1386987851,), (1386987854,), (1386988036,), (1386988045,), (1386988050,), (1386988121,), (1386988124,), (1386996060,), (1386995771,), (1386996039,), (1386996059,), (1386996310,), (1386996325,), (1386997088,), (1386997091,), (1386997215,), (1386997233,), (1386997238,), (1386997242,), (1386997248,), (1386997253,), (1386997264,), (1386997268,), (1386997272,), (1386997276,), (1386997451,), (1386997463,), (1386997491,), (1386997497,), (1386997502,), (1386997554,), (1386997559,), (1386997560,), (1386997562,), (1386997565,), (1386997606,), (1386997610,), (1386997614,), (1386997619,), (1386997653,), (1386997663,), (1386997672,), (1386997678,), (1386997689,), (1386997696,), (1386997721,), (1386997736,), (1386997743,), (1386997757,), (1386997851,), (1386997862,), (1386997866,), (1386997892,), (1386997895,), (1386997933,), (1386997970,), (1386997982,), (1386997996,), (1386998141,), (1386998246,), (1386998270,), (1386998273,), (1386998274,), (1386998277,), (1386998383,), (1386998396,), (1386998401,), (1386998405,), (1386998409,), (1386998415,), (1386998619,), (1386998670,), (1386998661,), (1386998665,), (1386998669,), (1386998734,), (1386998765,), (1386998769,), (1386998771,), (1386998773,), (1386999138,), (1386999142,), (1386999144,), (1386999146,), (1386999148,), (1386999150,), (1386999171,), (1386999180,), (1386999182,), (1386999184,), (1386999260,), (1386999263,), (1386999265,), (1386999268,), (1386999272,), (1386999275,), (1386999305,), (1386999308,), (1386999320,), (1386999324,), (1386999398,), (1386999696,), (1386999702,), (1386999706,), (1386999709,), (1386999712,), (1386999722,), (1386999725,), (1386999728,), (1386999731,), (1386999734,), (1386999760,), (1386999763,), (1386999764,), (1386999767,), (1386999788,), (1386999791,), (1386999797,), (1386999801,), (1386999823,), (1386999826,), (1386999851,), (1386999855,), (1386999858,), (1386999861,), (1386999863,), (1386999865,), (1386999927,), (1386999929,), (1386999930,), (1386999985,), (1386999990,), (1387000001,), (1387000005,), (1387000009,), (1387000013,), (1387000036,), (1387000073,), (1387000083,), (1387000085,), (1387000133,), (1387000138,), (1387000140,), (1387000142,), (1387000147,), (1387000149,), (1387000311,), (1387000263,), (1387000273,), (1387000282,), (1387000347,), (1387000348,), (1387000350,), (1387000352,), (1387000355,), (1387000358,), (1387000367,), (1387000370,), (1387000372,), (1387000669,), (1387000705,), (1387000741,), (1387000745,), (1387000759,), (1387000763,), (1387000832,), (1387000835,), (1387000838,), (1387000841,), (1387000867,), (1387000869,), (1387000871,), (1387000875,), (1387000878,), (1387000882,), (1387000977,), (1387001031,), (1387001039,), (1387001067,), (1387001115,), (1387001119,), (1387001120,), (1387001121,), (1387001158,), (1387001160,), (1387001162,), (1387001192,), (1387001196,), (1387001198,), (1387001201,), (1387001205,), (1387001217,), (1387001220,), (1387001222,), (1387001242,), (1387001263,), (1387001364,), (1387001378,), (1387001381,), (1387001437,), (1387001456,), (1387001464,), (1387001469,), (1387001473,), (1387001476,), (1387001480,), (1387001525,), (1387001513,), (1387001516,), (1387001518,), (1387001521,), (1387001545,), (1387001559,), (1387001562,), (1387001564,), (1387001592,), (1387001597,), (1387001600,), (1387001603,), (1387001645,), (1387001651,), (1387001667,), (1387001670,), (1387001674,), (1387001681,), (1387001698,), (1387001703,), (1387001707,), (1387001711,), (1387001751,), (1387002225,), (1387002278,), (1387002288,), (1387002290,), (1387002300,), (1387002323,), (1387002375,), (1387002527,), (1387002599,), (1387002604,), (1387002631,), (1387002633,), (1387002636,), (1387002694,), (1387002707,), (1387002737,), (1387002740,), (1387002743,), (1387003117,), (1387003121,), (1387003146,), (1387003148,), (1387003151,), (1387003499,), (1387003502,), (1387003505,), (1387003509,), (1387003512,), (1387003613,), (1387003712,), (1387003715,), (1387004246,), (1387004565,), (1387004567,), (1387004569,), (1387004572,), (1387003696,), (1387003699,), (1387003703,), (1387004590,), (1387004729,), (1387004796,), (1387004850,), (1387004858,), (1387004922,), (1387004925,), (1387004928,), (1387004931,), (1387004934,), (1387004955,), (1387004976,), (1387004983,), (1387004987,), (1387004995,), (1387005020,), (1387005430,), (1387005834,), (1387005836,), (1387005838,), (1387006180,), (1387006281,), (1387006331,), (1387006559,), (1387006578,), (1387006584,), (1387006586,), (1387006589,), (1387006592,), (1387006619,), (1387006621,), (1387006630,), (1387006660,), (1387006673,), (1387006749,), (1387006796,), (1387006799,), (1387006827,), (1387006836,), (1387006837,), (1387006911,), (1387006912,), (1387006914,), (1387006916,), (1387006919,), (1387006922,), (1387006980,), (1387006986,), (1387006987,), (1387006989,), (1387006991,), (1387007051,), (1387007059,), (1387007072,), (1387007086,), (1387007095,), (1387007113,), (1387007175,), (1387007178,), (1387007219,), (1387007221,), (1387007225,), (1387007242,), (1387007257,), (1387007268,), (1387007278,), (1387007298,), (1387007300,), (1387007303,), (1387007313,), (1387007325,), (1387007329,), (1387007332,), (1387007337,), (1387007341,), (1387007343,), (1387007346,), (1387007350,), (1387007355,), (1387007363,), (1387007465,), (1387007441,), (1387007455,), (1387007638,), (1387007642,), (1387007645,), (1387007649,), (1387007653,), (1387007677,), (1387007679,), (1387007684,), (1387007687,), (1387007766,), (1387007771,), (1387007774,), (1387007777,), (1387007800,), (1387007803,), (1387007806,), (1387007809,), (1387007812,), (1387007823,), (1387007826,), (1387007828,), (1387007831,), (1387008187,), (1387008196,), (1387008211,), (1387008219,), (1387008223,), (1387008227,), (1387008312,), (1387008322,), (1387008324,), (1387008326,), (1387008329,), (1387008334,), (1387008542,), (1387008558,), (1387008562,), (1387008566,), (1387008670,), (1387008676,), (1387008694,), (1387008697,), (1387008701,), (1387008924,), (1387008952,), (1387009070,), (1387009081,), (1387009089,), (1387009111,), (1387009115,), (1387009117,), (1387009119,), (1387009122,), (1387009235,), (1387009244,), (1387009251,), (1387009302,), (1387009306,), (1387009309,), (1387009317,), (1387009354,), (1387009357,), (1387009358,), (1387009360,), (1387009364,), (1387009429,), (1387009409,), (1387009412,), (1387009414,), (1387009418,), (1387009422,), (1387009448,), (1387009451,), (1387009470,), (1387009477,), (1387009547,), (1387009550,), (1387009552,), (1387009555,), (1387009560,), (1387009565,), (1387009597,), (1387009611,), (1387009615,), (1387009618,), (1387009680,), (1387009684,), (1387009687,), (1387009689,), (1387009692,), (1387009694,), (1387009704,), (1387009706,), (1387009708,), (1387009714,), (1387009718,), (1387009749,), (1387009753,), (1387009757,), (1387009760,), (1387009787,), (1387010110,), (1387010131,), (1387010139,), (1387010153,), (1387010160,), (1387010188,), (1387010190,), (1387010192,), (1387010195,), (1387010252,), (1387010318,), (1387010339,), (1387010342,), (1387010344,), (1387010346,), (1387010347,), (1387010349,), (1387010371,), (1387010374,), (1387010377,), (1387010380,), (1387010381,), (1387010472,), (1387010496,), (1387010510,), (1387010529,), (1387010533,), (1387010568,), (1387010581,), (1387010602,), (1387010907,), (1387010909,), (1387010943,), (1387010947,), (1387010976,), (1387010981,), (1387011082,), (1387011104,), (1387011110,), (1387011114,), (1387011117,), (1387011152,), (1387011134,), (1387011137,), (1387011140,), (1387011143,), (1387011147,), (1387011225,), (1387011228,), (1387011230,), (1387011233,), (1387011236,), (1387011237,), (1387011458,), (1387011461,), (1387011471,), (1387011474,), (1387011600,), (1387011606,), (1387011610,), (1387011614,), (1387011679,), (1387011683,), (1387011721,), (1387011724,), (1387011732,), (1387011735,), (1387011736,), (1387011738,), (1387011744,), (1387011746,), (1387011748,), (1387011788,), (1387011960,), (1387011963,), (1387011964,), (1387012002,), (1387012005,), (1387012008,), (1387012030,), (1387012031,), (1387012034,), (1387012035,), (1387012037,), (1387012039,), (1387012041,), (1387012043,), (1387012045,), (1387012050,), (1387012056,), (1387012058,), (1387012072,), (1387012073,), (1387012076,), (1387012078,), (1387012088,), (1387012095,), (1387012100,), (1387012103,), (1387012108,), (1387012111,), (1387012114,), (1387012117,), (1387012150,), (1387012154,), (1387012158,), (1387012178,), (1387012181,), (1387012184,), (1387012199,), (1387012202,), (1387012203,), (1387012205,), (1387012208,), (1387012237,), (1387012305,), (1387012309,), (1387012314,), (1387012323,), (1387012371,), (1387012375,), (1387012378,), (1387012397,), (1387012399,), (1387012420,), (1387013739,), (1387013748,), (1387013825,), (1387013848,), (1387013984,), (1387013995,), (1387014001,), (1387014004,), (1387014023,), (1387014032,), (1387014038,), (1387014042,), (1387014080,), (1387014088,), (1387013933,), (1387013940,), (1387013944,), (1387013962,), (1387014050,), (1387014052,), (1387014055,), (1387014056,), (1387014057,), (1387014058,), (1387014065,), (1387014068,), (1387014071,), (1387014074,), (1387014102,), (1387014105,), (1387014110,), (1387014112,), (1387014115,), (1387014136,), (1387014163,), (1387014167,), (1387014169,), (1387014171,), (1387014186,), (1387014233,), (1387014261,), (1387014263,), (1387014266,), (1387014306,), (1387014310,), (1387014419,), (1387014430,), (1387014574,), (1387014582,), (1387014640,), (1387014644,), (1387014647,), (1387014649,), (1387014652,), (1387014655,), (1387014688,), (1387014691,), (1387014692,), (1387014781,), (1387014784,), (1387014787,), (1387014791,), (1387014795,), (1387014798,), (1387014820,), (1387014824,), (1387014839,), (1387014854,), (1387014969,), (1387014972,), (1387014974,), (1387014977,), (1387014996,), (1387015008,), (1387015026,), (1387015030,), (1387015046,), (1387015068,), (1387015075,), (1387015146,), (1387015151,), (1387015153,), (1387015154,), (1387015175,), (1387015177,), (1387015178,), (1387015181,), (1387015185,), (1387015387,), (1387015413,), (1387015460,), (1387015505,), (1387015694,), (1387015703,), (1387015362,), (1387015375,), (1387015379,), (1387015382,), (1387015385,), (1387015747,), (1387015748,), (1387015753,), (1387015754,), (1387015796,), (1387015797,), (1387015801,), (1387015802,), (1387015805,), (1387015806,), (1387015815,), (1387015818,), (1387015820,), (1387015937,), (1387015942,), (1387015945,), (1387015966,), (1387015970,), (1387015973,), (1387015976,), (1387016001,), (1387016004,), (1387016007,), (1387016009,), (1387016014,), (1387016016,), (1387016039,), (1387016041,), (1387016043,), (1387016047,), (1387016049,), (1387016052,), (1387016092,), (1387016106,), (1387016114,), (1387016122,), (1387016125,), (1387016144,), (1387016147,), (1387016149,), (1387016151,), (1387016188,), (1387016319,), (1387016321,), (1387016322,), (1387016324,), (1387016432,), (1387016439,), (1387016441,), (1387016444,), (1387016448,), (1387016480,), (1387016484,), (1387016485,), (1387016488,), (1387016491,), (1387016494,), (1387016514,), (1387016517,), (1387016521,), (1387016524,), (1387016583,), (1387016586,), (1387016611,), (1387016616,), (1387016633,), (1387016647,), (1387016703,), (1387016707,), (1387016711,), (1387016715,), (1387016718,), (1387016729,), (1387016731,), (1387016734,), (1387016737,), (1387016746,), (1387016752,), (1387016957,), (1387016930,), (1387016953,), (1387016954,), (1387017023,), (1387017033,), (1387017038,), (1387017041,), (1387017046,), (1387017049,), (1387017061,), (1387017070,), (1387017075,), (1387017087,), (1387017094,), (1387017182,), (1387017187,), (1387017191,), (1387017195,), (1387017198,), (1387017200,), (1387017214,), (1387017220,), (1387017224,), (1387017227,), (1387017230,), (1387017264,), (1387017267,), (1387017295,), (1387017305,), (1387017312,), (1387017316,), (1387017320,), (1387017323,), (1387017353,), (1387017376,), (1387017379,), (1387017382,), (1387017387,), (1387017391,), (1387017428,), (1387017432,), (1387017435,), (1387017437,), (1387017482,), (1387017524,), (1387017584,), (1387017587,), (1387017590,), (1387017724,), (1387017734,), (1387017738,), (1387017741,), (1387017997,), (1387022909,), (1387022931,), (1387022933,), (1387022994,), (1387023562,), (1387023612,), (1387023629,), (1387023677,), (1387023698,), (1387023701,), (1387023784,), (1387023769,), (1387023772,), (1387023774,), (1387024064,), (1387024076,), (1387024080,), (1387024145,), (1387024206,), (1387024230,), (1387024234,), (1387024533,), (1387024535,), (1387024621,), (1387024630,), (1387024631,), (1387024634,), (1387024641,), (1387024767,), (1387024798,), (1387024800,), (1387024804,), (1387024807,), (1387024837,), (1387024840,), (1387024842,), (1387024844,), (1387024906,), (1387024907,), (1387024970,), (1387024974,), (1387024975,), (1387024977,), (1387024979,), (1387024981,), (1387024991,), (1387024995,), (1387024998,), (1387025001,), (1387025003,), (1387025005,), (1387025008,), (1387025017,), (1387025023,), (1387025028,), (1387025058,), (1387025059,), (1387025060,), (1387025062,), (1387025065,), (1387025104,), (1387025115,), (1387025119,), (1387025123,), (1387025127,), (1387025155,), (1387025159,), (1387025175,), (1387025178,), (1387025285,), (1387025288,), (1387025291,), (1387025294,), (1387025392,), (1387025398,), (1387025400,), (1387025419,), (1387025428,), (1387025436,), (1387025513,), (1387025519,), (1387025520,), (1387025522,), (1387025542,), (1387025546,), (1387025547,), (1387025550,), (1387025553,), (1387025627,), (1387025598,), (1387025609,), (1387025619,), (1387025621,), (1387025625,), (1387025657,), (1387025667,), (1387025681,), (1387025683,), (1387025715,), (1387025730,), (1387025743,), (1387025748,), (1387025755,), (1387025758,), (1387025795,), (1387025798,), (1387025800,), (1387025801,), (1387025802,), (1387026132,), (1387026137,), (1387026139,), (1387026142,), (1387026171,), (1387026175,), (1387026180,), (1387026184,), (1387026187,), (1387026191,), (1387026244,), (1387026248,), (1387026252,), (1387026336,), (1387026341,), (1387026345,), (1387026349,), (1387026353,), (1387026367,), (1387026373,), (1387026375,), (1387026377,), (1387026380,), (1387026383,), (1387026453,), (1387026455,), (1387026457,), (1387026461,), (1387026510,), (1387026514,), (1387026518,), (1387026520,), (1387026523,), (1387026558,), (1387026566,), (1387026568,), (1387026570,), (1387026574,), (1387026576,), (1387026632,), (1387026636,), (1387026639,), (1387026641,), (1387026660,), (1387026827,), (1387026831,), (1387026835,), (1387026839,), (1387026842,), (1387026851,), (1387026856,), (1387026860,), (1387026863,), (1387026907,), (1387026892,), (1387026894,), (1387026897,), (1387026900,), (1387026904,), (1387026926,), (1387026928,), (1387026933,), (1387026937,), (1387026942,), (1387026987,), (1387027006,), (1387027024,), (1387027062,), (1387027067,), (1387027071,), (1387027073,), (1387027081,), (1387027083,), (1387027090,), (1387027093,), (1387027098,), (1387027101,), (1387027105,), (1387027107,), (1387027115,), (1387027117,), (1387027119,), (1387027122,), (1387027125,), (1387027127,), (1387027155,), (1387027158,), (1387027159,), (1387027171,), (1387027187,), (1387027189,), (1387027192,), (1387027194,), (1387027196,), (1387027198,), (1387027232,), (1387027233,), (1387027235,), (1387027237,), (1387027240,), (1387027244,), (1387027269,), (1387027270,), (1387027271,), (1387027273,), (1387027314,), (1387027318,), (1387027321,), (1387027329,), (1387027331,), (1387027346,), (1387027368,), (1387027372,), (1387027373,), (1387027374,), (1387027375,), (1387027376,), (1387027485,), (1387027496,), (1387027498,), (1387027512,), (1387027515,), (1387027584,), (1387027587,), (1387027589,), (1387027591,), (1387027610,), (1387027615,), (1387027619,), (1387027622,), (1387027626,), (1387027629,), (1387028231,), (1387028234,), (1387028348,), (1387028360,), (1387028391,), (1387028394,), (1387028397,), (1387029540,), (1387029543,), (1387029812,), (1387029816,), (1387029914,), (1387027664,), (1387027670,), (1387027688,), (1387027864,), (1387028526,), (1387028912,), (1387029492,), (1387029536,), (1387029556,), (1387029575,), (1387029586,), (1387029796,), (1387029857,), (1387029907,), (1387029911,), (1387029913,), (1387029928,), (1387029933,), (1387029935,), (1387029937,), (1387029954,), (1387029956,), (1387029958,), (1387029961,), (1387029965,), (1387030010,), (1387030030,), (1387030048,), (1387030345,), (1387031208,), (1387031211,), (1387031213,), (1387031214,), (1387031234,), (1387031361,), (1387032473,), (1387032641,), (1387033161,), (1387033164,), (1387033167,), (1387033187,), (1387033191,), (1387033193,), (1387033542,), (1387033530,), (1387033535,), (1387033538,), (1387033540,), (1387033562,), (1387033580,), (1387033589,), (1387033592,), (1387033599,), (1387033604,), (1387033659,), (1387033662,), (1387033666,), (1387033670,), (1387033673,), (1387033674,), (1387033697,), (1387033700,), (1387033702,), (1387033704,), (1387033721,), (1387033723,), (1387033726,), (1387033760,), (1387033764,), (1387033767,), (1387033770,), (1387033783,), (1387033786,), (1387033833,), (1387033851,), (1387033854,), (1387033857,), (1387033858,), (1387033941,), (1387033944,), (1387033947,), (1387033951,), (1387033970,), (1387033973,), (1387033976,), (1387033980,), (1387033983,), (1387034454,), (1387034474,), (1387034477,), (1387034482,), (1387034485,), (1387034486,), (1387034711,), (1387034714,), (1387034717,), (1387034718,), (1387034745,), (1387034796,), (1387034800,), (1387034807,), (1387034813,), (1387034865,), (1387034870,), (1387034873,), (1387034877,), (1387034896,), (1387034909,), (1387034918,), (1387034920,), (1387034948,), (1387034951,), (1387034952,), (1387034954,), (1387035342,), (1387035325,), (1387035328,), (1387035339,), (1387035585,), (1387035610,), (1387035623,), (1387035627,), (1387035660,), (1387035662,), (1387035664,), (1387035666,), (1387035678,), (1387035685,), (1387035708,), (1387035710,), (1387035714,), (1387035716,), (1387035718,), (1387035740,), (1387035743,), (1387035746,), (1387035748,), (1387035751,), (1387035782,), (1387035785,), (1387035788,), (1387035840,), (1387036175,), (1387036280,), (1387036284,), (1387036288,), (1387036498,), (1387036507,), (1387036518,), (1387036537,), (1387036599,), (1387036609,), (1387036625,), (1387036631,), (1387036637,), (1387036670,), (1387036672,), (1387037261,), (1387037267,), (1387037288,), (1387037295,), (1387037339,), (1387037607,), (1387037620,), (1387037659,), (1387037666,), (1387037669,), (1387037728,), (1387037731,), (1387037733,), (1387037735,), (1387037737,), (1387037739,), (1387037756,), (1387037761,), (1387037762,), (1387037765,), (1387037772,), (1387037776,), (1387037780,), (1387037794,), (1387037798,), (1387037799,), (1387037802,), (1387037805,), (1387037808,), (1387037865,), (1387037853,), (1387037856,), (1387037859,), (1387037861,), (1387037902,), (1387037912,), (1387037914,), (1387037918,), (1387037927,), (1387037940,), (1387037979,), (1387037980,), (1387037981,), (1387037984,), (1387038004,), (1387038008,), (1387038011,), (1387038015,), (1387038019,), (1387038021,), (1387038150,), (1387038152,), (1387038155,), (1387038157,), (1387038159,), (1387038174,), (1387038177,), (1387038179,), (1387038182,), (1387038185,), (1387038219,), (1387038724,), (1387038728,), (1387038730,), (1387039113,), (1387039116,), (1387039127,), (1387039190,), (1387039194,), (1387039197,), (1387039273,), (1387039275,), (1387039281,), (1387039283,), (1387039285,), (1387039287,), (1387039301,), (1387039304,), (1387039307,), (1387039310,), (1387039325,), (1387039329,), (1387039333,), (1387039336,), (1387039339,), (1387039342,), (1387039374,), (1387039390,), (1387039393,), (1387039396,), (1387039415,), (1387039640,), (1387039767,), (1387039771,), (1387039776,), (1387039779,), (1387040070,), (1387040075,), (1387040081,), (1387040084,), (1387040088,), (1387040119,), (1387040122,), (1387040125,), (1387040587,), (1387040881,), (1387040884,), (1387040886,), (1387040887,), (1387040889,), (1387041403,), (1387041422,), (1387041426,), (1387041430,), (1387041433,), (1387041436,), (1387041444,), (1387040111,), (1387040115,), (1387040117,), (1387041354,), (1387041356,), (1387041393,), (1387041396,), (1387041401,), (1387041407,), (1387041410,), (1387041412,), (1387041415,), (1387041419,), (1387041454,), (1387041457,), (1387041462,), (1387041466,), (1387041469,), (1387041475,), (1387041485,), (1387041487,), (1387041496,), (1387041499,), (1387041527,), (1387041530,), (1387041532,), (1387041575,), (1387041578,), (1387041581,), (1387041596,), (1387041621,), (1387041629,), (1387041633,), (1387041637,), (1387041640,), (1387041642,), (1387042175,), (1387042177,), (1387042179,), (1387042181,), (1387042184,), (1387042411,), (1387042451,), (1387042472,), (1387042501,), (1387042523,), (1387042528,), (1387042530,), (1387042533,), (1387042583,), (1387042595,), (1387042605,), (1387042611,), (1387042617,), (1387042624,), (1387042655,), (1387042656,), (1387042657,), (1387042661,), (1387042664,), (1387042683,), (1387043148,), (1387043146,), (1387043198,), (1387043206,), (1387043210,), (1387043228,), (1387043250,), (1387043288,), (1387043310,), (1387043328,), (1387043331,), (1387043333,), (1387043409,), (1387043427,), (1387043429,), (1387043441,), (1387043445,), (1387043456,), (1387043473,), (1387043482,), (1387043483,), (1387043498,), (1387043800,), (1387043802,), (1387043805,), (1387043808,), (1387043819,), (1387043957,), (1387043978,), (1387043984,), (1387044012,), (1387044065,), (1387044067,), (1387044071,), (1387044073,), (1387044080,), (1387044093,), (1387044101,), (1387044109,), (1387044701,), (1387044705,), (1387044736,), (1387044820,), (1387044816,), (1387044863,), (1387044872,), (1387044875,), (1387044878,), (1387044881,), (1387044890,), (1387044893,), (1387044896,), (1387044899,), (1387044901,), (1387045255,), (1387045305,), (1387045308,), (1387045438,), (1387045442,), (1387045469,), (1387045471,), (1387045507,), (1387045523,), (1387045524,), (1387045525,), (1387045527,), (1387045573,), (1387045577,), (1387045581,), (1387045585,), (1387045589,), (1387045626,), (1387045630,), (1387045632,), (1387045635,), (1387045638,), (1387045648,), (1387045657,), (1387045660,), (1387045664,), (1387045672,), (1387045692,), (1387045745,), (1387045747,), (1387045749,), (1387045764,), (1387045770,), (1387045796,), (1387045801,), (1387045805,), (1387045831,), (1387045946,), (1387045952,), (1387045955,), (1387045960,), (1387045993,), (1387045994,), (1387045995,), (1387045997,), (1387046002,), (1387046008,), (1387046058,), (1387046060,), (1387046215,), (1387046376,), (1387046381,), (1387046385,), (1387046390,), (1387046439,), (1387046472,), (1387046504,), (1387046506,), (1387046508,), (1387046566,), (1387046573,), (1387046575,), (1387046577,), (1387046579,), (1387046581,), (1387046592,), (1387046595,), (1387046598,), (1387046601,), (1387046658,), (1387046661,), (1387046664,), (1387046665,), (1387046667,), (1387046669,), (1387046681,), (1387046683,), (1387046982,), (1387046985,), (1387047186,), (1387047211,), (1387047214,), (1387047218,), (1387047276,), (1387047279,), (1387047281,), (1387047285,), (1387047288,), (1387047293,), (1387047308,), (1387047322,), (1387047324,), (1387047339,), (1387047370,), (1387047374,), (1387047378,), (1387047748,), (1387047779,), (1387047784,), (1387047788,), (1387047959,), (1387047962,), (1387048033,), (1387048163,), (1387048165,), (1387048168,), (1387048176,), (1387048178,), (1387048181,), (1387048192,), (1387048195,), (1387048198,), (1387048216,), (1387048245,), (1387048248,), (1387048252,), (1387048733,), (1387048738,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'30092025': {'nb_upload': 8, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([27337055]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1386849306, 1386849278, 1386847816, 1386847812, 1386846111, 1386845154, 1386845150, 1386845116] map_info['map_portfolio_photo'] : {27337055: [1386849306, 1386849278, 1386847816, 1386847812, 1386846111, 1386845154, 1386845150, 1386845116]} final : True mtd_id 4302 list_pids : [1386849306, 1386849278, 1386847816, 1386847812, 1386846111, 1386845154, 1386845150, 1386845116] Looping around the photos to save general results len do output : 1 /27337055Didn't retrieve data . before output type Here is an output not treated by saveGeneral : Managing all output in save final without adding information in the mtr_datou_result ('4302', None, None, None, None, None, None, None, '3801359') ('4302', '27337055', '1386849306', None, None, None, None, None, '3801359') ('4302', None, None, None, None, None, None, None, '3801359') ('4302', '27337055', '1386849278', None, None, None, None, None, '3801359') ('4302', None, None, None, None, None, None, None, '3801359') ('4302', '27337055', '1386847816', None, None, None, None, None, '3801359') ('4302', None, None, None, None, None, None, None, '3801359') ('4302', '27337055', '1386847812', None, None, None, None, None, '3801359') ('4302', None, None, None, None, None, None, None, '3801359') ('4302', '27337055', '1386846111', None, None, None, None, None, '3801359') ('4302', None, None, None, None, None, None, None, '3801359') ('4302', '27337055', '1386845154', None, None, None, None, None, '3801359') ('4302', None, None, None, None, None, None, None, '3801359') ('4302', '27337055', '1386845150', None, None, None, None, None, '3801359') ('4302', None, None, None, None, None, None, None, '3801359') ('4302', '27337055', '1386845116', None, None, None, None, None, '3801359') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 9 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '27337055', 'None', None, None, None, None, '3801359'), ('4302', '27337055', '1386849306', None, None, None, None, None, '3801359'), ('4302', '27337055', '1386849278', None, None, None, None, None, '3801359'), ('4302', '27337055', '1386847816', None, None, None, None, None, '3801359'), ('4302', '27337055', '1386847812', None, None, None, None, None, '3801359'), ('4302', '27337055', '1386846111', None, None, None, None, None, '3801359'), ('4302', '27337055', '1386845154', None, None, None, None, None, '3801359'), ('4302', '27337055', '1386845150', None, None, None, None, None, '3801359'), ('4302', '27337055', '1386845116', None, None, None, None, None, '3801359')] time used for this insertion : 0.04259490966796875 save_final save missing photos in datou_result : time spend for datou_step_exec : 14.639849424362183 time spend to save output : 0.04294729232788086 total time spend for step 5 : 14.682796716690063 caffe_path_current : About to save ! 2 After save, about to update current ! ret : 2 len(input) + len(total_photo_id_missing) : 1 set_done_treatment DELETE from MTRPhoto.mtr_datou_current where id in (3801359) 2.19user 2.30system 0:28.94elapsed 15%CPU (0avgtext+0avgdata 159744maxresident)k 184inputs+8120outputs (18major+75087minor)pagefaults 0swaps