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 : 1258848 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 (4108857) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (4108857) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28830584 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['4108857'] with mtr_portfolio_ids : ['28830584'] and first list_photo_ids : [] new path : /proc/1258848/ Name: python3 Umask: 0002 State: R (running) Tgid: 1258848 Ngid: 0 Pid: 1258848 PPid: 1258847 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 1258848 NSpid: 1258848 NSpgid: 1258246 NSsid: 1258246 VmPeak: 1106908 kB VmSize: 1106888 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98028 kB VmRSS: 98028 kB RssAnon: 59900 kB RssFile: 38128 kB RssShmem: 0 kB VmData: 865640 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: 47 nonvoluntary_ctxt_switches: 124 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '1258848', 'Ngid': '0', 'Pid': '1258848', 'PPid': '1258847', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '1258848', 'NSpid': '1258848', 'NSpgid': '1258246', 'NSsid': '1258246', 'VmPeak': '1106908 kB', 'VmSize': '1106888 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98028 kB', 'VmRSS': '98028 kB', 'RssAnon': '59900 kB', 'RssFile': '38128 kB', 'RssShmem': '0 kB', 'VmData': '865640 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': '47', 'nonvoluntary_ctxt_switches': '124'} ('datou_batch_current', '1258848', '1106908', '0', '1106888', '865640', '98028', b'', 'marlene', '4108857') 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 (28830584) 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 (4108857 ) ) 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 (28830584) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1395896708, 'portfolio_id': 28830584}, {'photo_id': 1395896503, 'portfolio_id': 28830584}, {'photo_id': 1395896500, 'portfolio_id': 28830584}, {'photo_id': 1395896467, 'portfolio_id': 28830584}, {'photo_id': 1395896435, 'portfolio_id': 28830584}, {'photo_id': 1395895409, 'portfolio_id': 28830584}, {'photo_id': 1395895353, 'portfolio_id': 28830584}, {'photo_id': 1395894729, 'portfolio_id': 28830584}, {'photo_id': 1395894726, 'portfolio_id': 28830584}, {'photo_id': 1395894712, 'portfolio_id': 28830584}, {'photo_id': 1395894415, 'portfolio_id': 28830584}, {'photo_id': 1395894388, 'portfolio_id': 28830584}, {'photo_id': 1395894344, 'portfolio_id': 28830584}, {'photo_id': 1395894341, 'portfolio_id': 28830584}] map_portfolio_id_photo_id: {28830584: [1395896708, 1395896503, 1395896500, 1395896467, 1395896435, 1395895409, 1395895353, 1395894729, 1395894726, 1395894712, 1395894415, 1395894388, 1395894344, 1395894341]} ##### 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.017926692962646484 #### 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 Tue Nov 25 05:41:28 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 (28830584) 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 : 28830584 get user id for portfolio 28830584 get sub ptf for main ptf 28830584, type 3726 and hashtags ['flou', 'cartonnette', 'Carton_brun', 'Teint_Dans_La_Masse', 'environnement', 'kraft', 'mal_croppe', 'Carton_gris', 'plastique', 'autre_refus', 'papier', 'metal'] 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`=28830584 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','cartonnette','Carton_brun','Teint_Dans_La_Masse','environnement','kraft','mal_croppe','Carton_gris','plastique','autre_refus','papier','metal')) 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`=28830584 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','cartonnette','Carton_brun','Teint_Dans_La_Masse','environnement','kraft','mal_croppe','Carton_gris','plastique','autre_refus','papier','metal')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_brun': {'main_port_id': 28830584, 'sub_port_id': 28830586, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19565568, 'last_updated_at': datetime.datetime(2025, 11, 24, 13, 47, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 24, 13, 47, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 24, 13, 36, 56)}, 'papier': {'main_port_id': 28830584, 'sub_port_id': 28830587, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19565569, 'last_updated_at': datetime.datetime(2025, 11, 24, 13, 47, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 24, 13, 47, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 24, 13, 36, 56)}, 'Carton_gris': {'main_port_id': 28830584, 'sub_port_id': 28830588, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19565570, 'last_updated_at': datetime.datetime(2025, 11, 24, 13, 47, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 24, 13, 47, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 24, 13, 36, 56)}, 'Teint_Dans_La_Masse': {'main_port_id': 28830584, 'sub_port_id': 28830589, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19565571, 'last_updated_at': datetime.datetime(2025, 11, 24, 13, 47, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 24, 13, 47, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 24, 13, 36, 56)}, 'kraft': {'main_port_id': 28830584, 'sub_port_id': 28830590, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19565572, 'last_updated_at': datetime.datetime(2025, 11, 24, 13, 47, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 24, 13, 47, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 24, 13, 36, 56)}, 'plastique': {'main_port_id': 28830584, 'sub_port_id': 28830591, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19565573, 'last_updated_at': datetime.datetime(2025, 11, 24, 13, 47, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 24, 13, 47, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 24, 13, 36, 56)}, 'flou': {'main_port_id': 28830584, 'sub_port_id': 28830592, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19565574, 'last_updated_at': datetime.datetime(2025, 11, 24, 13, 47, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 24, 13, 47, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 24, 13, 36, 56)}, 'mal_croppe': {'main_port_id': 28830584, 'sub_port_id': 28830593, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19565575, 'last_updated_at': datetime.datetime(2025, 11, 24, 13, 47, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 24, 13, 47, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 24, 13, 36, 56)}, 'environnement': {'main_port_id': 28830584, 'sub_port_id': 28830594, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19565576, 'last_updated_at': datetime.datetime(2025, 11, 24, 13, 47, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 24, 13, 47, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 24, 13, 36, 56)}, 'autre_refus': {'main_port_id': 28830584, 'sub_port_id': 28830595, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19565577, 'last_updated_at': datetime.datetime(2025, 11, 24, 13, 47, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 24, 13, 47, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 24, 13, 36, 56)}, 'metal': {'main_port_id': 28830584, 'sub_port_id': 28830596, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19565578, 'last_updated_at': datetime.datetime(2025, 11, 24, 13, 47, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 24, 13, 47, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 24, 13, 36, 56)}, 'cartonnette': {'main_port_id': 28830584, 'sub_port_id': 28830597, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19565579, 'last_updated_at': datetime.datetime(2025, 11, 24, 13, 47, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 24, 13, 47, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 24, 13, 36, 56)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28830586 , 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=28830584 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 (28830586) result : ((1395899532,), (1395899533,), (1395899534,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28830584) result : ((1395894341,), (1395894344,), (1395894388,), (1395894415,), (1395894712,), (1395894726,), (1395894729,), (1395895353,), (1395895409,), (1395896435,), (1395896467,), (1395896500,), (1395896503,), (1395896708,)) 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 (1395896500) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28830587 , 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=28830584 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 (28830587) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28830584) result : ((1395894341,), (1395894344,), (1395894388,), (1395894415,), (1395894712,), (1395894726,), (1395894729,), (1395895353,), (1395895409,), (1395896435,), (1395896467,), (1395896500,), (1395896503,), (1395896708,)) 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 (1395896500) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28830588 , 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=28830584 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 (28830588) result : ((1395895910,), (1395895911,), (1395899530,), (1395899531,), (1395899545,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28830584) result : ((1395894341,), (1395894344,), (1395894388,), (1395894415,), (1395894712,), (1395894726,), (1395894729,), (1395895353,), (1395895409,), (1395896435,), (1395896467,), (1395896500,), (1395896503,), (1395896708,)) 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 (1395896500) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28830589 , 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=28830584 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 (28830589) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28830584) result : ((1395894341,), (1395894344,), (1395894388,), (1395894415,), (1395894712,), (1395894726,), (1395894729,), (1395895353,), (1395895409,), (1395896435,), (1395896467,), (1395896500,), (1395896503,), (1395896708,)) 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 (1395896500) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28830590 , 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=28830584 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 (28830590) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28830584) result : ((1395894341,), (1395894344,), (1395894388,), (1395894415,), (1395894712,), (1395894726,), (1395894729,), (1395895353,), (1395895409,), (1395896435,), (1395896467,), (1395896500,), (1395896503,), (1395896708,)) 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 (1395896500) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28830591 , 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=28830584 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 (28830591) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28830584) result : ((1395894341,), (1395894344,), (1395894388,), (1395894415,), (1395894712,), (1395894726,), (1395894729,), (1395895353,), (1395895409,), (1395896435,), (1395896467,), (1395896500,), (1395896503,), (1395896708,)) 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 (1395896500) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28830592 , 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=28830584 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 (28830592) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28830584) result : ((1395894341,), (1395894344,), (1395894388,), (1395894415,), (1395894712,), (1395894726,), (1395894729,), (1395895353,), (1395895409,), (1395896435,), (1395896467,), (1395896500,), (1395896503,), (1395896708,)) 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 (1395896500) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28830593 , 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=28830584 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 (28830593) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28830584) result : ((1395894341,), (1395894344,), (1395894388,), (1395894415,), (1395894712,), (1395894726,), (1395894729,), (1395895353,), (1395895409,), (1395896435,), (1395896467,), (1395896500,), (1395896503,), (1395896708,)) 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 (1395896500) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28830594 , 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=28830584 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 (28830594) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28830584) result : ((1395894341,), (1395894344,), (1395894388,), (1395894415,), (1395894712,), (1395894726,), (1395894729,), (1395895353,), (1395895409,), (1395896435,), (1395896467,), (1395896500,), (1395896503,), (1395896708,)) 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 (1395896500) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28830595 , 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=28830584 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 (28830595) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28830584) result : ((1395894341,), (1395894344,), (1395894388,), (1395894415,), (1395894712,), (1395894726,), (1395894729,), (1395895353,), (1395895409,), (1395896435,), (1395896467,), (1395896500,), (1395896503,), (1395896708,)) 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 (1395896500) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28830596 , 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=28830584 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 (28830596) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28830584) result : ((1395894341,), (1395894344,), (1395894388,), (1395894415,), (1395894712,), (1395894726,), (1395894729,), (1395895353,), (1395895409,), (1395896435,), (1395896467,), (1395896500,), (1395896503,), (1395896708,)) 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 (1395896500) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28830597 , 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=28830584 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 (28830597) result : ((1395895915,), (1395899547,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28830584) result : ((1395894341,), (1395894344,), (1395894388,), (1395894415,), (1395894712,), (1395894726,), (1395894729,), (1395895353,), (1395895409,), (1395896435,), (1395896467,), (1395896500,), (1395896503,), (1395896708,)) 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 (1395896500) and cspi.crop_hashtag_id = chi.id; 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`=28830584 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','cartonnette','Carton_brun','Teint_Dans_La_Masse','environnement','kraft','mal_croppe','Carton_gris','plastique','autre_refus','papier','metal')) 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`=28830584 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','cartonnette','Carton_brun','Teint_Dans_La_Masse','environnement','kraft','mal_croppe','Carton_gris','plastique','autre_refus','papier','metal')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_brun': {'main_port_id': 28830584, 'sub_port_id': 28830598, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19565580, 'last_updated_at': datetime.datetime(2025, 11, 24, 13, 36, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 24, 13, 36, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 24, 13, 36, 58)}, 'papier': {'main_port_id': 28830584, 'sub_port_id': 28830599, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19565581, 'last_updated_at': datetime.datetime(2025, 11, 24, 13, 36, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 24, 13, 36, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 24, 13, 36, 58)}, 'Carton_gris': {'main_port_id': 28830584, 'sub_port_id': 28830600, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19565582, 'last_updated_at': datetime.datetime(2025, 11, 24, 13, 36, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 24, 13, 36, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 24, 13, 36, 58)}, 'Teint_Dans_La_Masse': {'main_port_id': 28830584, 'sub_port_id': 28830601, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19565583, 'last_updated_at': datetime.datetime(2025, 11, 24, 13, 36, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 24, 13, 36, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 24, 13, 36, 58)}, 'kraft': {'main_port_id': 28830584, 'sub_port_id': 28830602, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19565584, 'last_updated_at': datetime.datetime(2025, 11, 24, 13, 36, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 24, 13, 36, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 24, 13, 36, 58)}, 'plastique': {'main_port_id': 28830584, 'sub_port_id': 28830603, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19565585, 'last_updated_at': datetime.datetime(2025, 11, 24, 13, 36, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 24, 13, 36, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 24, 13, 36, 58)}, 'flou': {'main_port_id': 28830584, 'sub_port_id': 28830604, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19565586, 'last_updated_at': datetime.datetime(2025, 11, 24, 13, 36, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 24, 13, 36, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 24, 13, 36, 58)}, 'mal_croppe': {'main_port_id': 28830584, 'sub_port_id': 28830605, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19565587, 'last_updated_at': datetime.datetime(2025, 11, 24, 13, 36, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 24, 13, 36, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 24, 13, 36, 58)}, 'environnement': {'main_port_id': 28830584, 'sub_port_id': 28830606, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19565588, 'last_updated_at': datetime.datetime(2025, 11, 24, 13, 36, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 24, 13, 36, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 24, 13, 36, 58)}, 'autre_refus': {'main_port_id': 28830584, 'sub_port_id': 28830607, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19565589, 'last_updated_at': datetime.datetime(2025, 11, 24, 13, 36, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 24, 13, 36, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 24, 13, 36, 58)}, 'metal': {'main_port_id': 28830584, 'sub_port_id': 28830608, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19565590, 'last_updated_at': datetime.datetime(2025, 11, 24, 13, 36, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 24, 13, 36, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 24, 13, 36, 58)}, 'cartonnette': {'main_port_id': 28830584, 'sub_port_id': 28830609, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19565591, 'last_updated_at': datetime.datetime(2025, 11, 24, 13, 47, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 24, 13, 47, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 24, 13, 36, 58)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28830598,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28830586 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28830599,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28830587 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28830600,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28830588 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28830601,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28830589 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28830602,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28830590 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28830603,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28830591 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28830604,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28830592 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28830605,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28830593 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28830606,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28830594 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28830607,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28830595 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28830608,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28830596 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28830609,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28830597 lien utilise dans velours : https://marlene.fotonower.com/velours/28830598,28830599,28830600,28830601,28830602,28830603,28830604,28830605,28830606,28830607,28830608,28830609?tags=Carton_brun,papier,Carton_gris,Teint_Dans_La_Masse,kraft,plastique,flou,mal_croppe,environnement,autre_refus,metal,cartonnette After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([28830584]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1395896708, 1395896503, 1395896500, 1395896467, 1395896435, 1395895409, 1395895353, 1395894729, 1395894726, 1395894712, 1395894415, 1395894388, 1395894344, 1395894341] map_info['map_portfolio_photo'] : {28830584: [1395896708, 1395896503, 1395896500, 1395896467, 1395896435, 1395895409, 1395895353, 1395894729, 1395894726, 1395894712, 1395894415, 1395894388, 1395894344, 1395894341]} final : False mtd_id 4302 list_pids : [1395896708, 1395896503, 1395896500, 1395896467, 1395896435, 1395895409, 1395895353, 1395894729, 1395894726, 1395894712, 1395894415, 1395894388, 1395894344, 1395894341] Looping around the photos to save general results len do output : 1 /28830584. 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, '4108857') ('4302', '28830584', '1395896708', None, None, None, None, None, '4108857') ('4302', None, None, None, None, None, None, None, '4108857') ('4302', '28830584', '1395896503', None, None, None, None, None, '4108857') ('4302', None, None, None, None, None, None, None, '4108857') ('4302', '28830584', '1395896500', None, None, None, None, None, '4108857') ('4302', None, None, None, None, None, None, None, '4108857') ('4302', '28830584', '1395896467', None, None, None, None, None, '4108857') ('4302', None, None, None, None, None, None, None, '4108857') ('4302', '28830584', '1395896435', None, None, None, None, None, '4108857') ('4302', None, None, None, None, None, None, None, '4108857') ('4302', '28830584', '1395895409', None, None, None, None, None, '4108857') ('4302', None, None, None, None, None, None, None, '4108857') ('4302', '28830584', '1395895353', None, None, None, None, None, '4108857') ('4302', None, None, None, None, None, None, None, '4108857') ('4302', '28830584', '1395894729', None, None, None, None, None, '4108857') ('4302', None, None, None, None, None, None, None, '4108857') ('4302', '28830584', '1395894726', None, None, None, None, None, '4108857') ('4302', None, None, None, None, None, None, None, '4108857') ('4302', '28830584', '1395894712', None, None, None, None, None, '4108857') ('4302', None, None, None, None, None, None, None, '4108857') ('4302', '28830584', '1395894415', None, None, None, None, None, '4108857') ('4302', None, None, None, None, None, None, None, '4108857') ('4302', '28830584', '1395894388', None, None, None, None, None, '4108857') ('4302', None, None, None, None, None, None, None, '4108857') ('4302', '28830584', '1395894344', None, None, None, None, None, '4108857') ('4302', None, None, None, None, None, None, None, '4108857') ('4302', '28830584', '1395894341', None, None, None, None, None, '4108857') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 15 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, '28830584', "{'Carton_brun': 28830586, 'papier': 28830587, 'Carton_gris': 28830588, 'Teint_Dans_La_Masse': 28830589, 'kraft': 28830590, 'plastique': 28830591, 'flou': 28830592, 'mal_croppe': 28830593, 'environnement': 28830594, 'autre_refus': 28830595, 'metal': 28830596, 'cartonnette': 28830597}", None, None, None, None, '4108857'), ('4302', '28830584', '1395896708', None, None, None, None, None, '4108857'), ('4302', '28830584', '1395896503', None, None, None, None, None, '4108857'), ('4302', '28830584', '1395896500', None, None, None, None, None, '4108857'), ('4302', '28830584', '1395896467', None, None, None, None, None, '4108857'), ('4302', '28830584', '1395896435', None, None, None, None, None, '4108857'), ('4302', '28830584', '1395895409', None, None, None, None, None, '4108857'), ('4302', '28830584', '1395895353', None, None, None, None, None, '4108857'), ('4302', '28830584', '1395894729', None, None, None, None, None, '4108857'), ('4302', '28830584', '1395894726', None, None, None, None, None, '4108857'), ('4302', '28830584', '1395894712', None, None, None, None, None, '4108857'), ('4302', '28830584', '1395894415', None, None, None, None, None, '4108857'), ('4302', '28830584', '1395894388', None, None, None, None, None, '4108857'), ('4302', '28830584', '1395894344', None, None, None, None, None, '4108857'), ('4302', '28830584', '1395894341', None, None, None, None, None, '4108857')] time used for this insertion : 0.0176694393157959 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.548546552658081 time spend to save output : 0.017995357513427734 total time spend for step 1 : 0.5665419101715088 step2:final Tue Nov 25 05:41:29 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 (28830584) 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 28830584 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1395894344,1395894341,1395894388,1395894415,1395894712,1395894729,1395894726,1395895409,1395895353,1395896503,1395896500,1395896467,1395896435,1395896708); 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([28830584]) Inside saveOutput : final : False verbose : True original output for save of step final : {1395896708: ('0.05647567872264809',), 1395896503: ('0.05647567872264809',), 1395896500: ('0.05647567872264809',), 1395896467: ('0.05647567872264809',), 1395896435: ('0.05647567872264809',), 1395895409: ('0.05647567872264809',), 1395895353: ('0.05647567872264809',), 1395894729: ('0.05647567872264809',), 1395894726: ('0.05647567872264809',), 1395894712: ('0.05647567872264809',), 1395894415: ('0.05647567872264809',), 1395894388: ('0.05647567872264809',), 1395894344: ('0.05647567872264809',), 1395894341: ('0.05647567872264809',)} new output for save of step final : {1395896708: ('0.05647567872264809',), 1395896503: ('0.05647567872264809',), 1395896500: ('0.05647567872264809',), 1395896467: ('0.05647567872264809',), 1395896435: ('0.05647567872264809',), 1395895409: ('0.05647567872264809',), 1395895353: ('0.05647567872264809',), 1395894729: ('0.05647567872264809',), 1395894726: ('0.05647567872264809',), 1395894712: ('0.05647567872264809',), 1395894415: ('0.05647567872264809',), 1395894388: ('0.05647567872264809',), 1395894344: ('0.05647567872264809',), 1395894341: ('0.05647567872264809',)} [1395896708, 1395896503, 1395896500, 1395896467, 1395896435, 1395895409, 1395895353, 1395894729, 1395894726, 1395894712, 1395894415, 1395894388, 1395894344, 1395894341] map_info['map_portfolio_photo'] : {28830584: [1395896708, 1395896503, 1395896500, 1395896467, 1395896435, 1395895409, 1395895353, 1395894729, 1395894726, 1395894712, 1395894415, 1395894388, 1395894344, 1395894341]} final : False mtd_id 4302 list_pids : [1395896708, 1395896503, 1395896500, 1395896467, 1395896435, 1395895409, 1395895353, 1395894729, 1395894726, 1395894712, 1395894415, 1395894388, 1395894344, 1395894341] Looping around the photos to save general results len do output : 14 /1395896708.Didn't retrieve data . /1395896503.Didn't retrieve data . /1395896500.Didn't retrieve data . /1395896467.Didn't retrieve data . /1395896435.Didn't retrieve data . /1395895409.Didn't retrieve data . /1395895353.Didn't retrieve data . /1395894729.Didn't retrieve data . /1395894726.Didn't retrieve data . /1395894712.Didn't retrieve data . /1395894415.Didn't retrieve data . /1395894388.Didn't retrieve data . /1395894344.Didn't retrieve data . /1395894341.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, '4108857') ('4302', '28830584', '1395896708', None, None, None, None, None, '4108857') ('4302', None, None, None, None, None, None, None, '4108857') ('4302', '28830584', '1395896503', None, None, None, None, None, '4108857') ('4302', None, None, None, None, None, None, None, '4108857') ('4302', '28830584', '1395896500', None, None, None, None, None, '4108857') ('4302', None, None, None, None, None, None, None, '4108857') ('4302', '28830584', '1395896467', None, None, None, None, None, '4108857') ('4302', None, None, None, None, None, None, None, '4108857') ('4302', '28830584', '1395896435', None, None, None, None, None, '4108857') ('4302', None, None, None, None, None, None, None, '4108857') ('4302', '28830584', '1395895409', None, None, None, None, None, '4108857') ('4302', None, None, None, None, None, None, None, '4108857') ('4302', '28830584', '1395895353', None, None, None, None, None, '4108857') ('4302', None, None, None, None, None, None, None, '4108857') ('4302', '28830584', '1395894729', None, None, None, None, None, '4108857') ('4302', None, None, None, None, None, None, None, '4108857') ('4302', '28830584', '1395894726', None, None, None, None, None, '4108857') ('4302', None, None, None, None, None, None, None, '4108857') ('4302', '28830584', '1395894712', None, None, None, None, None, '4108857') ('4302', None, None, None, None, None, None, None, '4108857') ('4302', '28830584', '1395894415', None, None, None, None, None, '4108857') ('4302', None, None, None, None, None, None, None, '4108857') ('4302', '28830584', '1395894388', None, None, None, None, None, '4108857') ('4302', None, None, None, None, None, None, None, '4108857') ('4302', '28830584', '1395894344', None, None, None, None, None, '4108857') ('4302', None, None, None, None, None, None, None, '4108857') ('4302', '28830584', '1395894341', None, None, None, None, None, '4108857') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 42 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', '28830584', '1395896708', '0.05647567872264809', None, None, None, None, '4108857'), ('4302', '28830584', '1395896503', '0.05647567872264809', None, None, None, None, '4108857'), ('4302', '28830584', '1395896500', '0.05647567872264809', None, None, None, None, '4108857'), ('4302', '28830584', '1395896467', '0.05647567872264809', None, None, None, None, '4108857'), ('4302', '28830584', '1395896435', '0.05647567872264809', None, None, None, None, '4108857'), ('4302', '28830584', '1395895409', '0.05647567872264809', None, None, None, None, '4108857'), ('4302', '28830584', '1395895353', '0.05647567872264809', None, None, None, None, '4108857'), ('4302', '28830584', '1395894729', '0.05647567872264809', None, None, None, None, '4108857'), ('4302', '28830584', '1395894726', '0.05647567872264809', None, None, None, None, '4108857'), ('4302', '28830584', '1395894712', '0.05647567872264809', None, None, None, None, '4108857'), ('4302', '28830584', '1395894415', '0.05647567872264809', None, None, None, None, '4108857'), ('4302', '28830584', '1395894388', '0.05647567872264809', None, None, None, None, '4108857'), ('4302', '28830584', '1395894344', '0.05647567872264809', None, None, None, None, '4108857'), ('4302', '28830584', '1395894341', '0.05647567872264809', None, None, None, None, '4108857')] time used for this insertion : 0.02355027198791504 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07801532745361328 time spend to save output : 0.02402019500732422 total time spend for step 2 : 0.1020355224609375 step3:velours_tree Tue Nov 25 05:41:29 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 : {28830584: [{'Carton_brun': 28830586, 'papier': 28830587, 'Carton_gris': 28830588, 'Teint_Dans_La_Masse': 28830589, 'kraft': 28830590, 'plastique': 28830591, 'flou': 28830592, 'mal_croppe': 28830593, 'environnement': 28830594, 'autre_refus': 28830595, 'metal': 28830596, 'cartonnette': 28830597}]} input_args_next_step : {28830584: ()} output_args : {28830584: [{'Carton_brun': 28830586, 'papier': 28830587, 'Carton_gris': 28830588, 'Teint_Dans_La_Masse': 28830589, 'kraft': 28830590, 'plastique': 28830591, 'flou': 28830592, 'mal_croppe': 28830593, 'environnement': 28830594, 'autre_refus': 28830595, 'metal': 28830596, 'cartonnette': 28830597}]} args : 28830584 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 : ({'Carton_brun': 28830586, 'papier': 28830587, 'Carton_gris': 28830588, 'Teint_Dans_La_Masse': 28830589, 'kraft': 28830590, 'plastique': 28830591, 'flou': 28830592, 'mal_croppe': 28830593, 'environnement': 28830594, 'autre_refus': 28830595, 'metal': 28830596, 'cartonnette': 28830597},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28830584) 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([28830584]) 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.3112030029296875 time spend to save output : 8.058547973632812e-05 total time spend for step 3 : 0.31128358840942383 step4:send_mail_cod Tue Nov 25 05:41:29 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 : {1395896708: ('0.05647567872264809',), 1395896503: ('0.05647567872264809',), 1395896500: ('0.05647567872264809',), 1395896467: ('0.05647567872264809',), 1395896435: ('0.05647567872264809',), 1395895409: ('0.05647567872264809',), 1395895353: ('0.05647567872264809',), 1395894729: ('0.05647567872264809',), 1395894726: ('0.05647567872264809',), 1395894712: ('0.05647567872264809',), 1395894415: ('0.05647567872264809',), 1395894388: ('0.05647567872264809',), 1395894344: ('0.05647567872264809',), 1395894341: ('0.05647567872264809',)} input_args_next_step : {1395896708: ()} output_args : {1395896708: ('0.05647567872264809',), 1395896503: ('0.05647567872264809',), 1395896500: ('0.05647567872264809',), 1395896467: ('0.05647567872264809',), 1395896435: ('0.05647567872264809',), 1395895409: ('0.05647567872264809',), 1395895353: ('0.05647567872264809',), 1395894729: ('0.05647567872264809',), 1395894726: ('0.05647567872264809',), 1395894712: ('0.05647567872264809',), 1395894415: ('0.05647567872264809',), 1395894388: ('0.05647567872264809',), 1395894344: ('0.05647567872264809',), 1395894341: ('0.05647567872264809',)} args : 1395896708 depend.output_id : 0 input_args_next_step : {1395896708: ('0.05647567872264809',), 1395896503: ()} output_args : {1395896708: ('0.05647567872264809',), 1395896503: ('0.05647567872264809',), 1395896500: ('0.05647567872264809',), 1395896467: ('0.05647567872264809',), 1395896435: ('0.05647567872264809',), 1395895409: ('0.05647567872264809',), 1395895353: ('0.05647567872264809',), 1395894729: ('0.05647567872264809',), 1395894726: ('0.05647567872264809',), 1395894712: ('0.05647567872264809',), 1395894415: ('0.05647567872264809',), 1395894388: ('0.05647567872264809',), 1395894344: ('0.05647567872264809',), 1395894341: ('0.05647567872264809',)} args : 1395896503 depend.output_id : 0 input_args_next_step : {1395896708: ('0.05647567872264809',), 1395896503: ('0.05647567872264809',), 1395896500: ()} output_args : {1395896708: ('0.05647567872264809',), 1395896503: ('0.05647567872264809',), 1395896500: ('0.05647567872264809',), 1395896467: ('0.05647567872264809',), 1395896435: ('0.05647567872264809',), 1395895409: ('0.05647567872264809',), 1395895353: ('0.05647567872264809',), 1395894729: ('0.05647567872264809',), 1395894726: ('0.05647567872264809',), 1395894712: ('0.05647567872264809',), 1395894415: ('0.05647567872264809',), 1395894388: ('0.05647567872264809',), 1395894344: ('0.05647567872264809',), 1395894341: ('0.05647567872264809',)} args : 1395896500 depend.output_id : 0 input_args_next_step : {1395896708: ('0.05647567872264809',), 1395896503: ('0.05647567872264809',), 1395896500: ('0.05647567872264809',), 1395896467: ()} output_args : {1395896708: ('0.05647567872264809',), 1395896503: ('0.05647567872264809',), 1395896500: ('0.05647567872264809',), 1395896467: ('0.05647567872264809',), 1395896435: ('0.05647567872264809',), 1395895409: ('0.05647567872264809',), 1395895353: ('0.05647567872264809',), 1395894729: ('0.05647567872264809',), 1395894726: ('0.05647567872264809',), 1395894712: ('0.05647567872264809',), 1395894415: ('0.05647567872264809',), 1395894388: ('0.05647567872264809',), 1395894344: ('0.05647567872264809',), 1395894341: ('0.05647567872264809',)} args : 1395896467 depend.output_id : 0 input_args_next_step : {1395896708: ('0.05647567872264809',), 1395896503: ('0.05647567872264809',), 1395896500: ('0.05647567872264809',), 1395896467: ('0.05647567872264809',), 1395896435: ()} output_args : {1395896708: ('0.05647567872264809',), 1395896503: ('0.05647567872264809',), 1395896500: ('0.05647567872264809',), 1395896467: ('0.05647567872264809',), 1395896435: ('0.05647567872264809',), 1395895409: ('0.05647567872264809',), 1395895353: ('0.05647567872264809',), 1395894729: ('0.05647567872264809',), 1395894726: ('0.05647567872264809',), 1395894712: ('0.05647567872264809',), 1395894415: ('0.05647567872264809',), 1395894388: ('0.05647567872264809',), 1395894344: ('0.05647567872264809',), 1395894341: ('0.05647567872264809',)} args : 1395896435 depend.output_id : 0 input_args_next_step : {1395896708: ('0.05647567872264809',), 1395896503: ('0.05647567872264809',), 1395896500: ('0.05647567872264809',), 1395896467: ('0.05647567872264809',), 1395896435: ('0.05647567872264809',), 1395895409: ()} output_args : {1395896708: ('0.05647567872264809',), 1395896503: ('0.05647567872264809',), 1395896500: ('0.05647567872264809',), 1395896467: ('0.05647567872264809',), 1395896435: ('0.05647567872264809',), 1395895409: ('0.05647567872264809',), 1395895353: ('0.05647567872264809',), 1395894729: ('0.05647567872264809',), 1395894726: ('0.05647567872264809',), 1395894712: ('0.05647567872264809',), 1395894415: ('0.05647567872264809',), 1395894388: ('0.05647567872264809',), 1395894344: ('0.05647567872264809',), 1395894341: ('0.05647567872264809',)} args : 1395895409 depend.output_id : 0 input_args_next_step : {1395896708: ('0.05647567872264809',), 1395896503: ('0.05647567872264809',), 1395896500: ('0.05647567872264809',), 1395896467: ('0.05647567872264809',), 1395896435: ('0.05647567872264809',), 1395895409: ('0.05647567872264809',), 1395895353: ()} output_args : {1395896708: ('0.05647567872264809',), 1395896503: ('0.05647567872264809',), 1395896500: ('0.05647567872264809',), 1395896467: ('0.05647567872264809',), 1395896435: ('0.05647567872264809',), 1395895409: ('0.05647567872264809',), 1395895353: ('0.05647567872264809',), 1395894729: ('0.05647567872264809',), 1395894726: ('0.05647567872264809',), 1395894712: ('0.05647567872264809',), 1395894415: ('0.05647567872264809',), 1395894388: ('0.05647567872264809',), 1395894344: ('0.05647567872264809',), 1395894341: ('0.05647567872264809',)} args : 1395895353 depend.output_id : 0 input_args_next_step : {1395896708: ('0.05647567872264809',), 1395896503: ('0.05647567872264809',), 1395896500: ('0.05647567872264809',), 1395896467: ('0.05647567872264809',), 1395896435: ('0.05647567872264809',), 1395895409: ('0.05647567872264809',), 1395895353: ('0.05647567872264809',), 1395894729: ()} output_args : {1395896708: ('0.05647567872264809',), 1395896503: ('0.05647567872264809',), 1395896500: ('0.05647567872264809',), 1395896467: ('0.05647567872264809',), 1395896435: ('0.05647567872264809',), 1395895409: ('0.05647567872264809',), 1395895353: ('0.05647567872264809',), 1395894729: ('0.05647567872264809',), 1395894726: ('0.05647567872264809',), 1395894712: ('0.05647567872264809',), 1395894415: ('0.05647567872264809',), 1395894388: ('0.05647567872264809',), 1395894344: ('0.05647567872264809',), 1395894341: ('0.05647567872264809',)} args : 1395894729 depend.output_id : 0 input_args_next_step : {1395896708: ('0.05647567872264809',), 1395896503: ('0.05647567872264809',), 1395896500: ('0.05647567872264809',), 1395896467: ('0.05647567872264809',), 1395896435: ('0.05647567872264809',), 1395895409: ('0.05647567872264809',), 1395895353: ('0.05647567872264809',), 1395894729: ('0.05647567872264809',), 1395894726: ()} output_args : {1395896708: ('0.05647567872264809',), 1395896503: ('0.05647567872264809',), 1395896500: ('0.05647567872264809',), 1395896467: ('0.05647567872264809',), 1395896435: ('0.05647567872264809',), 1395895409: ('0.05647567872264809',), 1395895353: ('0.05647567872264809',), 1395894729: ('0.05647567872264809',), 1395894726: ('0.05647567872264809',), 1395894712: ('0.05647567872264809',), 1395894415: ('0.05647567872264809',), 1395894388: ('0.05647567872264809',), 1395894344: ('0.05647567872264809',), 1395894341: ('0.05647567872264809',)} args : 1395894726 depend.output_id : 0 input_args_next_step : {1395896708: ('0.05647567872264809',), 1395896503: ('0.05647567872264809',), 1395896500: ('0.05647567872264809',), 1395896467: ('0.05647567872264809',), 1395896435: ('0.05647567872264809',), 1395895409: ('0.05647567872264809',), 1395895353: ('0.05647567872264809',), 1395894729: ('0.05647567872264809',), 1395894726: ('0.05647567872264809',), 1395894712: ()} output_args : {1395896708: ('0.05647567872264809',), 1395896503: ('0.05647567872264809',), 1395896500: ('0.05647567872264809',), 1395896467: ('0.05647567872264809',), 1395896435: ('0.05647567872264809',), 1395895409: ('0.05647567872264809',), 1395895353: ('0.05647567872264809',), 1395894729: ('0.05647567872264809',), 1395894726: ('0.05647567872264809',), 1395894712: ('0.05647567872264809',), 1395894415: ('0.05647567872264809',), 1395894388: ('0.05647567872264809',), 1395894344: ('0.05647567872264809',), 1395894341: ('0.05647567872264809',)} args : 1395894712 depend.output_id : 0 input_args_next_step : {1395896708: ('0.05647567872264809',), 1395896503: ('0.05647567872264809',), 1395896500: ('0.05647567872264809',), 1395896467: ('0.05647567872264809',), 1395896435: ('0.05647567872264809',), 1395895409: ('0.05647567872264809',), 1395895353: ('0.05647567872264809',), 1395894729: ('0.05647567872264809',), 1395894726: ('0.05647567872264809',), 1395894712: ('0.05647567872264809',), 1395894415: ()} output_args : {1395896708: ('0.05647567872264809',), 1395896503: ('0.05647567872264809',), 1395896500: ('0.05647567872264809',), 1395896467: ('0.05647567872264809',), 1395896435: ('0.05647567872264809',), 1395895409: ('0.05647567872264809',), 1395895353: ('0.05647567872264809',), 1395894729: ('0.05647567872264809',), 1395894726: ('0.05647567872264809',), 1395894712: ('0.05647567872264809',), 1395894415: ('0.05647567872264809',), 1395894388: ('0.05647567872264809',), 1395894344: ('0.05647567872264809',), 1395894341: ('0.05647567872264809',)} args : 1395894415 depend.output_id : 0 input_args_next_step : {1395896708: ('0.05647567872264809',), 1395896503: ('0.05647567872264809',), 1395896500: ('0.05647567872264809',), 1395896467: ('0.05647567872264809',), 1395896435: ('0.05647567872264809',), 1395895409: ('0.05647567872264809',), 1395895353: ('0.05647567872264809',), 1395894729: ('0.05647567872264809',), 1395894726: ('0.05647567872264809',), 1395894712: ('0.05647567872264809',), 1395894415: ('0.05647567872264809',), 1395894388: ()} output_args : {1395896708: ('0.05647567872264809',), 1395896503: ('0.05647567872264809',), 1395896500: ('0.05647567872264809',), 1395896467: ('0.05647567872264809',), 1395896435: ('0.05647567872264809',), 1395895409: ('0.05647567872264809',), 1395895353: ('0.05647567872264809',), 1395894729: ('0.05647567872264809',), 1395894726: ('0.05647567872264809',), 1395894712: ('0.05647567872264809',), 1395894415: ('0.05647567872264809',), 1395894388: ('0.05647567872264809',), 1395894344: ('0.05647567872264809',), 1395894341: ('0.05647567872264809',)} args : 1395894388 depend.output_id : 0 input_args_next_step : {1395896708: ('0.05647567872264809',), 1395896503: ('0.05647567872264809',), 1395896500: ('0.05647567872264809',), 1395896467: ('0.05647567872264809',), 1395896435: ('0.05647567872264809',), 1395895409: ('0.05647567872264809',), 1395895353: ('0.05647567872264809',), 1395894729: ('0.05647567872264809',), 1395894726: ('0.05647567872264809',), 1395894712: ('0.05647567872264809',), 1395894415: ('0.05647567872264809',), 1395894388: ('0.05647567872264809',), 1395894344: ()} output_args : {1395896708: ('0.05647567872264809',), 1395896503: ('0.05647567872264809',), 1395896500: ('0.05647567872264809',), 1395896467: ('0.05647567872264809',), 1395896435: ('0.05647567872264809',), 1395895409: ('0.05647567872264809',), 1395895353: ('0.05647567872264809',), 1395894729: ('0.05647567872264809',), 1395894726: ('0.05647567872264809',), 1395894712: ('0.05647567872264809',), 1395894415: ('0.05647567872264809',), 1395894388: ('0.05647567872264809',), 1395894344: ('0.05647567872264809',), 1395894341: ('0.05647567872264809',)} args : 1395894344 depend.output_id : 0 input_args_next_step : {1395896708: ('0.05647567872264809',), 1395896503: ('0.05647567872264809',), 1395896500: ('0.05647567872264809',), 1395896467: ('0.05647567872264809',), 1395896435: ('0.05647567872264809',), 1395895409: ('0.05647567872264809',), 1395895353: ('0.05647567872264809',), 1395894729: ('0.05647567872264809',), 1395894726: ('0.05647567872264809',), 1395894712: ('0.05647567872264809',), 1395894415: ('0.05647567872264809',), 1395894388: ('0.05647567872264809',), 1395894344: ('0.05647567872264809',), 1395894341: ()} output_args : {1395896708: ('0.05647567872264809',), 1395896503: ('0.05647567872264809',), 1395896500: ('0.05647567872264809',), 1395896467: ('0.05647567872264809',), 1395896435: ('0.05647567872264809',), 1395895409: ('0.05647567872264809',), 1395895353: ('0.05647567872264809',), 1395894729: ('0.05647567872264809',), 1395894726: ('0.05647567872264809',), 1395894712: ('0.05647567872264809',), 1395894415: ('0.05647567872264809',), 1395894388: ('0.05647567872264809',), 1395894344: ('0.05647567872264809',), 1395894341: ('0.05647567872264809',)} args : 1395894341 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 : {28830584: [{'Carton_brun': 28830586, 'papier': 28830587, 'Carton_gris': 28830588, 'Teint_Dans_La_Masse': 28830589, 'kraft': 28830590, 'plastique': 28830591, 'flou': 28830592, 'mal_croppe': 28830593, 'environnement': 28830594, 'autre_refus': 28830595, 'metal': 28830596, 'cartonnette': 28830597}]} input_args_next_step : {1395896708: ('0.05647567872264809',), 1395896503: ('0.05647567872264809',), 1395896500: ('0.05647567872264809',), 1395896467: ('0.05647567872264809',), 1395896435: ('0.05647567872264809',), 1395895409: ('0.05647567872264809',), 1395895353: ('0.05647567872264809',), 1395894729: ('0.05647567872264809',), 1395894726: ('0.05647567872264809',), 1395894712: ('0.05647567872264809',), 1395894415: ('0.05647567872264809',), 1395894388: ('0.05647567872264809',), 1395894344: ('0.05647567872264809',), 1395894341: ('0.05647567872264809',), 28830584: ()} output_args : {28830584: [{'Carton_brun': 28830586, 'papier': 28830587, 'Carton_gris': 28830588, 'Teint_Dans_La_Masse': 28830589, 'kraft': 28830590, 'plastique': 28830591, 'flou': 28830592, 'mal_croppe': 28830593, 'environnement': 28830594, 'autre_refus': 28830595, 'metal': 28830596, 'cartonnette': 28830597}]} args : 28830584 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 :15, first value : ('0.05647567872264809',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28830584) 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 (1395896708,1395896503,1395896500,1395896467,1395896435,1395895409,1395895353,1395894729,1395894726,1395894712,1395894415,1395894388,1395894344,1395894341) Found this number of photos: 14 ##### Call download_photos : nb_thread : 5 begin to download photo : 1395894341 begin to download photo : 1395894415 begin to download photo : 1395894729 begin to download photo : 1395896435 begin to download photo : 1395896503 download finish for photo 1395894415 begin to download photo : 1395894712 download finish for photo 1395896503 begin to download photo : 1395896708 download finish for photo 1395894729 begin to download photo : 1395895353 download finish for photo 1395896435 begin to download photo : 1395896467 download finish for photo 1395894341 begin to download photo : 1395894344 download finish for photo 1395896708 download finish for photo 1395894712 begin to download photo : 1395894726 download finish for photo 1395896467 begin to download photo : 1395896500 download finish for photo 1395895353 begin to download photo : 1395895409 download finish for photo 1395894344 begin to download photo : 1395894388 download finish for photo 1395894388 download finish for photo 1395896500 download finish for photo 1395894726 download finish for photo 1395895409 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette288305901764045690/ imagette288305911764045690/ imagette288305921764045690/ imagette288305931764045690/ imagette288305951764045690/ imagette288305961764045690/ length of list_filenames : 14 ; length of list_pids : 14 ; length of list_args : 14 results_Auto_P28830584_25-11-2025_05_41_30.pdf 28830590 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=28830590 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette288305901764045690 28830591 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=28830591 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette288305911764045690 28830592 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=28830592 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette288305921764045690 28830593 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=28830593 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette288305931764045690 28830595 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=28830595 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette288305951764045690 28830596 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=28830596 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette288305961764045690 28830597 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=28830597 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1395895915: '1763988185_2393312_1395894726_18369b4d2db102a5303dabede80b311c_rle_crop_4043667907_0.png', 1395899547: '1763989046_2415205_1395896503_97a832d0b09933538f35041986b15497_rle_crop_4043687998_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/24/54c5fd40f95178222ae8be03c84cfc8f_25804635.png change filename to text .imagette288305971764045690/ imagette288305971764045690/1763988185_2393312_1395894726_18369b4d2db102a5303dabede80b311c_rle_crop_4043667907_0.png.png imagette288305971764045690/1763989046_2415205_1395896503_97a832d0b09933538f35041986b15497_rle_crop_4043687998_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/24/05d05db074a0b1b4e0af46953b5a9318_98691385.png imagette288305971764045690 28830586 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=28830586 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1395899532: '1763989028_2414823_1395896708_9892527377453da34f376ffbe530d0e5_rle_crop_4043687891_0.png', 1395899533: '1763989028_2414823_1395896500_6d89d323209d9059e0ea6c23613f6ae0_rle_crop_4043687901_0.png', 1395899534: '1763989028_2414823_1395896435_94774dbfd00bfdc79856898fbbccefb2_rle_crop_4043687928_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/24/b7d16e479593e44eaa18278d2e430d34_94326053.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/24/ca9e8fc363954fa7f994e4e578ef3b81_6695157.png change filename to text .imagette288305861764045690/ imagette288305861764045690/1763989028_2414823_1395896500_6d89d323209d9059e0ea6c23613f6ae0_rle_crop_4043687901_0.png.png imagette288305861764045690/1763989028_2414823_1395896708_9892527377453da34f376ffbe530d0e5_rle_crop_4043687891_0.png.png imagette288305861764045690/1763989028_2414823_1395896435_94774dbfd00bfdc79856898fbbccefb2_rle_crop_4043687928_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/24/91c51777ed54190cb07347e0e8175afd_57450040.png imagette288305861764045690 28830588 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=28830588 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1395895910: '1763988185_2393312_1395895409_f99a54fc2787068f8a50c4945f4cf573_rle_crop_4043667899_0.png', 1395895911: '1763988185_2393312_1395894726_18369b4d2db102a5303dabede80b311c_rle_crop_4043667908_0.png', 1395899530: '1763989028_2414823_1395896708_9892527377453da34f376ffbe530d0e5_rle_crop_4043687887_0.png', 1395899531: '1763989028_2414823_1395896500_6d89d323209d9059e0ea6c23613f6ae0_rle_crop_4043687900_0.png', 1395899545: '1763989046_2415205_1395896503_97a832d0b09933538f35041986b15497_rle_crop_4043687995_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/24/ea95d03afa2551601b1a5198e3c01981_76419200.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/24/a5f2e931b38eb99b996f58de30e6de00_15144865.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/24/4f030d4c7001a18389a5f04d5f1353f3_30383754.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/24/6a60237c374c7b397d0f035a5592c39c_22367128.png change filename to text .imagette288305881764045690/ imagette288305881764045690/1763989028_2414823_1395896500_6d89d323209d9059e0ea6c23613f6ae0_rle_crop_4043687900_0.png.png imagette288305881764045690/1763989046_2415205_1395896503_97a832d0b09933538f35041986b15497_rle_crop_4043687995_0.png.png imagette288305881764045690/1763988185_2393312_1395895409_f99a54fc2787068f8a50c4945f4cf573_rle_crop_4043667899_0.png.png imagette288305881764045690/1763989028_2414823_1395896708_9892527377453da34f376ffbe530d0e5_rle_crop_4043687887_0.png.png imagette288305881764045690/1763988185_2393312_1395894726_18369b4d2db102a5303dabede80b311c_rle_crop_4043667908_0.png.png imagette288305891764045691/ wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/24/2a03d469755afb21dcdcac06b686cd2c_1350733.png imagette288305881764045690 28830589 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=28830589 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette288305891764045691 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=28830584 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/28830598,28830599,28830600,28830601,28830602,28830603,28830604,28830605,28830606,28830607,28830608,28830609?tags=Carton_brun,papier,Carton_gris,Teint_Dans_La_Masse,kraft,plastique,flou,mal_croppe,environnement,autre_refus,metal,cartonnette your option no_mail is active, we will not send the real mail to your client args[1395896708] : ('0.05647567872264809',) no score found for photo 1395896708 We are sending mail with results at report@fotonower.com args[1395896503] : ('0.05647567872264809',) no score found for photo 1395896503 We are sending mail with results at report@fotonower.com args[1395896500] : ('0.05647567872264809',) no score found for photo 1395896500 We are sending mail with results at report@fotonower.com args[1395896467] : ('0.05647567872264809',) no score found for photo 1395896467 We are sending mail with results at report@fotonower.com args[1395896435] : ('0.05647567872264809',) no score found for photo 1395896435 We are sending mail with results at report@fotonower.com args[1395895409] : ('0.05647567872264809',) no score found for photo 1395895409 We are sending mail with results at report@fotonower.com args[1395895353] : ('0.05647567872264809',) no score found for photo 1395895353 We are sending mail with results at report@fotonower.com args[1395894729] : ('0.05647567872264809',) no score found for photo 1395894729 We are sending mail with results at report@fotonower.com args[1395894726] : ('0.05647567872264809',) no score found for photo 1395894726 We are sending mail with results at report@fotonower.com args[1395894712] : ('0.05647567872264809',) no score found for photo 1395894712 We are sending mail with results at report@fotonower.com args[1395894415] : ('0.05647567872264809',) no score found for photo 1395894415 We are sending mail with results at report@fotonower.com args[1395894388] : ('0.05647567872264809',) no score found for photo 1395894388 We are sending mail with results at report@fotonower.com args[1395894344] : ('0.05647567872264809',) no score found for photo 1395894344 We are sending mail with results at report@fotonower.com args[1395894341] : ('0.05647567872264809',) no score found for photo 1395894341 We are sending mail with results at report@fotonower.com refus_total : 0.05647567872264809 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=28830584 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_P28830584_25-11-2025_05_41_30.pdf results_Auto_P28830584_25-11-2025_05_41_30.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28830584_25-11-2025_05_41_30.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','28830584','results_Auto_P28830584_25-11-2025_05_41_30.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28830584_25-11-2025_05_41_30.pdf','pdf','','0.15','0.05647567872264809') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([28830584]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1395896708, 1395896503, 1395896500, 1395896467, 1395896435, 1395895409, 1395895353, 1395894729, 1395894726, 1395894712, 1395894415, 1395894388, 1395894344, 1395894341] map_info['map_portfolio_photo'] : {28830584: [1395896708, 1395896503, 1395896500, 1395896467, 1395896435, 1395895409, 1395895353, 1395894729, 1395894726, 1395894712, 1395894415, 1395894388, 1395894344, 1395894341]} final : False mtd_id 4302 list_pids : [1395896708, 1395896503, 1395896500, 1395896467, 1395896435, 1395895409, 1395895353, 1395894729, 1395894726, 1395894712, 1395894415, 1395894388, 1395894344, 1395894341] 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, '4108857') ('4302', '28830584', '1395896708', None, None, None, None, None, '4108857') ('4302', None, None, None, None, None, None, None, '4108857') ('4302', '28830584', '1395896503', None, None, None, None, None, '4108857') ('4302', None, None, None, None, None, None, None, '4108857') ('4302', '28830584', '1395896500', None, None, None, None, None, '4108857') ('4302', None, None, None, None, None, None, None, '4108857') ('4302', '28830584', '1395896467', None, None, None, None, None, '4108857') ('4302', None, None, None, None, None, None, None, '4108857') ('4302', '28830584', '1395896435', None, None, None, None, None, '4108857') ('4302', None, None, None, None, None, None, None, '4108857') ('4302', '28830584', '1395895409', None, None, None, None, None, '4108857') ('4302', None, None, None, None, None, None, None, '4108857') ('4302', '28830584', '1395895353', None, None, None, None, None, '4108857') ('4302', None, None, None, None, None, None, None, '4108857') ('4302', '28830584', '1395894729', None, None, None, None, None, '4108857') ('4302', None, None, None, None, None, None, None, '4108857') ('4302', '28830584', '1395894726', None, None, None, None, None, '4108857') ('4302', None, None, None, None, None, None, None, '4108857') ('4302', '28830584', '1395894712', None, None, None, None, None, '4108857') ('4302', None, None, None, None, None, None, None, '4108857') ('4302', '28830584', '1395894415', None, None, None, None, None, '4108857') ('4302', None, None, None, None, None, None, None, '4108857') ('4302', '28830584', '1395894388', None, None, None, None, None, '4108857') ('4302', None, None, None, None, None, None, None, '4108857') ('4302', '28830584', '1395894344', None, None, None, None, None, '4108857') ('4302', None, None, None, None, None, None, None, '4108857') ('4302', '28830584', '1395894341', None, None, None, None, None, '4108857') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 14 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', '28830584', '1395896708', None, None, None, None, None, '4108857'), ('4302', '28830584', '1395896503', None, None, None, None, None, '4108857'), ('4302', '28830584', '1395896500', None, None, None, None, None, '4108857'), ('4302', '28830584', '1395896467', None, None, None, None, None, '4108857'), ('4302', '28830584', '1395896435', None, None, None, None, None, '4108857'), ('4302', '28830584', '1395895409', None, None, None, None, None, '4108857'), ('4302', '28830584', '1395895353', None, None, None, None, None, '4108857'), ('4302', '28830584', '1395894729', None, None, None, None, None, '4108857'), ('4302', '28830584', '1395894726', None, None, None, None, None, '4108857'), ('4302', '28830584', '1395894712', None, None, None, None, None, '4108857'), ('4302', '28830584', '1395894415', None, None, None, None, None, '4108857'), ('4302', '28830584', '1395894388', None, None, None, None, None, '4108857'), ('4302', '28830584', '1395894344', None, None, None, None, None, '4108857'), ('4302', '28830584', '1395894341', None, None, None, None, None, '4108857')] time used for this insertion : 0.018052101135253906 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.214841365814209 time spend to save output : 0.01828479766845703 total time spend for step 4 : 3.233126163482666 step5:split_time_score Tue Nov 25 05:41:32 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 : ['28830584'] 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 : [('28830584',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28830584) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1395896503: {'path': 'temp/1764045689_1258848_1395896503_97a832d0b09933538f35041986b15497.jpg', 'extension': 'jpg'}, 1395896708: {'path': 'temp/1764045689_1258848_1395896708_9892527377453da34f376ffbe530d0e5.jpg', 'extension': 'jpg'}, 1395894341: {'path': 'temp/1764045689_1258848_1395894341_6a3fa58731f9c465c3a94516aa6c8653.jpg', 'extension': 'jpg'}, 1395894344: {'path': 'temp/1764045689_1258848_1395894344_3d2e76fc2ae3ddf000ff1f6c52617363.jpg', 'extension': 'jpg'}, 1395894388: {'path': 'temp/1764045689_1258848_1395894388_daf09c61517cfcec345546222ffc9a29.jpg', 'extension': 'jpg'}, 1395896435: {'path': 'temp/1764045689_1258848_1395896435_94774dbfd00bfdc79856898fbbccefb2.jpg', 'extension': 'jpg'}, 1395896467: {'path': 'temp/1764045689_1258848_1395896467_d196318948e42b14457926073c7e43db.jpg', 'extension': 'jpg'}, 1395896500: {'path': 'temp/1764045689_1258848_1395896500_6d89d323209d9059e0ea6c23613f6ae0.jpg', 'extension': 'jpg'}, 1395894415: {'path': 'temp/1764045689_1258848_1395894415_551680b983d4e57ac34b46853c1b0e6c.jpg', 'extension': 'jpg'}, 1395894712: {'path': 'temp/1764045689_1258848_1395894712_cb24b6621948e8f7b7ff5cdbec639b12.jpg', 'extension': 'jpg'}, 1395894726: {'path': 'temp/1764045689_1258848_1395894726_18369b4d2db102a5303dabede80b311c.jpg', 'extension': 'jpg'}, 1395894729: {'path': 'temp/1764045689_1258848_1395894729_a7b83bf2cf707a05aafa2dc6760c4cbb.jpg', 'extension': 'jpg'}, 1395895353: {'path': 'temp/1764045689_1258848_1395895353_4e54869b8c9f8aaaa43e2b6aeb620f60.jpg', 'extension': 'jpg'}, 1395895409: {'path': 'temp/1764045689_1258848_1395895409_f99a54fc2787068f8a50c4945f4cf573.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 = 28830584; (('arc_en_ciel_jrm_bis',), ('arc_en_ciel_jrm',)) 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 = 28830584 group by h (('13', 14),) 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=28830584 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 (28830584) 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 (28830584) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 24112025 28830584 Nombre de photos uploadées : 14 / 23040 (0%) 24112025 28830584 Nombre de photos taguées (types de déchets): 0 / 14 (0%) 24112025 28830584 Nombre de photos taguées (volume) : 0 / 14 (0%) [{'photo_id': 1395894344, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/24/3d2e76fc2ae3ddf000ff1f6c52617363.jpg', 'username': None, 'uploaded_at': 1763987712, 'text': 'image_24112025_13_30_34_10149.jpg'}, {'photo_id': 1395894341, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/24/6a3fa58731f9c465c3a94516aa6c8653.jpg', 'username': None, 'uploaded_at': 1763987712, 'text': 'image_24112025_13_34_34_010140m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1395894388, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/24/daf09c61517cfcec345546222ffc9a29.jpg', 'username': None, 'uploaded_at': 1763987767, 'text': 'image_24112025_13_34_44_010133m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1395894415, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/24/551680b983d4e57ac34b46853c1b0e6c.jpg', 'username': None, 'uploaded_at': 1763987827, 'text': 'image_24112025_13_35_44_10141.jpg'}] 0 [] elapsed_time : load_data_split_time_score 1.430511474609375e-06 elapsed_time : order_list_meta_photo_and_scores 5.245208740234375e-06 ?????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0006990432739257812 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 28830584, '2025-11-24' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); Catched exception ! Connect or reconnect ! SELECT id FROM MTRPhoto.dashboard_entry_day where dashboard_place_id = 10 and date = '2025-11-24' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2633033,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.266437292098999 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= 2633033 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2633033, 'dashboard_run_id': 2646251, 'mtr_portfolio_id': 28823447, 'dashboard_result_id': 17669372, '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_P28823447_25-11-2025_05_34_29.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28823450, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28823451, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28823452, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28823453, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28823454, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28823455, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28823456, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28823457, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28823458, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28823459, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28823460, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28823461, 'pht': 3726}}"}, {'dashboat_entry_day': 2633033, 'dashboard_run_id': 2646251, 'mtr_portfolio_id': 28823600, 'dashboard_result_id': 17669373, '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_P28823600_25-11-2025_05_34_35.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28823604, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28823605, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28823606, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28823607, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28823608, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28823609, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28823610, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28823611, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28823612, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28823613, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28823614, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28823615, 'pht': 3726}}"}, {'dashboat_entry_day': 2633033, 'dashboard_run_id': 2646251, 'mtr_portfolio_id': 28823956, 'dashboard_result_id': 17669374, '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_P28823956_25-11-2025_05_35_31.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28823960, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28823961, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28823962, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28823963, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28823964, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28823965, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28823966, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28823967, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28823968, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28823969, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28823970, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28823971, 'pht': 3726}}"}, {'dashboat_entry_day': 2633033, 'dashboard_run_id': 2646251, 'mtr_portfolio_id': 28825204, 'dashboard_result_id': 17669375, '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_P28825204_25-11-2025_05_36_02.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28825206, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28825207, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28825208, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28825209, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28825210, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28825211, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28825212, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28825213, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28825214, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28825215, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28825216, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28825217, 'pht': 3726}}"}, {'dashboat_entry_day': 2633033, 'dashboard_run_id': 2646251, 'mtr_portfolio_id': 28825393, 'dashboard_result_id': 17669376, '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_P28825393_25-11-2025_05_36_12.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28825400, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28825401, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28825402, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28825403, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28825404, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28825405, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28825406, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28825407, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28825408, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28825409, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28825410, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28825411, 'pht': 3726}}"}, {'dashboat_entry_day': 2633033, 'dashboard_run_id': 2646251, 'mtr_portfolio_id': 28825711, 'dashboard_result_id': 17669377, '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_P28825711_25-11-2025_05_36_30.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28825720, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28825721, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28825722, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28825723, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28825724, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28825725, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28825726, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28825727, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28825728, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28825729, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28825730, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28825731, 'pht': 3726}}"}, {'dashboat_entry_day': 2633033, 'dashboard_run_id': 2646251, 'mtr_portfolio_id': 28826020, 'dashboard_result_id': 17669378, '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_P28826020_25-11-2025_05_37_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28826024, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28826025, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28826026, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28826027, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28826028, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28826029, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28826030, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28826031, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28826032, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28826033, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28826034, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28826035, 'pht': 3726}}"}, {'dashboat_entry_day': 2633033, 'dashboard_run_id': 2646251, 'mtr_portfolio_id': 28826207, 'dashboard_result_id': 17669379, '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_P28826207_25-11-2025_05_38_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28826216, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28826217, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28826218, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28826219, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28826220, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28826221, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28826222, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28826223, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28826224, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28826225, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28826226, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28826227, 'pht': 3726}}"}, {'dashboat_entry_day': 2633033, 'dashboard_run_id': 2646251, 'mtr_portfolio_id': 28826578, 'dashboard_result_id': 17669380, '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_P28826578_25-11-2025_05_38_30.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28826588, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28826589, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28826590, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28826591, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28826592, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28826593, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28826594, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28826595, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28826596, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28826597, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28826598, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28826599, 'pht': 3726}}"}, {'dashboat_entry_day': 2633033, 'dashboard_run_id': 2646251, 'mtr_portfolio_id': 28827082, 'dashboard_result_id': 17669381, '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_P28827082_25-11-2025_05_39_31.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28827096, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28827097, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28827098, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28827099, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28827100, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28827101, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28827102, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28827103, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28827104, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28827105, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28827107, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28827108, 'pht': 3726}}"}, {'dashboat_entry_day': 2633033, 'dashboard_run_id': 2646251, 'mtr_portfolio_id': 28827671, 'dashboard_result_id': 17669382, '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_P28827671_25-11-2025_05_40_03.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28827675, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28827676, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28827677, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28827678, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28827679, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28827680, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28827681, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28827682, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28827683, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28827684, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28827685, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28827686, 'pht': 3726}}"}, {'dashboat_entry_day': 2633033, 'dashboard_run_id': 2646251, 'mtr_portfolio_id': 28827962, 'dashboard_result_id': 17669383, '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_P28827962_25-11-2025_05_40_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28827995, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28827996, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28827997, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28827998, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28827999, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28828000, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28828001, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28828002, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28828003, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28828004, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28828005, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28828006, 'pht': 3726}}"}, {'dashboat_entry_day': 2633033, 'dashboard_run_id': 2646251, 'mtr_portfolio_id': 28828365, 'dashboard_result_id': 17669384, '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_P28828365_24-11-2025_14_00_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28828394, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28828395, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28828396, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28828397, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28828398, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28828399, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28828400, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28828401, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28828402, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28828403, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28828404, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28828405, 'pht': 3726}}"}, {'dashboat_entry_day': 2633033, 'dashboard_run_id': 2646251, 'mtr_portfolio_id': 28830584, 'dashboard_result_id': 17669385, '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_P28830584_24-11-2025_13_47_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28830586, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28830587, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28830588, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28830589, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28830590, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28830591, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28830592, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28830593, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28830594, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28830595, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28830596, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28830597, 'pht': 3726}}"}, {'dashboat_entry_day': 2633033, 'dashboard_run_id': 2646251, 'mtr_portfolio_id': 28830869, 'dashboard_result_id': 17669386, '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_P28830869_24-11-2025_14_02_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28830874, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28830875, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28830876, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28830877, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28830878, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28830879, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28830880, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28830881, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28830882, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28830883, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28830884, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28830885, 'pht': 3726}}"}, {'dashboat_entry_day': 2633033, 'dashboard_run_id': 2646251, 'mtr_portfolio_id': 28831317, 'dashboard_result_id': 17669387, '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_P28831317_24-11-2025_14_19_02.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28831340, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28831341, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28831342, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28831343, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28831344, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28831345, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28831346, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28831347, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28831348, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28831349, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28831350, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28831351, 'pht': 3726}}"}, {'dashboat_entry_day': 2633033, 'dashboard_run_id': 2646251, 'mtr_portfolio_id': 28831841, 'dashboard_result_id': 17669388, '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_P28831841_24-11-2025_14_33_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28831844, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28831845, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28831846, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28831847, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28831848, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28831849, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28831850, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28831851, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28831852, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28831853, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28831854, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28831855, 'pht': 3726}}"}, {'dashboat_entry_day': 2633033, 'dashboard_run_id': 2646251, 'mtr_portfolio_id': 28832046, 'dashboard_result_id': 17669389, '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_P28832046_24-11-2025_14_48_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28832081, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28832082, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28832083, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28832084, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28832085, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28832086, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28832087, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28832088, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28832089, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28832090, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28832091, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28832092, 'pht': 3726}}"}, {'dashboat_entry_day': 2633033, 'dashboard_run_id': 2646251, 'mtr_portfolio_id': 28832550, 'dashboard_result_id': 17669390, '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_P28832550_24-11-2025_15_03_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28832559, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28832560, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28832561, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28832562, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28832563, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28832564, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28832565, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28832566, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28832567, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28832568, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28832569, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28832570, 'pht': 3726}}"}, {'dashboat_entry_day': 2633033, 'dashboard_run_id': 2646251, 'mtr_portfolio_id': 28832985, 'dashboard_result_id': 17669391, '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_P28832985_24-11-2025_15_18_29.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28833015, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28833016, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28833017, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28833018, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28833019, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28833020, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28833021, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28833022, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28833023, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28833024, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28833025, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28833026, 'pht': 3726}}"}, {'dashboat_entry_day': 2633033, 'dashboard_run_id': 2646251, 'mtr_portfolio_id': 28833546, 'dashboard_result_id': 17669392, '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_P28833546_24-11-2025_15_32_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28833554, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28833555, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28833556, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28833557, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28833558, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28833559, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28833560, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28833561, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28833562, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28833563, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28833564, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28833565, 'pht': 3726}}"}, {'dashboat_entry_day': 2633033, 'dashboard_run_id': 2646251, 'mtr_portfolio_id': 28834015, 'dashboard_result_id': 17669393, '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_P28834015_24-11-2025_15_54_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28834038, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28834039, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28834040, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28834041, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28834042, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28834043, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28834044, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28834045, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28834046, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28834047, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28834048, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28834049, 'pht': 3726}}"}, {'dashboat_entry_day': 2633033, 'dashboard_run_id': 2646251, 'mtr_portfolio_id': 28834841, 'dashboard_result_id': 17669394, '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_P28834841_24-11-2025_16_03_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28834843, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28834844, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28834845, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28834846, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28834847, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28834848, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28834849, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28834850, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28834851, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28834852, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28834853, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28834854, 'pht': 3726}}"}, {'dashboat_entry_day': 2633033, 'dashboard_run_id': 2646251, 'mtr_portfolio_id': 28835029, 'dashboard_result_id': 17669395, '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_P28835029_24-11-2025_16_18_39.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28835108, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28835109, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28835110, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28835111, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28835112, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28835113, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28835114, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28835115, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28835116, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28835117, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28835118, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28835119, 'pht': 3726}}"}, {'dashboat_entry_day': 2633033, 'dashboard_run_id': 2646251, 'mtr_portfolio_id': 28835683, 'dashboard_result_id': 17669396, '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_P28835683_24-11-2025_16_34_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28835691, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28835692, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28835693, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28835694, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28835695, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28835696, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28835697, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28835698, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28835699, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28835700, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28835701, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28835702, 'pht': 3726}}"}, {'dashboat_entry_day': 2633033, 'dashboard_run_id': 2646251, 'mtr_portfolio_id': 28836240, 'dashboard_result_id': 17669397, '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_P28836240_24-11-2025_18_16_33.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28836241, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28836242, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28836243, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28836244, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28836245, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28836246, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28836247, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28836248, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28836249, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28836250, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28836251, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28836252, 'pht': 3726}}"}, {'dashboat_entry_day': 2633033, 'dashboard_run_id': 2646251, 'mtr_portfolio_id': 28836846, 'dashboard_result_id': 17669398, '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_P28836846_24-11-2025_17_03_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28836853, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28836854, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28836856, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28836857, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28836858, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28836859, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28836860, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28836861, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28836862, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28836863, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28836864, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28836865, 'pht': 3726}}"}, {'dashboat_entry_day': 2633033, 'dashboard_run_id': 2646251, 'mtr_portfolio_id': 28837372, 'dashboard_result_id': 17669399, '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_P28837372_24-11-2025_17_20_57.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28837414, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28837416, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28837417, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28837418, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28837419, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28837420, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28837421, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28837422, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28837423, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28837424, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28837425, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28837426, 'pht': 3726}}"}, {'dashboat_entry_day': 2633033, 'dashboard_run_id': 2646251, 'mtr_portfolio_id': 28838100, 'dashboard_result_id': 17669400, '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_P28838100_24-11-2025_18_04_57.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28838106, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28838107, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28838108, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28838109, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28838110, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28838111, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28838112, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28838113, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28838114, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28838115, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28838116, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28838117, 'pht': 3726}}"}, {'dashboat_entry_day': 2633033, 'dashboard_run_id': 2646251, 'mtr_portfolio_id': 28839338, 'dashboard_result_id': 17669401, '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_P28839338_24-11-2025_18_19_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28839384, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28839385, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28839386, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28839387, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28839388, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28839389, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28839390, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28839391, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28839392, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28839393, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28839394, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28839395, 'pht': 3726}}"}, {'dashboat_entry_day': 2633033, 'dashboard_run_id': 2646251, 'mtr_portfolio_id': 28839840, 'dashboard_result_id': 17669402, '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_P28839840_24-11-2025_18_33_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28839850, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28839851, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28839852, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28839853, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28839854, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28839855, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28839856, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28839857, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28839858, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28839859, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28839860, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28839861, 'pht': 3726}}"}, {'dashboat_entry_day': 2633033, 'dashboard_run_id': 2646251, 'mtr_portfolio_id': 28840211, 'dashboard_result_id': 17669403, '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_P28840211_24-11-2025_18_47_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28840263, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28840264, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28840265, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28840266, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28840268, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28840270, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28840273, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28840275, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28840277, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28840279, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28840282, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28840284, 'pht': 3726}}"}, {'dashboat_entry_day': 2633033, 'dashboard_run_id': 2646251, 'mtr_portfolio_id': 28840661, 'dashboard_result_id': 17669404, '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_P28840661_24-11-2025_19_03_27.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28840671, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28840672, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28840674, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28840675, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28840676, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28840677, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28840678, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28840679, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28840680, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28840681, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28840682, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28840683, 'pht': 3726}}"}, {'dashboat_entry_day': 2633033, 'dashboard_run_id': 2646251, 'mtr_portfolio_id': 28841268, 'dashboard_result_id': 17669405, '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_P28841268_24-11-2025_19_19_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28841277, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28841278, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28841279, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28841280, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28841281, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28841282, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28841283, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28841284, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28841285, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28841286, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28841287, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28841288, 'pht': 3726}}"}, {'dashboat_entry_day': 2633033, 'dashboard_run_id': 2646251, 'mtr_portfolio_id': 28841984, 'dashboard_result_id': 17669406, '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_P28841984_24-11-2025_19_32_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28841992, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28841993, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28841994, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28841995, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28841996, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28841997, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28841998, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28841999, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28842000, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28842001, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28842002, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28842003, 'pht': 3726}}"}, {'dashboat_entry_day': 2633033, 'dashboard_run_id': 2646251, 'mtr_portfolio_id': 28842552, 'dashboard_result_id': 17669407, '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_P28842552_24-11-2025_19_49_30.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28842611, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28842612, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28842613, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28842614, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28842616, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28842617, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28842618, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28842619, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28842620, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28842621, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28842623, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28842624, 'pht': 3726}}"}, {'dashboat_entry_day': 2633033, 'dashboard_run_id': 2646251, 'mtr_portfolio_id': 28843163, 'dashboard_result_id': 17669408, '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_P28843163_24-11-2025_20_03_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28843167, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28843168, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28843169, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28843170, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28843171, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28843172, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28843173, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28843174, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28843175, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28843176, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28843177, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28843178, 'pht': 3726}}"}, {'dashboat_entry_day': 2633033, 'dashboard_run_id': 2646251, 'mtr_portfolio_id': 28843544, 'dashboard_result_id': 17669409, '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_P28843544_24-11-2025_20_17_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28843563, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28843564, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28843565, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28843566, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28843567, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28843568, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28843569, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28843570, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28843571, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28843572, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28843573, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28843574, 'pht': 3726}}"}, {'dashboat_entry_day': 2633033, 'dashboard_run_id': 2646251, 'mtr_portfolio_id': 28843912, 'dashboard_result_id': 17669410, '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_P28843912_24-11-2025_20_34_31.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28843945, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28843946, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28843947, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28843948, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28843949, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28843950, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28843951, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28843952, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28843953, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28843954, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28843955, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28843956, 'pht': 3726}}"}, {'dashboat_entry_day': 2633033, 'dashboard_run_id': 2646251, 'mtr_portfolio_id': 28844343, 'dashboard_result_id': 17669411, '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_P28844343_24-11-2025_21_08_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28844402, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28844403, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28844405, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28844406, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28844407, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28844408, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28844409, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28844410, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28844411, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28844412, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28844413, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28844414, 'pht': 3726}}"}, {'dashboat_entry_day': 2633033, 'dashboard_run_id': 2646251, 'mtr_portfolio_id': 28845557, 'dashboard_result_id': 17669412, '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_P28845557_24-11-2025_21_19_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28845631, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28845632, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28845633, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28845634, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28845635, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28845636, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28845637, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28845638, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28845639, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28845640, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28845641, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28845642, 'pht': 3726}}"}, {'dashboat_entry_day': 2633033, 'dashboard_run_id': 2646251, 'mtr_portfolio_id': 28845863, 'dashboard_result_id': 17669413, '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_P28845863_24-11-2025_21_32_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28845905, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28845906, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28845907, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28845908, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28845909, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28845910, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28845911, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28845912, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28845913, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28845914, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28845916, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28845918, 'pht': 3726}}"}, {'dashboat_entry_day': 2633033, 'dashboard_run_id': 2646251, 'mtr_portfolio_id': 28846295, 'dashboard_result_id': 17669414, '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_P28846295_24-11-2025_21_46_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28846308, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28846309, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28846310, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28846311, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28846312, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28846313, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28846314, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28846315, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28846316, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28846317, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28846318, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28846319, 'pht': 3726}}"}, {'dashboat_entry_day': 2633033, 'dashboard_run_id': 2646251, 'mtr_portfolio_id': 28846650, 'dashboard_result_id': 17669415, '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_P28846650_24-11-2025_22_03_28.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28846652, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28846653, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28846654, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28846655, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28846656, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28846657, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28846658, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28846659, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28846660, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28846661, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28846662, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28846663, 'pht': 3726}}"}, {'dashboat_entry_day': 2633033, 'dashboard_run_id': 2646251, 'mtr_portfolio_id': 28847188, 'dashboard_result_id': 17669416, '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_P28847188_24-11-2025_22_17_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28847208, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28847209, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28847210, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28847211, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28847212, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28847213, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28847214, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28847215, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28847216, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28847218, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28847219, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28847220, 'pht': 3726}}"}, {'dashboat_entry_day': 2633033, 'dashboard_run_id': 2646251, 'mtr_portfolio_id': 28847816, 'dashboard_result_id': 17669417, '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_P28847816_24-11-2025_22_35_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28847830, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28847831, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28847832, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28847833, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28847834, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28847835, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28847836, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28847837, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28847838, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28847839, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28847840, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28847841, 'pht': 3726}}"}, {'dashboat_entry_day': 2633033, 'dashboard_run_id': 2646251, 'mtr_portfolio_id': 28848498, 'dashboard_result_id': 17669418, '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_P28848498_24-11-2025_22_46_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28848553, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28848554, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28848555, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28848556, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28848557, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28848558, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28848559, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28848561, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28848562, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28848563, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28848564, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28848565, 'pht': 3726}}"}, {'dashboat_entry_day': 2633033, 'dashboard_run_id': 2646251, 'mtr_portfolio_id': 28849138, 'dashboard_result_id': 17669419, '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_P28849138_24-11-2025_23_05_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28849146, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28849147, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28849148, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28849149, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28849150, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28849151, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28849152, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28849153, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28849154, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28849155, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28849156, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28849157, 'pht': 3726}}"}, {'dashboat_entry_day': 2633033, 'dashboard_run_id': 2646251, 'mtr_portfolio_id': 28849785, 'dashboard_result_id': 17669420, '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_P28849785_24-11-2025_23_19_28.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28849794, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28849795, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28849796, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28849797, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28849798, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28849799, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28849800, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28849801, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28849802, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28849803, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28849804, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28849805, 'pht': 3726}}"}, {'dashboat_entry_day': 2633033, 'dashboard_run_id': 2646251, 'mtr_portfolio_id': 28850349, 'dashboard_result_id': 17669421, '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_P28850349_24-11-2025_23_34_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28850357, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28850358, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28850359, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28850360, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28850361, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28850362, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28850363, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28850364, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28850365, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28850366, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28850367, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28850368, 'pht': 3726}}"}, {'dashboat_entry_day': 2633033, 'dashboard_run_id': 2646251, 'mtr_portfolio_id': 28850919, 'dashboard_result_id': 17669422, '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_P28850919_24-11-2025_23_46_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28850981, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28850982, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28850983, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28850984, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28850985, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28850986, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28850987, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28850988, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28850989, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28850990, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28850991, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28850992, 'pht': 3726}}"}, {'dashboat_entry_day': 2633033, 'dashboard_run_id': 2646251, 'mtr_portfolio_id': 28851506, 'dashboard_result_id': 17669423, '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_P28851506_25-11-2025_01_21_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28851520, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28851521, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28851522, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28851523, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28851524, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28851525, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28851526, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28851527, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28851528, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28851529, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28851530, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28851531, '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 = 28823447 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': 4108844, 'mtr_portfolio_id': 28823447, 'created_at': datetime.datetime(2025, 11, 25, 5, 34, 27), 'result': '0.054622138316604556', 'result_long': None, 'result_double': None}] Qualite : 0.054622138316604556 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28823447 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28823447_25-11-2025_05_34_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28823447 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_P28823447_25-11-2025_05_34_29.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28823450, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28823451, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28823452, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28823453, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28823454, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28823455, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28823456, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28823457, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28823458, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28823459, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28823460, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28823461, 'pht': 3726}}" where mtr_portfolio_id = 28823447 and dashboard_run_id = 2646251 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`=28823447 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17669372, 0.054622138316604556, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28823447_25-11-2025_05_34_29.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28823450, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28823451, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28823452, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28823453, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28823454, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28823455, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28823456, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28823457, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28823458, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28823459, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28823460, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28823461, '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 = 28823600 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': 4108845, 'mtr_portfolio_id': 28823600, 'created_at': datetime.datetime(2025, 11, 25, 5, 34, 33), 'result': '0.059562347261383514', 'result_long': None, 'result_double': None}] Qualite : 0.059562347261383514 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28823600 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28823600_25-11-2025_05_34_35.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28823600 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_P28823600_25-11-2025_05_34_35.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28823604, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28823605, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28823606, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28823607, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28823608, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28823609, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28823610, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28823611, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28823612, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28823613, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28823614, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28823615, 'pht': 3726}}" where mtr_portfolio_id = 28823600 and dashboard_run_id = 2646251 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`=28823600 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17669373, 0.059562347261383514, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28823600_25-11-2025_05_34_35.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28823604, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28823605, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28823606, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28823607, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28823608, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28823609, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28823610, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28823611, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28823612, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28823613, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28823614, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28823615, '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 = 28823956 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': 4108846, 'mtr_portfolio_id': 28823956, 'created_at': datetime.datetime(2025, 11, 25, 5, 35, 30), 'result': '0.07215294282977949', 'result_long': None, 'result_double': None}] Qualite : 0.07215294282977949 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28823956 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28823956_25-11-2025_05_35_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28823956 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_P28823956_25-11-2025_05_35_31.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28823960, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28823961, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28823962, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28823963, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28823964, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28823965, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28823966, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28823967, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28823968, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28823969, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28823970, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28823971, 'pht': 3726}}" where mtr_portfolio_id = 28823956 and dashboard_run_id = 2646251 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`=28823956 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17669374, 0.07215294282977949, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28823956_25-11-2025_05_35_31.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28823960, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28823961, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28823962, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28823963, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28823964, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28823965, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28823966, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28823967, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28823968, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28823969, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28823970, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28823971, '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 = 28825204 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': 4108847, 'mtr_portfolio_id': 28825204, 'created_at': datetime.datetime(2025, 11, 25, 5, 36), 'result': '0.07459518556544696', 'result_long': None, 'result_double': None}] Qualite : 0.07459518556544696 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28825204 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28825204_25-11-2025_05_36_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28825204 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_P28825204_25-11-2025_05_36_02.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28825206, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28825207, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28825208, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28825209, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28825210, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28825211, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28825212, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28825213, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28825214, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28825215, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28825216, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28825217, 'pht': 3726}}" where mtr_portfolio_id = 28825204 and dashboard_run_id = 2646251 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`=28825204 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17669375, 0.07459518556544696, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28825204_25-11-2025_05_36_02.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28825206, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28825207, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28825208, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28825209, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28825210, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28825211, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28825212, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28825213, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28825214, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28825215, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28825216, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28825217, '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 = 28825393 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': 4108848, 'mtr_portfolio_id': 28825393, 'created_at': datetime.datetime(2025, 11, 25, 5, 36, 8), 'result': '0.04499909227281794', 'result_long': None, 'result_double': None}] Qualite : 0.04499909227281794 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28825393 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28825393_25-11-2025_05_36_12.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28825393 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_P28825393_25-11-2025_05_36_12.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28825400, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28825401, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28825402, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28825403, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28825404, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28825405, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28825406, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28825407, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28825408, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28825409, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28825410, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28825411, 'pht': 3726}}" where mtr_portfolio_id = 28825393 and dashboard_run_id = 2646251 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`=28825393 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17669376, 0.04499909227281794, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28825393_25-11-2025_05_36_12.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28825400, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28825401, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28825402, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28825403, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28825404, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28825405, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28825406, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28825407, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28825408, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28825409, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28825410, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28825411, '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 = 28825711 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': 4108849, 'mtr_portfolio_id': 28825711, 'created_at': datetime.datetime(2025, 11, 25, 5, 36, 29), 'result': '0.07615859244054227', 'result_long': None, 'result_double': None}] Qualite : 0.07615859244054227 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28825711 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28825711_25-11-2025_05_36_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28825711 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_P28825711_25-11-2025_05_36_30.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28825720, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28825721, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28825722, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28825723, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28825724, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28825725, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28825726, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28825727, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28825728, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28825729, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28825730, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28825731, 'pht': 3726}}" where mtr_portfolio_id = 28825711 and dashboard_run_id = 2646251 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`=28825711 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17669377, 0.07615859244054227, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28825711_25-11-2025_05_36_30.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28825720, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28825721, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28825722, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28825723, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28825724, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28825725, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28825726, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28825727, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28825728, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28825729, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28825730, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28825731, '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 = 28826020 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': 4108850, 'mtr_portfolio_id': 28826020, 'created_at': datetime.datetime(2025, 11, 25, 5, 37, 30), 'result': '0.05774472994532184', 'result_long': None, 'result_double': None}] Qualite : 0.05774472994532184 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28826020 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28826020_25-11-2025_05_37_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28826020 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_P28826020_25-11-2025_05_37_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28826024, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28826025, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28826026, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28826027, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28826028, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28826029, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28826030, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28826031, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28826032, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28826033, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28826034, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28826035, 'pht': 3726}}" where mtr_portfolio_id = 28826020 and dashboard_run_id = 2646251 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`=28826020 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17669378, 0.05774472994532184, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28826020_25-11-2025_05_37_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28826024, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28826025, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28826026, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28826027, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28826028, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28826029, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28826030, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28826031, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28826032, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28826033, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28826034, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28826035, '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 = 28826207 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': 4108851, 'mtr_portfolio_id': 28826207, 'created_at': datetime.datetime(2025, 11, 25, 5, 37, 59), 'result': '0.0939617147965304', 'result_long': None, 'result_double': None}] Qualite : 0.0939617147965304 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28826207 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28826207_25-11-2025_05_38_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28826207 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_P28826207_25-11-2025_05_38_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28826216, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28826217, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28826218, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28826219, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28826220, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28826221, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28826222, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28826223, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28826224, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28826225, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28826226, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28826227, 'pht': 3726}}" where mtr_portfolio_id = 28826207 and dashboard_run_id = 2646251 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`=28826207 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17669379, 0.0939617147965304, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28826207_25-11-2025_05_38_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28826216, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28826217, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28826218, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28826219, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28826220, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28826221, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28826222, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28826223, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28826224, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28826225, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28826226, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28826227, '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 = 28826578 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': 4108852, 'mtr_portfolio_id': 28826578, 'created_at': datetime.datetime(2025, 11, 25, 5, 38, 27), 'result': '0.06992438934516682', 'result_long': None, 'result_double': None}] Qualite : 0.06992438934516682 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28826578 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28826578_25-11-2025_05_38_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28826578 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_P28826578_25-11-2025_05_38_30.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28826588, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28826589, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28826590, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28826591, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28826592, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28826593, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28826594, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28826595, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28826596, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28826597, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28826598, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28826599, 'pht': 3726}}" where mtr_portfolio_id = 28826578 and dashboard_run_id = 2646251 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`=28826578 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17669380, 0.06992438934516682, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28826578_25-11-2025_05_38_30.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28826588, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28826589, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28826590, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28826591, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28826592, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28826593, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28826594, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28826595, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28826596, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28826597, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28826598, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28826599, '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 = 28827082 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': 4108853, 'mtr_portfolio_id': 28827082, 'created_at': datetime.datetime(2025, 11, 25, 5, 39, 30), 'result': '0.060521343324973415', 'result_long': None, 'result_double': None}] Qualite : 0.060521343324973415 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28827082 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28827082_25-11-2025_05_39_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28827082 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_P28827082_25-11-2025_05_39_31.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28827096, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28827097, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28827098, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28827099, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28827100, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28827101, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28827102, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28827103, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28827104, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28827105, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28827107, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28827108, 'pht': 3726}}" where mtr_portfolio_id = 28827082 and dashboard_run_id = 2646251 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`=28827082 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17669381, 0.060521343324973415, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28827082_25-11-2025_05_39_31.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28827096, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28827097, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28827098, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28827099, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28827100, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28827101, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28827102, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28827103, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28827104, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28827105, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28827107, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28827108, '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 = 28827671 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': 4108854, 'mtr_portfolio_id': 28827671, 'created_at': datetime.datetime(2025, 11, 25, 5, 40, 1), 'result': '0.04705574579450523', 'result_long': None, 'result_double': None}] Qualite : 0.04705574579450523 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28827671 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28827671_25-11-2025_05_40_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28827671 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_P28827671_25-11-2025_05_40_03.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28827675, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28827676, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28827677, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28827678, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28827679, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28827680, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28827681, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28827682, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28827683, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28827684, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28827685, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28827686, 'pht': 3726}}" where mtr_portfolio_id = 28827671 and dashboard_run_id = 2646251 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`=28827671 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17669382, 0.04705574579450523, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28827671_25-11-2025_05_40_03.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28827675, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28827676, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28827677, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28827678, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28827679, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28827680, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28827681, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28827682, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28827683, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28827684, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28827685, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28827686, '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 = 28827962 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': 4108855, 'mtr_portfolio_id': 28827962, 'created_at': datetime.datetime(2025, 11, 25, 5, 40, 28), 'result': '0.043957192816656915', 'result_long': None, 'result_double': None}] Qualite : 0.043957192816656915 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28827962 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28827962_25-11-2025_05_40_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28827962 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_P28827962_25-11-2025_05_40_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28827995, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28827996, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28827997, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28827998, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28827999, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28828000, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28828001, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28828002, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28828003, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28828004, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28828005, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28828006, 'pht': 3726}}" where mtr_portfolio_id = 28827962 and dashboard_run_id = 2646251 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`=28827962 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17669383, 0.043957192816656915, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28827962_25-11-2025_05_40_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28827995, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28827996, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28827997, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28827998, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28827999, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28828000, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28828001, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28828002, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28828003, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28828004, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28828005, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28828006, '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 = 28828365 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': 4108856, 'mtr_portfolio_id': 28828365, 'created_at': datetime.datetime(2025, 11, 25, 5, 41, 13), 'result': '0.056186491225553754', 'result_long': None, 'result_double': None}] Qualite : 0.056186491225553754 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28828365 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28828365_25-11-2025_05_41_15.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28828365 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_P28828365_25-11-2025_05_41_15.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28828394, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28828395, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28828396, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28828397, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28828398, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28828399, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28828400, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28828401, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28828402, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28828403, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28828404, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28828405, 'pht': 3726}}" where mtr_portfolio_id = 28828365 and dashboard_run_id = 2646251 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`=28828365 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17669384, 0.056186491225553754, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28828365_25-11-2025_05_41_15.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28828394, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28828395, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28828396, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28828397, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28828398, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28828399, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28828400, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28828401, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28828402, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28828403, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28828404, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28828405, '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 = 28830584 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': 4108857, 'mtr_portfolio_id': 28830584, 'created_at': datetime.datetime(2025, 11, 25, 5, 41, 29), 'result': '0.05647567872264809', 'result_long': None, 'result_double': None}] Qualite : 0.05647567872264809 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28830584 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28830584_25-11-2025_05_41_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28830584 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_P28830584_25-11-2025_05_41_30.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28830586, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28830587, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28830588, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28830589, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28830590, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28830591, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28830592, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28830593, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28830594, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28830595, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28830596, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28830597, 'pht': 3726}}" where mtr_portfolio_id = 28830584 and dashboard_run_id = 2646251 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`=28830584 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17669385, 0.05647567872264809, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28830584_25-11-2025_05_41_30.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28830586, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28830587, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28830588, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28830589, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28830590, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28830591, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28830592, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28830593, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28830594, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28830595, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28830596, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28830597, '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 = 28830869 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': 4102757, 'mtr_portfolio_id': 28830869, 'created_at': datetime.datetime(2025, 11, 24, 14, 2, 58), 'result': '0.049333676127340666', 'result_long': None, 'result_double': None}] Qualite : 0.049333676127340666 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28830869 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28830869_24-11-2025_14_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28830869 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_P28830869_24-11-2025_14_02_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28830874, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28830875, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28830876, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28830877, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28830878, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28830879, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28830880, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28830881, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28830882, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28830883, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28830884, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28830885, 'pht': 3726}}" where mtr_portfolio_id = 28830869 and dashboard_run_id = 2646251 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`=28830869 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17669386, 0.049333676127340666, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28830869_24-11-2025_14_02_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28830874, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28830875, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28830876, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28830877, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28830878, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28830879, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28830880, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28830881, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28830882, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28830883, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28830884, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28830885, '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 = 28831317 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': 4102808, 'mtr_portfolio_id': 28831317, 'created_at': datetime.datetime(2025, 11, 24, 14, 19, 1), 'result': '0.04816913926843451', 'result_long': None, 'result_double': None}] Qualite : 0.04816913926843451 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28831317 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28831317_24-11-2025_14_19_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28831317 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_P28831317_24-11-2025_14_19_02.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28831340, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28831341, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28831342, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28831343, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28831344, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28831345, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28831346, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28831347, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28831348, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28831349, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28831350, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28831351, 'pht': 3726}}" where mtr_portfolio_id = 28831317 and dashboard_run_id = 2646251 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`=28831317 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17669387, 0.04816913926843451, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28831317_24-11-2025_14_19_02.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28831340, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28831341, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28831342, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28831343, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28831344, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28831345, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28831346, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28831347, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28831348, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28831349, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28831350, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28831351, '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 = 28831841 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': 4102845, 'mtr_portfolio_id': 28831841, 'created_at': datetime.datetime(2025, 11, 24, 14, 33), 'result': '0.05701339595500936', 'result_long': None, 'result_double': None}] Qualite : 0.05701339595500936 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28831841 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28831841_24-11-2025_14_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28831841 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_P28831841_24-11-2025_14_33_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28831844, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28831845, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28831846, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28831847, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28831848, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28831849, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28831850, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28831851, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28831852, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28831853, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28831854, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28831855, 'pht': 3726}}" where mtr_portfolio_id = 28831841 and dashboard_run_id = 2646251 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`=28831841 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17669388, 0.05701339595500936, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28831841_24-11-2025_14_33_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28831844, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28831845, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28831846, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28831847, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28831848, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28831849, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28831850, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28831851, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28831852, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28831853, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28831854, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28831855, '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 = 28832046 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': 4102911, 'mtr_portfolio_id': 28832046, 'created_at': datetime.datetime(2025, 11, 24, 14, 48, 58), 'result': '0.04709824444554949', 'result_long': None, 'result_double': None}] Qualite : 0.04709824444554949 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28832046 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28832046_24-11-2025_14_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28832046 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_P28832046_24-11-2025_14_48_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28832081, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28832082, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28832083, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28832084, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28832085, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28832086, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28832087, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28832088, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28832089, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28832090, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28832091, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28832092, 'pht': 3726}}" where mtr_portfolio_id = 28832046 and dashboard_run_id = 2646251 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`=28832046 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17669389, 0.04709824444554949, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28832046_24-11-2025_14_48_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28832081, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28832082, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28832083, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28832084, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28832085, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28832086, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28832087, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28832088, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28832089, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28832090, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28832091, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28832092, '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 = 28832550 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': 4103035, 'mtr_portfolio_id': 28832550, 'created_at': datetime.datetime(2025, 11, 24, 15, 3, 2), 'result': '0.03702070243518558', 'result_long': None, 'result_double': None}] Qualite : 0.03702070243518558 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28832550 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28832550_24-11-2025_15_03_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28832550 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_P28832550_24-11-2025_15_03_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28832559, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28832560, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28832561, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28832562, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28832563, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28832564, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28832565, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28832566, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28832567, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28832568, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28832569, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28832570, 'pht': 3726}}" where mtr_portfolio_id = 28832550 and dashboard_run_id = 2646251 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`=28832550 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17669390, 0.03702070243518558, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28832550_24-11-2025_15_03_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28832559, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28832560, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28832561, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28832562, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28832563, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28832564, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28832565, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28832566, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28832567, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28832568, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28832569, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28832570, '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 = 28832985 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': 4103188, 'mtr_portfolio_id': 28832985, 'created_at': datetime.datetime(2025, 11, 24, 15, 18, 29), 'result': '0.03253772444047452', 'result_long': None, 'result_double': None}] Qualite : 0.03253772444047452 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28832985 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28832985_24-11-2025_15_18_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28832985 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_P28832985_24-11-2025_15_18_29.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28833015, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28833016, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28833017, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28833018, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28833019, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28833020, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28833021, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28833022, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28833023, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28833024, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28833025, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28833026, 'pht': 3726}}" where mtr_portfolio_id = 28832985 and dashboard_run_id = 2646251 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`=28832985 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17669391, 0.03253772444047452, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28832985_24-11-2025_15_18_29.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28833015, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28833016, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28833017, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28833018, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28833019, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28833020, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28833021, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28833022, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28833023, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28833024, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28833025, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28833026, '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 = 28833546 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': 4103336, 'mtr_portfolio_id': 28833546, 'created_at': datetime.datetime(2025, 11, 24, 15, 32, 59), 'result': '0.025474262737967216', 'result_long': None, 'result_double': None}] Qualite : 0.025474262737967216 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28833546 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28833546_24-11-2025_15_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28833546 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_P28833546_24-11-2025_15_32_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28833554, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28833555, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28833556, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28833557, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28833558, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28833559, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28833560, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28833561, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28833562, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28833563, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28833564, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28833565, 'pht': 3726}}" where mtr_portfolio_id = 28833546 and dashboard_run_id = 2646251 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`=28833546 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17669392, 0.025474262737967216, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28833546_24-11-2025_15_32_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28833554, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28833555, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28833556, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28833557, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28833558, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28833559, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28833560, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28833561, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28833562, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28833563, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28833564, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28833565, '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 = 28834015 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': 4103522, 'mtr_portfolio_id': 28834015, 'created_at': datetime.datetime(2025, 11, 24, 15, 54, 58), 'result': '0.04761845636238713', 'result_long': None, 'result_double': None}] Qualite : 0.04761845636238713 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28834015 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28834015_24-11-2025_15_54_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28834015 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_P28834015_24-11-2025_15_54_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28834038, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28834039, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28834040, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28834041, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28834042, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28834043, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28834044, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28834045, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28834046, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28834047, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28834048, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28834049, 'pht': 3726}}" where mtr_portfolio_id = 28834015 and dashboard_run_id = 2646251 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`=28834015 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17669393, 0.04761845636238713, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28834015_24-11-2025_15_54_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28834038, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28834039, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28834040, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28834041, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28834042, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28834043, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28834044, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28834045, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28834046, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28834047, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28834048, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28834049, '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 = 28834841 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': 4103769, 'mtr_portfolio_id': 28834841, 'created_at': datetime.datetime(2025, 11, 24, 16, 2, 58), 'result': '0.03445635190068865', 'result_long': None, 'result_double': None}] Qualite : 0.03445635190068865 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28834841 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28834841_24-11-2025_16_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28834841 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_P28834841_24-11-2025_16_03_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28834843, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28834844, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28834845, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28834846, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28834847, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28834848, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28834849, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28834850, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28834851, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28834852, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28834853, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28834854, 'pht': 3726}}" where mtr_portfolio_id = 28834841 and dashboard_run_id = 2646251 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`=28834841 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17669394, 0.03445635190068865, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28834841_24-11-2025_16_03_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28834843, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28834844, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28834845, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28834846, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28834847, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28834848, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28834849, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28834850, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28834851, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28834852, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28834853, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28834854, '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 = 28835029 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': 4103814, 'mtr_portfolio_id': 28835029, 'created_at': datetime.datetime(2025, 11, 24, 16, 18, 39), 'result': '0.04776529310921624', 'result_long': None, 'result_double': None}] Qualite : 0.04776529310921624 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28835029 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28835029_24-11-2025_16_18_39.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28835029 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_P28835029_24-11-2025_16_18_39.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28835108, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28835109, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28835110, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28835111, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28835112, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28835113, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28835114, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28835115, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28835116, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28835117, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28835118, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28835119, 'pht': 3726}}" where mtr_portfolio_id = 28835029 and dashboard_run_id = 2646251 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`=28835029 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17669395, 0.04776529310921624, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28835029_24-11-2025_16_18_39.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28835108, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28835109, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28835110, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28835111, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28835112, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28835113, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28835114, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28835115, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28835116, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28835117, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28835118, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28835119, '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 = 28835683 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': 4103902, 'mtr_portfolio_id': 28835683, 'created_at': datetime.datetime(2025, 11, 24, 16, 34, 29), 'result': '0.05020117250630874', 'result_long': None, 'result_double': None}] Qualite : 0.05020117250630874 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28835683 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28835683_24-11-2025_16_34_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28835683 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_P28835683_24-11-2025_16_34_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28835691, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28835692, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28835693, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28835694, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28835695, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28835696, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28835697, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28835698, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28835699, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28835700, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28835701, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28835702, 'pht': 3726}}" where mtr_portfolio_id = 28835683 and dashboard_run_id = 2646251 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`=28835683 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17669396, 0.05020117250630874, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28835683_24-11-2025_16_34_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28835691, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28835692, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28835693, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28835694, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28835695, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28835696, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28835697, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28835698, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28835699, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28835700, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28835701, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28835702, '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 = 28836240 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': 4103969, 'mtr_portfolio_id': 28836240, 'created_at': datetime.datetime(2025, 11, 24, 18, 16, 32), 'result': '0.047670323756143045', 'result_long': None, 'result_double': None}] Qualite : 0.047670323756143045 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28836240 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28836240_24-11-2025_18_16_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28836240 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_P28836240_24-11-2025_18_16_33.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28836241, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28836242, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28836243, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28836244, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28836245, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28836246, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28836247, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28836248, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28836249, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28836250, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28836251, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28836252, 'pht': 3726}}" where mtr_portfolio_id = 28836240 and dashboard_run_id = 2646251 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`=28836240 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17669397, 0.047670323756143045, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28836240_24-11-2025_18_16_33.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28836241, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28836242, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28836243, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28836244, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28836245, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28836246, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28836247, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28836248, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28836249, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28836250, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28836251, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28836252, '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 = 28836846 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': 4104034, 'mtr_portfolio_id': 28836846, 'created_at': datetime.datetime(2025, 11, 24, 17, 2, 59), 'result': '0.028912001954465825', 'result_long': None, 'result_double': None}] Qualite : 0.028912001954465825 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28836846 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28836846_24-11-2025_17_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28836846 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_P28836846_24-11-2025_17_03_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28836853, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28836854, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28836856, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28836857, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28836858, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28836859, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28836860, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28836861, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28836862, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28836863, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28836864, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28836865, 'pht': 3726}}" where mtr_portfolio_id = 28836846 and dashboard_run_id = 2646251 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`=28836846 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17669398, 0.028912001954465825, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28836846_24-11-2025_17_03_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28836853, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28836854, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28836856, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28836857, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28836858, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28836859, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28836860, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28836861, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28836862, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28836863, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28836864, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28836865, '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 = 28837372 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': 4104147, 'mtr_portfolio_id': 28837372, 'created_at': datetime.datetime(2025, 11, 24, 17, 20, 56), 'result': '0.04825390373824168', 'result_long': None, 'result_double': None}] Qualite : 0.04825390373824168 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28837372 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28837372_24-11-2025_17_20_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28837372 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_P28837372_24-11-2025_17_20_57.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28837414, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28837416, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28837417, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28837418, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28837419, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28837420, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28837421, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28837422, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28837423, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28837424, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28837425, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28837426, 'pht': 3726}}" where mtr_portfolio_id = 28837372 and dashboard_run_id = 2646251 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`=28837372 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17669399, 0.04825390373824168, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28837372_24-11-2025_17_20_57.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28837414, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28837416, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28837417, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28837418, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28837419, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28837420, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28837421, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28837422, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28837423, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28837424, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28837425, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28837426, '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 = 28838100 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': 4104223, 'mtr_portfolio_id': 28838100, 'created_at': datetime.datetime(2025, 11, 24, 18, 4, 57), 'result': '0.045261918920253844', 'result_long': None, 'result_double': None}] Qualite : 0.045261918920253844 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28838100 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28838100_24-11-2025_18_04_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28838100 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_P28838100_24-11-2025_18_04_57.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28838106, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28838107, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28838108, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28838109, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28838110, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28838111, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28838112, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28838113, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28838114, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28838115, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28838116, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28838117, 'pht': 3726}}" where mtr_portfolio_id = 28838100 and dashboard_run_id = 2646251 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`=28838100 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17669400, 0.045261918920253844, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28838100_24-11-2025_18_04_57.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28838106, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28838107, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28838108, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28838109, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28838110, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28838111, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28838112, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28838113, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28838114, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28838115, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28838116, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28838117, '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 = 28839338 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': 4104474, 'mtr_portfolio_id': 28839338, 'created_at': datetime.datetime(2025, 11, 24, 18, 19), 'result': '0.04402078522507697', 'result_long': None, 'result_double': None}] Qualite : 0.04402078522507697 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28839338 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28839338_24-11-2025_18_19_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28839338 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_P28839338_24-11-2025_18_19_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28839384, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28839385, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28839386, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28839387, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28839388, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28839389, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28839390, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28839391, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28839392, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28839393, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28839394, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28839395, 'pht': 3726}}" where mtr_portfolio_id = 28839338 and dashboard_run_id = 2646251 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`=28839338 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17669401, 0.04402078522507697, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28839338_24-11-2025_18_19_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28839384, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28839385, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28839386, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28839387, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28839388, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28839389, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28839390, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28839391, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28839392, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28839393, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28839394, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28839395, '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 = 28839840 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': 4104552, 'mtr_portfolio_id': 28839840, 'created_at': datetime.datetime(2025, 11, 24, 18, 33), 'result': '0.037010643348241244', 'result_long': None, 'result_double': None}] Qualite : 0.037010643348241244 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28839840 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28839840_24-11-2025_18_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28839840 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_P28839840_24-11-2025_18_33_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28839850, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28839851, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28839852, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28839853, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28839854, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28839855, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28839856, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28839857, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28839858, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28839859, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28839860, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28839861, 'pht': 3726}}" where mtr_portfolio_id = 28839840 and dashboard_run_id = 2646251 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`=28839840 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17669402, 0.037010643348241244, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28839840_24-11-2025_18_33_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28839850, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28839851, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28839852, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28839853, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28839854, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28839855, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28839856, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28839857, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28839858, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28839859, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28839860, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28839861, '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 = 28840211 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': 4104624, 'mtr_portfolio_id': 28840211, 'created_at': datetime.datetime(2025, 11, 24, 18, 46, 59), 'result': '0.03681832190157497', 'result_long': None, 'result_double': None}] Qualite : 0.03681832190157497 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28840211 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28840211_24-11-2025_18_47_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28840211 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_P28840211_24-11-2025_18_47_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28840263, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28840264, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28840265, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28840266, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28840268, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28840270, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28840273, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28840275, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28840277, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28840279, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28840282, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28840284, 'pht': 3726}}" where mtr_portfolio_id = 28840211 and dashboard_run_id = 2646251 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`=28840211 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17669403, 0.03681832190157497, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28840211_24-11-2025_18_47_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28840263, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28840264, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28840265, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28840266, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28840268, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28840270, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28840273, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28840275, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28840277, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28840279, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28840282, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28840284, '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 = 28840661 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': 4104692, 'mtr_portfolio_id': 28840661, 'created_at': datetime.datetime(2025, 11, 24, 19, 3, 26), 'result': '0.058840378219198256', 'result_long': None, 'result_double': None}] Qualite : 0.058840378219198256 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28840661 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28840661_24-11-2025_19_03_27.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28840661 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_P28840661_24-11-2025_19_03_27.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28840671, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28840672, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28840674, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28840675, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28840676, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28840677, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28840678, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28840679, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28840680, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28840681, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28840682, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28840683, 'pht': 3726}}" where mtr_portfolio_id = 28840661 and dashboard_run_id = 2646251 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`=28840661 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17669404, 0.058840378219198256, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28840661_24-11-2025_19_03_27.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28840671, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28840672, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28840674, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28840675, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28840676, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28840677, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28840678, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28840679, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28840680, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28840681, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28840682, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28840683, '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 = 28841268 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': 4104808, 'mtr_portfolio_id': 28841268, 'created_at': datetime.datetime(2025, 11, 24, 19, 19), 'result': '0.04816541738351743', 'result_long': None, 'result_double': None}] Qualite : 0.04816541738351743 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28841268 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28841268_24-11-2025_19_19_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28841268 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_P28841268_24-11-2025_19_19_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28841277, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28841278, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28841279, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28841280, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28841281, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28841282, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28841283, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28841284, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28841285, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28841286, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28841287, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28841288, 'pht': 3726}}" where mtr_portfolio_id = 28841268 and dashboard_run_id = 2646251 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`=28841268 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17669405, 0.04816541738351743, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28841268_24-11-2025_19_19_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28841277, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28841278, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28841279, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28841280, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28841281, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28841282, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28841283, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28841284, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28841285, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28841286, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28841287, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28841288, '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 = 28841984 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': 4104893, 'mtr_portfolio_id': 28841984, 'created_at': datetime.datetime(2025, 11, 24, 19, 32, 57), 'result': '0.043427659229563306', 'result_long': None, 'result_double': None}] Qualite : 0.043427659229563306 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28841984 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28841984_24-11-2025_19_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28841984 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_P28841984_24-11-2025_19_32_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28841992, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28841993, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28841994, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28841995, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28841996, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28841997, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28841998, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28841999, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28842000, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28842001, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28842002, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28842003, 'pht': 3726}}" where mtr_portfolio_id = 28841984 and dashboard_run_id = 2646251 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`=28841984 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17669406, 0.043427659229563306, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28841984_24-11-2025_19_32_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28841992, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28841993, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28841994, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28841995, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28841996, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28841997, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28841998, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28841999, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28842000, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28842001, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28842002, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28842003, '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 = 28842552 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': 4104988, 'mtr_portfolio_id': 28842552, 'created_at': datetime.datetime(2025, 11, 24, 19, 49, 30), 'result': '0.04374377065421049', 'result_long': None, 'result_double': None}] Qualite : 0.04374377065421049 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28842552 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28842552_24-11-2025_19_49_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28842552 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_P28842552_24-11-2025_19_49_30.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28842611, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28842612, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28842613, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28842614, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28842616, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28842617, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28842618, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28842619, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28842620, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28842621, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28842623, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28842624, 'pht': 3726}}" where mtr_portfolio_id = 28842552 and dashboard_run_id = 2646251 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`=28842552 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17669407, 0.04374377065421049, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28842552_24-11-2025_19_49_30.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28842611, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28842612, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28842613, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28842614, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28842616, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28842617, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28842618, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28842619, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28842620, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28842621, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28842623, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28842624, '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 = 28843163 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': 4105089, 'mtr_portfolio_id': 28843163, 'created_at': datetime.datetime(2025, 11, 24, 20, 3), 'result': '0.04335175842895763', 'result_long': None, 'result_double': None}] Qualite : 0.04335175842895763 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28843163 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28843163_24-11-2025_20_03_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28843163 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_P28843163_24-11-2025_20_03_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28843167, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28843168, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28843169, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28843170, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28843171, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28843172, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28843173, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28843174, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28843175, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28843176, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28843177, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28843178, 'pht': 3726}}" where mtr_portfolio_id = 28843163 and dashboard_run_id = 2646251 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`=28843163 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17669408, 0.04335175842895763, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28843163_24-11-2025_20_03_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28843167, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28843168, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28843169, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28843170, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28843171, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28843172, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28843173, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28843174, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28843175, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28843176, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28843177, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28843178, '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 = 28843544 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': 4105173, 'mtr_portfolio_id': 28843544, 'created_at': datetime.datetime(2025, 11, 24, 20, 16, 59), 'result': '0.011585027465518101', 'result_long': None, 'result_double': None}] Qualite : 0.011585027465518101 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28843544 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28843544_24-11-2025_20_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28843544 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_P28843544_24-11-2025_20_17_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28843563, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28843564, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28843565, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28843566, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28843567, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28843568, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28843569, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28843570, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28843571, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28843572, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28843573, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28843574, 'pht': 3726}}" where mtr_portfolio_id = 28843544 and dashboard_run_id = 2646251 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`=28843544 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17669409, 0.011585027465518101, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28843544_24-11-2025_20_17_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28843563, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28843564, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28843565, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28843566, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28843567, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28843568, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28843569, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28843570, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28843571, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28843572, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28843573, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28843574, '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 = 28843912 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': 4105287, 'mtr_portfolio_id': 28843912, 'created_at': datetime.datetime(2025, 11, 24, 20, 34, 30), 'result': '0.03389100384552452', 'result_long': None, 'result_double': None}] Qualite : 0.03389100384552452 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28843912 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28843912_24-11-2025_20_34_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28843912 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_P28843912_24-11-2025_20_34_31.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28843945, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28843946, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28843947, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28843948, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28843949, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28843950, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28843951, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28843952, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28843953, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28843954, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28843955, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28843956, 'pht': 3726}}" where mtr_portfolio_id = 28843912 and dashboard_run_id = 2646251 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`=28843912 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17669410, 0.03389100384552452, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28843912_24-11-2025_20_34_31.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28843945, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28843946, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28843947, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28843948, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28843949, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28843950, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28843951, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28843952, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28843953, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28843954, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28843955, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28843956, '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 = 28844343 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': 4105449, 'mtr_portfolio_id': 28844343, 'created_at': datetime.datetime(2025, 11, 24, 21, 8, 31), 'result': '0.050097689359876456', 'result_long': None, 'result_double': None}] Qualite : 0.050097689359876456 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28844343 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28844343_24-11-2025_21_08_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28844343 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_P28844343_24-11-2025_21_08_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28844402, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28844403, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28844405, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28844406, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28844407, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28844408, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28844409, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28844410, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28844411, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28844412, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28844413, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28844414, 'pht': 3726}}" where mtr_portfolio_id = 28844343 and dashboard_run_id = 2646251 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`=28844343 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17669411, 0.050097689359876456, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28844343_24-11-2025_21_08_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28844402, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28844403, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28844405, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28844406, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28844407, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28844408, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28844409, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28844410, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28844411, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28844412, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28844413, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28844414, '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 = 28845557 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': 4105837, 'mtr_portfolio_id': 28845557, 'created_at': datetime.datetime(2025, 11, 24, 21, 19, 2), 'result': '0.04528079863595628', 'result_long': None, 'result_double': None}] Qualite : 0.04528079863595628 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28845557 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28845557_24-11-2025_21_19_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28845557 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_P28845557_24-11-2025_21_19_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28845631, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28845632, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28845633, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28845634, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28845635, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28845636, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28845637, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28845638, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28845639, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28845640, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28845641, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28845642, 'pht': 3726}}" where mtr_portfolio_id = 28845557 and dashboard_run_id = 2646251 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`=28845557 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17669412, 0.04528079863595628, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28845557_24-11-2025_21_19_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28845631, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28845632, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28845633, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28845634, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28845635, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28845636, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28845637, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28845638, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28845639, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28845640, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28845641, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28845642, '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 = 28845863 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': 4105865, 'mtr_portfolio_id': 28845863, 'created_at': datetime.datetime(2025, 11, 24, 21, 32, 58), 'result': '0.02450834473754386', 'result_long': None, 'result_double': None}] Qualite : 0.02450834473754386 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28845863 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28845863_24-11-2025_21_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28845863 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_P28845863_24-11-2025_21_32_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28845905, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28845906, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28845907, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28845908, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28845909, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28845910, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28845911, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28845912, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28845913, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28845914, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28845916, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28845918, 'pht': 3726}}" where mtr_portfolio_id = 28845863 and dashboard_run_id = 2646251 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`=28845863 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17669413, 0.02450834473754386, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28845863_24-11-2025_21_32_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28845905, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28845906, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28845907, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28845908, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28845909, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28845910, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28845911, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28845912, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28845913, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28845914, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28845916, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28845918, '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 = 28846295 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': 4105943, 'mtr_portfolio_id': 28846295, 'created_at': datetime.datetime(2025, 11, 24, 21, 46, 59), 'result': '0.06018950766956095', 'result_long': None, 'result_double': None}] Qualite : 0.06018950766956095 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28846295 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28846295_24-11-2025_21_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28846295 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_P28846295_24-11-2025_21_46_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28846308, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28846309, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28846310, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28846311, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28846312, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28846313, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28846314, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28846315, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28846316, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28846317, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28846318, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28846319, 'pht': 3726}}" where mtr_portfolio_id = 28846295 and dashboard_run_id = 2646251 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`=28846295 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17669414, 0.06018950766956095, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28846295_24-11-2025_21_46_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28846308, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28846309, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28846310, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28846311, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28846312, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28846313, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28846314, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28846315, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28846316, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28846317, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28846318, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28846319, '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 = 28846650 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': 4106030, 'mtr_portfolio_id': 28846650, 'created_at': datetime.datetime(2025, 11, 24, 22, 3, 27), 'result': '0.06726125512678462', 'result_long': None, 'result_double': None}] Qualite : 0.06726125512678462 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28846650 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28846650_24-11-2025_22_03_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28846650 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_P28846650_24-11-2025_22_03_28.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28846652, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28846653, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28846654, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28846655, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28846656, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28846657, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28846658, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28846659, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28846660, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28846661, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28846662, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28846663, 'pht': 3726}}" where mtr_portfolio_id = 28846650 and dashboard_run_id = 2646251 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`=28846650 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17669415, 0.06726125512678462, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28846650_24-11-2025_22_03_28.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28846652, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28846653, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28846654, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28846655, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28846656, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28846657, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28846658, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28846659, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28846660, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28846661, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28846662, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28846663, '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 = 28847188 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': 4106156, 'mtr_portfolio_id': 28847188, 'created_at': datetime.datetime(2025, 11, 24, 22, 17, 1), 'result': '0.026987121375042653', 'result_long': None, 'result_double': None}] Qualite : 0.026987121375042653 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28847188 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28847188_24-11-2025_22_17_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28847188 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_P28847188_24-11-2025_22_17_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28847208, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28847209, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28847210, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28847211, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28847212, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28847213, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28847214, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28847215, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28847216, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28847218, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28847219, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28847220, 'pht': 3726}}" where mtr_portfolio_id = 28847188 and dashboard_run_id = 2646251 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`=28847188 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17669416, 0.026987121375042653, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28847188_24-11-2025_22_17_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28847208, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28847209, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28847210, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28847211, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28847212, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28847213, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28847214, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28847215, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28847216, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28847218, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28847219, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28847220, '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 = 28847816 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': 4106249, 'mtr_portfolio_id': 28847816, 'created_at': datetime.datetime(2025, 11, 24, 22, 35), 'result': '0.045913769941539194', 'result_long': None, 'result_double': None}] Qualite : 0.045913769941539194 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28847816 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28847816_24-11-2025_22_35_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28847816 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_P28847816_24-11-2025_22_35_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28847830, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28847831, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28847832, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28847833, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28847834, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28847835, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28847836, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28847837, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28847838, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28847839, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28847840, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28847841, 'pht': 3726}}" where mtr_portfolio_id = 28847816 and dashboard_run_id = 2646251 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`=28847816 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17669417, 0.045913769941539194, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28847816_24-11-2025_22_35_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28847830, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28847831, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28847832, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28847833, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28847834, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28847835, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28847836, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28847837, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28847838, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28847839, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28847840, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28847841, '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 = 28848498 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': 4106312, 'mtr_portfolio_id': 28848498, 'created_at': datetime.datetime(2025, 11, 24, 22, 46, 59), 'result': '0.03254777881998621', 'result_long': None, 'result_double': None}] Qualite : 0.03254777881998621 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28848498 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28848498_24-11-2025_22_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28848498 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_P28848498_24-11-2025_22_46_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28848553, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28848554, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28848555, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28848556, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28848557, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28848558, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28848559, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28848561, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28848562, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28848563, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28848564, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28848565, 'pht': 3726}}" where mtr_portfolio_id = 28848498 and dashboard_run_id = 2646251 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`=28848498 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17669418, 0.03254777881998621, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28848498_24-11-2025_22_46_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28848553, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28848554, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28848555, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28848556, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28848557, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28848558, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28848559, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28848561, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28848562, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28848563, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28848564, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28848565, '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 = 28849138 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': 4106432, 'mtr_portfolio_id': 28849138, 'created_at': datetime.datetime(2025, 11, 24, 23, 5, 57), 'result': '0.057144603679696516', 'result_long': None, 'result_double': None}] Qualite : 0.057144603679696516 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28849138 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28849138_24-11-2025_23_05_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28849138 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_P28849138_24-11-2025_23_05_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28849146, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28849147, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28849148, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28849149, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28849150, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28849151, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28849152, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28849153, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28849154, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28849155, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28849156, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28849157, 'pht': 3726}}" where mtr_portfolio_id = 28849138 and dashboard_run_id = 2646251 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`=28849138 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17669419, 0.057144603679696516, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28849138_24-11-2025_23_05_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28849146, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28849147, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28849148, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28849149, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28849150, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28849151, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28849152, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28849153, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28849154, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28849155, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28849156, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28849157, '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 = 28849785 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': 4106633, 'mtr_portfolio_id': 28849785, 'created_at': datetime.datetime(2025, 11, 24, 23, 19, 27), 'result': '0.07388486346684735', 'result_long': None, 'result_double': None}] Qualite : 0.07388486346684735 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28849785 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28849785_24-11-2025_23_19_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28849785 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_P28849785_24-11-2025_23_19_28.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28849794, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28849795, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28849796, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28849797, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28849798, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28849799, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28849800, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28849801, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28849802, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28849803, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28849804, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28849805, 'pht': 3726}}" where mtr_portfolio_id = 28849785 and dashboard_run_id = 2646251 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`=28849785 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17669420, 0.07388486346684735, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28849785_24-11-2025_23_19_28.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28849794, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28849795, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28849796, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28849797, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28849798, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28849799, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28849800, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28849801, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28849802, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28849803, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28849804, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28849805, '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 = 28850349 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': 4106815, 'mtr_portfolio_id': 28850349, 'created_at': datetime.datetime(2025, 11, 24, 23, 34, 57), 'result': '0.08020144629154927', 'result_long': None, 'result_double': None}] Qualite : 0.08020144629154927 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28850349 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28850349_24-11-2025_23_34_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28850349 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_P28850349_24-11-2025_23_34_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28850357, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28850358, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28850359, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28850360, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28850361, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28850362, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28850363, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28850364, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28850365, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28850366, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28850367, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28850368, 'pht': 3726}}" where mtr_portfolio_id = 28850349 and dashboard_run_id = 2646251 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`=28850349 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17669421, 0.08020144629154927, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28850349_24-11-2025_23_34_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28850357, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28850358, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28850359, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28850360, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28850361, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28850362, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28850363, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28850364, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28850365, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28850366, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28850367, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28850368, '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 = 28850919 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 = 28850919 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 = 28850919 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28850919 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 = 28850919 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 = 28850919 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28850919_24-11-2025_23_46_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28850919 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_P28850919_24-11-2025_23_46_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28850981, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28850982, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28850983, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28850984, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28850985, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28850986, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28850987, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28850988, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28850989, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28850990, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28850991, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28850992, 'pht': 3726}}" where mtr_portfolio_id = 28850919 and dashboard_run_id = 2646251 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 = 28851506 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': 4107133, 'mtr_portfolio_id': 28851506, 'created_at': datetime.datetime(2025, 11, 25, 1, 21), 'result': '0.06131766608833378', 'result_long': None, 'result_double': None}] Qualite : 0.06131766608833378 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28851506 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28851506_25-11-2025_01_21_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28851506 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_P28851506_25-11-2025_01_21_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28851520, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28851521, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28851522, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28851523, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28851524, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28851525, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28851526, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28851527, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28851528, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28851529, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28851530, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28851531, 'pht': 3726}}" where mtr_portfolio_id = 28851506 and dashboard_run_id = 2646251 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`=28851506 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17669423, 0.06131766608833378, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28851506_25-11-2025_01_21_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28851520, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28851521, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28851522, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28851523, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28851524, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28851525, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28851526, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28851527, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28851528, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28851529, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28851530, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28851531, '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 (28823447,28823600,28823956,28825204,28825393,28825711,28826020,28826207,28826578,28827082,28827671,28827962,28828365,28830584,28830869,28831317,28831841,28832046,28832550,28832985,28833546,28834015,28834841,28835029,28835683,28836240,28836846,28837372,28838100,28839338,28839840,28840211,28840661,28841268,28841984,28842552,28843163,28843544,28843912,28844343,28845557,28845863,28846295,28846650,28847188,28847816,28848498,28849138,28849785,28850349,28850919,28851506) result : ((1395860294,), (1395860295,), (1395860297,), (1395860299,), (1395860300,), (1395860301,), (1395860316,), (1395860320,), (1395860324,), (1395860325,), (1395860356,), (1395860357,), (1395860358,), (1395860359,), (1395860360,), (1395860362,), (1395860364,), (1395860366,), (1395860368,), (1395860370,), (1395860371,), (1395860372,), (1395860373,), (1395860374,), (1395860375,), (1395860376,), (1395860377,), (1395860378,), (1395860767,), (1395860811,), (1395860812,), (1395860813,), (1395860814,), (1395860815,), (1395860822,), (1395860823,), (1395860824,), (1395860825,), (1395861145,), (1395861180,), (1395861212,), (1395861243,), (1395861394,), (1395861422,), (1395861424,), (1395861454,), (1395861459,), (1395861472,), (1395861473,), (1395861492,), (1395861493,), (1395861494,), (1395861495,), (1395861496,), (1395861503,), (1395861504,), (1395861505,), (1395861506,), (1395861508,), (1395861510,), (1395861519,), (1395861520,), (1395861521,), (1395861593,), (1395861587,), (1395861588,), (1395861589,), (1395861590,), (1395861591,), (1395861597,), (1395861599,), (1395861602,), (1395861604,), (1395861617,), (1395861647,), (1395861697,), (1395867609,), (1395872808,), (1395872827,), (1395872828,), (1395872829,), (1395872831,), (1395872849,), (1395872850,), (1395872852,), (1395872855,), (1395872879,), (1395872880,), (1395872902,), (1395872905,), (1395872922,), (1395872923,), (1395872924,), (1395872926,), (1395872938,), (1395872939,), (1395872940,), (1395872942,), (1395872945,), (1395872956,), (1395872957,), (1395872958,), (1395872960,), (1395872983,), (1395872985,), (1395872988,), (1395872990,), (1395872993,), (1395873013,), (1395873082,), (1395873114,), (1395873146,), (1395873177,), (1395873612,), (1395873643,), (1395873905,), (1395873906,), (1395873907,), (1395873908,), (1395873910,), (1395874162,), (1395874174,), (1395874175,), (1395874177,), (1395874368,), (1395874371,), (1395874390,), (1395874394,), (1395874396,), (1395874399,), (1395874407,), (1395874468,), (1395874469,), (1395874470,), (1395874471,), (1395874475,), (1395874485,), (1395874486,), (1395874493,), (1395874525,), (1395874599,), (1395874600,), (1395874601,), (1395874603,), (1395874605,), (1395874608,), (1395874617,), (1395874618,), (1395874619,), (1395874621,), (1395874624,), (1395874627,), (1395874646,), (1395874647,), (1395874650,), (1395874654,), (1395874657,), (1395874661,), (1395874668,), (1395874669,), (1395874670,), (1395874671,), (1395874672,), (1395874681,), (1395874687,), (1395874730,), (1395874731,), (1395874732,), (1395874748,), (1395874749,), (1395874751,), (1395874752,), (1395874755,), (1395874773,), (1395874771,), (1395874772,), (1395874808,), (1395874824,), (1395874827,), (1395874829,), (1395874832,), (1395874854,), (1395874882,), (1395874913,), (1395874948,), (1395875118,), (1395875123,), (1395875241,), (1395875242,), (1395875243,), (1395875277,), (1395875278,), (1395875288,), (1395875289,), (1395875301,), (1395875314,), (1395875348,), (1395875469,), (1395875465,), (1395875466,), (1395875467,), (1395875492,), (1395875493,), (1395875505,), (1395875506,), (1395875507,), (1395875528,), (1395875529,), (1395875530,), (1395875546,), (1395875547,), (1395875548,), (1395875549,), (1395875572,), (1395875573,), (1395875574,), (1395875586,), (1395875587,), (1395875588,), (1395875589,), (1395875593,), (1395875613,), (1395875615,), (1395875618,), (1395875622,), (1395875626,), (1395875628,), (1395875640,), (1395875643,), (1395875649,), (1395875674,), (1395875677,), (1395875680,), (1395875683,), (1395875701,), (1395875702,), (1395875704,), (1395875706,), (1395875708,), (1395875712,), (1395875754,), (1395875750,), (1395875752,), (1395875775,), (1395875776,), (1395875804,), (1395875805,), (1395875807,), (1395875811,), (1395875815,), (1395875819,), (1395875835,), (1395875874,), (1395875876,), (1395875878,), (1395875880,), (1395875942,), (1395875943,), (1395875944,), (1395875969,), (1395875971,), (1395875973,), (1395875975,), (1395876091,), (1395876094,), (1395876097,), (1395876121,), (1395876122,), (1395876123,), (1395876125,), (1395876171,), (1395876173,), (1395876233,), (1395876234,), (1395876262,), (1395876265,), (1395876267,), (1395876271,), (1395876317,), (1395876318,), (1395876320,), (1395876324,), (1395876327,), (1395876330,), (1395876348,), (1395876396,), (1395876400,), (1395876404,), (1395876406,), (1395876485,), (1395876453,), (1395876455,), (1395876457,), (1395876895,), (1395876929,), (1395876966,), (1395877000,), (1395877173,), (1395877201,), (1395877232,), (1395877266,), (1395877303,), (1395877472,), (1395877473,), (1395877474,), (1395877476,), (1395877822,), (1395877855,), (1395877887,), (1395877918,), (1395877955,), (1395878198,), (1395878774,), (1395878778,), (1395878780,), (1395878801,), (1395878859,), (1395878922,), (1395879086,), (1395879087,), (1395879088,), (1395879089,), (1395879091,), (1395879111,), (1395879112,), (1395879124,), (1395879161,), (1395879528,), (1395879530,), (1395879532,), (1395879534,), (1395879725,), (1395879742,), (1395879767,), (1395879797,), (1395880143,), (1395880146,), (1395880148,), (1395880337,), (1395880338,), (1395880339,), (1395880340,), (1395880360,), (1395880362,), (1395880364,), (1395880367,), (1395880389,), (1395880387,), (1395880388,), (1395880407,), (1395880409,), (1395880438,), (1395880440,), (1395880442,), (1395880445,), (1395880462,), (1395880463,), (1395880464,), (1395880644,), (1395880645,), (1395880646,), (1395880665,), (1395880666,), (1395880667,), (1395880693,), (1395880694,), (1395880695,), (1395880722,), (1395880724,), (1395880749,), (1395880751,), (1395880753,), (1395880757,), (1395880761,), (1395880894,), (1395880960,), (1395880997,), (1395880998,), (1395880999,), (1395881001,), (1395881025,), (1395881032,), (1395881036,), (1395881041,), (1395881061,), (1395881062,), (1395881063,), (1395881065,), (1395881085,), (1395881086,), (1395881089,), (1395881092,), (1395881122,), (1395881124,), (1395881127,), (1395881131,), (1395881236,), (1395881238,), (1395881240,), (1395881243,), (1395881354,), (1395881355,), (1395881357,), (1395881365,), (1395881378,), (1395881398,), (1395881399,), (1395881401,), (1395881404,), (1395881408,), (1395881422,), (1395881472,), (1395881473,), (1395881476,), (1395881704,), (1395881674,), (1395881702,), (1395881832,), (1395881864,), (1395881868,), (1395881870,), (1395881874,), (1395881898,), (1395881900,), (1395881902,), (1395881904,), (1395881921,), (1395881922,), (1395881923,), (1395881930,), (1395881935,), (1395882158,), (1395882191,), (1395882223,), (1395882256,), (1395882289,), (1395882326,), (1395882327,), (1395882328,), (1395882351,), (1395882353,), (1395882355,), (1395882358,), (1395882362,), (1395882376,), (1395882694,), (1395882695,), (1395882697,), (1395882700,), (1395882708,), (1395882729,), (1395882731,), (1395882733,), (1395882749,), (1395882766,), (1395882782,), (1395882786,), (1395882790,), (1395882795,), (1395882813,), (1395882815,), (1395882882,), (1395882883,), (1395882884,), (1395882912,), (1395882913,), (1395882916,), (1395882920,), (1395882924,), (1395882927,), (1395882936,), (1395882950,), (1395882955,), (1395882960,), (1395882965,), (1395882974,), (1395883224,), (1395883121,), (1395883152,), (1395883190,), (1395883569,), (1395883575,), (1395883594,), (1395883625,), (1395883748,), (1395883750,), (1395883752,), (1395883773,), (1395883774,), (1395883775,), (1395883776,), (1395884040,), (1395884072,), (1395884109,), (1395884523,), (1395885068,), (1395885069,), (1395885071,), (1395885109,), (1395885347,), (1395885349,), (1395885351,), (1395885353,), (1395885356,), (1395885358,), (1395885377,), (1395885410,), (1395885443,), (1395885846,), (1395885857,), (1395885890,), (1395885922,), (1395885928,), (1395886072,), (1395886073,), (1395886093,), (1395886164,), (1395894236,), (1395894341,), (1395894344,), (1395894388,), (1395894415,), (1395894712,), (1395894726,), (1395894729,), (1395895353,), (1395895409,), (1395896435,), (1395896467,), (1395896500,), (1395896503,), (1395896708,), (1395896700,), (1395896704,), (1395896706,), (1395897042,), (1395897081,), (1395897113,), (1395897143,), (1395897176,), (1395897238,), (1395897240,), (1395897243,), (1395897274,), (1395897306,), (1395897360,), (1395897507,), (1395897570,), (1395897611,), (1395897642,), (1395897675,), (1395898027,), (1395898040,), (1395898084,), (1395898146,), (1395898204,), (1395898253,), (1395898463,), (1395898464,), (1395898521,), (1395898524,), (1395898559,), (1395898568,), (1395898607,), (1395898608,), (1395898619,), (1395898620,), (1395898645,), (1395898651,), (1395898740,), (1395898756,), (1395898758,), (1395898762,), (1395898765,), (1395898784,), (1395898897,), (1395898927,), (1395898945,), (1395898946,), (1395898947,), (1395898949,), (1395898952,), (1395900538,), (1395900524,), (1395900528,), (1395900531,), (1395900534,), (1395900765,), (1395900767,), (1395900798,), (1395900947,), (1395903356,), (1395903697,), (1395903732,), (1395903747,), (1395903766,), (1395903793,), (1395903969,), (1395903970,), (1395903971,), (1395903973,), (1395904016,), (1395904008,), (1395904010,), (1395904012,), (1395904014,), (1395904125,), (1395904140,), (1395904147,), (1395904163,), (1395904165,), (1395904200,), (1395904201,), (1395904202,), (1395904204,), (1395904225,), (1395904228,), (1395904231,), (1395904234,), (1395904238,), (1395904270,), (1395904272,), (1395904273,), (1395904274,), (1395904277,), (1395904517,), (1395904537,), (1395904546,), (1395904573,), (1395904586,), (1395904602,), (1395904604,), (1395904606,), (1395904622,), (1395904627,), (1395904672,), (1395904674,), (1395904676,), (1395904680,), (1395904684,), (1395904704,), (1395904706,), (1395904709,), (1395904713,), (1395904717,), (1395904738,), (1395904740,), (1395904747,), (1395904755,), (1395904757,), (1395904786,), (1395904789,), (1395904791,), (1395904793,), (1395904821,), (1395904822,), (1395904823,), (1395904825,), (1395904829,), (1395904833,), (1395904851,), (1395904852,), (1395904859,), (1395904868,), (1395904872,), (1395904874,), (1395904882,), (1395904884,), (1395904887,), (1395904890,), (1395904896,), (1395904897,), (1395904898,), (1395904901,), (1395904904,), (1395904907,), (1395904930,), (1395904932,), (1395904934,), (1395904937,), (1395905029,), (1395904984,), (1395904986,), (1395904988,), (1395905007,), (1395905026,), (1395905053,), (1395905056,), (1395905058,), (1395905060,), (1395905083,), (1395905085,), (1395905088,), (1395905093,), (1395905098,), (1395905100,), (1395905115,), (1395905118,), (1395905122,), (1395905124,), (1395905128,), (1395905149,), (1395905151,), (1395905152,), (1395905153,), (1395905155,), (1395905158,), (1395905230,), (1395905237,), (1395905239,), (1395905242,), (1395905264,), (1395905267,), (1395905280,), (1395905283,), (1395905287,), (1395905311,), (1395905314,), (1395905316,), (1395905318,), (1395905321,), (1395905324,), (1395905352,), (1395905353,), (1395905354,), (1395905356,), (1395905546,), (1395905580,), (1395905616,), (1395905652,), (1395905694,), (1395905781,), (1395905784,), (1395905788,), (1395905790,), (1395905793,), (1395905821,), (1395905932,), (1395905933,), (1395905957,), (1395905961,), (1395905973,), (1395905989,), (1395905995,), (1395906020,), (1395906022,), (1395906025,), (1395906027,), (1395906030,), (1395906086,), (1395906087,), (1395906088,), (1395906330,), (1395906278,), (1395906281,), (1395906284,), (1395906289,), (1395906321,), (1395906380,), (1395906386,), (1395906415,), (1395906446,), (1395906479,), (1395906513,), (1395906514,), (1395906515,), (1395906516,), (1395906519,), (1395906533,), (1395906538,), (1395906545,), (1395906547,), (1395906550,), (1395906553,), (1395906567,), (1395906570,), (1395906572,), (1395906608,), (1395906611,), (1395906615,), (1395906618,), (1395906624,), (1395906645,), (1395906648,), (1395906651,), (1395906654,), (1395906658,), (1395906704,), (1395906706,), (1395906707,), (1395906708,), (1395906923,), (1395906926,), (1395906929,), (1395906932,), (1395906949,), (1395906979,), (1395907029,), (1395907032,), (1395907037,), (1395907073,), (1395907112,), (1395907193,), (1395907197,), (1395907199,), (1395907201,), (1395907204,), (1395907233,), (1395907235,), (1395907236,), (1395907237,), (1395907240,), (1395907243,), (1395907263,), (1395907265,), (1395907267,), (1395907269,), (1395907299,), (1395907304,), (1395907309,), (1395907315,), (1395907319,), (1395907323,), (1395907347,), (1395907344,), (1395907346,), (1395907367,), (1395907369,), (1395907371,), (1395907374,), (1395907378,), (1395907382,), (1395907398,), (1395907400,), (1395907402,), (1395907406,), (1395907459,), (1395907462,), (1395907463,), (1395907465,), (1395907468,), (1395907471,), (1395907620,), (1395907650,), (1395907681,), (1395907712,), (1395908073,), (1395908108,), (1395908141,), (1395908174,), (1395908211,), (1395908246,), (1395908388,), (1395908390,), (1395908416,), (1395908447,), (1395908654,), (1395908655,), (1395908657,), (1395908660,), (1395908669,), (1395908677,), (1395908695,), (1395908697,), (1395908699,), (1395908701,), (1395908729,), (1395908731,), (1395908736,), (1395908737,), (1395908739,), (1395908742,), (1395908766,), (1395908768,), (1395908770,), (1395908773,), (1395908776,), (1395908779,), (1395908808,), (1395908811,), (1395908816,), (1395908846,), (1395908848,), (1395908850,), (1395908852,), (1395908854,), (1395908857,), (1395908889,), (1395908896,), (1395908897,), (1395908898,), (1395908921,), (1395908924,), (1395908928,), (1395908931,), (1395908935,), (1395908972,), (1395909024,), (1395908968,), (1395908970,), (1395908971,), (1395908994,), (1395908996,), (1395908999,), (1395909002,), (1395909006,), (1395909009,), (1395909018,), (1395909020,), (1395909022,), (1395909026,), (1395909029,), (1395909034,), (1395909038,), (1395909043,), (1395909062,), (1395909064,), (1395909066,), (1395909069,), (1395909072,), (1395909091,), (1395909092,), (1395909093,), (1395909095,), (1395909099,), (1395909103,), (1395909159,), (1395909161,), (1395909166,), (1395909201,), (1395909453,), (1395909455,), (1395909458,), (1395909463,), (1395909468,), (1395909473,), (1395909492,), (1395909494,), (1395909496,), (1395909499,), (1395909534,), (1395909543,), (1395909545,), (1395909546,), (1395909551,), (1395909556,), (1395909575,), (1395909577,), (1395909579,), (1395909581,), (1395909620,), (1395909629,), (1395909633,), (1395909634,), (1395909637,), (1395909641,), (1395909658,), (1395909660,), (1395909662,), (1395909665,), (1395909696,), (1395909698,), (1395909700,), (1395909703,), (1395909707,), (1395909948,), (1395909977,), (1395910008,), (1395910451,), (1395910484,), (1395910549,), (1395910547,), (1395910548,), (1395910569,), (1395910571,), (1395910575,), (1395910579,), (1395910587,), (1395910592,), (1395910702,), (1395910703,), (1395910704,), (1395910706,), (1395910710,), (1395910713,), (1395910743,), (1395910744,), (1395910747,), (1395910751,), (1395910754,), (1395910757,), (1395910781,), (1395910784,), (1395910786,), (1395910789,), (1395910790,), (1395910792,), (1395910812,), (1395911385,), (1395912951,), (1395912894,), (1395912929,), (1395912939,), (1395912947,), (1395913111,), (1395913311,), (1395913321,), (1395913326,), (1395913331,), (1395913335,), (1395913366,), (1395913369,), (1395913373,), (1395913378,), (1395913395,), (1395913396,), (1395913397,), (1395913399,), (1395913590,), (1395913591,), (1395913592,), (1395913594,), (1395913619,), (1395913624,), (1395913629,), (1395913633,), (1395913637,), (1395913641,), (1395913665,), (1395913662,), (1395913663,), (1395914433,), (1395915195,), (1395916243,), (1395916284,), (1395916311,), (1395916317,), (1395916323,), (1395916351,), (1395916353,), (1395916355,), (1395916358,), (1395916383,), (1395916384,), (1395916385,), (1395916386,), (1395916389,), (1395916393,), (1395916447,), (1395916457,), (1395916466,), (1395916472,), (1395916512,), (1395916615,), (1395916647,), (1395916685,), (1395916696,), (1395916699,), (1395916784,), (1395916785,), (1395916786,), (1395916788,), (1395916894,), (1395916896,), (1395916897,), (1395916899,), (1395916907,), (1395916911,), (1395917159,), (1395917071,), (1395917075,), (1395917079,), (1395917118,), (1395917202,), (1395917203,), (1395917204,), (1395917206,), (1395917210,), (1395917214,), (1395917242,), (1395917248,), (1395917250,), (1395917277,), (1395917279,), (1395917310,), (1395917345,), (1395917382,), (1395917417,), (1395917727,), (1395917804,), (1395917865,), (1395917922,), (1395918626,), (1395918666,), (1395918752,), (1395918786,), (1395918848,), (1395918882,), (1395918996,), (1395918998,), (1395919000,), (1395919002,), (1395919004,), (1395919068,), (1395919139,), (1395919148,), (1395919150,), (1395919151,), (1395919152,), (1395919154,), (1395919182,), (1395919186,), (1395919189,), (1395919192,), (1395919195,), (1395919197,), (1395919209,), (1395919210,), (1395919213,), (1395919214,), (1395919216,), (1395919217,), (1395919220,), (1395919221,), (1395919224,), (1395919225,), (1395919226,), (1395919228,), (1395919232,), (1395919235,), (1395919238,), (1395919241,), (1395919245,), (1395919248,), (1395919255,), (1395919259,), (1395919261,), (1395919275,), (1395919379,), (1395919398,), (1395919400,), (1395919424,), (1395919461,), (1395919462,), (1395919463,), (1395919465,), (1395919469,), (1395919505,), (1395919511,), (1395919514,), (1395919516,), (1395919519,), (1395919536,), (1395919537,), (1395919540,), (1395919569,), (1395919571,), (1395919572,), (1395919574,), (1395919582,), (1395919586,), (1395919621,), (1395920008,), (1395919606,), (1395919612,), (1395919614,), (1395919617,), (1395919648,), (1395919649,), (1395919651,), (1395919652,), (1395919671,), (1395919677,), (1395919708,), (1395919716,), (1395919743,), (1395919751,), (1395919776,), (1395919785,), (1395919805,), (1395919806,), (1395919807,), (1395919809,), (1395919813,), (1395919847,), (1395919966,), (1395919976,), (1395920055,), (1395920057,), (1395920058,), (1395920141,), (1395920153,), (1395920190,), (1395920205,), (1395920223,), (1395920226,), (1395920288,), (1395920296,), (1395920298,), (1395920301,), (1395920322,), (1395920323,), (1395920324,), (1395920326,), (1395920329,), (1395920332,), (1395920342,), (1395920343,), (1395920344,), (1395920345,), (1395920572,), (1395920582,), (1395920598,), (1395920616,), (1395920643,), (1395920674,), (1395920688,), (1395920689,), (1395920690,), (1395920692,), (1395920711,), (1395920712,), (1395920713,), (1395920715,), (1395920718,), (1395920945,), (1395920982,), (1395921011,), (1395921014,), (1395921018,), (1395921022,), (1395921211,), (1395921217,), (1395921218,), (1395921257,), (1395921277,), (1395921492,), (1395921495,), (1395921519,), (1395921541,), (1395921545,), (1395921576,), (1395921623,), (1395921624,), (1395921625,), (1395921633,), (1395921638,), (1395921687,), (1395921676,), (1395921678,), (1395921680,), (1395921683,), (1395921704,), (1395921706,), (1395921709,), (1395921714,), (1395921719,), (1395921724,), (1395921782,), (1395921800,), (1395921827,), (1395921840,), (1395921875,), (1395921994,), (1395921996,), (1395922025,), (1395922047,), (1395922055,), (1395922072,), (1395922075,), (1395922076,), (1395922077,), (1395922084,), (1395922089,), (1395922119,), (1395922120,), (1395922122,), (1395922125,), (1395922145,), (1395922146,), (1395922147,), (1395922153,), (1395922156,), (1395922158,), (1395922236,), (1395922265,), (1395922268,), (1395922269,), (1395922406,), (1395922407,), (1395922408,), (1395922409,), (1395922419,), (1395922424,), (1395922436,), (1395922437,), (1395922439,), (1395922522,), (1395922542,), (1395922543,), (1395922546,), (1395922583,), (1395922590,), (1395922728,), (1395922729,), (1395922754,), (1395922762,), (1395922785,), (1395922808,), (1395922810,), (1395922813,), (1395922816,), (1395922819,), (1395922833,), (1395922840,), (1395922890,), (1395922922,), (1395923300,), (1395923258,), (1395923262,), (1395923265,), (1395923470,), (1395923487,), (1395923494,), (1395923497,), (1395923501,), (1395923505,), (1395923555,), (1395923558,), (1395923562,), (1395923570,), (1395923598,), (1395923600,), (1395923601,), (1395923602,), (1395923605,), (1395923679,), (1395923710,), (1395923766,), (1395923831,), (1395923899,), (1395924400,), (1395924436,), (1395924478,), (1395924527,), (1395924872,), (1395924874,), (1395924881,), (1395924889,), (1395924892,), (1395924913,), (1395925220,), (1395925304,), (1395925322,), (1395925324,), (1395925369,), (1395925385,), (1395925570,), (1395925615,), (1395925677,), (1395925712,), (1395925745,), (1395925782,), (1395926137,), (1395926202,), (1395926266,), (1395926335,), (1395926404,), (1395926973,), (1395926975,), (1395926976,), (1395926977,), (1395926979,), (1395927643,), (1395927699,), (1395927707,), (1395927709,), (1395927712,), (1395927721,), (1395928125,), (1395928157,), (1395928193,), (1395928228,), (1395928384,), (1395928385,), (1395928387,), (1395928390,), (1395928401,), (1395928411,), (1395928430,), (1395928433,), (1395928436,), (1395928438,), (1395928489,), (1395928477,), (1395928478,), (1395928479,), (1395928481,), (1395928485,), (1395928511,), (1395928541,), (1395928570,), (1395928575,), (1395928634,), (1395928991,), (1395929032,), (1395929065,), (1395929094,), (1395929124,), (1395929157,), (1395929449,), (1395929451,), (1395929453,), (1395929455,), (1395929730,), (1395929764,), (1395929814,), (1395929846,), (1395929875,), (1395929879,), (1395929898,), (1395929899,), (1395929911,), (1395929944,), (1395930217,), (1395930219,), (1395930221,), (1395930223,), (1395930227,), (1395930493,), (1395930525,), (1395930557,), (1395930568,), (1395930578,), (1395930683,), (1395930686,), (1395930687,), (1395930689,), (1395930712,), (1395930715,), (1395930718,), (1395930721,), (1395930725,), (1395930728,), (1395930745,), (1395930747,), (1395930749,), (1395930754,), (1395930757,), (1395930786,), (1395930788,), (1395930790,), (1395930793,), (1395930797,), (1395930800,), (1395930826,), (1395930829,), (1395930831,), (1395930833,), (1395930837,), (1395930858,), (1395930861,), (1395930865,), (1395930868,), (1395930873,), (1395930876,), (1395930906,), (1395930917,), (1395930921,), (1395934979,), (1395934749,), (1395934796,), (1395934858,), (1395934892,), (1395934927,), (1395935163,), (1395935225,), (1395935249,), (1395935265,), (1395935308,), (1395935316,), (1395935318,), (1395935321,), (1395935325,), (1395935344,), (1395935346,), (1395935349,), (1395935353,), (1395935386,), (1395935387,), (1395935388,), (1395935390,), (1395935394,), (1395935398,), (1395935416,), (1395935418,), (1395935420,), (1395935423,), (1395935450,), (1395935451,), (1395935452,), (1395935454,), (1395935457,), (1395935459,), (1395935495,), (1395935497,), (1395935499,), (1395935502,), (1395935506,), (1395935520,), (1395935522,), (1395935524,), (1395935527,), (1395935535,), (1395935543,), (1395935589,), (1395935601,), (1395935605,), (1395935647,), (1395935648,), (1395935649,), (1395935654,), (1395935662,), (1395935667,), (1395935684,), (1395935686,), (1395935688,), (1395935691,), (1395935728,), (1395935733,), (1395935734,), (1395935736,), (1395935740,), (1395935743,), (1395935757,), (1395935759,), (1395935761,), (1395935764,), (1395935799,), (1395935785,), (1395935787,), (1395935789,), (1395935792,), (1395935796,), (1395935814,), (1395935815,), (1395935816,), (1395935818,), (1395936077,), (1395936099,), (1395936103,), (1395936106,), (1395936140,), (1395936149,), (1395936225,), (1395936226,), (1395936227,), (1395936228,), (1395936256,), (1395936257,), (1395936258,), (1395936260,), (1395936264,), (1395936267,), (1395936289,), (1395936297,), (1395936301,), (1395936304,), (1395936324,), (1395936333,), (1395936345,), (1395936349,), (1395936354,), (1395936359,), (1395936366,), (1395936367,), (1395936368,), (1395936370,), (1395936372,), (1395936405,), (1395936416,), (1395936418,), (1395936421,), (1395936425,), (1395936429,), (1395936443,), (1395936446,), (1395936450,), (1395936454,), (1395936472,), (1395936475,), (1395936482,), (1395936494,), (1395936501,), (1395936505,), (1395936513,), (1395936514,), (1395936516,), (1395936519,), (1395936523,), (1395936550,), (1395936551,), (1395936552,), (1395936553,), (1395936581,), (1395936582,), (1395936584,), (1395936586,), (1395936589,), (1395936611,), (1395936613,), (1395936614,), (1395936616,), (1395936622,), (1395936631,), (1395936681,), (1395936663,), (1395936665,), (1395936679,), (1395936700,), (1395936701,), (1395936702,), (1395936704,), (1395936708,), (1395936712,), (1395936729,), (1395936731,), (1395936733,), (1395936751,), (1395936753,), (1395936755,), (1395936758,), (1395936762,), (1395936766,), (1395936781,), (1395936782,), (1395936811,), (1395936812,), (1395936813,), (1395936815,), (1395936817,), (1395936820,), (1395936838,), (1395936840,), (1395936845,), (1395936851,), (1395936878,), (1395936884,), (1395936886,), (1395936889,), (1395936893,), (1395936896,), (1395936913,), (1395936914,), (1395936915,), (1395936917,), (1395936963,), (1395936984,), (1395936987,), (1395936991,), (1395936998,), (1395937024,), (1395937025,), (1395937026,), (1395937027,), (1395937039,), (1395937153,), (1395937157,), (1395937159,), (1395937167,), (1395937192,), (1395937209,), (1395937212,), (1395937217,), (1395937225,), (1395937229,), (1395937232,), (1395937248,), (1395937250,), (1395937254,), (1395937320,), (1395937322,), (1395937323,), (1395937325,), (1395937329,), (1395937332,), (1395937587,), (1395937522,), (1395937553,), (1395937584,), (1395937686,), (1395937687,), (1395937688,), (1395937705,), (1395937786,), (1395937788,), (1395937790,), (1395937793,), (1395937796,), (1395937800,), (1395937820,), (1395937821,), (1395937823,), (1395937825,), (1395937867,), (1395937893,), (1395937926,), (1395937959,), (1395937995,), (1395938032,), (1395938085,), (1395938087,), (1395938090,), (1395938119,), (1395938151,), (1395938152,), (1395938154,), (1395938158,), (1395938209,), (1395938242,), (1395938279,), (1395938313,), (1395938376,), (1395938416,), (1395938768,), (1395938788,), (1395938794,), (1395938818,), (1395938900,), (1395938908,), (1395938910,), (1395938911,), (1395938913,), (1395938917,), (1395938933,), (1395938935,), (1395938937,), (1395938940,), (1395938944,), (1395938962,), (1395938963,), (1395938976,), (1395939032,), (1395939499,), (1395939506,), (1395939508,), (1395939511,), (1395939515,), (1395939519,), (1395939545,), (1395939546,), (1395939547,), (1395939549,), (1395939992,), (1395940029,), (1395940066,), (1395940128,), (1395940175,), (1395940357,), (1395940394,), (1395940429,), (1395940464,), (1395940503,), (1395940523,), (1395940515,), (1395940517,), (1395940519,), (1395941006,), (1395941038,), (1395941096,), (1395941146,), (1395941179,), (1395941229,), (1395941570,), (1395941571,), (1395941573,), (1395941610,), (1395941649,), (1395942196,), (1395942220,), (1395942222,), (1395942238,), (1395942277,), (1395942552,), (1395942553,), (1395942554,), (1395942556,), (1395942560,), (1395942587,), (1395942589,), (1395942591,), (1395942594,), (1395942620,), (1395942621,), (1395942622,), (1395942624,), (1395942628,), (1395942632,), (1395942646,), (1395942648,), (1395942663,), (1395942697,), (1395942975,), (1395942979,), (1395942982,), (1395942987,), (1395942991,), (1395942994,), (1395943025,), (1395943027,), (1395943031,), (1395943035,), (1395943039,), (1395943043,), (1395943050,), (1395943051,), (1395943052,), (1395943055,), (1395943057,), (1395943063,), (1395943066,), (1395943069,), (1395943073,), (1395943091,), (1395943092,), (1395943093,), (1395943095,), (1395943098,), (1395943101,), (1395943127,), (1395943131,), (1395943132,), (1395943134,), (1395943245,), (1395943269,), (1395943277,), (1395943307,), (1395943317,), (1395943351,), (1395943380,), (1395943381,), (1395943382,), (1395943384,), (1395943910,), (1395943661,), (1395943777,), (1395943809,), (1395943844,), (1395943879,), (1395944358,), (1395944415,), (1395944472,), (1395944531,), (1395944601,), (1395944688,), (1395945064,), (1395945091,), (1395945122,), (1395945145,), (1395945151,), (1395945447,), (1395945477,), (1395945507,), (1395945539,), (1395945555,), (1395945561,), (1395945609,), (1395945640,), (1395945673,), (1395945719,), (1395945785,), (1395945853,), (1395945969,), (1395945999,), (1395946011,), (1395946029,), (1395946057,), (1395946093,), (1395946136,), (1395946172,), (1395946300,), (1395946302,), (1395946304,), (1395946331,), (1395946332,), (1395946333,), (1395946587,), (1395946600,), (1395946602,), (1395946775,), (1395946794,), (1395946796,), (1395946800,), (1395946805,), (1395946809,), (1395946819,), (1395946821,), (1395946823,), (1395946826,), (1395946830,), (1395946939,), (1395946940,), (1395946941,), (1395946968,), (1395946970,), (1395946972,), (1395946975,), (1395946979,), (1395946983,), (1395946999,), (1395947000,), (1395947001,), (1395947003,), (1395947004,), (1395947009,), (1395947399,), (1395947432,), (1395947466,), (1395947503,), (1395947540,), (1395947574,), (1395947695,), (1395947726,), (1395947758,), (1395947791,), (1395947823,), (1395948036,), (1395947967,), (1395948002,), (1395948021,), (1395948026,), (1395948033,), (1395948044,), (1395948046,), (1395948048,), (1395948062,), (1395948343,), (1395948365,), (1395948395,), (1395948424,), (1395948426,), (1395948514,), (1395948519,), (1395948522,), (1395948526,), (1395948530,), (1395948540,), (1395948542,), (1395948551,), (1395948583,), (1395948617,), (1395948646,), (1395948748,), (1395948752,), (1395948753,), (1395948756,), (1395948789,), (1395948791,), (1395948793,), (1395948796,), (1395948800,), (1395948804,), (1395948820,), (1395948821,), (1395948822,), (1395948826,), (1395949098,), (1395949100,), (1395949102,), (1395949132,), (1395949165,), (1395949246,), (1395949247,), (1395949249,), (1395949252,), (1395949256,), (1395949261,), (1395949270,), (1395949271,), (1395949272,), (1395949273,), (1395949274,), (1395949275,), (1395949279,), (1395949282,), (1395949306,), (1395949339,), (1395949371,), (1395949403,), (1395949436,), (1395949471,), (1395949692,), (1395949713,), (1395949745,), (1395949779,), (1395949790,), (1395949939,), (1395949943,), (1395949945,), (1395949968,), (1395949971,), (1395949975,), (1395949986,), (1395949993,), (1395949997,), (1395950029,), (1395950016,), (1395950017,), (1395950019,), (1395950023,), (1395950027,), (1395950188,), (1395950189,), (1395950322,), (1395950343,), (1395950411,), (1395950459,), (1395950462,), (1395950465,), (1395950495,), (1395950502,), (1395950504,), (1395950506,), (1395950530,), (1395950538,), (1395950541,), (1395950546,), (1395950550,), (1395950555,), (1395950567,), (1395950569,), (1395950571,), (1395950574,), (1395950598,), (1395950606,), (1395950609,), (1395950613,), (1395950617,), (1395950642,), (1395950636,), (1395950639,), (1395950666,), (1395950669,), (1395950671,), (1395950693,), (1395950694,), (1395950695,), (1395950697,), (1395950701,), (1395950704,), (1395950725,), (1395950726,), (1395950727,), (1395950728,), (1395950731,), (1395950734,), (1395950764,), (1395950771,), (1395950773,), (1395950808,), (1395950810,), (1395950812,), (1395950815,), (1395950819,), (1395950823,), (1395950838,), (1395950840,), (1395950843,), (1395950847,), (1395950864,), (1395950866,), (1395950868,), (1395950871,), (1395950890,), (1395950892,), (1395950894,), (1395950895,), (1395950898,), (1395950902,), (1395950953,), (1395950954,), (1395950956,), (1395950959,), (1395950961,), (1395950965,), (1395950977,), (1395950980,), (1395950982,), (1395950988,), (1395950994,), (1395950997,), (1395951001,), (1395951005,), (1395951007,), (1395951033,), (1395951035,), (1395951045,), (1395951047,), (1395951108,), (1395951139,), (1395951169,), (1395951200,), (1395951237,), (1395951371,), (1395951402,), (1395951408,), (1395951419,), (1395951424,), (1395951427,), (1395951479,), (1395951481,), (1395951483,), (1395951510,), (1395951503,), (1395951505,), (1395951507,), (1395951529,), (1395951531,), (1395951537,), (1395951541,), (1395951545,), (1395951567,), (1395951569,), (1395951571,), (1395951574,), (1395951593,), (1395951595,), (1395951597,), (1395951600,), (1395951604,), (1395951607,), (1395951624,), (1395951626,), (1395951629,), (1395951633,), (1395951646,), (1395951658,), (1395951671,), (1395951673,), (1395951675,), (1395951677,), (1395951679,), (1395951680,), (1395951683,), (1395951687,), (1395951691,), (1395951696,), (1395951718,), (1395951729,), (1395951731,), (1395951740,), (1395951743,), (1395951761,), (1395951763,), (1395951765,), (1395951768,), (1395951790,), (1395951795,), (1395951802,), (1395951816,), (1395951821,), (1395951824,), (1395951847,), (1395951848,), (1395951849,), (1395951851,), (1395951880,), (1395951883,), (1395951885,), (1395951888,), (1395951892,), (1395951894,), (1395951907,), (1395951909,), (1395951911,), (1395951913,), (1395951918,), (1395951922,), (1395951955,), (1395951957,), (1395951959,), (1395951962,), (1395951984,), (1395951985,), (1395951986,), (1395951988,), (1395951992,), (1395952007,), (1395952009,), (1395952012,), (1395952016,), (1395952021,), (1395952023,), (1395952043,), (1395952055,), (1395952056,), (1395952057,), (1395952102,), (1395952116,), (1395952207,), (1395952110,), (1395952112,), (1395952114,), (1395952144,), (1395952146,), (1395952148,), (1395952151,), (1395952153,), (1395952154,), (1395952161,), (1395952164,), (1395952168,), (1395952172,), (1395952174,), (1395952177,), (1395952183,), (1395952192,), (1395952204,), (1395952218,), (1395952219,), (1395952222,), (1395952223,), (1395952226,), (1395952227,), (1395952230,), (1395952231,), (1395952235,), (1395952236,), (1395952239,), (1395952241,), (1395952243,), (1395952246,), (1395952250,), (1395952254,), (1395952268,), (1395952269,), (1395952270,), (1395952272,), (1395952290,), (1395952292,), (1395952356,), (1395952407,), (1395952410,), (1395952412,), (1395952415,), (1395952445,), (1395952446,), (1395952447,), (1395952449,), (1395952452,), (1395952467,), (1395952628,), (1395957865,), (1395957834,), (1395958316,), (1395958318,), (1395958320,), (1395958323,), (1395958328,), (1395958537,), (1395958539,), (1395958542,), (1395958546,), (1395958550,), (1395958553,), (1395958562,), (1395958563,), (1395958565,), (1395958570,), (1395958572,), (1395958576,), (1395958598,), (1395958599,), (1395958610,), (1395958640,), (1395958642,), (1395958644,), (1395958647,), (1395958777,), (1395958778,), (1395958785,), (1395958921,), (1395958910,), (1395958912,), (1395958914,), (1395958917,), (1395958961,), (1395958963,), (1395958965,), (1395959180,), (1395959182,), (1395959203,), (1395959483,), (1395959511,), (1395959542,), (1395959555,), (1395959557,), (1395959561,), (1395959578,), (1395959580,), (1395959583,), (1395959587,), (1395959590,), (1395959593,), (1395959600,), (1395959602,), (1395959603,), (1395959604,), (1395959605,), (1395959624,), (1395959627,), (1395959631,), (1395959635,), (1395959636,), (1395959638,), (1395959747,), (1395959749,), (1395959755,), (1395959758,), (1395959846,), (1395959848,), (1395959850,), (1395959853,), (1395959855,), (1395959881,), (1395959912,), (1395959945,), (1395959946,), (1395959947,), (1395959949,), (1395959953,), (1395959969,), (1395959971,), (1395959973,), (1395959976,), (1395959999,), (1395960000,), (1395960002,), (1395960006,), (1395960010,), (1395960014,), (1395960023,), (1395960024,), (1395960028,), (1395960027,), (1395960060,), (1395960061,), (1395960062,), (1395960064,), (1395960069,), (1395960086,), (1395960088,), (1395960091,), (1395960096,), (1395960101,), (1395960105,), (1395960145,), (1395960148,), (1395960153,), (1395960157,), (1395960162,), (1395960313,), (1395960316,), (1395960319,), (1395960324,), (1395960472,), (1395960474,), (1395960476,), (1395960492,), (1395960541,), (1395960542,), (1395960543,), (1395960545,), (1395960549,), (1395960561,), (1395960562,), (1395960563,), (1395960565,), (1395960570,), (1395960586,), (1395960587,), (1395960588,), (1395960664,), (1395960666,), (1395960669,), (1395960673,), (1395960677,), (1395960680,), (1395960687,), (1395960689,), (1395960691,), (1395960699,), (1395960703,), (1395960711,), (1395960715,), (1395960719,), (1395960749,), (1395960751,), (1395960875,), (1395961062,), (1395961063,), (1395961064,), (1395961159,), (1395961180,), (1395961182,), (1395961185,), (1395961228,), (1395961216,), (1395961218,), (1395961220,), (1395961223,), (1395961244,), (1395961246,), (1395961250,), (1395961255,), (1395961259,), (1395961277,), (1395961278,), (1395961282,), (1395961286,), (1395961297,), (1395961300,), (1395961323,), (1395961324,), (1395961325,), (1395961331,), (1395961333,), (1395961336,), (1395961340,), (1395961347,), (1395961428,), (1395961456,), (1395961486,), (1395961519,), (1395961541,), (1395961547,), (1395961568,), (1395961569,), (1395961570,), (1395961599,), (1395961607,), (1395961609,), (1395961613,), (1395961851,), (1395961883,), (1395961922,), (1395961961,), (1395961995,), (1395962343,), (1395962344,), (1395962345,), (1395962347,), (1395962509,), (1395962511,), (1395962513,), (1395962516,), (1395962519,), (1395962522,), (1395962541,), (1395962542,), (1395962545,), (1395962549,), (1395962552,), (1395962571,), (1395962572,), (1395962574,), (1395962577,), (1395962581,), (1395962584,), (1395962606,), (1395962607,), (1395962608,), (1395962959,), (1395962965,), (1395962970,), (1395962974,), (1395963340,), (1395963237,), (1395963267,), (1395963301,), (1395963596,), (1395963603,), (1395963609,), (1395963632,), (1395963954,), (1395963967,), (1395963968,), (1395963969,), (1395963972,), (1395964120,), (1395964147,), (1395964160,), (1395964168,), (1395964185,), (1395964187,), (1395964190,), (1395964208,), (1395964553,), (1395964583,), (1395964614,), (1395964645,), (1395964679,), (1395965048,), (1395965078,), (1395965095,), (1395965097,), (1395965177,), (1395965209,), (1395965237,), (1395965873,), (1395965941,), (1395965990,), (1395966032,), (1395966482,), (1395966513,), (1395966539,), (1395966543,), (1395966547,), (1395966551,), (1395966556,), (1395966558,), (1395966559,), (1395966565,), (1395966623,), (1395966662,), (1395966695,), (1395966728,), (1395966920,), (1395966951,), (1395967069,), (1395967071,), (1395967073,), (1395967076,), (1395967080,), (1395967104,), (1395967106,), (1395967110,), (1395967113,), (1395967132,), (1395967134,), (1395967137,), (1395967140,), (1395967163,), (1395967161,), (1395967162,), (1395967881,), (1395967939,), (1395967997,), (1395968867,), (1395968933,), (1395968988,), (1395969020,), (1395969636,), (1395969682,), (1395969711,), (1395969724,), (1395969743,), (1395970072,), (1395970132,), (1395970194,), (1395970259,), (1395970327,), (1395970405,), (1395970600,), (1395970632,), (1395970833,), (1395970915,), (1395970979,), (1395971027,), (1395971375,), (1395971377,), (1395971383,), (1395971743,), (1395971784,), (1395971814,), (1395971843,), (1395972363,), (1395972393,), (1395972424,), (1395972456,), (1395972488,), (1395972630,), (1395972633,), (1395972663,), (1395972698,), (1395972950,), (1395972952,), (1395972959,), (1395973032,), (1395973033,), (1395973034,), (1395973036,), (1395973038,), (1395973053,), (1395973074,), (1395973076,), (1395973078,), (1395973080,), (1395973082,), (1395973114,), (1395973115,), (1395973120,), (1395973125,), (1395973129,), (1395973132,), (1395973141,), (1395973142,), (1395973143,), (1395973144,), (1395973174,), (1395973437,), (1395973166,), (1395973170,), (1395973172,), (1395973199,), (1395973201,), (1395973203,), (1395973215,), (1395973224,), (1395973229,), (1395973263,), (1395973298,), (1395973329,), (1395973368,), (1395973401,), (1395973605,), (1395973633,), (1395973644,), (1395973651,), (1395973668,), (1395973699,), (1395973865,), (1395973895,), (1395973926,), (1395973959,), (1395973993,), (1395974089,), (1395974120,), (1395974123,), (1395974143,), (1395974145,), (1395974147,), (1395974150,), (1395974172,), (1395974183,), (1395974186,), (1395974190,), (1395974195,), (1395974208,), (1395974210,), (1395974213,), (1395974218,), (1395974240,), (1395974242,), (1395974246,), (1395974250,), (1395974253,), (1395974256,), (1395974261,), (1395974266,), (1395974287,), (1395974293,), (1395974326,), (1395974327,), (1395974350,), (1395974352,), (1395974354,), (1395974357,), (1395974379,), (1395974380,), (1395974381,), (1395974409,), (1395974411,), (1395974414,), (1395974417,), (1395974447,), (1395974443,), (1395974445,), (1395974467,), (1395974469,), (1395974471,), (1395974491,), (1395974494,), (1395974502,), (1395974505,), (1395974509,), (1395974528,), (1395974529,), (1395974530,), (1395974550,), (1395974552,), (1395974555,), (1395974559,), (1395974563,), (1395974566,), (1395974588,), (1395974590,), (1395974632,), (1395974634,), (1395974638,), (1395974643,), (1395974648,), (1395974659,), (1395974660,), (1395974661,), (1395974663,), (1395974667,), (1395974697,), (1395974702,), (1395974704,), (1395974707,), (1395974709,), (1395974712,), (1395974722,), (1395974724,), (1395974726,), (1395974748,), (1395974749,), (1395974750,), (1395974752,), (1395974754,), (1395974757,), (1395974780,), (1395974781,), (1395974784,), (1395974787,), (1395974790,), (1395974793,), (1395975009,), (1395975045,), (1395975080,), (1395975117,), (1395976132,), (1395976162,), (1395976167,), (1395976192,), (1395976227,), (1395976269,), (1395976270,), (1395976302,), (1395976304,), (1395976315,), (1395976321,), (1395976328,), (1395976329,), (1395976331,), (1395976333,), (1395976341,), (1395976339,), (1395976340,), (1395976599,), (1395976635,), (1395976691,), (1395976757,), (1395977351,), (1395977400,), (1395977419,), (1395977422,), (1395977426,), (1395977610,), (1395977611,), (1395977612,), (1395977614,), (1395977625,), (1395977779,), (1395977780,), (1395977800,), (1395977801,), (1395977803,), (1395977806,), (1395977810,), (1395977813,), (1395978041,), (1395978073,), (1395978105,), (1395978367,), (1395978378,), (1395978379,), (1395978393,), (1395978427,), (1395978430,), (1395978474,), (1395978475,), (1395978478,), (1395978515,), (1395978925,), (1395978927,), (1395978929,), (1395978933,), (1395978936,), (1395979127,), (1395979131,), (1395979133,), (1395979136,), (1395979170,), (1395979202,), (1395979232,), (1395979553,), (1395979554,), (1395979745,), (1395979746,), (1395979747,), (1395979749,), (1395979752,), (1395979755,), (1395979769,), (1395979770,), (1395979948,), (1395979808,), (1395979817,), (1395979848,), (1395979884,), (1395979915,), (1395980169,), (1395980171,), (1395980173,), (1395980176,), (1395980199,), (1395980200,), (1395980201,), (1395980203,), (1395980230,), (1395980232,), (1395980234,), (1395980259,), (1395980261,), (1395980264,), (1395980268,), (1395980272,), (1395980274,), (1395980280,), (1395980283,), (1395980288,), (1395980289,), (1395980290,), (1395980292,), (1395980296,), (1395980300,), (1395980326,), (1395980353,), (1395980387,), (1395980802,), (1395980831,), (1395980860,), (1395980889,), (1395980923,), (1395980958,), (1395981051,), (1395981082,), (1395981114,), (1395981148,), (1395981181,), (1395981326,), (1395981327,), (1395981328,), (1395981382,), (1395981415,), (1395981880,), (1395981913,), (1395981950,), (1395982143,), (1395982155,), (1395982186,), (1395982197,), (1395982460,), (1395982491,), (1395982522,), (1395982531,), (1395982550,), (1395982605,), (1395982607,), (1395982609,), (1395982613,), (1395982618,), (1395982622,), (1395982631,), (1395982632,), (1395982633,), (1395982645,), (1395982688,), (1395982794,), (1395982652,), (1395982676,), (1395982745,), (1395982746,), (1395982747,), (1395982748,), (1395982749,), (1395982751,), (1395982758,), (1395982762,), (1395982765,), (1395982767,), (1395982769,), (1395982773,), (1395982792,), (1395982798,), (1395982800,), (1395982803,), (1395982863,), (1395982897,), (1395983070,), (1395983072,), (1395983074,), (1395983077,), (1395983080,), (1395983104,), (1395983105,), (1395983149,), (1395983161,), (1395983164,), (1395983167,), (1395983174,), (1395983405,), (1395983436,), (1395983469,), (1395983504,), (1395983764,), (1395983788,), (1395983811,), (1395983817,), (1395983820,), (1395983822,), (1395983828,), (1395983830,), (1395983832,), (1395983834,), (1395983836,), (1395983841,), (1395983847,), (1395983853,), (1395983858,), (1395983862,), (1395983867,), (1395983872,), (1395983875,), (1395983878,), (1395983882,), (1395983911,), (1395983912,), (1395983913,), (1395983930,), (1395983932,), (1395983934,), (1395983937,), (1395983967,), (1395983969,), (1395983970,), (1395983972,), (1395983976,), (1395984071,), (1395984003,), (1395984005,), (1395984038,), (1395984455,), (1395984485,), (1395984520,), (1395984552,), (1395984723,), (1395984732,), (1395984733,), (1395984736,), (1395984768,), (1395984799,), (1395985020,), (1395985021,), (1395985022,), (1395985038,), (1395985070,), (1395985082,), (1395985121,), (1395985122,), (1395985124,), (1395985128,), (1395985132,), (1395985135,), (1395985155,), (1395985156,), (1395985157,), (1395985158,), (1395985159,), (1395985164,), (1395985167,), (1395985171,), (1395985174,), (1395985177,), (1395985189,), (1395985190,), (1395985192,), (1395985195,), (1395985211,), (1395985212,), (1395985213,), (1395985215,), (1395985217,), (1395985255,), (1395985257,), (1395985259,), (1395985262,), (1395985282,), (1395985283,), (1395985284,), (1395985285,), (1395985289,), (1395985293,), (1395985313,), (1395985315,), (1395985317,), (1395985320,), (1395985323,), (1395985327,), (1395985346,), (1395985354,), (1395985383,), (1395985385,), (1395985386,), (1395986177,), (1395986211,), (1395986215,), (1395986247,), (1395986272,), (1395986339,), (1395986371,), (1395986408,), (1395986441,), (1395986462,), (1395986591,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'24112025': {'nb_upload': 14, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([28830584]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1395896708, 1395896503, 1395896500, 1395896467, 1395896435, 1395895409, 1395895353, 1395894729, 1395894726, 1395894712, 1395894415, 1395894388, 1395894344, 1395894341] map_info['map_portfolio_photo'] : {28830584: [1395896708, 1395896503, 1395896500, 1395896467, 1395896435, 1395895409, 1395895353, 1395894729, 1395894726, 1395894712, 1395894415, 1395894388, 1395894344, 1395894341]} final : True mtd_id 4302 list_pids : [1395896708, 1395896503, 1395896500, 1395896467, 1395896435, 1395895409, 1395895353, 1395894729, 1395894726, 1395894712, 1395894415, 1395894388, 1395894344, 1395894341] Looping around the photos to save general results len do output : 1 /28830584Didn'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, '4108857') ('4302', '28830584', '1395896708', None, None, None, None, None, '4108857') ('4302', None, None, None, None, None, None, None, '4108857') ('4302', '28830584', '1395896503', None, None, None, None, None, '4108857') ('4302', None, None, None, None, None, None, None, '4108857') ('4302', '28830584', '1395896500', None, None, None, None, None, '4108857') ('4302', None, None, None, None, None, None, None, '4108857') ('4302', '28830584', '1395896467', None, None, None, None, None, '4108857') ('4302', None, None, None, None, None, None, None, '4108857') ('4302', '28830584', '1395896435', None, None, None, None, None, '4108857') ('4302', None, None, None, None, None, None, None, '4108857') ('4302', '28830584', '1395895409', None, None, None, None, None, '4108857') ('4302', None, None, None, None, None, None, None, '4108857') ('4302', '28830584', '1395895353', None, None, None, None, None, '4108857') ('4302', None, None, None, None, None, None, None, '4108857') ('4302', '28830584', '1395894729', None, None, None, None, None, '4108857') ('4302', None, None, None, None, None, None, None, '4108857') ('4302', '28830584', '1395894726', None, None, None, None, None, '4108857') ('4302', None, None, None, None, None, None, None, '4108857') ('4302', '28830584', '1395894712', None, None, None, None, None, '4108857') ('4302', None, None, None, None, None, None, None, '4108857') ('4302', '28830584', '1395894415', None, None, None, None, None, '4108857') ('4302', None, None, None, None, None, None, None, '4108857') ('4302', '28830584', '1395894388', None, None, None, None, None, '4108857') ('4302', None, None, None, None, None, None, None, '4108857') ('4302', '28830584', '1395894344', None, None, None, None, None, '4108857') ('4302', None, None, None, None, None, None, None, '4108857') ('4302', '28830584', '1395894341', None, None, None, None, None, '4108857') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 15 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, '28830584', 'None', None, None, None, None, '4108857'), ('4302', '28830584', '1395896708', None, None, None, None, None, '4108857'), ('4302', '28830584', '1395896503', None, None, None, None, None, '4108857'), ('4302', '28830584', '1395896500', None, None, None, None, None, '4108857'), ('4302', '28830584', '1395896467', None, None, None, None, None, '4108857'), ('4302', '28830584', '1395896435', None, None, None, None, None, '4108857'), ('4302', '28830584', '1395895409', None, None, None, None, None, '4108857'), ('4302', '28830584', '1395895353', None, None, None, None, None, '4108857'), ('4302', '28830584', '1395894729', None, None, None, None, None, '4108857'), ('4302', '28830584', '1395894726', None, None, None, None, None, '4108857'), ('4302', '28830584', '1395894712', None, None, None, None, None, '4108857'), ('4302', '28830584', '1395894415', None, None, None, None, None, '4108857'), ('4302', '28830584', '1395894388', None, None, None, None, None, '4108857'), ('4302', '28830584', '1395894344', None, None, None, None, None, '4108857'), ('4302', '28830584', '1395894341', None, None, None, None, None, '4108857')] time used for this insertion : 0.017718791961669922 save_final save missing photos in datou_result : time spend for datou_step_exec : 5.5348193645477295 time spend to save output : 0.01790642738342285 total time spend for step 5 : 5.552725791931152 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 (4108857) 2.30user 2.42system 0:13.20elapsed 35%CPU (0avgtext+0avgdata 160052maxresident)k 32inputs+10336outputs (0major+75642minor)pagefaults 0swaps