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 : 2755938 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 (4045920) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (4045920) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28522900 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['4045920'] with mtr_portfolio_ids : ['28522900'] and first list_photo_ids : [] new path : /proc/2755938/ Name: python3 Umask: 0002 State: R (running) Tgid: 2755938 Ngid: 0 Pid: 2755938 PPid: 2755937 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 2755938 NSpid: 2755938 NSpgid: 2754539 NSsid: 2754539 VmPeak: 1106908 kB VmSize: 1106884 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 99432 kB VmRSS: 99432 kB RssAnon: 59900 kB RssFile: 39532 kB RssShmem: 0 kB VmData: 865636 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 592 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: 46 nonvoluntary_ctxt_switches: 20 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '2755938', 'Ngid': '0', 'Pid': '2755938', 'PPid': '2755937', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '2755938', 'NSpid': '2755938', 'NSpgid': '2754539', 'NSsid': '2754539', 'VmPeak': '1106908 kB', 'VmSize': '1106884 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '99432 kB', 'VmRSS': '99432 kB', 'RssAnon': '59900 kB', 'RssFile': '39532 kB', 'RssShmem': '0 kB', 'VmData': '865636 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '592 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': '46', 'nonvoluntary_ctxt_switches': '20'} ('datou_batch_current', '2755938', '1106908', '0', '1106884', '865636', '99432', b'', 'marlene', '4045920') 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 (28522900) 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 (4045920 ) ) 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 (28522900) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1394374495, 'portfolio_id': 28522900}, {'photo_id': 1394374493, 'portfolio_id': 28522900}, {'photo_id': 1394374489, 'portfolio_id': 28522900}, {'photo_id': 1394374465, 'portfolio_id': 28522900}, {'photo_id': 1394374462, 'portfolio_id': 28522900}, {'photo_id': 1394374455, 'portfolio_id': 28522900}, {'photo_id': 1394374451, 'portfolio_id': 28522900}, {'photo_id': 1394374448, 'portfolio_id': 28522900}, {'photo_id': 1394374418, 'portfolio_id': 28522900}, {'photo_id': 1394374414, 'portfolio_id': 28522900}, {'photo_id': 1394374411, 'portfolio_id': 28522900}, {'photo_id': 1394374408, 'portfolio_id': 28522900}, {'photo_id': 1394374405, 'portfolio_id': 28522900}, {'photo_id': 1394374184, 'portfolio_id': 28522900}, {'photo_id': 1394374144, 'portfolio_id': 28522900}, {'photo_id': 1394374123, 'portfolio_id': 28522900}, {'photo_id': 1394374014, 'portfolio_id': 28522900}, {'photo_id': 1394374005, 'portfolio_id': 28522900}, {'photo_id': 1394373926, 'portfolio_id': 28522900}, {'photo_id': 1394373922, 'portfolio_id': 28522900}, {'photo_id': 1394373919, 'portfolio_id': 28522900}, {'photo_id': 1394373917, 'portfolio_id': 28522900}, {'photo_id': 1394373915, 'portfolio_id': 28522900}, {'photo_id': 1394373848, 'portfolio_id': 28522900}] map_portfolio_id_photo_id: {28522900: [1394374495, 1394374493, 1394374489, 1394374465, 1394374462, 1394374455, 1394374451, 1394374448, 1394374418, 1394374414, 1394374411, 1394374408, 1394374405, 1394374184, 1394374144, 1394374123, 1394374014, 1394374005, 1394373926, 1394373922, 1394373919, 1394373917, 1394373915, 1394373848]} ##### 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.015913724899291992 #### 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 Fri Nov 14 09:38:58 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 (28522900) 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 : 28522900 get user id for portfolio 28522900 get sub ptf for main ptf 28522900, type 3726 and hashtags ['cartonnette', 'kraft', 'flou', 'papier', 'Carton_brun', 'Carton_gris', 'Teint_Dans_La_Masse', 'environnement', 'plastique', 'autre_refus', 'metal', 'mal_croppe'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28522900 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','kraft','flou','papier','Carton_brun','Carton_gris','Teint_Dans_La_Masse','environnement','plastique','autre_refus','metal','mal_croppe')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28522900 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','kraft','flou','papier','Carton_brun','Carton_gris','Teint_Dans_La_Masse','environnement','plastique','autre_refus','metal','mal_croppe')) AND mptpi.`min_score`=0.5 To do returned map {'autre_refus': {'main_port_id': 28522900, 'sub_port_id': 28522906, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19330410, 'last_updated_at': datetime.datetime(2025, 11, 14, 9, 36, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 14, 9, 36, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 14, 9, 34, 58)}, 'plastique': {'main_port_id': 28522900, 'sub_port_id': 28522907, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19330411, 'last_updated_at': datetime.datetime(2025, 11, 14, 9, 36, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 14, 9, 36, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 14, 9, 34, 58)}, 'kraft': {'main_port_id': 28522900, 'sub_port_id': 28522908, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19330412, 'last_updated_at': datetime.datetime(2025, 11, 14, 9, 36, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 14, 9, 36, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 14, 9, 34, 58)}, 'metal': {'main_port_id': 28522900, 'sub_port_id': 28522909, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19330413, 'last_updated_at': datetime.datetime(2025, 11, 14, 9, 36, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 14, 9, 36, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 14, 9, 34, 58)}, 'flou': {'main_port_id': 28522900, 'sub_port_id': 28522910, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19330414, 'last_updated_at': datetime.datetime(2025, 11, 14, 9, 36, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 14, 9, 36, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 14, 9, 34, 58)}, 'Carton_brun': {'main_port_id': 28522900, 'sub_port_id': 28522911, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19330415, 'last_updated_at': datetime.datetime(2025, 11, 14, 9, 36, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 14, 9, 36, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 14, 9, 34, 58)}, 'papier': {'main_port_id': 28522900, 'sub_port_id': 28522912, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19330416, 'last_updated_at': datetime.datetime(2025, 11, 14, 9, 36, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 14, 9, 36, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 14, 9, 34, 58)}, 'Carton_gris': {'main_port_id': 28522900, 'sub_port_id': 28522913, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19330417, 'last_updated_at': datetime.datetime(2025, 11, 14, 9, 36, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 14, 9, 36, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 14, 9, 34, 58)}, 'mal_croppe': {'main_port_id': 28522900, 'sub_port_id': 28522914, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19330418, 'last_updated_at': datetime.datetime(2025, 11, 14, 9, 36, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 14, 9, 36, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 14, 9, 34, 58)}, 'environnement': {'main_port_id': 28522900, 'sub_port_id': 28522915, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19330419, 'last_updated_at': datetime.datetime(2025, 11, 14, 9, 36, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 14, 9, 36, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 14, 9, 34, 58)}, 'cartonnette': {'main_port_id': 28522900, 'sub_port_id': 28522916, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19330420, 'last_updated_at': datetime.datetime(2025, 11, 14, 9, 36, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 14, 9, 36, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 14, 9, 34, 58)}, 'Teint_Dans_La_Masse': {'main_port_id': 28522900, 'sub_port_id': 28522917, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19330421, 'last_updated_at': datetime.datetime(2025, 11, 14, 9, 36, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 14, 9, 36, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 14, 9, 34, 58)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28522906 , 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=28522900 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 (28522906) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28522900) result : ((1394373848,), (1394373915,), (1394373917,), (1394373919,), (1394373922,), (1394373926,), (1394374005,), (1394374014,), (1394374123,), (1394374144,), (1394374184,), (1394374405,), (1394374408,), (1394374411,), (1394374414,), (1394374418,), (1394374448,), (1394374451,), (1394374455,), (1394374462,), (1394374465,), (1394374489,), (1394374493,), (1394374495,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28522907 , 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=28522900 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 (28522907) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28522900) result : ((1394373848,), (1394373915,), (1394373917,), (1394373919,), (1394373922,), (1394373926,), (1394374005,), (1394374014,), (1394374123,), (1394374144,), (1394374184,), (1394374405,), (1394374408,), (1394374411,), (1394374414,), (1394374418,), (1394374448,), (1394374451,), (1394374455,), (1394374462,), (1394374465,), (1394374489,), (1394374493,), (1394374495,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28522908 , 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=28522900 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 (28522908) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28522900) result : ((1394373848,), (1394373915,), (1394373917,), (1394373919,), (1394373922,), (1394373926,), (1394374005,), (1394374014,), (1394374123,), (1394374144,), (1394374184,), (1394374405,), (1394374408,), (1394374411,), (1394374414,), (1394374418,), (1394374448,), (1394374451,), (1394374455,), (1394374462,), (1394374465,), (1394374489,), (1394374493,), (1394374495,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28522909 , 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=28522900 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 (28522909) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28522900) result : ((1394373848,), (1394373915,), (1394373917,), (1394373919,), (1394373922,), (1394373926,), (1394374005,), (1394374014,), (1394374123,), (1394374144,), (1394374184,), (1394374405,), (1394374408,), (1394374411,), (1394374414,), (1394374418,), (1394374448,), (1394374451,), (1394374455,), (1394374462,), (1394374465,), (1394374489,), (1394374493,), (1394374495,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28522910 , 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=28522900 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 (28522910) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28522900) result : ((1394373848,), (1394373915,), (1394373917,), (1394373919,), (1394373922,), (1394373926,), (1394374005,), (1394374014,), (1394374123,), (1394374144,), (1394374184,), (1394374405,), (1394374408,), (1394374411,), (1394374414,), (1394374418,), (1394374448,), (1394374451,), (1394374455,), (1394374462,), (1394374465,), (1394374489,), (1394374493,), (1394374495,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28522911 , 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=28522900 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 (28522911) result : ((1394374344,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28522900) result : ((1394373848,), (1394373915,), (1394373917,), (1394373919,), (1394373922,), (1394373926,), (1394374005,), (1394374014,), (1394374123,), (1394374144,), (1394374184,), (1394374405,), (1394374408,), (1394374411,), (1394374414,), (1394374418,), (1394374448,), (1394374451,), (1394374455,), (1394374462,), (1394374465,), (1394374489,), (1394374493,), (1394374495,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28522912 , 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=28522900 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 (28522912) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28522900) result : ((1394373848,), (1394373915,), (1394373917,), (1394373919,), (1394373922,), (1394373926,), (1394374005,), (1394374014,), (1394374123,), (1394374144,), (1394374184,), (1394374405,), (1394374408,), (1394374411,), (1394374414,), (1394374418,), (1394374448,), (1394374451,), (1394374455,), (1394374462,), (1394374465,), (1394374489,), (1394374493,), (1394374495,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28522913 , 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=28522900 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 (28522913) result : ((1394374322,), (1394374323,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28522900) result : ((1394373848,), (1394373915,), (1394373917,), (1394373919,), (1394373922,), (1394373926,), (1394374005,), (1394374014,), (1394374123,), (1394374144,), (1394374184,), (1394374405,), (1394374408,), (1394374411,), (1394374414,), (1394374418,), (1394374448,), (1394374451,), (1394374455,), (1394374462,), (1394374465,), (1394374489,), (1394374493,), (1394374495,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28522914 , 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=28522900 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 (28522914) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28522900) result : ((1394373848,), (1394373915,), (1394373917,), (1394373919,), (1394373922,), (1394373926,), (1394374005,), (1394374014,), (1394374123,), (1394374144,), (1394374184,), (1394374405,), (1394374408,), (1394374411,), (1394374414,), (1394374418,), (1394374448,), (1394374451,), (1394374455,), (1394374462,), (1394374465,), (1394374489,), (1394374493,), (1394374495,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28522915 , 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=28522900 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 (28522915) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28522900) result : ((1394373848,), (1394373915,), (1394373917,), (1394373919,), (1394373922,), (1394373926,), (1394374005,), (1394374014,), (1394374123,), (1394374144,), (1394374184,), (1394374405,), (1394374408,), (1394374411,), (1394374414,), (1394374418,), (1394374448,), (1394374451,), (1394374455,), (1394374462,), (1394374465,), (1394374489,), (1394374493,), (1394374495,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28522916 , 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=28522900 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 (28522916) result : ((1394374333,), (1394374335,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28522900) result : ((1394373848,), (1394373915,), (1394373917,), (1394373919,), (1394373922,), (1394373926,), (1394374005,), (1394374014,), (1394374123,), (1394374144,), (1394374184,), (1394374405,), (1394374408,), (1394374411,), (1394374414,), (1394374418,), (1394374448,), (1394374451,), (1394374455,), (1394374462,), (1394374465,), (1394374489,), (1394374493,), (1394374495,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28522917 , 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=28522900 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 (28522917) result : ((1394374491,), (1394374492,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28522900) result : ((1394373848,), (1394373915,), (1394373917,), (1394373919,), (1394373922,), (1394373926,), (1394374005,), (1394374014,), (1394374123,), (1394374144,), (1394374184,), (1394374405,), (1394374408,), (1394374411,), (1394374414,), (1394374418,), (1394374448,), (1394374451,), (1394374455,), (1394374462,), (1394374465,), (1394374489,), (1394374493,), (1394374495,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") To do ! Use context local managing function ! SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28522900 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','kraft','flou','papier','Carton_brun','Carton_gris','Teint_Dans_La_Masse','environnement','plastique','autre_refus','metal','mal_croppe')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28522900 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','kraft','flou','papier','Carton_brun','Carton_gris','Teint_Dans_La_Masse','environnement','plastique','autre_refus','metal','mal_croppe')) AND mptpi.`min_score`=0.5 To do returned map {'autre_refus': {'main_port_id': 28522900, 'sub_port_id': 28522919, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19330422, 'last_updated_at': datetime.datetime(2025, 11, 14, 9, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 11, 14, 9, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 11, 14, 9, 34, 59)}, 'plastique': {'main_port_id': 28522900, 'sub_port_id': 28522920, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19330423, 'last_updated_at': datetime.datetime(2025, 11, 14, 9, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 11, 14, 9, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 11, 14, 9, 34, 59)}, 'kraft': {'main_port_id': 28522900, 'sub_port_id': 28522921, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19330424, 'last_updated_at': datetime.datetime(2025, 11, 14, 9, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 11, 14, 9, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 11, 14, 9, 34, 59)}, 'metal': {'main_port_id': 28522900, 'sub_port_id': 28522922, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19330425, 'last_updated_at': datetime.datetime(2025, 11, 14, 9, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 11, 14, 9, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 11, 14, 9, 34, 59)}, 'flou': {'main_port_id': 28522900, 'sub_port_id': 28522923, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19330426, 'last_updated_at': datetime.datetime(2025, 11, 14, 9, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 11, 14, 9, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 11, 14, 9, 34, 59)}, 'Carton_brun': {'main_port_id': 28522900, 'sub_port_id': 28522924, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19330427, 'last_updated_at': datetime.datetime(2025, 11, 14, 9, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 11, 14, 9, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 11, 14, 9, 34, 59)}, 'papier': {'main_port_id': 28522900, 'sub_port_id': 28522925, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19330428, 'last_updated_at': datetime.datetime(2025, 11, 14, 9, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 11, 14, 9, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 11, 14, 9, 34, 59)}, 'Carton_gris': {'main_port_id': 28522900, 'sub_port_id': 28522926, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19330429, 'last_updated_at': datetime.datetime(2025, 11, 14, 9, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 11, 14, 9, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 11, 14, 9, 34, 59)}, 'mal_croppe': {'main_port_id': 28522900, 'sub_port_id': 28522927, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19330430, 'last_updated_at': datetime.datetime(2025, 11, 14, 9, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 11, 14, 9, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 11, 14, 9, 34, 59)}, 'environnement': {'main_port_id': 28522900, 'sub_port_id': 28522928, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19330431, 'last_updated_at': datetime.datetime(2025, 11, 14, 9, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 11, 14, 9, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 11, 14, 9, 34, 59)}, 'cartonnette': {'main_port_id': 28522900, 'sub_port_id': 28522929, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19330432, 'last_updated_at': datetime.datetime(2025, 11, 14, 9, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 11, 14, 9, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 11, 14, 9, 34, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 28522900, 'sub_port_id': 28522930, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19330433, 'last_updated_at': datetime.datetime(2025, 11, 14, 9, 36, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 14, 9, 36, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 14, 9, 34, 59)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28522919,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28522906 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28522920,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28522907 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28522921,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28522908 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28522922,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28522909 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28522923,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28522910 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28522924,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28522911 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28522925,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28522912 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28522926,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28522913 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28522927,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28522914 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28522928,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28522915 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28522929,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28522916 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28522930,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28522917 lien utilise dans velours : https://marlene.fotonower.com/velours/28522919,28522920,28522921,28522922,28522923,28522924,28522925,28522926,28522927,28522928,28522929,28522930?tags=autre_refus,plastique,kraft,metal,flou,Carton_brun,papier,Carton_gris,mal_croppe,environnement,cartonnette,Teint_Dans_La_Masse After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([28522900]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1394374495, 1394374493, 1394374489, 1394374465, 1394374462, 1394374455, 1394374451, 1394374448] map_info['map_portfolio_photo'] : {28522900: [1394374495, 1394374493, 1394374489, 1394374465, 1394374462, 1394374455, 1394374451, 1394374448, 1394374418, 1394374414, 1394374411, 1394374408, 1394374405, 1394374184, 1394374144, 1394374123, 1394374014, 1394374005, 1394373926, 1394373922, 1394373919, 1394373917, 1394373915, 1394373848]} final : False mtd_id 4302 list_pids : [1394374495, 1394374493, 1394374489, 1394374465, 1394374462, 1394374455, 1394374451, 1394374448] Looping around the photos to save general results len do output : 1 /28522900. 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, '4045920') ('4302', '28522900', '1394374495', None, None, None, None, None, '4045920') ('4302', None, None, None, None, None, None, None, '4045920') ('4302', '28522900', '1394374493', None, None, None, None, None, '4045920') ('4302', None, None, None, None, None, None, None, '4045920') ('4302', '28522900', '1394374489', None, None, None, None, None, '4045920') ('4302', None, None, None, None, None, None, None, '4045920') ('4302', '28522900', '1394374465', None, None, None, None, None, '4045920') ('4302', None, None, None, None, None, None, None, '4045920') ('4302', '28522900', '1394374462', None, None, None, None, None, '4045920') ('4302', None, None, None, None, None, None, None, '4045920') ('4302', '28522900', '1394374455', None, None, None, None, None, '4045920') ('4302', None, None, None, None, None, None, None, '4045920') ('4302', '28522900', '1394374451', None, None, None, None, None, '4045920') ('4302', None, None, None, None, None, None, None, '4045920') ('4302', '28522900', '1394374448', None, None, None, None, None, '4045920') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 9 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '28522900', "{'autre_refus': 28522906, 'plastique': 28522907, 'kraft': 28522908, 'metal': 28522909, 'flou': 28522910, 'Carton_brun': 28522911, 'papier': 28522912, 'Carton_gris': 28522913, 'mal_croppe': 28522914, 'environnement': 28522915, 'cartonnette': 28522916, 'Teint_Dans_La_Masse': 28522917}", None, None, None, None, '4045920'), ('4302', '28522900', '1394374495', None, None, None, None, None, '4045920'), ('4302', '28522900', '1394374493', None, None, None, None, None, '4045920'), ('4302', '28522900', '1394374489', None, None, None, None, None, '4045920'), ('4302', '28522900', '1394374465', None, None, None, None, None, '4045920'), ('4302', '28522900', '1394374462', None, None, None, None, None, '4045920'), ('4302', '28522900', '1394374455', None, None, None, None, None, '4045920'), ('4302', '28522900', '1394374451', None, None, None, None, None, '4045920'), ('4302', '28522900', '1394374448', None, None, None, None, None, '4045920')] time used for this insertion : 0.013483285903930664 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.6695404052734375 time spend to save output : 0.013815879821777344 total time spend for step 1 : 1.6833562850952148 step2:final Fri Nov 14 09:39:00 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 (28522900) 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 28522900 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1394373926,1394373848,1394373922,1394373919,1394373917,1394373915,1394374014,1394374005,1394374184,1394374144,1394374123,1394374418,1394374414,1394374411,1394374408,1394374405,1394374465,1394374462,1394374455,1394374451,1394374448,1394374495,1394374493,1394374489); 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([28522900]) Inside saveOutput : final : False verbose : True original output for save of step final : {1394374495: ('0.07024742965652872',), 1394374493: ('0.07024742965652872',), 1394374489: ('0.07024742965652872',), 1394374465: ('0.07024742965652872',), 1394374462: ('0.07024742965652872',), 1394374455: ('0.07024742965652872',), 1394374451: ('0.07024742965652872',), 1394374448: ('0.07024742965652872',)} new output for save of step final : {1394374495: ('0.07024742965652872',), 1394374493: ('0.07024742965652872',), 1394374489: ('0.07024742965652872',), 1394374465: ('0.07024742965652872',), 1394374462: ('0.07024742965652872',), 1394374455: ('0.07024742965652872',), 1394374451: ('0.07024742965652872',), 1394374448: ('0.07024742965652872',)} [1394374495, 1394374493, 1394374489, 1394374465, 1394374462, 1394374455, 1394374451, 1394374448] map_info['map_portfolio_photo'] : {28522900: [1394374495, 1394374493, 1394374489, 1394374465, 1394374462, 1394374455, 1394374451, 1394374448, 1394374418, 1394374414, 1394374411, 1394374408, 1394374405, 1394374184, 1394374144, 1394374123, 1394374014, 1394374005, 1394373926, 1394373922, 1394373919, 1394373917, 1394373915, 1394373848]} final : False mtd_id 4302 list_pids : [1394374495, 1394374493, 1394374489, 1394374465, 1394374462, 1394374455, 1394374451, 1394374448] Looping around the photos to save general results len do output : 8 /1394374495.Didn't retrieve data . /1394374493.Didn't retrieve data . /1394374489.Didn't retrieve data . /1394374465.Didn't retrieve data . /1394374462.Didn't retrieve data . /1394374455.Didn't retrieve data . /1394374451.Didn't retrieve data . /1394374448.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, '4045920') ('4302', '28522900', '1394374495', None, None, None, None, None, '4045920') ('4302', None, None, None, None, None, None, None, '4045920') ('4302', '28522900', '1394374493', None, None, None, None, None, '4045920') ('4302', None, None, None, None, None, None, None, '4045920') ('4302', '28522900', '1394374489', None, None, None, None, None, '4045920') ('4302', None, None, None, None, None, None, None, '4045920') ('4302', '28522900', '1394374465', None, None, None, None, None, '4045920') ('4302', None, None, None, None, None, None, None, '4045920') ('4302', '28522900', '1394374462', None, None, None, None, None, '4045920') ('4302', None, None, None, None, None, None, None, '4045920') ('4302', '28522900', '1394374455', None, None, None, None, None, '4045920') ('4302', None, None, None, None, None, None, None, '4045920') ('4302', '28522900', '1394374451', None, None, None, None, None, '4045920') ('4302', None, None, None, None, None, None, None, '4045920') ('4302', '28522900', '1394374448', None, None, None, None, None, '4045920') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 24 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '28522900', '1394374495', '0.07024742965652872', None, None, None, None, '4045920'), ('4302', '28522900', '1394374493', '0.07024742965652872', None, None, None, None, '4045920'), ('4302', '28522900', '1394374489', '0.07024742965652872', None, None, None, None, '4045920'), ('4302', '28522900', '1394374465', '0.07024742965652872', None, None, None, None, '4045920'), ('4302', '28522900', '1394374462', '0.07024742965652872', None, None, None, None, '4045920'), ('4302', '28522900', '1394374455', '0.07024742965652872', None, None, None, None, '4045920'), ('4302', '28522900', '1394374451', '0.07024742965652872', None, None, None, None, '4045920'), ('4302', '28522900', '1394374448', '0.07024742965652872', None, None, None, None, '4045920')] time used for this insertion : 0.01271367073059082 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06401252746582031 time spend to save output : 0.013214111328125 total time spend for step 2 : 0.07722663879394531 step3:velours_tree Fri Nov 14 09:39:00 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 : {28522900: [{'autre_refus': 28522906, 'plastique': 28522907, 'kraft': 28522908, 'metal': 28522909, 'flou': 28522910, 'Carton_brun': 28522911, 'papier': 28522912, 'Carton_gris': 28522913, 'mal_croppe': 28522914, 'environnement': 28522915, 'cartonnette': 28522916, 'Teint_Dans_La_Masse': 28522917}]} input_args_next_step : {28522900: ()} output_args : {28522900: [{'autre_refus': 28522906, 'plastique': 28522907, 'kraft': 28522908, 'metal': 28522909, 'flou': 28522910, 'Carton_brun': 28522911, 'papier': 28522912, 'Carton_gris': 28522913, 'mal_croppe': 28522914, 'environnement': 28522915, 'cartonnette': 28522916, 'Teint_Dans_La_Masse': 28522917}]} args : 28522900 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 : ({'autre_refus': 28522906, 'plastique': 28522907, 'kraft': 28522908, 'metal': 28522909, 'flou': 28522910, 'Carton_brun': 28522911, 'papier': 28522912, 'Carton_gris': 28522913, 'mal_croppe': 28522914, 'environnement': 28522915, 'cartonnette': 28522916, 'Teint_Dans_La_Masse': 28522917},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28522900) 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([28522900]) 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.3237922191619873 time spend to save output : 4.8160552978515625e-05 total time spend for step 3 : 0.3238403797149658 step4:send_mail_cod Fri Nov 14 09:39:00 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 : {1394374495: ('0.07024742965652872',), 1394374493: ('0.07024742965652872',), 1394374489: ('0.07024742965652872',), 1394374465: ('0.07024742965652872',), 1394374462: ('0.07024742965652872',), 1394374455: ('0.07024742965652872',), 1394374451: ('0.07024742965652872',), 1394374448: ('0.07024742965652872',)} input_args_next_step : {1394374495: ()} output_args : {1394374495: ('0.07024742965652872',), 1394374493: ('0.07024742965652872',), 1394374489: ('0.07024742965652872',), 1394374465: ('0.07024742965652872',), 1394374462: ('0.07024742965652872',), 1394374455: ('0.07024742965652872',), 1394374451: ('0.07024742965652872',), 1394374448: ('0.07024742965652872',)} args : 1394374495 depend.output_id : 0 input_args_next_step : {1394374495: ('0.07024742965652872',), 1394374493: ()} output_args : {1394374495: ('0.07024742965652872',), 1394374493: ('0.07024742965652872',), 1394374489: ('0.07024742965652872',), 1394374465: ('0.07024742965652872',), 1394374462: ('0.07024742965652872',), 1394374455: ('0.07024742965652872',), 1394374451: ('0.07024742965652872',), 1394374448: ('0.07024742965652872',)} args : 1394374493 depend.output_id : 0 input_args_next_step : {1394374495: ('0.07024742965652872',), 1394374493: ('0.07024742965652872',), 1394374489: ()} output_args : {1394374495: ('0.07024742965652872',), 1394374493: ('0.07024742965652872',), 1394374489: ('0.07024742965652872',), 1394374465: ('0.07024742965652872',), 1394374462: ('0.07024742965652872',), 1394374455: ('0.07024742965652872',), 1394374451: ('0.07024742965652872',), 1394374448: ('0.07024742965652872',)} args : 1394374489 depend.output_id : 0 input_args_next_step : {1394374495: ('0.07024742965652872',), 1394374493: ('0.07024742965652872',), 1394374489: ('0.07024742965652872',), 1394374465: ()} output_args : {1394374495: ('0.07024742965652872',), 1394374493: ('0.07024742965652872',), 1394374489: ('0.07024742965652872',), 1394374465: ('0.07024742965652872',), 1394374462: ('0.07024742965652872',), 1394374455: ('0.07024742965652872',), 1394374451: ('0.07024742965652872',), 1394374448: ('0.07024742965652872',)} args : 1394374465 depend.output_id : 0 input_args_next_step : {1394374495: ('0.07024742965652872',), 1394374493: ('0.07024742965652872',), 1394374489: ('0.07024742965652872',), 1394374465: ('0.07024742965652872',), 1394374462: ()} output_args : {1394374495: ('0.07024742965652872',), 1394374493: ('0.07024742965652872',), 1394374489: ('0.07024742965652872',), 1394374465: ('0.07024742965652872',), 1394374462: ('0.07024742965652872',), 1394374455: ('0.07024742965652872',), 1394374451: ('0.07024742965652872',), 1394374448: ('0.07024742965652872',)} args : 1394374462 depend.output_id : 0 input_args_next_step : {1394374495: ('0.07024742965652872',), 1394374493: ('0.07024742965652872',), 1394374489: ('0.07024742965652872',), 1394374465: ('0.07024742965652872',), 1394374462: ('0.07024742965652872',), 1394374455: ()} output_args : {1394374495: ('0.07024742965652872',), 1394374493: ('0.07024742965652872',), 1394374489: ('0.07024742965652872',), 1394374465: ('0.07024742965652872',), 1394374462: ('0.07024742965652872',), 1394374455: ('0.07024742965652872',), 1394374451: ('0.07024742965652872',), 1394374448: ('0.07024742965652872',)} args : 1394374455 depend.output_id : 0 input_args_next_step : {1394374495: ('0.07024742965652872',), 1394374493: ('0.07024742965652872',), 1394374489: ('0.07024742965652872',), 1394374465: ('0.07024742965652872',), 1394374462: ('0.07024742965652872',), 1394374455: ('0.07024742965652872',), 1394374451: ()} output_args : {1394374495: ('0.07024742965652872',), 1394374493: ('0.07024742965652872',), 1394374489: ('0.07024742965652872',), 1394374465: ('0.07024742965652872',), 1394374462: ('0.07024742965652872',), 1394374455: ('0.07024742965652872',), 1394374451: ('0.07024742965652872',), 1394374448: ('0.07024742965652872',)} args : 1394374451 depend.output_id : 0 input_args_next_step : {1394374495: ('0.07024742965652872',), 1394374493: ('0.07024742965652872',), 1394374489: ('0.07024742965652872',), 1394374465: ('0.07024742965652872',), 1394374462: ('0.07024742965652872',), 1394374455: ('0.07024742965652872',), 1394374451: ('0.07024742965652872',), 1394374448: ()} output_args : {1394374495: ('0.07024742965652872',), 1394374493: ('0.07024742965652872',), 1394374489: ('0.07024742965652872',), 1394374465: ('0.07024742965652872',), 1394374462: ('0.07024742965652872',), 1394374455: ('0.07024742965652872',), 1394374451: ('0.07024742965652872',), 1394374448: ('0.07024742965652872',)} args : 1394374448 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 : {28522900: [{'autre_refus': 28522906, 'plastique': 28522907, 'kraft': 28522908, 'metal': 28522909, 'flou': 28522910, 'Carton_brun': 28522911, 'papier': 28522912, 'Carton_gris': 28522913, 'mal_croppe': 28522914, 'environnement': 28522915, 'cartonnette': 28522916, 'Teint_Dans_La_Masse': 28522917}]} input_args_next_step : {1394374495: ('0.07024742965652872',), 1394374493: ('0.07024742965652872',), 1394374489: ('0.07024742965652872',), 1394374465: ('0.07024742965652872',), 1394374462: ('0.07024742965652872',), 1394374455: ('0.07024742965652872',), 1394374451: ('0.07024742965652872',), 1394374448: ('0.07024742965652872',), 28522900: ()} output_args : {28522900: [{'autre_refus': 28522906, 'plastique': 28522907, 'kraft': 28522908, 'metal': 28522909, 'flou': 28522910, 'Carton_brun': 28522911, 'papier': 28522912, 'Carton_gris': 28522913, 'mal_croppe': 28522914, 'environnement': 28522915, 'cartonnette': 28522916, 'Teint_Dans_La_Masse': 28522917}]} args : 28522900 depend.output_id : 0 We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :9, first value : ('0.07024742965652872',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28522900) 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 (1394374495,1394374493,1394374489,1394374465,1394374462,1394374455,1394374451,1394374448) Found this number of photos: 8 ##### Call download_photos : nb_thread : 5 begin to download photo : 1394374448 begin to download photo : 1394374455 begin to download photo : 1394374465 begin to download photo : 1394374493 download finish for photo 1394374465 begin to download photo : 1394374489 download finish for photo 1394374448 begin to download photo : 1394374451 download finish for photo 1394374455 begin to download photo : 1394374462 download finish for photo 1394374493 begin to download photo : 1394374495 download finish for photo 1394374489 download finish for photo 1394374462 download finish for photo 1394374451 download finish for photo 1394374495 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette285229061763109540/ imagette285229071763109540/ imagette285229081763109540/ imagette285229091763109540/ imagette285229101763109540/ imagette285229141763109540/ length of list_filenames : 8 ; length of list_pids : 8 ; length of list_args : 8 results_Auto_P28522900_14-11-2025_09_39_00.pdf 28522906 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=28522906 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette285229061763109540 28522907 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=28522907 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette285229071763109540 28522908 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=28522908 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette285229081763109540 28522909 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=28522909 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette285229091763109540 28522910 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=28522910 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette285229101763109540 28522914 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=28522914 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette285229141763109540 28522916 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=28522916 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1394374333: '1763109308_1923436_1394374014_33cf2c621ad121756233eedb426c942e_rle_crop_4033286741_0.png', 1394374335: '1763109308_1923436_1394373915_1bae331ba1beecaa461c0040bcd5d425_rle_crop_4033286790_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/14/f61b3182913388243a132634bebb2288_43543272.png change filename to text .imagette285229161763109540/ imagette285229161763109540/1763109308_1923436_1394373915_1bae331ba1beecaa461c0040bcd5d425_rle_crop_4033286790_0.png.png imagette285229161763109540/1763109308_1923436_1394374014_33cf2c621ad121756233eedb426c942e_rle_crop_4033286741_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/14/84decf809b07ac14be47512c4db65c0e_65916431.png imagette285229161763109540 28522911 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=28522911 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1394374344: '1763109308_1923436_1394374014_33cf2c621ad121756233eedb426c942e_rle_crop_4033286740_0.png'} change filename to text .imagette285229111763109541/ imagette285229111763109541/1763109308_1923436_1394374014_33cf2c621ad121756233eedb426c942e_rle_crop_4033286740_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/14/67947c6b898febf0930d7a00d790f198_79954254.png imagette285229111763109541 28522913 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=28522913 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1394374322: '1763109308_1923436_1394373922_fcb6cf6927188e7bd160eaf046b01186_rle_crop_4033286754_0.png', 1394374323: '1763109308_1923436_1394373917_c5a57159a6172c9b28bde67975f12fbb_rle_crop_4033286782_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/14/a4c505aacc91a4d0db2bdf2e35429337_28074322.png change filename to text .imagette285229131763109541/ imagette285229131763109541/1763109308_1923436_1394373917_c5a57159a6172c9b28bde67975f12fbb_rle_crop_4033286782_0.png.png imagette285229131763109541/1763109308_1923436_1394373922_fcb6cf6927188e7bd160eaf046b01186_rle_crop_4033286754_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/14/f26e4bdac15179567f69e1414161d147_81077502.png imagette285229131763109541 28522917 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=28522917 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1394374491: '1763109446_1928022_1394374144_2e01b3671416d5353334677367aa8493_rle_crop_4033291060_0.png', 1394374492: '1763109446_1928022_1394374123_f0c50b517a2952599708cff6035292da_rle_crop_4033292367_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/14/5eb0d03bd11b014736aeec42e3ad09f7_48970031.png change filename to text .imagette285229171763109541/ imagette285229171763109541/1763109446_1928022_1394374123_f0c50b517a2952599708cff6035292da_rle_crop_4033292367_0.png.png imagette285229171763109541/1763109446_1928022_1394374144_2e01b3671416d5353334677367aa8493_rle_crop_4033291060_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/14/edf8fee2af3d43310694300b5394bf70_62484384.png imagette285229171763109541 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=28522900 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/28522919,28522920,28522921,28522922,28522923,28522924,28522925,28522926,28522927,28522928,28522929,28522930?tags=autre_refus,plastique,kraft,metal,flou,Carton_brun,papier,Carton_gris,mal_croppe,environnement,cartonnette,Teint_Dans_La_Masse your option no_mail is active, we will not send the real mail to your client args[1394374495] : ('0.07024742965652872',) no score found for photo 1394374495 We are sending mail with results at report@fotonower.com args[1394374493] : ('0.07024742965652872',) no score found for photo 1394374493 We are sending mail with results at report@fotonower.com args[1394374489] : ('0.07024742965652872',) no score found for photo 1394374489 We are sending mail with results at report@fotonower.com args[1394374465] : ('0.07024742965652872',) no score found for photo 1394374465 We are sending mail with results at report@fotonower.com args[1394374462] : ('0.07024742965652872',) no score found for photo 1394374462 We are sending mail with results at report@fotonower.com args[1394374455] : ('0.07024742965652872',) no score found for photo 1394374455 We are sending mail with results at report@fotonower.com args[1394374451] : ('0.07024742965652872',) no score found for photo 1394374451 We are sending mail with results at report@fotonower.com args[1394374448] : ('0.07024742965652872',) no score found for photo 1394374448 We are sending mail with results at report@fotonower.com refus_total : 0.07024742965652872 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=28522900 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_P28522900_14-11-2025_09_39_00.pdf results_Auto_P28522900_14-11-2025_09_39_00.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28522900_14-11-2025_09_39_00.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','28522900','results_Auto_P28522900_14-11-2025_09_39_00.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28522900_14-11-2025_09_39_00.pdf','pdf','','0.1','0.07024742965652872') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([28522900]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1394374495, 1394374493, 1394374489, 1394374465, 1394374462, 1394374455, 1394374451, 1394374448] map_info['map_portfolio_photo'] : {28522900: [1394374495, 1394374493, 1394374489, 1394374465, 1394374462, 1394374455, 1394374451, 1394374448, 1394374418, 1394374414, 1394374411, 1394374408, 1394374405, 1394374184, 1394374144, 1394374123, 1394374014, 1394374005, 1394373926, 1394373922, 1394373919, 1394373917, 1394373915, 1394373848]} final : False mtd_id 4302 list_pids : [1394374495, 1394374493, 1394374489, 1394374465, 1394374462, 1394374455, 1394374451, 1394374448] 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, '4045920') ('4302', '28522900', '1394374495', None, None, None, None, None, '4045920') ('4302', None, None, None, None, None, None, None, '4045920') ('4302', '28522900', '1394374493', None, None, None, None, None, '4045920') ('4302', None, None, None, None, None, None, None, '4045920') ('4302', '28522900', '1394374489', None, None, None, None, None, '4045920') ('4302', None, None, None, None, None, None, None, '4045920') ('4302', '28522900', '1394374465', None, None, None, None, None, '4045920') ('4302', None, None, None, None, None, None, None, '4045920') ('4302', '28522900', '1394374462', None, None, None, None, None, '4045920') ('4302', None, None, None, None, None, None, None, '4045920') ('4302', '28522900', '1394374455', None, None, None, None, None, '4045920') ('4302', None, None, None, None, None, None, None, '4045920') ('4302', '28522900', '1394374451', None, None, None, None, None, '4045920') ('4302', None, None, None, None, None, None, None, '4045920') ('4302', '28522900', '1394374448', None, None, None, None, None, '4045920') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 8 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '28522900', '1394374495', None, None, None, None, None, '4045920'), ('4302', '28522900', '1394374493', None, None, None, None, None, '4045920'), ('4302', '28522900', '1394374489', None, None, None, None, None, '4045920'), ('4302', '28522900', '1394374465', None, None, None, None, None, '4045920'), ('4302', '28522900', '1394374462', None, None, None, None, None, '4045920'), ('4302', '28522900', '1394374455', None, None, None, None, None, '4045920'), ('4302', '28522900', '1394374451', None, None, None, None, None, '4045920'), ('4302', '28522900', '1394374448', None, None, None, None, None, '4045920')] time used for this insertion : 0.012824296951293945 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.1686487197875977 time spend to save output : 0.013025045394897461 total time spend for step 4 : 2.181673765182495 step5:split_time_score Fri Nov 14 09:39:02 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 : ['28522900'] 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 : [('28522900',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28522900) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1394374465: {'path': 'temp/1763109540_2755938_1394374465_342b7b358b5a7a46265e73d0b5c72225.jpg', 'extension': 'jpg'}, 1394374489: {'path': 'temp/1763109540_2755938_1394374489_ec6630d682a86eb10f7f345dc91491ef.jpg', 'extension': 'jpg'}, 1394374455: {'path': 'temp/1763109540_2755938_1394374455_fd37a6c7b160b6147833a17bfb7a90e1.jpg', 'extension': 'jpg'}, 1394374462: {'path': 'temp/1763109540_2755938_1394374462_db32512cae4ca38a85374f1df4a44f02.jpg', 'extension': 'jpg'}, 1394374448: {'path': 'temp/1763109540_2755938_1394374448_6d8072747afec121f48e742ee85f1f37.jpg', 'extension': 'jpg'}, 1394374451: {'path': 'temp/1763109540_2755938_1394374451_d5fd4b4a433acd430b78d9dd1e1a7e86.jpg', 'extension': 'jpg'}, 1394374493: {'path': 'temp/1763109540_2755938_1394374493_651f313471172ba639089ed503172179.jpg', 'extension': 'jpg'}, 1394374495: {'path': 'temp/1763109540_2755938_1394374495_a474c9b8195ece4c0d98617391f1ff01.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 = 28522900; (('arc_en_ciel_jrm_live',), ('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 = 28522900 group by h (('09', 24),) 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=28522900 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 (28522900) 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 (28522900) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 14112025 28522900 Nombre de photos uploadées : 24 / 23040 (0%) 14112025 28522900 Nombre de photos taguées (types de déchets): 0 / 24 (0%) 14112025 28522900 Nombre de photos taguées (volume) : 0 / 24 (0%) [{'photo_id': 1394373926, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/14/5a573ccb6746ba153eabfd5903c79a3d.jpg', 'username': None, 'uploaded_at': 1763109188, 'text': 'image_14112025_09_31_44_10135.jpg'}, {'photo_id': 1394373848, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/14/a6b785154cf4a40f74a6103f9bd06f32.jpg', 'username': None, 'uploaded_at': 1763109123, 'text': 'image_14112025_09_31_54_10134.jpg'}, {'photo_id': 1394373922, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/14/fcb6cf6927188e7bd160eaf046b01186.jpg', 'username': None, 'uploaded_at': 1763109188, 'text': 'image_14112025_09_32_04_10145.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1394373919, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/14/3a06654318c8fde1832e3ad52a1e2489.jpg', 'username': None, 'uploaded_at': 1763109188, 'text': 'image_14112025_09_32_14_10135.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 2.1457672119140625e-06 elapsed_time : order_list_meta_photo_and_scores 5.4836273193359375e-06 ???????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0012099742889404297 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 28522900, '2025-11-14' ) 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-14' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2577932,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.21935391426086426 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= 2577932 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2577932, 'dashboard_run_id': 2587906, 'mtr_portfolio_id': 28504025, 'dashboard_result_id': 17240055, '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_P28504025_14-11-2025_06_08_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28504047, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28504048, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28504050, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28504051, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28504052, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28504053, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28504054, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28504055, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28504056, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28504057, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28504058, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28504059, 'pht': 3726}}"}, {'dashboat_entry_day': 2577932, 'dashboard_run_id': 2587906, 'mtr_portfolio_id': 28504648, 'dashboard_result_id': 17240056, '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_P28504648_14-11-2025_06_09_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28504652, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28504653, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28504654, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28504655, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28504656, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28504657, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28504658, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28504659, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28504660, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28504661, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28504662, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28504663, 'pht': 3726}}"}, {'dashboat_entry_day': 2577932, 'dashboard_run_id': 2587906, 'mtr_portfolio_id': 28505140, 'dashboard_result_id': 17240057, '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_P28505140_14-11-2025_06_10_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28505162, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28505163, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28505164, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28505165, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28505166, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28505167, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28505168, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28505169, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28505170, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28505171, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28505173, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28505175, 'pht': 3726}}"}, {'dashboat_entry_day': 2577932, 'dashboard_run_id': 2587906, 'mtr_portfolio_id': 28505764, 'dashboard_result_id': 17240058, '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_P28505764_14-11-2025_06_10_33.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28505805, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28505806, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28505807, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28505808, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28505809, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28505810, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28505811, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28505812, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28505813, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28505814, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28505815, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28505816, 'pht': 3726}}"}, {'dashboat_entry_day': 2577932, 'dashboard_run_id': 2587906, 'mtr_portfolio_id': 28507316, 'dashboard_result_id': 17240059, '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_P28507316_14-11-2025_06_11_12.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28507317, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28507318, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28507319, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28507320, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28507321, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28507322, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28507323, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28507324, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28507325, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28507326, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28507327, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28507328, 'pht': 3726}}"}, {'dashboat_entry_day': 2577932, 'dashboard_run_id': 2587906, 'mtr_portfolio_id': 28507473, 'dashboard_result_id': 17240060, '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_P28507473_14-11-2025_06_11_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28507476, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28507477, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28507478, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28507479, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28507480, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28507481, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28507482, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28507483, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28507484, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28507485, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28507486, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28507487, 'pht': 3726}}"}, {'dashboat_entry_day': 2577932, 'dashboard_run_id': 2587906, 'mtr_portfolio_id': 28507781, 'dashboard_result_id': 17240061, '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_P28507781_14-11-2025_06_12_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28507788, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28507789, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28507790, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28507791, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28507792, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28507793, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28507794, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28507795, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28507796, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28507797, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28507798, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28507799, 'pht': 3726}}"}, {'dashboat_entry_day': 2577932, 'dashboard_run_id': 2587906, 'mtr_portfolio_id': 28508415, 'dashboard_result_id': 17240062, '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_P28508415_14-11-2025_06_12_30.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28508425, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28508426, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28508427, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28508428, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28508429, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28508430, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28508431, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28508432, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28508433, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28508434, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28508435, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28508436, 'pht': 3726}}"}, {'dashboat_entry_day': 2577932, 'dashboard_run_id': 2587906, 'mtr_portfolio_id': 28508891, 'dashboard_result_id': 17240063, '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_P28508891_14-11-2025_06_13_30.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28508900, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28508901, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28508902, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28508903, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28508904, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28508905, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28508906, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28508907, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28508908, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28508909, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28508910, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28508911, 'pht': 3726}}"}, {'dashboat_entry_day': 2577932, 'dashboard_run_id': 2587906, 'mtr_portfolio_id': 28509308, 'dashboard_result_id': 17240064, '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_P28509308_14-11-2025_06_14_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28509334, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28509335, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28509336, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28509337, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28509338, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28509339, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28509340, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28509341, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28509342, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28509343, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28509344, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28509345, 'pht': 3726}}"}, {'dashboat_entry_day': 2577932, 'dashboard_run_id': 2587906, 'mtr_portfolio_id': 28509755, 'dashboard_result_id': 17240065, '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_P28509755_14-11-2025_06_14_30.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28509765, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28509766, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28509767, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28509768, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28509769, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28509770, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28509771, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28509772, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28509773, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28509774, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28509775, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28509776, 'pht': 3726}}"}, {'dashboat_entry_day': 2577932, 'dashboard_run_id': 2587906, 'mtr_portfolio_id': 28510403, 'dashboard_result_id': 17240066, '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_P28510403_14-11-2025_06_15_32.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28510412, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28510413, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28510414, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28510415, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28510416, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28510417, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28510418, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28510419, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28510420, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28510421, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28510422, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28510423, 'pht': 3726}}"}, {'dashboat_entry_day': 2577932, 'dashboard_run_id': 2587906, 'mtr_portfolio_id': 28510787, 'dashboard_result_id': 17240067, '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_P28510787_14-11-2025_06_16_03.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28510820, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28510821, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28510822, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28510823, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28510824, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28510825, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28510826, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28510827, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28510828, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28510829, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28510830, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28510831, 'pht': 3726}}"}, {'dashboat_entry_day': 2577932, 'dashboard_run_id': 2587906, 'mtr_portfolio_id': 28511242, 'dashboard_result_id': 17240069, '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_P28511242_14-11-2025_06_16_11.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28511246, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28511247, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28511248, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28511249, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28511250, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28511251, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28511252, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28511253, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28511254, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28511255, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28511256, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28511257, 'pht': 3726}}"}, {'dashboat_entry_day': 2577932, 'dashboard_run_id': 2587906, 'mtr_portfolio_id': 28511755, 'dashboard_result_id': 17240071, '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_P28511755_14-11-2025_06_16_31.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28511767, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28511768, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28511769, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28511770, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28511771, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28511772, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28511773, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28511774, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28511775, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28511776, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28511777, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28511778, 'pht': 3726}}"}, {'dashboat_entry_day': 2577932, 'dashboard_run_id': 2587906, 'mtr_portfolio_id': 28512579, 'dashboard_result_id': 17240073, '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_P28512579_14-11-2025_06_16_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28512583, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28512584, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28512585, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28512586, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28512587, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28512588, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28512589, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28512590, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28512591, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28512592, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28512593, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28512594, 'pht': 3726}}"}, {'dashboat_entry_day': 2577932, 'dashboard_run_id': 2587906, 'mtr_portfolio_id': 28512841, 'dashboard_result_id': 17240074, '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_P28512841_14-11-2025_06_17_33.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28512845, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28512846, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28512847, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28512848, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28512849, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28512850, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28512851, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28512852, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28512853, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28512854, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28512855, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28512856, 'pht': 3726}}"}, {'dashboat_entry_day': 2577932, 'dashboard_run_id': 2587906, 'mtr_portfolio_id': 28513210, 'dashboard_result_id': 17240075, '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_P28513210_14-11-2025_05_46_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28513213, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28513214, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28513215, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28513216, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28513217, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28513218, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28513219, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28513220, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28513221, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28513222, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28513223, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28513224, 'pht': 3726}}"}, {'dashboat_entry_day': 2577932, 'dashboard_run_id': 2587906, 'mtr_portfolio_id': 28513700, 'dashboard_result_id': 17240076, '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_P28513700_14-11-2025_06_03_29.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28513705, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28513706, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28513707, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28513708, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28513709, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28513710, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28513711, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28513712, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28513713, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28513714, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28513715, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28513716, 'pht': 3726}}"}, {'dashboat_entry_day': 2577932, 'dashboard_run_id': 2587906, 'mtr_portfolio_id': 28514065, 'dashboard_result_id': 17240077, '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_P28514065_14-11-2025_06_18_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28514069, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28514070, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28514071, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28514072, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28514073, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28514074, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28514075, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28514076, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28514077, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28514078, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28514079, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28514080, 'pht': 3726}}"}, {'dashboat_entry_day': 2577932, 'dashboard_run_id': 2587906, 'mtr_portfolio_id': 28514662, 'dashboard_result_id': 17240078, '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_P28514662_14-11-2025_06_32_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28514700, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28514701, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28514702, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28514703, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28514704, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28514705, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28514706, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28514707, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28514708, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28514709, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28514710, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28514711, 'pht': 3726}}"}, {'dashboat_entry_day': 2577932, 'dashboard_run_id': 2587906, 'mtr_portfolio_id': 28515109, 'dashboard_result_id': 17240079, '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_P28515109_14-11-2025_06_47_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28515116, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28515117, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28515118, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28515119, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28515120, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28515121, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28515122, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28515123, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28515124, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28515125, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28515126, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28515127, 'pht': 3726}}"}, {'dashboat_entry_day': 2577932, 'dashboard_run_id': 2587906, 'mtr_portfolio_id': 28515499, 'dashboard_result_id': 17240080, '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_P28515499_14-11-2025_07_03_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28515500, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28515501, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28515502, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28515503, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28515504, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28515505, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28515506, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28515507, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28515508, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28515509, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28515510, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28515511, 'pht': 3726}}"}, {'dashboat_entry_day': 2577932, 'dashboard_run_id': 2587906, 'mtr_portfolio_id': 28515934, 'dashboard_result_id': 17240081, '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_P28515934_14-11-2025_07_16_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28515980, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28515981, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28515982, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28515983, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28515984, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28515985, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28515986, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28515987, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28515988, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28515989, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28515990, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28515991, 'pht': 3726}}"}, {'dashboat_entry_day': 2577932, 'dashboard_run_id': 2587906, 'mtr_portfolio_id': 28516710, 'dashboard_result_id': 17240082, '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_P28516710_14-11-2025_07_32_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28516788, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28516790, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28516791, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28516792, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28516794, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28516795, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28516796, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28516798, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28516799, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28516800, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28516802, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28516803, 'pht': 3726}}"}, {'dashboat_entry_day': 2577932, 'dashboard_run_id': 2587906, 'mtr_portfolio_id': 28517657, 'dashboard_result_id': 17240083, '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_P28517657_14-11-2025_07_47_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28517662, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28517663, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28517664, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28517665, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28517666, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28517667, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28517668, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28517669, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28517670, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28517671, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28517672, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28517673, 'pht': 3726}}"}, {'dashboat_entry_day': 2577932, 'dashboard_run_id': 2587906, 'mtr_portfolio_id': 28518111, 'dashboard_result_id': 17240084, '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_P28518111_14-11-2025_08_03_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28518154, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28518155, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28518156, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28518157, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28518158, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28518159, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28518160, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28518162, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28518163, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28518164, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28518165, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28518166, 'pht': 3726}}"}, {'dashboat_entry_day': 2577932, 'dashboard_run_id': 2587906, 'mtr_portfolio_id': 28518734, 'dashboard_result_id': 17240085, '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_P28518734_14-11-2025_08_18_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28518809, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28518810, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28518811, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28518812, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28518813, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28518814, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28518815, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28518816, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28518817, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28518818, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28518819, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28518820, 'pht': 3726}}"}, {'dashboat_entry_day': 2577932, 'dashboard_run_id': 2587906, 'mtr_portfolio_id': 28519463, 'dashboard_result_id': 17240086, '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_P28519463_14-11-2025_08_33_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28519505, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28519506, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28519507, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28519508, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28519509, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28519510, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28519511, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28519512, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28519513, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28519514, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28519515, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28519516, 'pht': 3726}}"}, {'dashboat_entry_day': 2577932, 'dashboard_run_id': 2587906, 'mtr_portfolio_id': 28520133, 'dashboard_result_id': 17240087, '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_P28520133_14-11-2025_08_48_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28520165, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28520166, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28520167, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28520168, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28520169, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28520170, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28520171, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28520172, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28520173, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28520174, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28520175, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28520176, 'pht': 3726}}"}, {'dashboat_entry_day': 2577932, 'dashboard_run_id': 2587906, 'mtr_portfolio_id': 28520950, 'dashboard_result_id': 17240088, '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_P28520950_14-11-2025_09_02_31.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28520997, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28520998, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28520999, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28521000, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28521001, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28521002, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28521003, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28521004, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28521005, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28521006, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28521007, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28521008, 'pht': 3726}}"}, {'dashboat_entry_day': 2577932, 'dashboard_run_id': 2587906, 'mtr_portfolio_id': 28522105, 'dashboard_result_id': 17240089, '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_P28522105_14-11-2025_09_33_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28522110, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28522111, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28522112, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28522113, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28522114, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28522115, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28522116, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28522117, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28522118, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28522119, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28522120, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28522121, 'pht': 3726}}"}, {'dashboat_entry_day': 2577932, 'dashboard_run_id': 2587906, 'mtr_portfolio_id': 28522900, 'dashboard_result_id': 17240090, '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_P28522900_14-11-2025_09_36_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28522906, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28522907, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28522908, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28522909, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28522910, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28522911, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28522912, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28522913, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28522914, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28522915, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28522916, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28522917, '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 = 28504025 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': 4044575, 'mtr_portfolio_id': 28504025, 'created_at': datetime.datetime(2025, 11, 14, 6, 8, 29), 'result': '0.05302022705959674', 'result_long': None, 'result_double': None}] Qualite : 0.05302022705959674 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28504025 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28504025_14-11-2025_06_08_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28504025 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_P28504025_14-11-2025_06_08_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28504047, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28504048, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28504050, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28504051, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28504052, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28504053, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28504054, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28504055, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28504056, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28504057, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28504058, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28504059, 'pht': 3726}}" where mtr_portfolio_id = 28504025 and dashboard_run_id = 2587906 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`=28504025 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17240055, 0.05302022705959674, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28504025_14-11-2025_06_08_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28504047, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28504048, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28504050, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28504051, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28504052, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28504053, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28504054, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28504055, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28504056, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28504057, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28504058, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28504059, '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 = 28504648 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': 4044576, 'mtr_portfolio_id': 28504648, 'created_at': datetime.datetime(2025, 11, 14, 6, 9, 28), 'result': '0.029397044996053397', 'result_long': None, 'result_double': None}] Qualite : 0.029397044996053397 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28504648 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28504648_14-11-2025_06_09_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28504648 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_P28504648_14-11-2025_06_09_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28504652, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28504653, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28504654, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28504655, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28504656, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28504657, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28504658, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28504659, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28504660, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28504661, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28504662, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28504663, 'pht': 3726}}" where mtr_portfolio_id = 28504648 and dashboard_run_id = 2587906 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`=28504648 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17240056, 0.029397044996053397, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28504648_14-11-2025_06_09_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28504652, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28504653, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28504654, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28504655, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28504656, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28504657, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28504658, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28504659, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28504660, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28504661, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28504662, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28504663, '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 = 28505140 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': 4044577, 'mtr_portfolio_id': 28505140, 'created_at': datetime.datetime(2025, 11, 14, 6, 9, 59), 'result': '0.028427374531361193', 'result_long': None, 'result_double': None}] Qualite : 0.028427374531361193 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28505140 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28505140_14-11-2025_06_10_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28505140 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_P28505140_14-11-2025_06_10_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28505162, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28505163, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28505164, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28505165, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28505166, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28505167, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28505168, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28505169, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28505170, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28505171, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28505173, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28505175, 'pht': 3726}}" where mtr_portfolio_id = 28505140 and dashboard_run_id = 2587906 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`=28505140 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17240057, 0.028427374531361193, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28505140_14-11-2025_06_10_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28505162, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28505163, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28505164, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28505165, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28505166, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28505167, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28505168, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28505169, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28505170, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28505171, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28505173, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28505175, '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 = 28505764 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': 4044578, 'mtr_portfolio_id': 28505764, 'created_at': datetime.datetime(2025, 11, 14, 6, 10, 30), 'result': '0.058774614602034106', 'result_long': None, 'result_double': None}] Qualite : 0.058774614602034106 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28505764 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28505764_14-11-2025_06_10_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28505764 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_P28505764_14-11-2025_06_10_33.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28505805, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28505806, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28505807, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28505808, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28505809, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28505810, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28505811, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28505812, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28505813, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28505814, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28505815, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28505816, 'pht': 3726}}" where mtr_portfolio_id = 28505764 and dashboard_run_id = 2587906 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`=28505764 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17240058, 0.058774614602034106, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28505764_14-11-2025_06_10_33.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28505805, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28505806, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28505807, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28505808, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28505809, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28505810, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28505811, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28505812, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28505813, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28505814, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28505815, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28505816, '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 = 28507316 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': 4044579, 'mtr_portfolio_id': 28507316, 'created_at': datetime.datetime(2025, 11, 14, 6, 11, 10), 'result': '0.04992322005212625', 'result_long': None, 'result_double': None}] Qualite : 0.04992322005212625 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28507316 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28507316_14-11-2025_06_11_12.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28507316 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_P28507316_14-11-2025_06_11_12.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28507317, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28507318, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28507319, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28507320, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28507321, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28507322, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28507323, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28507324, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28507325, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28507326, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28507327, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28507328, 'pht': 3726}}" where mtr_portfolio_id = 28507316 and dashboard_run_id = 2587906 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`=28507316 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17240059, 0.04992322005212625, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28507316_14-11-2025_06_11_12.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28507317, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28507318, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28507319, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28507320, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28507321, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28507322, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28507323, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28507324, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28507325, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28507326, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28507327, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28507328, '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 = 28507473 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': 4044580, 'mtr_portfolio_id': 28507473, 'created_at': datetime.datetime(2025, 11, 14, 6, 11, 28), 'result': '0.04650765438997653', 'result_long': None, 'result_double': None}] Qualite : 0.04650765438997653 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28507473 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28507473_14-11-2025_06_11_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28507473 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_P28507473_14-11-2025_06_11_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28507476, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28507477, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28507478, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28507479, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28507480, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28507481, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28507482, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28507483, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28507484, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28507485, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28507486, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28507487, 'pht': 3726}}" where mtr_portfolio_id = 28507473 and dashboard_run_id = 2587906 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`=28507473 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17240060, 0.04650765438997653, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28507473_14-11-2025_06_11_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28507476, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28507477, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28507478, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28507479, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28507480, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28507481, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28507482, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28507483, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28507484, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28507485, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28507486, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28507487, '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 = 28507781 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': 4044581, 'mtr_portfolio_id': 28507781, 'created_at': datetime.datetime(2025, 11, 14, 6, 11, 59), 'result': '0.075315275153753', 'result_long': None, 'result_double': None}] Qualite : 0.075315275153753 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28507781 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28507781_14-11-2025_06_12_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28507781 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_P28507781_14-11-2025_06_12_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28507788, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28507789, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28507790, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28507791, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28507792, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28507793, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28507794, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28507795, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28507796, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28507797, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28507798, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28507799, 'pht': 3726}}" where mtr_portfolio_id = 28507781 and dashboard_run_id = 2587906 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`=28507781 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17240061, 0.075315275153753, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28507781_14-11-2025_06_12_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28507788, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28507789, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28507790, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28507791, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28507792, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28507793, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28507794, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28507795, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28507796, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28507797, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28507798, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28507799, '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 = 28508415 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': 4044582, 'mtr_portfolio_id': 28508415, 'created_at': datetime.datetime(2025, 11, 14, 6, 12, 27), 'result': '0.042436246027215824', 'result_long': None, 'result_double': None}] Qualite : 0.042436246027215824 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28508415 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28508415_14-11-2025_06_12_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28508415 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_P28508415_14-11-2025_06_12_30.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28508425, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28508426, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28508427, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28508428, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28508429, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28508430, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28508431, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28508432, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28508433, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28508434, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28508435, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28508436, 'pht': 3726}}" where mtr_portfolio_id = 28508415 and dashboard_run_id = 2587906 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`=28508415 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17240062, 0.042436246027215824, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28508415_14-11-2025_06_12_30.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28508425, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28508426, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28508427, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28508428, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28508429, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28508430, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28508431, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28508432, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28508433, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28508434, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28508435, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28508436, '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 = 28508891 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': 4044583, 'mtr_portfolio_id': 28508891, 'created_at': datetime.datetime(2025, 11, 14, 6, 13, 28), 'result': '0.06742428035289565', 'result_long': None, 'result_double': None}] Qualite : 0.06742428035289565 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28508891 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28508891_14-11-2025_06_13_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28508891 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_P28508891_14-11-2025_06_13_30.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28508900, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28508901, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28508902, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28508903, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28508904, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28508905, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28508906, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28508907, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28508908, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28508909, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28508910, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28508911, 'pht': 3726}}" where mtr_portfolio_id = 28508891 and dashboard_run_id = 2587906 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`=28508891 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17240063, 0.06742428035289565, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28508891_14-11-2025_06_13_30.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28508900, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28508901, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28508902, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28508903, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28508904, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28508905, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28508906, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28508907, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28508908, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28508909, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28508910, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28508911, '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 = 28509308 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': 4044584, 'mtr_portfolio_id': 28509308, 'created_at': datetime.datetime(2025, 11, 14, 6, 13, 57), 'result': '0.047470908125171574', 'result_long': None, 'result_double': None}] Qualite : 0.047470908125171574 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28509308 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28509308_14-11-2025_06_14_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28509308 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_P28509308_14-11-2025_06_14_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28509334, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28509335, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28509336, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28509337, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28509338, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28509339, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28509340, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28509341, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28509342, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28509343, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28509344, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28509345, 'pht': 3726}}" where mtr_portfolio_id = 28509308 and dashboard_run_id = 2587906 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`=28509308 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17240064, 0.047470908125171574, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28509308_14-11-2025_06_14_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28509334, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28509335, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28509336, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28509337, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28509338, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28509339, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28509340, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28509341, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28509342, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28509343, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28509344, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28509345, '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 = 28509755 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': 4044585, 'mtr_portfolio_id': 28509755, 'created_at': datetime.datetime(2025, 11, 14, 6, 14, 27), 'result': '0.0407378005175998', 'result_long': None, 'result_double': None}] Qualite : 0.0407378005175998 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28509755 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28509755_14-11-2025_06_14_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28509755 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_P28509755_14-11-2025_06_14_30.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28509765, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28509766, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28509767, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28509768, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28509769, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28509770, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28509771, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28509772, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28509773, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28509774, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28509775, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28509776, 'pht': 3726}}" where mtr_portfolio_id = 28509755 and dashboard_run_id = 2587906 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`=28509755 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17240065, 0.0407378005175998, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28509755_14-11-2025_06_14_30.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28509765, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28509766, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28509767, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28509768, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28509769, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28509770, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28509771, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28509772, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28509773, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28509774, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28509775, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28509776, '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 = 28510403 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': 4044586, 'mtr_portfolio_id': 28510403, 'created_at': datetime.datetime(2025, 11, 14, 6, 15, 29), 'result': '0.05003296708169255', 'result_long': None, 'result_double': None}] Qualite : 0.05003296708169255 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28510403 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28510403_14-11-2025_06_15_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28510403 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_P28510403_14-11-2025_06_15_32.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28510412, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28510413, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28510414, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28510415, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28510416, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28510417, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28510418, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28510419, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28510420, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28510421, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28510422, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28510423, 'pht': 3726}}" where mtr_portfolio_id = 28510403 and dashboard_run_id = 2587906 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`=28510403 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17240066, 0.05003296708169255, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28510403_14-11-2025_06_15_32.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28510412, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28510413, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28510414, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28510415, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28510416, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28510417, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28510418, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28510419, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28510420, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28510421, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28510422, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28510423, '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 = 28510787 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': 4044587, 'mtr_portfolio_id': 28510787, 'created_at': datetime.datetime(2025, 11, 14, 6, 16), 'result': '0.05313524868304918', 'result_long': None, 'result_double': None}] Qualite : 0.05313524868304918 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28510787 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28510787_14-11-2025_06_16_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28510787 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_P28510787_14-11-2025_06_16_03.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28510820, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28510821, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28510822, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28510823, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28510824, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28510825, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28510826, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28510827, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28510828, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28510829, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28510830, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28510831, 'pht': 3726}}" where mtr_portfolio_id = 28510787 and dashboard_run_id = 2587906 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`=28510787 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17240067, 0.05313524868304918, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28510787_14-11-2025_06_16_03.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28510820, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28510821, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28510822, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28510823, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28510824, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28510825, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28510826, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28510827, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28510828, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28510829, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28510830, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28510831, '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 = 28511242 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': 4044588, 'mtr_portfolio_id': 28511242, 'created_at': datetime.datetime(2025, 11, 14, 6, 16, 8), 'result': '0.04199554305628836', 'result_long': None, 'result_double': None}] Qualite : 0.04199554305628836 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28511242 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28511242_14-11-2025_06_16_11.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28511242 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_P28511242_14-11-2025_06_16_11.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28511246, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28511247, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28511248, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28511249, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28511250, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28511251, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28511252, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28511253, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28511254, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28511255, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28511256, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28511257, 'pht': 3726}}" where mtr_portfolio_id = 28511242 and dashboard_run_id = 2587906 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`=28511242 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17240069, 0.04199554305628836, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28511242_14-11-2025_06_16_11.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28511246, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28511247, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28511248, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28511249, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28511250, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28511251, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28511252, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28511253, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28511254, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28511255, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28511256, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28511257, '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 = 28511755 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': 4044589, 'mtr_portfolio_id': 28511755, 'created_at': datetime.datetime(2025, 11, 14, 6, 16, 30), 'result': '0.053265030714923424', 'result_long': None, 'result_double': None}] Qualite : 0.053265030714923424 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28511755 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28511755_14-11-2025_06_16_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28511755 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_P28511755_14-11-2025_06_16_31.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28511767, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28511768, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28511769, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28511770, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28511771, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28511772, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28511773, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28511774, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28511775, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28511776, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28511777, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28511778, 'pht': 3726}}" where mtr_portfolio_id = 28511755 and dashboard_run_id = 2587906 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`=28511755 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17240071, 0.053265030714923424, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28511755_14-11-2025_06_16_31.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28511767, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28511768, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28511769, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28511770, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28511771, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28511772, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28511773, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28511774, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28511775, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28511776, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28511777, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28511778, '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 = 28512579 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': 4044591, 'mtr_portfolio_id': 28512579, 'created_at': datetime.datetime(2025, 11, 14, 6, 16, 57), 'result': '0.07849929464211021', 'result_long': None, 'result_double': None}] Qualite : 0.07849929464211021 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28512579 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28512579_14-11-2025_06_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28512579 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_P28512579_14-11-2025_06_16_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28512583, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28512584, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28512585, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28512586, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28512587, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28512588, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28512589, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28512590, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28512591, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28512592, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28512593, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28512594, 'pht': 3726}}" where mtr_portfolio_id = 28512579 and dashboard_run_id = 2587906 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`=28512579 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17240073, 0.07849929464211021, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28512579_14-11-2025_06_16_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28512583, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28512584, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28512585, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28512586, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28512587, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28512588, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28512589, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28512590, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28512591, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28512592, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28512593, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28512594, '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 = 28512841 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': 4044592, 'mtr_portfolio_id': 28512841, 'created_at': datetime.datetime(2025, 11, 14, 6, 17, 30), 'result': '0.04258513102699804', 'result_long': None, 'result_double': None}] Qualite : 0.04258513102699804 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28512841 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28512841_14-11-2025_06_17_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28512841 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_P28512841_14-11-2025_06_17_33.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28512845, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28512846, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28512847, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28512848, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28512849, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28512850, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28512851, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28512852, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28512853, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28512854, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28512855, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28512856, 'pht': 3726}}" where mtr_portfolio_id = 28512841 and dashboard_run_id = 2587906 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`=28512841 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17240074, 0.04258513102699804, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28512841_14-11-2025_06_17_33.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28512845, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28512846, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28512847, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28512848, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28512849, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28512850, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28512851, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28512852, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28512853, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28512854, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28512855, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28512856, '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 = 28513210 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': 4044508, 'mtr_portfolio_id': 28513210, 'created_at': datetime.datetime(2025, 11, 14, 5, 46, 58), 'result': '0.09327539779598687', 'result_long': None, 'result_double': None}] Qualite : 0.09327539779598687 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28513210 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28513210_14-11-2025_05_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28513210 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_P28513210_14-11-2025_05_46_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28513213, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28513214, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28513215, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28513216, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28513217, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28513218, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28513219, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28513220, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28513221, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28513222, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28513223, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28513224, 'pht': 3726}}" where mtr_portfolio_id = 28513210 and dashboard_run_id = 2587906 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`=28513210 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17240075, 0.09327539779598687, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28513210_14-11-2025_05_46_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28513213, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28513214, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28513215, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28513216, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28513217, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28513218, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28513219, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28513220, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28513221, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28513222, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28513223, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28513224, '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 = 28513700 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': 4044708, 'mtr_portfolio_id': 28513700, 'created_at': datetime.datetime(2025, 11, 14, 6, 3, 29), 'result': '0.05026218299390006', 'result_long': None, 'result_double': None}] Qualite : 0.05026218299390006 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28513700 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28513700_14-11-2025_06_03_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28513700 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_P28513700_14-11-2025_06_03_29.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28513705, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28513706, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28513707, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28513708, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28513709, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28513710, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28513711, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28513712, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28513713, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28513714, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28513715, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28513716, 'pht': 3726}}" where mtr_portfolio_id = 28513700 and dashboard_run_id = 2587906 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`=28513700 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17240076, 0.05026218299390006, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28513700_14-11-2025_06_03_29.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28513705, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28513706, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28513707, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28513708, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28513709, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28513710, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28513711, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28513712, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28513713, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28513714, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28513715, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28513716, '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 = 28514065 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': 4044767, 'mtr_portfolio_id': 28514065, 'created_at': datetime.datetime(2025, 11, 14, 6, 18, 58), 'result': '0.03822749776696481', 'result_long': None, 'result_double': None}] Qualite : 0.03822749776696481 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28514065 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28514065_14-11-2025_06_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28514065 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_P28514065_14-11-2025_06_18_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28514069, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28514070, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28514071, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28514072, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28514073, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28514074, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28514075, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28514076, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28514077, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28514078, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28514079, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28514080, 'pht': 3726}}" where mtr_portfolio_id = 28514065 and dashboard_run_id = 2587906 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`=28514065 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17240077, 0.03822749776696481, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28514065_14-11-2025_06_18_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28514069, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28514070, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28514071, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28514072, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28514073, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28514074, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28514075, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28514076, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28514077, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28514078, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28514079, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28514080, '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 = 28514662 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': 4044831, 'mtr_portfolio_id': 28514662, 'created_at': datetime.datetime(2025, 11, 14, 6, 32, 59), 'result': '0.04941828767899379', 'result_long': None, 'result_double': None}] Qualite : 0.04941828767899379 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28514662 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28514662_14-11-2025_06_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28514662 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_P28514662_14-11-2025_06_32_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28514700, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28514701, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28514702, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28514703, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28514704, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28514705, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28514706, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28514707, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28514708, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28514709, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28514710, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28514711, 'pht': 3726}}" where mtr_portfolio_id = 28514662 and dashboard_run_id = 2587906 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`=28514662 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17240078, 0.04941828767899379, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28514662_14-11-2025_06_32_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28514700, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28514701, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28514702, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28514703, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28514704, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28514705, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28514706, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28514707, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28514708, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28514709, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28514710, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28514711, '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 = 28515109 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': 4044885, 'mtr_portfolio_id': 28515109, 'created_at': datetime.datetime(2025, 11, 14, 6, 47), 'result': '0.03800955683667951', 'result_long': None, 'result_double': None}] Qualite : 0.03800955683667951 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28515109 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28515109_14-11-2025_06_47_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28515109 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_P28515109_14-11-2025_06_47_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28515116, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28515117, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28515118, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28515119, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28515120, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28515121, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28515122, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28515123, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28515124, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28515125, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28515126, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28515127, 'pht': 3726}}" where mtr_portfolio_id = 28515109 and dashboard_run_id = 2587906 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`=28515109 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17240079, 0.03800955683667951, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28515109_14-11-2025_06_47_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28515116, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28515117, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28515118, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28515119, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28515120, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28515121, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28515122, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28515123, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28515124, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28515125, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28515126, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28515127, '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 = 28515499 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': 4044950, 'mtr_portfolio_id': 28515499, 'created_at': datetime.datetime(2025, 11, 14, 7, 3), 'result': '0.043455063326184415', 'result_long': None, 'result_double': None}] Qualite : 0.043455063326184415 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28515499 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28515499_14-11-2025_07_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28515499 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_P28515499_14-11-2025_07_03_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28515500, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28515501, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28515502, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28515503, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28515504, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28515505, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28515506, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28515507, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28515508, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28515509, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28515510, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28515511, 'pht': 3726}}" where mtr_portfolio_id = 28515499 and dashboard_run_id = 2587906 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`=28515499 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17240080, 0.043455063326184415, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28515499_14-11-2025_07_03_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28515500, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28515501, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28515502, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28515503, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28515504, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28515505, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28515506, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28515507, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28515508, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28515509, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28515510, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28515511, '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 = 28515934 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': 4045039, 'mtr_portfolio_id': 28515934, 'created_at': datetime.datetime(2025, 11, 14, 7, 16, 58), 'result': '0.04655344027371592', 'result_long': None, 'result_double': None}] Qualite : 0.04655344027371592 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28515934 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28515934_14-11-2025_07_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28515934 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_P28515934_14-11-2025_07_16_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28515980, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28515981, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28515982, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28515983, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28515984, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28515985, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28515986, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28515987, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28515988, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28515989, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28515990, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28515991, 'pht': 3726}}" where mtr_portfolio_id = 28515934 and dashboard_run_id = 2587906 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`=28515934 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17240081, 0.04655344027371592, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28515934_14-11-2025_07_16_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28515980, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28515981, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28515982, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28515983, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28515984, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28515985, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28515986, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28515987, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28515988, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28515989, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28515990, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28515991, '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 = 28516710 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': 4045150, 'mtr_portfolio_id': 28516710, 'created_at': datetime.datetime(2025, 11, 14, 7, 32, 31), 'result': '0.047289698019298006', 'result_long': None, 'result_double': None}] Qualite : 0.047289698019298006 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28516710 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28516710_14-11-2025_07_32_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28516710 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_P28516710_14-11-2025_07_32_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28516788, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28516790, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28516791, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28516792, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28516794, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28516795, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28516796, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28516798, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28516799, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28516800, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28516802, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28516803, 'pht': 3726}}" where mtr_portfolio_id = 28516710 and dashboard_run_id = 2587906 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`=28516710 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17240082, 0.047289698019298006, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28516710_14-11-2025_07_32_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28516788, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28516790, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28516791, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28516792, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28516794, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28516795, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28516796, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28516798, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28516799, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28516800, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28516802, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28516803, '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 = 28517657 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': 4045247, 'mtr_portfolio_id': 28517657, 'created_at': datetime.datetime(2025, 11, 14, 7, 47), 'result': '0.03953004347861729', 'result_long': None, 'result_double': None}] Qualite : 0.03953004347861729 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28517657 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28517657_14-11-2025_07_47_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28517657 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_P28517657_14-11-2025_07_47_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28517662, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28517663, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28517664, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28517665, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28517666, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28517667, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28517668, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28517669, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28517670, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28517671, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28517672, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28517673, 'pht': 3726}}" where mtr_portfolio_id = 28517657 and dashboard_run_id = 2587906 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`=28517657 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17240083, 0.03953004347861729, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28517657_14-11-2025_07_47_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28517662, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28517663, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28517664, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28517665, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28517666, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28517667, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28517668, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28517669, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28517670, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28517671, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28517672, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28517673, '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 = 28518111 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': 4045314, 'mtr_portfolio_id': 28518111, 'created_at': datetime.datetime(2025, 11, 14, 8, 2, 59), 'result': '0.036766287107154176', 'result_long': None, 'result_double': None}] Qualite : 0.036766287107154176 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28518111 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28518111_14-11-2025_08_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28518111 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_P28518111_14-11-2025_08_03_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28518154, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28518155, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28518156, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28518157, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28518158, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28518159, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28518160, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28518162, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28518163, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28518164, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28518165, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28518166, 'pht': 3726}}" where mtr_portfolio_id = 28518111 and dashboard_run_id = 2587906 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`=28518111 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17240084, 0.036766287107154176, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28518111_14-11-2025_08_03_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28518154, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28518155, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28518156, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28518157, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28518158, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28518159, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28518160, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28518162, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28518163, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28518164, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28518165, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28518166, '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 = 28518734 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': 4045417, 'mtr_portfolio_id': 28518734, 'created_at': datetime.datetime(2025, 11, 14, 8, 18, 57), 'result': '0.0664919254946055', 'result_long': None, 'result_double': None}] Qualite : 0.0664919254946055 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28518734 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28518734_14-11-2025_08_18_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28518734 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_P28518734_14-11-2025_08_18_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28518809, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28518810, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28518811, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28518812, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28518813, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28518814, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28518815, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28518816, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28518817, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28518818, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28518819, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28518820, 'pht': 3726}}" where mtr_portfolio_id = 28518734 and dashboard_run_id = 2587906 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`=28518734 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17240085, 0.0664919254946055, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28518734_14-11-2025_08_18_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28518809, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28518810, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28518811, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28518812, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28518813, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28518814, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28518815, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28518816, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28518817, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28518818, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28518819, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28518820, '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 = 28519463 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': 4045499, 'mtr_portfolio_id': 28519463, 'created_at': datetime.datetime(2025, 11, 14, 8, 32, 59), 'result': '0.04984030410261658', 'result_long': None, 'result_double': None}] Qualite : 0.04984030410261658 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28519463 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28519463_14-11-2025_08_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28519463 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_P28519463_14-11-2025_08_33_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28519505, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28519506, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28519507, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28519508, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28519509, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28519510, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28519511, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28519512, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28519513, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28519514, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28519515, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28519516, 'pht': 3726}}" where mtr_portfolio_id = 28519463 and dashboard_run_id = 2587906 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`=28519463 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17240086, 0.04984030410261658, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28519463_14-11-2025_08_33_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28519505, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28519506, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28519507, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28519508, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28519509, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28519510, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28519511, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28519512, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28519513, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28519514, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28519515, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28519516, '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 = 28520133 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': 4045567, 'mtr_portfolio_id': 28520133, 'created_at': datetime.datetime(2025, 11, 14, 8, 48, 58), 'result': '0.06075491386497537', 'result_long': None, 'result_double': None}] Qualite : 0.06075491386497537 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28520133 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28520133_14-11-2025_08_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28520133 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_P28520133_14-11-2025_08_48_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28520165, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28520166, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28520167, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28520168, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28520169, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28520170, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28520171, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28520172, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28520173, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28520174, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28520175, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28520176, 'pht': 3726}}" where mtr_portfolio_id = 28520133 and dashboard_run_id = 2587906 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`=28520133 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17240087, 0.06075491386497537, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28520133_14-11-2025_08_48_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28520165, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28520166, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28520167, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28520168, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28520169, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28520170, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28520171, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28520172, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28520173, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28520174, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28520175, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28520176, '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 = 28520950 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': 4045667, 'mtr_portfolio_id': 28520950, 'created_at': datetime.datetime(2025, 11, 14, 9, 2, 31), 'result': '0.06529863546510353', 'result_long': None, 'result_double': None}] Qualite : 0.06529863546510353 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28520950 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28520950_14-11-2025_09_02_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28520950 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_P28520950_14-11-2025_09_02_31.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28520997, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28520998, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28520999, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28521000, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28521001, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28521002, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28521003, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28521004, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28521005, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28521006, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28521007, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28521008, 'pht': 3726}}" where mtr_portfolio_id = 28520950 and dashboard_run_id = 2587906 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`=28520950 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17240088, 0.06529863546510353, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28520950_14-11-2025_09_02_31.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28520997, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28520998, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28520999, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28521000, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28521001, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28521002, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28521003, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28521004, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28521005, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28521006, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28521007, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28521008, '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 = 28522105 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 = 28522105 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 = 28522105 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28522105 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 = 28522105 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 = 28522105 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28522105_14-11-2025_09_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28522105 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_P28522105_14-11-2025_09_33_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28522110, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28522111, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28522112, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28522113, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28522114, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28522115, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28522116, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28522117, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28522118, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28522119, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28522120, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28522121, 'pht': 3726}}" where mtr_portfolio_id = 28522105 and dashboard_run_id = 2587906 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 = 28522900 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': 4045920, 'mtr_portfolio_id': 28522900, 'created_at': datetime.datetime(2025, 11, 14, 9, 39), 'result': '0.07024742965652872', 'result_long': None, 'result_double': None}] Qualite : 0.07024742965652872 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28522900 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28522900_14-11-2025_09_39_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28522900 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_P28522900_14-11-2025_09_39_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28522906, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28522907, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28522908, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28522909, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28522910, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28522911, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28522912, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28522913, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28522914, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28522915, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28522916, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28522917, 'pht': 3726}}" where mtr_portfolio_id = 28522900 and dashboard_run_id = 2587906 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`=28522900 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17240090, 0.07024742965652872, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28522900_14-11-2025_09_39_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28522906, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28522907, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28522908, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28522909, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28522910, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28522911, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28522912, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28522913, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28522914, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28522915, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28522916, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28522917, '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 (28504025,28504648,28505140,28505764,28507316,28507473,28507781,28508415,28508891,28509308,28509755,28510403,28510787,28511242,28511755,28512579,28512841,28513210,28513700,28514065,28514662,28515109,28515499,28515934,28516710,28517657,28518111,28518734,28519463,28520133,28520950,28522105,28522900) result : ((1394299320,), (1394299411,), (1394299499,), (1394299914,), (1394299966,), (1394300004,), (1394300038,), (1394300262,), (1394300265,), (1394300513,), (1394300516,), (1394300526,), (1394300558,), (1394300594,), (1394300885,), (1394300909,), (1394300933,), (1394301226,), (1394301251,), (1394301275,), (1394301303,), (1394301305,), (1394301463,), (1394301483,), (1394301492,), (1394301499,), (1394301523,), (1394301528,), (1394301538,), (1394301541,), (1394301589,), (1394301632,), (1394301662,), (1394301685,), (1394301867,), (1394301891,), (1394301917,), (1394302218,), (1394302244,), (1394302267,), (1394302296,), (1394302324,), (1394302356,), (1394302572,), (1394302597,), (1394302623,), (1394302647,), (1394303143,), (1394303171,), (1394303228,), (1394303282,), (1394303810,), (1394303840,), (1394303874,), (1394304021,), (1394304045,), (1394304069,), (1394304097,), (1394304279,), (1394304283,), (1394304288,), (1394304290,), (1394304292,), (1394304295,), (1394304404,), (1394304428,), (1394304456,), (1394304463,), (1394304660,), (1394304576,), (1394304612,), (1394304637,), (1394304951,), (1394306708,), (1394307675,), (1394308198,), (1394308223,), (1394308245,), (1394308281,), (1394308759,), (1394308781,), (1394308810,), (1394308849,), (1394309023,), (1394309024,), (1394309026,), (1394309049,), (1394309097,), (1394309125,), (1394309480,), (1394309482,), (1394309485,), (1394309502,), (1394309505,), (1394309509,), (1394309511,), (1394309426,), (1394309452,), (1394309474,), (1394309609,), (1394309640,), (1394309669,), (1394309879,), (1394309905,), (1394309927,), (1394310204,), (1394310229,), (1394310253,), (1394310278,), (1394310371,), (1394310373,), (1394310377,), (1394310388,), (1394310573,), (1394310733,), (1394310799,), (1394310852,), (1394310973,), (1394311672,), (1394311701,), (1394311752,), (1394311981,), (1394312006,), (1394312153,), (1394312171,), (1394312194,), (1394312220,), (1394312250,), (1394312478,), (1394312503,), (1394312529,), (1394312551,), (1394312579,), (1394312608,), (1394313480,), (1394313474,), (1394313542,), (1394313566,), (1394313571,), (1394313600,), (1394313602,), (1394313604,), (1394313606,), (1394313621,), (1394313628,), (1394313630,), (1394313633,), (1394313635,), (1394313637,), (1394313646,), (1394313648,), (1394313650,), (1394313653,), (1394313657,), (1394313838,), (1394313863,), (1394313888,), (1394313915,), (1394313939,), (1394314188,), (1394314203,), (1394314205,), (1394314208,), (1394314361,), (1394314376,), (1394314399,), (1394314403,), (1394314414,), (1394314567,), (1394314593,), (1394314619,), (1394314647,), (1394314929,), (1394314954,), (1394314982,), (1394314993,), (1394314994,), (1394314995,), (1394315049,), (1394315122,), (1394315125,), (1394315136,), (1394315160,), (1394315248,), (1394315256,), (1394315260,), (1394315264,), (1394315279,), (1394315283,), (1394315288,), (1394315294,), (1394315299,), (1394315322,), (1394320424,), (1394320461,), (1394320509,), (1394320554,), (1394320575,), (1394320598,), (1394320601,), (1394320604,), (1394320607,), (1394320612,), (1394320616,), (1394320625,), (1394320627,), (1394320650,), (1394320654,), (1394320657,), (1394320660,), (1394320663,), (1394320674,), (1394320685,), (1394320689,), (1394320693,), (1394320698,), (1394320729,), (1394320748,), (1394320752,), (1394320755,), (1394320760,), (1394320790,), (1394320785,), (1394320818,), (1394320821,), (1394320824,), (1394320829,), (1394320834,), (1394320848,), (1394320852,), (1394320856,), (1394320877,), (1394320886,), (1394320891,), (1394320936,), (1394320938,), (1394320941,), (1394320944,), (1394320960,), (1394320963,), (1394320966,), (1394320970,), (1394320994,), (1394320997,), (1394321000,), (1394321004,), (1394321019,), (1394321023,), (1394321026,), (1394321030,), (1394321035,), (1394321055,), (1394321057,), (1394321060,), (1394321064,), (1394321068,), (1394321070,), (1394321074,), (1394321076,), (1394321078,), (1394321084,), (1394321091,), (1394321105,), (1394321109,), (1394321142,), (1394321145,), (1394321147,), (1394321149,), (1394321169,), (1394321171,), (1394321175,), (1394321180,), (1394321184,), (1394321205,), (1394321208,), (1394321212,), (1394321645,), (1394321649,), (1394321677,), (1394321712,), (1394322240,), (1394322206,), (1394322236,), (1394322413,), (1394322425,), (1394322432,), (1394322434,), (1394322436,), (1394322661,), (1394322688,), (1394322718,), (1394322723,), (1394322724,), (1394322801,), (1394322803,), (1394322805,), (1394322807,), (1394322828,), (1394322830,), (1394322832,), (1394322834,), (1394322837,), (1394323060,), (1394323085,), (1394323105,), (1394323107,), (1394323113,), (1394323139,), (1394323174,), (1394323186,), (1394323188,), (1394323190,), (1394323193,), (1394323211,), (1394323219,), (1394323228,), (1394323243,), (1394323247,), (1394323418,), (1394323451,), (1394323481,), (1394323525,), (1394323838,), (1394323841,), (1394323846,), (1394323850,), (1394324093,), (1394324127,), (1394324129,), (1394324218,), (1394324252,), (1394324289,), (1394324323,), (1394324358,), (1394324739,), (1394324775,), (1394324810,), (1394324841,), (1394324846,), (1394324848,), (1394324896,), (1394324930,), (1394324965,), (1394325236,), (1394325230,), (1394325233,), (1394325263,), (1394325264,), (1394325265,), (1394325266,), (1394325290,), (1394325294,), (1394325298,), (1394325323,), (1394325325,), (1394325326,), (1394325328,), (1394325330,), (1394325333,), (1394325369,), (1394325371,), (1394325373,), (1394325377,), (1394325382,), (1394325385,), (1394325400,), (1394325402,), (1394325405,), (1394325444,), (1394325447,), (1394325449,), (1394325452,), (1394325473,), (1394325476,), (1394325479,), (1394325486,), (1394325492,), (1394325496,), (1394325513,), (1394325524,), (1394325529,), (1394325554,), (1394325561,), (1394325588,), (1394325591,), (1394325594,), (1394325598,), (1394325623,), (1394325625,), (1394325627,), (1394325655,), (1394325657,), (1394325659,), (1394325663,), (1394325668,), (1394325688,), (1394325690,), (1394325693,), (1394325696,), (1394325700,), (1394325717,), (1394325720,), (1394325723,), (1394325758,), (1394325761,), (1394325763,), (1394325782,), (1394325751,), (1394325754,), (1394325755,), (1394325796,), (1394325799,), (1394325801,), (1394325821,), (1394325825,), (1394325833,), (1394325838,), (1394325843,), (1394325886,), (1394325887,), (1394325888,), (1394325890,), (1394325893,), (1394325918,), (1394325922,), (1394325962,), (1394325964,), (1394325965,), (1394325995,), (1394325998,), (1394326005,), (1394326010,), (1394326015,), (1394326031,), (1394326034,), (1394326037,), (1394326041,), (1394326062,), (1394326064,), (1394326066,), (1394326070,), (1394326075,), (1394326079,), (1394326103,), (1394326105,), (1394326106,), (1394326134,), (1394326136,), (1394326137,), (1394326174,), (1394326178,), (1394326182,), (1394326186,), (1394326206,), (1394326208,), (1394326212,), (1394326217,), (1394326220,), (1394326250,), (1394326251,), (1394326252,), (1394326254,), (1394326283,), (1394326287,), (1394326345,), (1394326332,), (1394326334,), (1394326336,), (1394326340,), (1394326370,), (1394326373,), (1394326377,), (1394326382,), (1394326386,), (1394326418,), (1394326421,), (1394326423,), (1394326425,), (1394326429,), (1394326447,), (1394326449,), (1394326450,), (1394326452,), (1394326478,), (1394326482,), (1394326485,), (1394326520,), (1394326522,), (1394326524,), (1394326559,), (1394326562,), (1394326565,), (1394326589,), (1394326591,), (1394326593,), (1394326619,), (1394326623,), (1394326627,), (1394326631,), (1394326666,), (1394326669,), (1394326673,), (1394326697,), (1394326700,), (1394326702,), (1394326705,), (1394326728,), (1394326731,), (1394326734,), (1394326737,), (1394326741,), (1394326763,), (1394326765,), (1394326767,), (1394326770,), (1394327057,), (1394327070,), (1394327088,), (1394327122,), (1394327157,), (1394327194,), (1394327349,), (1394327419,), (1394327483,), (1394327549,), (1394328618,), (1394328652,), (1394328683,), (1394328686,), (1394328694,), (1394328389,), (1394328452,), (1394328510,), (1394328573,), (1394328674,), (1394328676,), (1394328679,), (1394328681,), (1394328925,), (1394328991,), (1394329460,), (1394329463,), (1394329534,), (1394329537,), (1394329539,), (1394329542,), (1394329545,), (1394329547,), (1394329570,), (1394329571,), (1394329572,), (1394329573,), (1394329576,), (1394329615,), (1394329620,), (1394329623,), (1394329642,), (1394329650,), (1394329652,), (1394329655,), (1394329658,), (1394329660,), (1394329683,), (1394329684,), (1394329685,), (1394329687,), (1394329721,), (1394329725,), (1394329729,), (1394329758,), (1394329760,), (1394329779,), (1394329783,), (1394329787,), (1394329792,), (1394329797,), (1394329800,), (1394329824,), (1394329826,), (1394329828,), (1394329832,), (1394329862,), (1394329864,), (1394329866,), (1394329870,), (1394329894,), (1394329897,), (1394329898,), (1394329899,), (1394329902,), (1394329942,), (1394329999,), (1394329925,), (1394329927,), (1394329929,), (1394329931,), (1394329938,), (1394329967,), (1394329970,), (1394329972,), (1394329975,), (1394329978,), (1394329980,), (1394329991,), (1394329994,), (1394329996,), (1394330012,), (1394330014,), (1394330016,), (1394330018,), (1394330020,), (1394330021,), (1394330044,), (1394330047,), (1394330050,), (1394330053,), (1394330057,), (1394330078,), (1394330080,), (1394330082,), (1394330108,), (1394330111,), (1394330114,), (1394330118,), (1394330156,), (1394330167,), (1394330168,), (1394330170,), (1394330174,), (1394330175,), (1394330194,), (1394330196,), (1394330198,), (1394330228,), (1394330232,), (1394330234,), (1394330237,), (1394330240,), (1394330269,), (1394330271,), (1394330275,), (1394330281,), (1394330300,), (1394330321,), (1394330324,), (1394330328,), (1394330332,), (1394330351,), (1394330353,), (1394330354,), (1394330399,), (1394330401,), (1394330403,), (1394330407,), (1394330412,), (1394330445,), (1394330447,), (1394330448,), (1394330449,), (1394330452,), (1394330453,), (1394330472,), (1394330474,), (1394330477,), (1394330480,), (1394330536,), (1394330539,), (1394330554,), (1394330557,), (1394330559,), (1394330523,), (1394330525,), (1394330528,), (1394330533,), (1394330578,), (1394330581,), (1394330584,), (1394330587,), (1394330591,), (1394330592,), (1394330620,), (1394330621,), (1394330622,), (1394330653,), (1394330657,), (1394330661,), (1394330664,), (1394330668,), (1394330699,), (1394330701,), (1394330703,), (1394330704,), (1394330707,), (1394330709,), (1394330736,), (1394330744,), (1394330748,), (1394330789,), (1394330791,), (1394330834,), (1394330838,), (1394330865,), (1394330866,), (1394330867,), (1394330869,), (1394330873,), (1394330914,), (1394330925,), (1394330932,), (1394330936,), (1394330980,), (1394330982,), (1394331012,), (1394331015,), (1394331018,), (1394331060,), (1394331063,), (1394331065,), (1394331122,), (1394331126,), (1394331129,), (1394331132,), (1394331157,), (1394331159,), (1394331162,), (1394331169,), (1394331175,), (1394331182,), (1394331217,), (1394331209,), (1394331213,), (1394331259,), (1394331260,), (1394331261,), (1394331262,), (1394331291,), (1394331293,), (1394331296,), (1394331300,), (1394331345,), (1394331487,), (1394331489,), (1394331491,), (1394331494,), (1394331530,), (1394331533,), (1394331571,), (1394331574,), (1394331619,), (1394331623,), (1394331675,), (1394331677,), (1394331679,), (1394331681,), (1394331685,), (1394331687,), (1394331709,), (1394331717,), (1394331727,), (1394331730,), (1394331733,), (1394331736,), (1394332008,), (1394332010,), (1394332122,), (1394332127,), (1394332131,), (1394332136,), (1394332149,), (1394332150,), (1394332153,), (1394332154,), (1394332157,), (1394332158,), (1394332162,), (1394332163,), (1394332177,), (1394332178,), (1394332529,), (1394332563,), (1394332597,), (1394332827,), (1394332863,), (1394332895,), (1394332399,), (1394332436,), (1394332489,), (1394332720,), (1394332756,), (1394332790,), (1394332957,), (1394332958,), (1394333266,), (1394333285,), (1394333319,), (1394333329,), (1394333427,), (1394333429,), (1394333430,), (1394333431,), (1394333434,), (1394333466,), (1394333469,), (1394333472,), (1394333529,), (1394333531,), (1394333532,), (1394333534,), (1394333536,), (1394333590,), (1394333592,), (1394333594,), (1394333596,), (1394333599,), (1394333628,), (1394333631,), (1394333633,), (1394333637,), (1394333684,), (1394333688,), (1394333754,), (1394333756,), (1394333758,), (1394333805,), (1394333807,), (1394335186,), (1394335621,), (1394335802,), (1394335811,), (1394335813,), (1394335841,), (1394335843,), (1394335846,), (1394335850,), (1394335878,), (1394335882,), (1394335885,), (1394335888,), (1394335892,), (1394335922,), (1394335926,), (1394335930,), (1394335962,), (1394335964,), (1394335968,), (1394336008,), (1394336012,), (1394336015,), (1394336019,), (1394336023,), (1394336055,), (1394336093,), (1394336095,), (1394336097,), (1394336100,), (1394336105,), (1394336108,), (1394336122,), (1394336126,), (1394336130,), (1394336135,), (1394336178,), (1394336159,), (1394336163,), (1394336167,), (1394336172,), (1394336176,), (1394336198,), (1394336201,), (1394336203,), (1394336205,), (1394336208,), (1394336211,), (1394336239,), (1394336243,), (1394336247,), (1394336252,), (1394336283,), (1394336285,), (1394336286,), (1394336287,), (1394336290,), (1394336293,), (1394336314,), (1394336317,), (1394336320,), (1394336323,), (1394336327,), (1394336349,), (1394336351,), (1394336353,), (1394336357,), (1394336362,), (1394336399,), (1394336403,), (1394336405,), (1394336407,), (1394336411,), (1394336415,), (1394336439,), (1394336442,), (1394336447,), (1394336452,), (1394336458,), (1394336518,), (1394336522,), (1394336526,), (1394336528,), (1394336531,), (1394336558,), (1394336566,), (1394336569,), (1394336574,), (1394336577,), (1394336580,), (1394336614,), (1394336618,), (1394336622,), (1394336626,), (1394336630,), (1394336649,), (1394336652,), (1394336655,), (1394336659,), (1394336664,), (1394336667,), (1394336710,), (1394336714,), (1394336715,), (1394336741,), (1394336745,), (1394336749,), (1394336753,), (1394336757,), (1394336788,), (1394336790,), (1394336792,), (1394336863,), (1394336881,), (1394336884,), (1394336888,), (1394336827,), (1394336854,), (1394336856,), (1394336859,), (1394336862,), (1394336908,), (1394336909,), (1394336910,), (1394336913,), (1394336916,), (1394336936,), (1394336939,), (1394336979,), (1394336981,), (1394337006,), (1394337011,), (1394337017,), (1394337022,), (1394337054,), (1394337056,), (1394337059,), (1394337064,), (1394337092,), (1394337098,), (1394337101,), (1394337104,), (1394337109,), (1394337113,), (1394337129,), (1394337132,), (1394337136,), (1394337147,), (1394337149,), (1394337153,), (1394337157,), (1394337163,), (1394337175,), (1394337177,), (1394337179,), (1394337215,), (1394337227,), (1394337234,), (1394337238,), (1394337242,), (1394337246,), (1394337265,), (1394337268,), (1394337270,), (1394337273,), (1394337306,), (1394337310,), (1394337314,), (1394337319,), (1394337323,), (1394337352,), (1394337353,), (1394337354,), (1394337356,), (1394337360,), (1394337389,), (1394337393,), (1394337397,), (1394337402,), (1394337406,), (1394337411,), (1394337431,), (1394337432,), (1394337434,), (1394337436,), (1394337466,), (1394337604,), (1394337607,), (1394337610,), (1394337614,), (1394337638,), (1394337640,), (1394337642,), (1394337646,), (1394337650,), (1394337679,), (1394337682,), (1394337685,), (1394337688,), (1394337709,), (1394337711,), (1394337714,), (1394337759,), (1394337763,), (1394337766,), (1394337769,), (1394337773,), (1394337801,), (1394337805,), (1394337808,), (1394337811,), (1394337815,), (1394337840,), (1394337849,), (1394337851,), (1394337854,), (1394337858,), (1394337886,), (1394337891,), (1394337895,), (1394337899,), (1394337902,), (1394337906,), (1394337923,), (1394337926,), (1394337944,), (1394337946,), (1394337949,), (1394337967,), (1394337999,), (1394338516,), (1394338522,), (1394338527,), (1394338532,), (1394338536,), (1394338565,), (1394338560,), (1394338562,), (1394338563,), (1394338889,), (1394338924,), (1394338970,), (1394339013,), (1394339049,), (1394339099,), (1394339322,), (1394339324,), (1394339327,), (1394339330,), (1394339334,), (1394339337,), (1394339353,), (1394339355,), (1394339366,), (1394339399,), (1394339434,), (1394339559,), (1394339590,), (1394339626,), (1394339662,), (1394340049,), (1394340080,), (1394340112,), (1394340146,), (1394340465,), (1394340469,), (1394340473,), (1394340747,), (1394340810,), (1394340879,), (1394340942,), (1394341008,), (1394341467,), (1394341469,), (1394341471,), (1394341481,), (1394341703,), (1394341710,), (1394341712,), (1394342209,), (1394342212,), (1394342215,), (1394342219,), (1394342224,), (1394342414,), (1394342434,), (1394342437,), (1394342441,), (1394342475,), (1394342478,), (1394342481,), (1394342485,), (1394342489,), (1394342514,), (1394342515,), (1394342943,), (1394342981,), (1394343015,), (1394344185,), (1394344215,), (1394344219,), (1394344223,), (1394344227,), (1394344231,), (1394344258,), (1394344259,), (1394344260,), (1394344261,), (1394344289,), (1394344292,), (1394344295,), (1394344325,), (1394344327,), (1394344331,), (1394344361,), (1394344364,), (1394344367,), (1394344370,), (1394344375,), (1394344394,), (1394344398,), (1394344401,), (1394344405,), (1394344409,), (1394344439,), (1394344440,), (1394344441,), (1394344472,), (1394344477,), (1394344481,), (1394344486,), (1394344489,), (1394344517,), (1394344519,), (1394344521,), (1394344523,), (1394344546,), (1394344550,), (1394344553,), (1394344557,), (1394344597,), (1394344599,), (1394344600,), (1394344602,), (1394344605,), (1394344609,), (1394344632,), (1394344635,), (1394344638,), (1394344678,), (1394344681,), (1394344685,), (1394344688,), (1394344691,), (1394344730,), (1394344739,), (1394344751,), (1394344760,), (1394344764,), (1394344766,), (1394344715,), (1394344717,), (1394344721,), (1394344725,), (1394344778,), (1394344781,), (1394344783,), (1394344785,), (1394344803,), (1394344805,), (1394344807,), (1394344811,), (1394344814,), (1394344817,), (1394344836,), (1394344839,), (1394344842,), (1394344845,), (1394344849,), (1394344873,), (1394344875,), (1394344877,), (1394344880,), (1394344912,), (1394344915,), (1394344920,), (1394344940,), (1394344980,), (1394344982,), (1394344984,), (1394344987,), (1394344992,), (1394344996,), (1394345029,), (1394345033,), (1394345037,), (1394345041,), (1394345044,), (1394345045,), (1394345050,), (1394345051,), (1394345053,), (1394345057,), (1394345069,), (1394345071,), (1394345073,), (1394345075,), (1394345108,), (1394345110,), (1394345112,), (1394345114,), (1394345118,), (1394345142,), (1394345145,), (1394345148,), (1394345153,), (1394345159,), (1394345187,), (1394345190,), (1394345193,), (1394345196,), (1394345226,), (1394345228,), (1394345232,), (1394345237,), (1394345241,), (1394345261,), (1394345264,), (1394345269,), (1394345274,), (1394345301,), (1394345303,), (1394345305,), (1394345308,), (1394345311,), (1394345357,), (1394345347,), (1394345351,), (1394345354,), (1394345384,), (1394345387,), (1394345389,), (1394345415,), (1394345418,), (1394345421,), (1394345447,), (1394345450,), (1394345453,), (1394345456,), (1394345499,), (1394345502,), (1394345504,), (1394345507,), (1394345538,), (1394345541,), (1394345543,), (1394345546,), (1394345582,), (1394345585,), (1394345588,), (1394345593,), (1394345599,), (1394345623,), (1394345627,), (1394345658,), (1394345661,), (1394345666,), (1394345671,), (1394345674,), (1394345677,), (1394345698,), (1394345700,), (1394345702,), (1394345706,), (1394345710,), (1394345712,), (1394345749,), (1394345752,), (1394345755,), (1394345758,), (1394345763,), (1394345785,), (1394345789,), (1394345792,), (1394345796,), (1394345800,), (1394345802,), (1394345828,), (1394345829,), (1394345830,), (1394345833,), (1394345838,), (1394345842,), (1394346082,), (1394346151,), (1394346410,), (1394347007,), (1394346764,), (1394346826,), (1394346898,), (1394346964,), (1394347096,), (1394347097,), (1394347098,), (1394347101,), (1394347106,), (1394347125,), (1394347129,), (1394347133,), (1394347163,), (1394347165,), (1394347166,), (1394347167,), (1394347197,), (1394347232,), (1394347586,), (1394347618,), (1394347649,), (1394347683,), (1394347719,), (1394347757,), (1394347874,), (1394347877,), (1394347880,), (1394348160,), (1394348190,), (1394348206,), (1394348218,), (1394348318,), (1394348321,), (1394348324,), (1394348327,), (1394348355,), (1394348357,), (1394348360,), (1394348364,), (1394348368,), (1394348492,), (1394348499,), (1394348503,), (1394348536,), (1394348539,), (1394348542,), (1394348576,), (1394348610,), (1394348621,), (1394348706,), (1394348715,), (1394348723,), (1394348729,), (1394348733,), (1394348756,), (1394348784,), (1394348788,), (1394348794,), (1394348808,), (1394348838,), (1394348839,), (1394348853,), (1394348856,), (1394348860,), (1394348868,), (1394348969,), (1394348972,), (1394348975,), (1394348981,), (1394348991,), (1394348995,), (1394349102,), (1394349033,), (1394349036,), (1394349055,), (1394349278,), (1394349317,), (1394349350,), (1394349397,), (1394349430,), (1394349432,), (1394349436,), (1394349440,), (1394349445,), (1394349554,), (1394349556,), (1394349560,), (1394349564,), (1394349796,), (1394349834,), (1394349887,), (1394349972,), (1394350014,), (1394350308,), (1394350315,), (1394350322,), (1394350325,), (1394350378,), (1394350382,), (1394350385,), (1394350388,), (1394350393,), (1394350398,), (1394350495,), (1394350519,), (1394350528,), (1394350544,), (1394350736,), (1394350760,), (1394350765,), (1394350770,), (1394350775,), (1394350834,), (1394350843,), (1394350848,), (1394350859,), (1394350923,), (1394350926,), (1394350930,), (1394350935,), (1394350939,), (1394350963,), (1394350964,), (1394350965,), (1394351136,), (1394351142,), (1394351168,), (1394351205,), (1394351244,), (1394351398,), (1394351839,), (1394351875,), (1394351883,), (1394351885,), (1394351890,), (1394351925,), (1394351928,), (1394351931,), (1394351936,), (1394351938,), (1394351990,), (1394351993,), (1394352004,), (1394352186,), (1394352188,), (1394352190,), (1394352192,), (1394352222,), (1394352230,), (1394352233,), (1394352503,), (1394352504,), (1394352505,), (1394352507,), (1394352610,), (1394352614,), (1394352633,), (1394352639,), (1394352669,), (1394352672,), (1394352675,), (1394352678,), (1394352684,), (1394352710,), (1394352766,), (1394352768,), (1394352772,), (1394352774,), (1394352854,), (1394352859,), (1394352912,), (1394352915,), (1394352917,), (1394352920,), (1394352947,), (1394352949,), (1394353017,), (1394353011,), (1394353014,), (1394353052,), (1394353084,), (1394353087,), (1394353090,), (1394353092,), (1394353123,), (1394353125,), (1394353127,), (1394353130,), (1394353246,), (1394353275,), (1394353278,), (1394353373,), (1394353375,), (1394353377,), (1394353379,), (1394353404,), (1394353406,), (1394353408,), (1394353411,), (1394353443,), (1394353447,), (1394353451,), (1394353456,), (1394353462,), (1394353467,), (1394354133,), (1394354166,), (1394354199,), (1394355623,), (1394355672,), (1394355727,), (1394355773,), (1394355813,), (1394356033,), (1394356035,), (1394356038,), (1394356042,), (1394356045,), (1394356197,), (1394356246,), (1394356031,), (1394356309,), (1394356313,), (1394356315,), (1394356317,), (1394356384,), (1394356387,), (1394356390,), (1394356434,), (1394356436,), (1394356438,), (1394356440,), (1394356442,), (1394356467,), (1394356475,), (1394356477,), (1394356480,), (1394356581,), (1394356584,), (1394356596,), (1394356638,), (1394356643,), (1394356719,), (1394356723,), (1394356727,), (1394356730,), (1394356736,), (1394356810,), (1394356833,), (1394356835,), (1394356837,), (1394356840,), (1394356843,), (1394356864,), (1394356866,), (1394356868,), (1394356960,), (1394357088,), (1394357126,), (1394357161,), (1394357177,), (1394357180,), (1394357223,), (1394357230,), (1394357232,), (1394357235,), (1394357251,), (1394357254,), (1394357281,), (1394357286,), (1394357288,), (1394357345,), (1394357348,), (1394357350,), (1394357353,), (1394357356,), (1394357401,), (1394357406,), (1394357409,), (1394357439,), (1394357443,), (1394357448,), (1394357453,), (1394357498,), (1394357502,), (1394357506,), (1394357510,), (1394357527,), (1394357495,), (1394357496,), (1394357533,), (1394357537,), (1394357540,), (1394357612,), (1394357615,), (1394357617,), (1394357619,), (1394357624,), (1394357641,), (1394357892,), (1394357894,), (1394357902,), (1394357945,), (1394358078,), (1394358082,), (1394358086,), (1394358090,), (1394358094,), (1394358095,), (1394358100,), (1394358112,), (1394358240,), (1394358275,), (1394358308,), (1394358344,), (1394358377,), (1394358502,), (1394358511,), (1394358513,), (1394358529,), (1394358533,), (1394358560,), (1394358564,), (1394358567,), (1394358571,), (1394358608,), (1394358611,), (1394358613,), (1394358616,), (1394358619,), (1394358621,), (1394358682,), (1394358683,), (1394358684,), (1394358696,), (1394358701,), (1394358706,), (1394358744,), (1394358747,), (1394358750,), (1394358753,), (1394358781,), (1394358784,), (1394358786,), (1394358788,), (1394358838,), (1394358848,), (1394358857,), (1394358866,), (1394358931,), (1394358941,), (1394358946,), (1394358989,), (1394358994,), (1394358998,), (1394359056,), (1394359059,), (1394359062,), (1394359065,), (1394359053,), (1394359055,), (1394359100,), (1394359102,), (1394359104,), (1394359345,), (1394359391,), (1394359393,), (1394359395,), (1394359398,), (1394359404,), (1394359426,), (1394359431,), (1394359435,), (1394359472,), (1394359480,), (1394359492,), (1394359499,), (1394359503,), (1394359528,), (1394359950,), (1394360053,), (1394360103,), (1394360529,), (1394360536,), (1394360540,), (1394360546,), (1394360551,), (1394360585,), (1394360790,), (1394360830,), (1394360868,), (1394360923,), (1394360958,), (1394360962,), (1394361018,), (1394361020,), (1394361022,), (1394361394,), (1394361431,), (1394361465,), (1394361480,), (1394361485,), (1394361738,), (1394361740,), (1394361755,), (1394361764,), (1394361824,), (1394361826,), (1394361845,), (1394361848,), (1394361861,), (1394362156,), (1394362164,), (1394362167,), (1394362186,), (1394362190,), (1394362197,), (1394362387,), (1394362348,), (1394362375,), (1394362379,), (1394362382,), (1394362518,), (1394362520,), (1394362727,), (1394362761,), (1394362798,), (1394362837,), (1394362872,), (1394362909,), (1394362967,), (1394362978,), (1394362979,), (1394362980,), (1394362981,), (1394363022,), (1394363024,), (1394363027,), (1394363031,), (1394363061,), (1394363130,), (1394363167,), (1394363187,), (1394363193,), (1394363196,), (1394363199,), (1394363258,), (1394363296,), (1394363330,), (1394363363,), (1394363542,), (1394363619,), (1394363687,), (1394364023,), (1394364805,), (1394364815,), (1394364846,), (1394365001,), (1394365007,), (1394365013,), (1394365071,), (1394366844,), (1394368713,), (1394373890,), (1394373848,), (1394373915,), (1394373917,), (1394373919,), (1394373922,), (1394373926,), (1394374005,), (1394374014,), (1394374123,), (1394374144,), (1394374184,), (1394374405,), (1394374408,), (1394374411,), (1394374414,), (1394374418,), (1394374448,), (1394374451,), (1394374455,), (1394374462,), (1394374465,), (1394374489,), (1394374493,), (1394374495,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'14112025': {'nb_upload': 24, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([28522900]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1394374495, 1394374493, 1394374489, 1394374465, 1394374462, 1394374455, 1394374451, 1394374448] map_info['map_portfolio_photo'] : {28522900: [1394374495, 1394374493, 1394374489, 1394374465, 1394374462, 1394374455, 1394374451, 1394374448, 1394374418, 1394374414, 1394374411, 1394374408, 1394374405, 1394374184, 1394374144, 1394374123, 1394374014, 1394374005, 1394373926, 1394373922, 1394373919, 1394373917, 1394373915, 1394373848]} final : True mtd_id 4302 list_pids : [1394374495, 1394374493, 1394374489, 1394374465, 1394374462, 1394374455, 1394374451, 1394374448] Looping around the photos to save general results len do output : 1 /28522900Didn'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, '4045920') ('4302', '28522900', '1394374495', None, None, None, None, None, '4045920') ('4302', None, None, None, None, None, None, None, '4045920') ('4302', '28522900', '1394374493', None, None, None, None, None, '4045920') ('4302', None, None, None, None, None, None, None, '4045920') ('4302', '28522900', '1394374489', None, None, None, None, None, '4045920') ('4302', None, None, None, None, None, None, None, '4045920') ('4302', '28522900', '1394374465', None, None, None, None, None, '4045920') ('4302', None, None, None, None, None, None, None, '4045920') ('4302', '28522900', '1394374462', None, None, None, None, None, '4045920') ('4302', None, None, None, None, None, None, None, '4045920') ('4302', '28522900', '1394374455', None, None, None, None, None, '4045920') ('4302', None, None, None, None, None, None, None, '4045920') ('4302', '28522900', '1394374451', None, None, None, None, None, '4045920') ('4302', None, None, None, None, None, None, None, '4045920') ('4302', '28522900', '1394374448', None, None, None, None, None, '4045920') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 9 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '28522900', 'None', None, None, None, None, '4045920'), ('4302', '28522900', '1394374495', None, None, None, None, None, '4045920'), ('4302', '28522900', '1394374493', None, None, None, None, None, '4045920'), ('4302', '28522900', '1394374489', None, None, None, None, None, '4045920'), ('4302', '28522900', '1394374465', None, None, None, None, None, '4045920'), ('4302', '28522900', '1394374462', None, None, None, None, None, '4045920'), ('4302', '28522900', '1394374455', None, None, None, None, None, '4045920'), ('4302', '28522900', '1394374451', None, None, None, None, None, '4045920'), ('4302', '28522900', '1394374448', None, None, None, None, None, '4045920')] time used for this insertion : 0.013565540313720703 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.17022967338562 time spend to save output : 0.013768196105957031 total time spend for step 5 : 2.183997869491577 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 (4045920) 1.98user 2.05system 0:10.39elapsed 38%CPU (0avgtext+0avgdata 159684maxresident)k 168inputs+5936outputs (6major+64179minor)pagefaults 0swaps