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 : 3549550 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 (4289654) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (4289654) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29813444 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['4289654'] with mtr_portfolio_ids : ['29813444'] and first list_photo_ids : [] new path : /proc/3549550/ Name: python3 Umask: 0002 State: R (running) Tgid: 3549550 Ngid: 0 Pid: 3549550 PPid: 3549549 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 3549550 NSpid: 3549550 NSpgid: 3547980 NSsid: 3547980 VmPeak: 1113368 kB VmSize: 1113368 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 103512 kB VmRSS: 103512 kB RssAnon: 66300 kB RssFile: 37212 kB RssShmem: 0 kB VmData: 872096 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130476 kB VmPTE: 616 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: 44 nonvoluntary_ctxt_switches: 95 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '3549550', 'Ngid': '0', 'Pid': '3549550', 'PPid': '3549549', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '3549550', 'NSpid': '3549550', 'NSpgid': '3547980', 'NSsid': '3547980', 'VmPeak': '1113368 kB', 'VmSize': '1113368 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '103512 kB', 'VmRSS': '103512 kB', 'RssAnon': '66300 kB', 'RssFile': '37212 kB', 'RssShmem': '0 kB', 'VmData': '872096 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130476 kB', 'VmPTE': '616 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': '44', 'nonvoluntary_ctxt_switches': '95'} ('datou_batch_current', '3549550', '1113368', '0', '1113368', '872096', '103512', b'', 'marlene', '4289654') 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 (29813444) 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 (4289654 ) ) 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 (29813444) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1401711705, 'portfolio_id': 29813444}, {'photo_id': 1401711703, 'portfolio_id': 29813444}, {'photo_id': 1401711674, 'portfolio_id': 29813444}, {'photo_id': 1401711628, 'portfolio_id': 29813444}, {'photo_id': 1401711114, 'portfolio_id': 29813444}, {'photo_id': 1401711069, 'portfolio_id': 29813444}, {'photo_id': 1401711034, 'portfolio_id': 29813444}, {'photo_id': 1401711011, 'portfolio_id': 29813444}, {'photo_id': 1401711001, 'portfolio_id': 29813444}, {'photo_id': 1401710417, 'portfolio_id': 29813444}, {'photo_id': 1401710324, 'portfolio_id': 29813444}, {'photo_id': 1401710224, 'portfolio_id': 29813444}, {'photo_id': 1401710125, 'portfolio_id': 29813444}, {'photo_id': 1401710038, 'portfolio_id': 29813444}, {'photo_id': 1401709435, 'portfolio_id': 29813444}, {'photo_id': 1401709385, 'portfolio_id': 29813444}, {'photo_id': 1401709340, 'portfolio_id': 29813444}, {'photo_id': 1401709303, 'portfolio_id': 29813444}, {'photo_id': 1401707420, 'portfolio_id': 29813444}, {'photo_id': 1401707269, 'portfolio_id': 29813444}, {'photo_id': 1401707177, 'portfolio_id': 29813444}, {'photo_id': 1401707129, 'portfolio_id': 29813444}, {'photo_id': 1401707088, 'portfolio_id': 29813444}, {'photo_id': 1401707053, 'portfolio_id': 29813444}, {'photo_id': 1401706778, 'portfolio_id': 29813444}, {'photo_id': 1401706643, 'portfolio_id': 29813444}, {'photo_id': 1401706517, 'portfolio_id': 29813444}, {'photo_id': 1401706399, 'portfolio_id': 29813444}, {'photo_id': 1401706276, 'portfolio_id': 29813444}, {'photo_id': 1401706115, 'portfolio_id': 29813444}, {'photo_id': 1401705920, 'portfolio_id': 29813444}, {'photo_id': 1401705869, 'portfolio_id': 29813444}, {'photo_id': 1401705802, 'portfolio_id': 29813444}, {'photo_id': 1401705727, 'portfolio_id': 29813444}, {'photo_id': 1401705670, 'portfolio_id': 29813444}, {'photo_id': 1401705639, 'portfolio_id': 29813444}, {'photo_id': 1401705347, 'portfolio_id': 29813444}, {'photo_id': 1401705345, 'portfolio_id': 29813444}, {'photo_id': 1401705341, 'portfolio_id': 29813444}, {'photo_id': 1401705336, 'portfolio_id': 29813444}, {'photo_id': 1401705331, 'portfolio_id': 29813444}, {'photo_id': 1401705327, 'portfolio_id': 29813444}, {'photo_id': 1401705284, 'portfolio_id': 29813444}, {'photo_id': 1401705250, 'portfolio_id': 29813444}, {'photo_id': 1401705215, 'portfolio_id': 29813444}, {'photo_id': 1401705184, 'portfolio_id': 29813444}, {'photo_id': 1401705142, 'portfolio_id': 29813444}, {'photo_id': 1401704746, 'portfolio_id': 29813444}, {'photo_id': 1401704712, 'portfolio_id': 29813444}, {'photo_id': 1401704680, 'portfolio_id': 29813444}, {'photo_id': 1401704646, 'portfolio_id': 29813444}] map_portfolio_id_photo_id: {29813444: [1401711705, 1401711703, 1401711674, 1401711628, 1401711114, 1401711069, 1401711034, 1401711011, 1401711001, 1401710417, 1401710324, 1401710224, 1401710125, 1401710038, 1401709435, 1401709385, 1401709340, 1401709303, 1401707420, 1401707269, 1401707177, 1401707129, 1401707088, 1401707053, 1401706778, 1401706643, 1401706517, 1401706399, 1401706276, 1401706115, 1401705920, 1401705869, 1401705802, 1401705727, 1401705670, 1401705639, 1401705347, 1401705345, 1401705341, 1401705336, 1401705331, 1401705327, 1401705284, 1401705250, 1401705215, 1401705184, 1401705142, 1401704746, 1401704712, 1401704680, 1401704646]} ##### 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.018399477005004883 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Tue Dec 30 17:12:56 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 (29813444) 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 : 29813444 get user id for portfolio 29813444 get sub ptf for main ptf 29813444, type 3726 and hashtags ['Carton_brun', 'cartonnette', 'kraft', 'environnement', 'flou', 'papier', 'Carton_gris', 'autre_refus', 'plastique', 'metal', 'mal_croppe', 'Teint_Dans_La_Masse'] 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`=29813444 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','cartonnette','kraft','environnement','flou','papier','Carton_gris','autre_refus','plastique','metal','mal_croppe','Teint_Dans_La_Masse')) 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`=29813444 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','cartonnette','kraft','environnement','flou','papier','Carton_gris','autre_refus','plastique','metal','mal_croppe','Teint_Dans_La_Masse')) AND mptpi.`min_score`=0.5 To do returned map {'flou': {'main_port_id': 29813444, 'sub_port_id': 29813462, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20386275, 'last_updated_at': datetime.datetime(2025, 12, 30, 17, 11), 'last_updated_at_desc': datetime.datetime(2025, 12, 30, 17, 11), 'last_updated_at_asc': datetime.datetime(2025, 12, 30, 17, 5, 28)}, 'cartonnette': {'main_port_id': 29813444, 'sub_port_id': 29813463, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20386276, 'last_updated_at': datetime.datetime(2025, 12, 30, 17, 11), 'last_updated_at_desc': datetime.datetime(2025, 12, 30, 17, 11), 'last_updated_at_asc': datetime.datetime(2025, 12, 30, 17, 5, 28)}, 'metal': {'main_port_id': 29813444, 'sub_port_id': 29813464, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20386277, 'last_updated_at': datetime.datetime(2025, 12, 30, 17, 11), 'last_updated_at_desc': datetime.datetime(2025, 12, 30, 17, 11), 'last_updated_at_asc': datetime.datetime(2025, 12, 30, 17, 5, 28)}, 'plastique': {'main_port_id': 29813444, 'sub_port_id': 29813465, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20386278, 'last_updated_at': datetime.datetime(2025, 12, 30, 17, 11), 'last_updated_at_desc': datetime.datetime(2025, 12, 30, 17, 11), 'last_updated_at_asc': datetime.datetime(2025, 12, 30, 17, 5, 28)}, 'environnement': {'main_port_id': 29813444, 'sub_port_id': 29813466, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20386279, 'last_updated_at': datetime.datetime(2025, 12, 30, 17, 11), 'last_updated_at_desc': datetime.datetime(2025, 12, 30, 17, 11), 'last_updated_at_asc': datetime.datetime(2025, 12, 30, 17, 5, 28)}, 'Carton_gris': {'main_port_id': 29813444, 'sub_port_id': 29813467, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20386280, 'last_updated_at': datetime.datetime(2025, 12, 30, 17, 11), 'last_updated_at_desc': datetime.datetime(2025, 12, 30, 17, 11), 'last_updated_at_asc': datetime.datetime(2025, 12, 30, 17, 5, 28)}, 'Carton_brun': {'main_port_id': 29813444, 'sub_port_id': 29813468, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20386281, 'last_updated_at': datetime.datetime(2025, 12, 30, 17, 11), 'last_updated_at_desc': datetime.datetime(2025, 12, 30, 17, 11), 'last_updated_at_asc': datetime.datetime(2025, 12, 30, 17, 5, 28)}, 'mal_croppe': {'main_port_id': 29813444, 'sub_port_id': 29813469, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20386282, 'last_updated_at': datetime.datetime(2025, 12, 30, 17, 11), 'last_updated_at_desc': datetime.datetime(2025, 12, 30, 17, 11), 'last_updated_at_asc': datetime.datetime(2025, 12, 30, 17, 5, 28)}, 'papier': {'main_port_id': 29813444, 'sub_port_id': 29813470, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20386283, 'last_updated_at': datetime.datetime(2025, 12, 30, 17, 11), 'last_updated_at_desc': datetime.datetime(2025, 12, 30, 17, 11), 'last_updated_at_asc': datetime.datetime(2025, 12, 30, 17, 5, 28)}, 'kraft': {'main_port_id': 29813444, 'sub_port_id': 29813471, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20386284, 'last_updated_at': datetime.datetime(2025, 12, 30, 17, 11), 'last_updated_at_desc': datetime.datetime(2025, 12, 30, 17, 11), 'last_updated_at_asc': datetime.datetime(2025, 12, 30, 17, 5, 28)}, 'autre_refus': {'main_port_id': 29813444, 'sub_port_id': 29813472, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20386285, 'last_updated_at': datetime.datetime(2025, 12, 30, 17, 11), 'last_updated_at_desc': datetime.datetime(2025, 12, 30, 17, 11), 'last_updated_at_asc': datetime.datetime(2025, 12, 30, 17, 5, 28)}, 'Teint_Dans_La_Masse': {'main_port_id': 29813444, 'sub_port_id': 29813473, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20386286, 'last_updated_at': datetime.datetime(2025, 12, 30, 17, 11), 'last_updated_at_desc': datetime.datetime(2025, 12, 30, 17, 11), 'last_updated_at_asc': datetime.datetime(2025, 12, 30, 17, 5, 28)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29813462 , 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=29813444 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 (29813462) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29813444) result : ((1401704646,), (1401704680,), (1401704712,), (1401704746,), (1401705142,), (1401705184,), (1401705215,), (1401705250,), (1401705284,), (1401705327,), (1401705331,), (1401705336,), (1401705341,), (1401705345,), (1401705347,), (1401705639,), (1401705670,), (1401705727,), (1401705802,), (1401705869,), (1401705920,), (1401706115,), (1401706276,), (1401706399,), (1401706517,), (1401706643,), (1401706778,), (1401707053,), (1401707088,), (1401707129,), (1401707177,), (1401707269,), (1401707420,), (1401709303,), (1401709340,), (1401709385,), (1401709435,), (1401710038,), (1401710125,), (1401710224,), (1401710324,), (1401710417,), (1401711001,), (1401711011,), (1401711034,), (1401711069,), (1401711114,), (1401711628,), (1401711674,), (1401711703,), (1401711705,)) 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 29813463 , 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=29813444 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 (29813463) result : ((1401707116,), (1401709064,), (1401709066,), (1401711157,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29813444) result : ((1401704646,), (1401704680,), (1401704712,), (1401704746,), (1401705142,), (1401705184,), (1401705215,), (1401705250,), (1401705284,), (1401705327,), (1401705331,), (1401705336,), (1401705341,), (1401705345,), (1401705347,), (1401705639,), (1401705670,), (1401705727,), (1401705802,), (1401705869,), (1401705920,), (1401706115,), (1401706276,), (1401706399,), (1401706517,), (1401706643,), (1401706778,), (1401707053,), (1401707088,), (1401707129,), (1401707177,), (1401707269,), (1401707420,), (1401709303,), (1401709340,), (1401709385,), (1401709435,), (1401710038,), (1401710125,), (1401710224,), (1401710324,), (1401710417,), (1401711001,), (1401711011,), (1401711034,), (1401711069,), (1401711114,), (1401711628,), (1401711674,), (1401711703,), (1401711705,)) 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 29813464 , 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=29813444 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 (29813464) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29813444) result : ((1401704646,), (1401704680,), (1401704712,), (1401704746,), (1401705142,), (1401705184,), (1401705215,), (1401705250,), (1401705284,), (1401705327,), (1401705331,), (1401705336,), (1401705341,), (1401705345,), (1401705347,), (1401705639,), (1401705670,), (1401705727,), (1401705802,), (1401705869,), (1401705920,), (1401706115,), (1401706276,), (1401706399,), (1401706517,), (1401706643,), (1401706778,), (1401707053,), (1401707088,), (1401707129,), (1401707177,), (1401707269,), (1401707420,), (1401709303,), (1401709340,), (1401709385,), (1401709435,), (1401710038,), (1401710125,), (1401710224,), (1401710324,), (1401710417,), (1401711001,), (1401711011,), (1401711034,), (1401711069,), (1401711114,), (1401711628,), (1401711674,), (1401711703,), (1401711705,)) 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 29813465 , 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=29813444 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 (29813465) result : ((1401707137,), (1401711176,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29813444) result : ((1401704646,), (1401704680,), (1401704712,), (1401704746,), (1401705142,), (1401705184,), (1401705215,), (1401705250,), (1401705284,), (1401705327,), (1401705331,), (1401705336,), (1401705341,), (1401705345,), (1401705347,), (1401705639,), (1401705670,), (1401705727,), (1401705802,), (1401705869,), (1401705920,), (1401706115,), (1401706276,), (1401706399,), (1401706517,), (1401706643,), (1401706778,), (1401707053,), (1401707088,), (1401707129,), (1401707177,), (1401707269,), (1401707420,), (1401709303,), (1401709340,), (1401709385,), (1401709435,), (1401710038,), (1401710125,), (1401710224,), (1401710324,), (1401710417,), (1401711001,), (1401711011,), (1401711034,), (1401711069,), (1401711114,), (1401711628,), (1401711674,), (1401711703,), (1401711705,)) 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 29813466 , 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=29813444 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 (29813466) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29813444) result : ((1401704646,), (1401704680,), (1401704712,), (1401704746,), (1401705142,), (1401705184,), (1401705215,), (1401705250,), (1401705284,), (1401705327,), (1401705331,), (1401705336,), (1401705341,), (1401705345,), (1401705347,), (1401705639,), (1401705670,), (1401705727,), (1401705802,), (1401705869,), (1401705920,), (1401706115,), (1401706276,), (1401706399,), (1401706517,), (1401706643,), (1401706778,), (1401707053,), (1401707088,), (1401707129,), (1401707177,), (1401707269,), (1401707420,), (1401709303,), (1401709340,), (1401709385,), (1401709435,), (1401710038,), (1401710125,), (1401710224,), (1401710324,), (1401710417,), (1401711001,), (1401711011,), (1401711034,), (1401711069,), (1401711114,), (1401711628,), (1401711674,), (1401711703,), (1401711705,)) 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 29813467 , 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=29813444 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 (29813467) result : ((1401709053,), (1401711132,), (1401711135,), (1401711138,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29813444) result : ((1401704646,), (1401704680,), (1401704712,), (1401704746,), (1401705142,), (1401705184,), (1401705215,), (1401705250,), (1401705284,), (1401705327,), (1401705331,), (1401705336,), (1401705341,), (1401705345,), (1401705347,), (1401705639,), (1401705670,), (1401705727,), (1401705802,), (1401705869,), (1401705920,), (1401706115,), (1401706276,), (1401706399,), (1401706517,), (1401706643,), (1401706778,), (1401707053,), (1401707088,), (1401707129,), (1401707177,), (1401707269,), (1401707420,), (1401709303,), (1401709340,), (1401709385,), (1401709435,), (1401710038,), (1401710125,), (1401710224,), (1401710324,), (1401710417,), (1401711001,), (1401711011,), (1401711034,), (1401711069,), (1401711114,), (1401711628,), (1401711674,), (1401711703,), (1401711705,)) 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 29813468 , 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=29813444 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 (29813468) result : ((1401707125,), (1401707127,), (1401711767,), (1401711770,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29813444) result : ((1401704646,), (1401704680,), (1401704712,), (1401704746,), (1401705142,), (1401705184,), (1401705215,), (1401705250,), (1401705284,), (1401705327,), (1401705331,), (1401705336,), (1401705341,), (1401705345,), (1401705347,), (1401705639,), (1401705670,), (1401705727,), (1401705802,), (1401705869,), (1401705920,), (1401706115,), (1401706276,), (1401706399,), (1401706517,), (1401706643,), (1401706778,), (1401707053,), (1401707088,), (1401707129,), (1401707177,), (1401707269,), (1401707420,), (1401709303,), (1401709340,), (1401709385,), (1401709435,), (1401710038,), (1401710125,), (1401710224,), (1401710324,), (1401710417,), (1401711001,), (1401711011,), (1401711034,), (1401711069,), (1401711114,), (1401711628,), (1401711674,), (1401711703,), (1401711705,)) 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 29813469 , 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=29813444 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 (29813469) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29813444) result : ((1401704646,), (1401704680,), (1401704712,), (1401704746,), (1401705142,), (1401705184,), (1401705215,), (1401705250,), (1401705284,), (1401705327,), (1401705331,), (1401705336,), (1401705341,), (1401705345,), (1401705347,), (1401705639,), (1401705670,), (1401705727,), (1401705802,), (1401705869,), (1401705920,), (1401706115,), (1401706276,), (1401706399,), (1401706517,), (1401706643,), (1401706778,), (1401707053,), (1401707088,), (1401707129,), (1401707177,), (1401707269,), (1401707420,), (1401709303,), (1401709340,), (1401709385,), (1401709435,), (1401710038,), (1401710125,), (1401710224,), (1401710324,), (1401710417,), (1401711001,), (1401711011,), (1401711034,), (1401711069,), (1401711114,), (1401711628,), (1401711674,), (1401711703,), (1401711705,)) 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 29813470 , 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=29813444 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 (29813470) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29813444) result : ((1401704646,), (1401704680,), (1401704712,), (1401704746,), (1401705142,), (1401705184,), (1401705215,), (1401705250,), (1401705284,), (1401705327,), (1401705331,), (1401705336,), (1401705341,), (1401705345,), (1401705347,), (1401705639,), (1401705670,), (1401705727,), (1401705802,), (1401705869,), (1401705920,), (1401706115,), (1401706276,), (1401706399,), (1401706517,), (1401706643,), (1401706778,), (1401707053,), (1401707088,), (1401707129,), (1401707177,), (1401707269,), (1401707420,), (1401709303,), (1401709340,), (1401709385,), (1401709435,), (1401710038,), (1401710125,), (1401710224,), (1401710324,), (1401710417,), (1401711001,), (1401711011,), (1401711034,), (1401711069,), (1401711114,), (1401711628,), (1401711674,), (1401711703,), (1401711705,)) 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 29813471 , 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=29813444 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 (29813471) result : ((1401711195,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29813444) result : ((1401704646,), (1401704680,), (1401704712,), (1401704746,), (1401705142,), (1401705184,), (1401705215,), (1401705250,), (1401705284,), (1401705327,), (1401705331,), (1401705336,), (1401705341,), (1401705345,), (1401705347,), (1401705639,), (1401705670,), (1401705727,), (1401705802,), (1401705869,), (1401705920,), (1401706115,), (1401706276,), (1401706399,), (1401706517,), (1401706643,), (1401706778,), (1401707053,), (1401707088,), (1401707129,), (1401707177,), (1401707269,), (1401707420,), (1401709303,), (1401709340,), (1401709385,), (1401709435,), (1401710038,), (1401710125,), (1401710224,), (1401710324,), (1401710417,), (1401711001,), (1401711011,), (1401711034,), (1401711069,), (1401711114,), (1401711628,), (1401711674,), (1401711703,), (1401711705,)) 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 29813472 , 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=29813444 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 (29813472) result : ((1401707106,), (1401709045,), (1401710573,), (1401711107,), (1401711109,), (1401711111,), (1401711757,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29813444) result : ((1401704646,), (1401704680,), (1401704712,), (1401704746,), (1401705142,), (1401705184,), (1401705215,), (1401705250,), (1401705284,), (1401705327,), (1401705331,), (1401705336,), (1401705341,), (1401705345,), (1401705347,), (1401705639,), (1401705670,), (1401705727,), (1401705802,), (1401705869,), (1401705920,), (1401706115,), (1401706276,), (1401706399,), (1401706517,), (1401706643,), (1401706778,), (1401707053,), (1401707088,), (1401707129,), (1401707177,), (1401707269,), (1401707420,), (1401709303,), (1401709340,), (1401709385,), (1401709435,), (1401710038,), (1401710125,), (1401710224,), (1401710324,), (1401710417,), (1401711001,), (1401711011,), (1401711034,), (1401711069,), (1401711114,), (1401711628,), (1401711674,), (1401711703,), (1401711705,)) 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 29813473 , 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=29813444 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 (29813473) result : ((1401711089,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29813444) result : ((1401704646,), (1401704680,), (1401704712,), (1401704746,), (1401705142,), (1401705184,), (1401705215,), (1401705250,), (1401705284,), (1401705327,), (1401705331,), (1401705336,), (1401705341,), (1401705345,), (1401705347,), (1401705639,), (1401705670,), (1401705727,), (1401705802,), (1401705869,), (1401705920,), (1401706115,), (1401706276,), (1401706399,), (1401706517,), (1401706643,), (1401706778,), (1401707053,), (1401707088,), (1401707129,), (1401707177,), (1401707269,), (1401707420,), (1401709303,), (1401709340,), (1401709385,), (1401709435,), (1401710038,), (1401710125,), (1401710224,), (1401710324,), (1401710417,), (1401711001,), (1401711011,), (1401711034,), (1401711069,), (1401711114,), (1401711628,), (1401711674,), (1401711703,), (1401711705,)) 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`=29813444 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','cartonnette','kraft','environnement','flou','papier','Carton_gris','autre_refus','plastique','metal','mal_croppe','Teint_Dans_La_Masse')) 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`=29813444 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','cartonnette','kraft','environnement','flou','papier','Carton_gris','autre_refus','plastique','metal','mal_croppe','Teint_Dans_La_Masse')) AND mptpi.`min_score`=0.5 To do returned map {'flou': {'main_port_id': 29813444, 'sub_port_id': 29813474, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20386287, 'last_updated_at': datetime.datetime(2025, 12, 30, 17, 5, 30), 'last_updated_at_desc': datetime.datetime(2025, 12, 30, 17, 5, 30), 'last_updated_at_asc': datetime.datetime(2025, 12, 30, 17, 5, 30)}, 'cartonnette': {'main_port_id': 29813444, 'sub_port_id': 29813475, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20386288, 'last_updated_at': datetime.datetime(2025, 12, 30, 17, 5, 30), 'last_updated_at_desc': datetime.datetime(2025, 12, 30, 17, 5, 30), 'last_updated_at_asc': datetime.datetime(2025, 12, 30, 17, 5, 30)}, 'metal': {'main_port_id': 29813444, 'sub_port_id': 29813476, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20386289, 'last_updated_at': datetime.datetime(2025, 12, 30, 17, 5, 30), 'last_updated_at_desc': datetime.datetime(2025, 12, 30, 17, 5, 30), 'last_updated_at_asc': datetime.datetime(2025, 12, 30, 17, 5, 30)}, 'plastique': {'main_port_id': 29813444, 'sub_port_id': 29813477, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20386290, 'last_updated_at': datetime.datetime(2025, 12, 30, 17, 5, 30), 'last_updated_at_desc': datetime.datetime(2025, 12, 30, 17, 5, 30), 'last_updated_at_asc': datetime.datetime(2025, 12, 30, 17, 5, 30)}, 'environnement': {'main_port_id': 29813444, 'sub_port_id': 29813478, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20386291, 'last_updated_at': datetime.datetime(2025, 12, 30, 17, 5, 30), 'last_updated_at_desc': datetime.datetime(2025, 12, 30, 17, 5, 30), 'last_updated_at_asc': datetime.datetime(2025, 12, 30, 17, 5, 30)}, 'Carton_gris': {'main_port_id': 29813444, 'sub_port_id': 29813479, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20386292, 'last_updated_at': datetime.datetime(2025, 12, 30, 17, 5, 30), 'last_updated_at_desc': datetime.datetime(2025, 12, 30, 17, 5, 30), 'last_updated_at_asc': datetime.datetime(2025, 12, 30, 17, 5, 30)}, 'Carton_brun': {'main_port_id': 29813444, 'sub_port_id': 29813480, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20386293, 'last_updated_at': datetime.datetime(2025, 12, 30, 17, 5, 30), 'last_updated_at_desc': datetime.datetime(2025, 12, 30, 17, 5, 30), 'last_updated_at_asc': datetime.datetime(2025, 12, 30, 17, 5, 30)}, 'mal_croppe': {'main_port_id': 29813444, 'sub_port_id': 29813481, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20386294, 'last_updated_at': datetime.datetime(2025, 12, 30, 17, 5, 30), 'last_updated_at_desc': datetime.datetime(2025, 12, 30, 17, 5, 30), 'last_updated_at_asc': datetime.datetime(2025, 12, 30, 17, 5, 30)}, 'papier': {'main_port_id': 29813444, 'sub_port_id': 29813482, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20386295, 'last_updated_at': datetime.datetime(2025, 12, 30, 17, 5, 30), 'last_updated_at_desc': datetime.datetime(2025, 12, 30, 17, 5, 30), 'last_updated_at_asc': datetime.datetime(2025, 12, 30, 17, 5, 30)}, 'kraft': {'main_port_id': 29813444, 'sub_port_id': 29813483, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20386296, 'last_updated_at': datetime.datetime(2025, 12, 30, 17, 5, 30), 'last_updated_at_desc': datetime.datetime(2025, 12, 30, 17, 5, 30), 'last_updated_at_asc': datetime.datetime(2025, 12, 30, 17, 5, 30)}, 'autre_refus': {'main_port_id': 29813444, 'sub_port_id': 29813484, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20386297, 'last_updated_at': datetime.datetime(2025, 12, 30, 17, 5, 30), 'last_updated_at_desc': datetime.datetime(2025, 12, 30, 17, 5, 30), 'last_updated_at_asc': datetime.datetime(2025, 12, 30, 17, 5, 30)}, 'Teint_Dans_La_Masse': {'main_port_id': 29813444, 'sub_port_id': 29813485, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20386298, 'last_updated_at': datetime.datetime(2025, 12, 30, 17, 11), 'last_updated_at_desc': datetime.datetime(2025, 12, 30, 17, 11), 'last_updated_at_asc': datetime.datetime(2025, 12, 30, 17, 5, 30)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29813474,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29813462 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29813475,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29813463 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29813476,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29813464 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29813477,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29813465 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29813478,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29813466 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29813479,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29813467 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29813480,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29813468 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29813481,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29813469 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29813482,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29813470 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29813483,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29813471 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29813484,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29813472 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29813485,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29813473 lien utilise dans velours : https://marlene.fotonower.com/velours/29813474,29813475,29813476,29813477,29813478,29813479,29813480,29813481,29813482,29813483,29813484,29813485?tags=flou,cartonnette,metal,plastique,environnement,Carton_gris,Carton_brun,mal_croppe,papier,kraft,autre_refus,Teint_Dans_La_Masse After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29813444]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1401711705, 1401711703, 1401711674, 1401711628] map_info['map_portfolio_photo'] : {29813444: [1401711705, 1401711703, 1401711674, 1401711628, 1401711114, 1401711069, 1401711034, 1401711011, 1401711001, 1401710417, 1401710324, 1401710224, 1401710125, 1401710038, 1401709435, 1401709385, 1401709340, 1401709303, 1401707420, 1401707269, 1401707177, 1401707129, 1401707088, 1401707053, 1401706778, 1401706643, 1401706517, 1401706399, 1401706276, 1401706115, 1401705920, 1401705869, 1401705802, 1401705727, 1401705670, 1401705639, 1401705347, 1401705345, 1401705341, 1401705336, 1401705331, 1401705327, 1401705284, 1401705250, 1401705215, 1401705184, 1401705142, 1401704746, 1401704712, 1401704680, 1401704646]} final : False mtd_id 4302 list_pids : [1401711705, 1401711703, 1401711674, 1401711628] Looping around the photos to save general results len do output : 1 /29813444. 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, '4289654') ('4302', '29813444', '1401711705', None, None, None, None, None, '4289654') ('4302', None, None, None, None, None, None, None, '4289654') ('4302', '29813444', '1401711703', None, None, None, None, None, '4289654') ('4302', None, None, None, None, None, None, None, '4289654') ('4302', '29813444', '1401711674', None, None, None, None, None, '4289654') ('4302', None, None, None, None, None, None, None, '4289654') ('4302', '29813444', '1401711628', None, None, None, None, None, '4289654') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 5 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, '29813444', "{'flou': 29813462, 'cartonnette': 29813463, 'metal': 29813464, 'plastique': 29813465, 'environnement': 29813466, 'Carton_gris': 29813467, 'Carton_brun': 29813468, 'mal_croppe': 29813469, 'papier': 29813470, 'kraft': 29813471, 'autre_refus': 29813472, 'Teint_Dans_La_Masse': 29813473}", None, None, None, None, '4289654'), ('4302', '29813444', '1401711705', None, None, None, None, None, '4289654'), ('4302', '29813444', '1401711703', None, None, None, None, None, '4289654'), ('4302', '29813444', '1401711674', None, None, None, None, None, '4289654'), ('4302', '29813444', '1401711628', None, None, None, None, None, '4289654')] time used for this insertion : 0.014525651931762695 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.7715935707092285 time spend to save output : 0.014774799346923828 total time spend for step 1 : 1.7863683700561523 step2:final Tue Dec 30 17:12: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 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 (29813444) 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 29813444 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1401704746,1401704712,1401704680,1401704646,1401707420,1401705284,1401705250,1401707269,1401705215,1401707177,1401705184,1401706778,1401705347,1401706643,1401705345,1401705142,1401706517,1401705341,1401706399,1401705336,1401706276,1401705331,1401706115,1401705327,1401705920,1401705869,1401705802,1401705727,1401705670,1401705639,1401707129,1401707088,1401707053,1401709435,1401709385,1401709340,1401709303,1401710417,1401710324,1401710224,1401710125,1401710038,1401711114,1401711069,1401711034,1401711011,1401711001,1401711705,1401711703,1401711674,1401711628); 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([29813444]) Inside saveOutput : final : False verbose : True original output for save of step final : {1401711705: ('0.03228914884437059',), 1401711703: ('0.03228914884437059',), 1401711674: ('0.03228914884437059',), 1401711628: ('0.03228914884437059',)} new output for save of step final : {1401711705: ('0.03228914884437059',), 1401711703: ('0.03228914884437059',), 1401711674: ('0.03228914884437059',), 1401711628: ('0.03228914884437059',)} [1401711705, 1401711703, 1401711674, 1401711628] map_info['map_portfolio_photo'] : {29813444: [1401711705, 1401711703, 1401711674, 1401711628, 1401711114, 1401711069, 1401711034, 1401711011, 1401711001, 1401710417, 1401710324, 1401710224, 1401710125, 1401710038, 1401709435, 1401709385, 1401709340, 1401709303, 1401707420, 1401707269, 1401707177, 1401707129, 1401707088, 1401707053, 1401706778, 1401706643, 1401706517, 1401706399, 1401706276, 1401706115, 1401705920, 1401705869, 1401705802, 1401705727, 1401705670, 1401705639, 1401705347, 1401705345, 1401705341, 1401705336, 1401705331, 1401705327, 1401705284, 1401705250, 1401705215, 1401705184, 1401705142, 1401704746, 1401704712, 1401704680, 1401704646]} final : False mtd_id 4302 list_pids : [1401711705, 1401711703, 1401711674, 1401711628] Looping around the photos to save general results len do output : 4 /1401711705.Didn't retrieve data . /1401711703.Didn't retrieve data . /1401711674.Didn't retrieve data . /1401711628.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, '4289654') ('4302', '29813444', '1401711705', None, None, None, None, None, '4289654') ('4302', None, None, None, None, None, None, None, '4289654') ('4302', '29813444', '1401711703', None, None, None, None, None, '4289654') ('4302', None, None, None, None, None, None, None, '4289654') ('4302', '29813444', '1401711674', None, None, None, None, None, '4289654') ('4302', None, None, None, None, None, None, None, '4289654') ('4302', '29813444', '1401711628', None, None, None, None, None, '4289654') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 12 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', '29813444', '1401711705', '0.03228914884437059', None, None, None, None, '4289654'), ('4302', '29813444', '1401711703', '0.03228914884437059', None, None, None, None, '4289654'), ('4302', '29813444', '1401711674', '0.03228914884437059', None, None, None, None, '4289654'), ('4302', '29813444', '1401711628', '0.03228914884437059', None, None, None, None, '4289654')] time used for this insertion : 0.013485908508300781 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07917451858520508 time spend to save output : 0.013778924942016602 total time spend for step 2 : 0.09295344352722168 step3:velours_tree Tue Dec 30 17:12: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 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 : {29813444: [{'flou': 29813462, 'cartonnette': 29813463, 'metal': 29813464, 'plastique': 29813465, 'environnement': 29813466, 'Carton_gris': 29813467, 'Carton_brun': 29813468, 'mal_croppe': 29813469, 'papier': 29813470, 'kraft': 29813471, 'autre_refus': 29813472, 'Teint_Dans_La_Masse': 29813473}]} input_args_next_step : {29813444: ()} output_args : {29813444: [{'flou': 29813462, 'cartonnette': 29813463, 'metal': 29813464, 'plastique': 29813465, 'environnement': 29813466, 'Carton_gris': 29813467, 'Carton_brun': 29813468, 'mal_croppe': 29813469, 'papier': 29813470, 'kraft': 29813471, 'autre_refus': 29813472, 'Teint_Dans_La_Masse': 29813473}]} args : 29813444 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'flou': 29813462, 'cartonnette': 29813463, 'metal': 29813464, 'plastique': 29813465, 'environnement': 29813466, 'Carton_gris': 29813467, 'Carton_brun': 29813468, 'mal_croppe': 29813469, 'papier': 29813470, 'kraft': 29813471, 'autre_refus': 29813472, 'Teint_Dans_La_Masse': 29813473},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29813444) 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([29813444]) 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.25013256072998047 time spend to save output : 6.723403930664062e-05 total time spend for step 3 : 0.2501997947692871 step4:send_mail_cod Tue Dec 30 17:12: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 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 : {1401711705: ('0.03228914884437059',), 1401711703: ('0.03228914884437059',), 1401711674: ('0.03228914884437059',), 1401711628: ('0.03228914884437059',)} input_args_next_step : {1401711705: ()} output_args : {1401711705: ('0.03228914884437059',), 1401711703: ('0.03228914884437059',), 1401711674: ('0.03228914884437059',), 1401711628: ('0.03228914884437059',)} args : 1401711705 depend.output_id : 0 input_args_next_step : {1401711705: ('0.03228914884437059',), 1401711703: ()} output_args : {1401711705: ('0.03228914884437059',), 1401711703: ('0.03228914884437059',), 1401711674: ('0.03228914884437059',), 1401711628: ('0.03228914884437059',)} args : 1401711703 depend.output_id : 0 input_args_next_step : {1401711705: ('0.03228914884437059',), 1401711703: ('0.03228914884437059',), 1401711674: ()} output_args : {1401711705: ('0.03228914884437059',), 1401711703: ('0.03228914884437059',), 1401711674: ('0.03228914884437059',), 1401711628: ('0.03228914884437059',)} args : 1401711674 depend.output_id : 0 input_args_next_step : {1401711705: ('0.03228914884437059',), 1401711703: ('0.03228914884437059',), 1401711674: ('0.03228914884437059',), 1401711628: ()} output_args : {1401711705: ('0.03228914884437059',), 1401711703: ('0.03228914884437059',), 1401711674: ('0.03228914884437059',), 1401711628: ('0.03228914884437059',)} args : 1401711628 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 : {29813444: [{'flou': 29813462, 'cartonnette': 29813463, 'metal': 29813464, 'plastique': 29813465, 'environnement': 29813466, 'Carton_gris': 29813467, 'Carton_brun': 29813468, 'mal_croppe': 29813469, 'papier': 29813470, 'kraft': 29813471, 'autre_refus': 29813472, 'Teint_Dans_La_Masse': 29813473}]} input_args_next_step : {1401711705: ('0.03228914884437059',), 1401711703: ('0.03228914884437059',), 1401711674: ('0.03228914884437059',), 1401711628: ('0.03228914884437059',), 29813444: ()} output_args : {29813444: [{'flou': 29813462, 'cartonnette': 29813463, 'metal': 29813464, 'plastique': 29813465, 'environnement': 29813466, 'Carton_gris': 29813467, 'Carton_brun': 29813468, 'mal_croppe': 29813469, 'papier': 29813470, 'kraft': 29813471, 'autre_refus': 29813472, 'Teint_Dans_La_Masse': 29813473}]} args : 29813444 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 :5, first value : ('0.03228914884437059',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29813444) 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 (1401711705,1401711703,1401711674,1401711628) Found this number of photos: 4 ##### Call download_photos : nb_thread : 5 begin to download photo : 1401711628 begin to download photo : 1401711674 begin to download photo : 1401711703 begin to download photo : 1401711705 download finish for photo 1401711705 download finish for photo 1401711703 download finish for photo 1401711628 download finish for photo 1401711674 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette298134621767111178/ length of list_filenames : 4 ; length of list_pids : 4 ; length of list_args : 4 results_Auto_P29813444_30-12-2025_17_12_58.pdf 29813462 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=29813462 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette298134621767111178 29813463 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=29813463 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1401707116: '1767110705_3596290_1401704680_5ac92559e271b763bbd5b77240aa96e4_rle_crop_4085697287_0.png', 1401709064: '1767110825_3600198_1401705331_7da2a7514b575b3ba4e9d61a4ac6af3f_rle_crop_4085699134_0.png', 1401709066: '1767110825_3600198_1401705327_fd4af9571f219b96101d86dc2225622d_rle_crop_4085699154_0.png', 1401711157: '1767110966_3604964_1401705869_a85530da37780baf9aecb4ccf97ad785_rle_crop_4085701946_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/30/7e595af1934f48131594c71138965921_60588253.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/30/8f8061ad5db0d7109a3bd109bd412f61_54443462.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/30/a238e62391564a26f358d576f38a300c_38228523.png change filename to text .imagette298134631767111178/ imagette298134631767111178/1767110705_3596290_1401704680_5ac92559e271b763bbd5b77240aa96e4_rle_crop_4085697287_0.png.png imagette298134631767111178/1767110825_3600198_1401705331_7da2a7514b575b3ba4e9d61a4ac6af3f_rle_crop_4085699134_0.png.png imagette298134631767111178/1767110825_3600198_1401705327_fd4af9571f219b96101d86dc2225622d_rle_crop_4085699154_0.png.png imagette298134631767111178/1767110966_3604964_1401705869_a85530da37780baf9aecb4ccf97ad785_rle_crop_4085701946_0.png.png imagette298134641767111178/ wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/30/f6fbe74cd5aa54ddddc86de68963532d_28591699.png imagette298134631767111178 29813464 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=29813464 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette298134641767111178 29813465 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=29813465 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1401707137: '1767110705_3596290_1401704680_5ac92559e271b763bbd5b77240aa96e4_rle_crop_4085697290_0.png', 1401711176: '1767110966_3604964_1401705727_2ed2f34663410771f0b66bc03f19dc6c_rle_crop_4085701986_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/30/98818aa7553ed7526df74261302615d8_79902465.png change filename to text .imagette298134651767111178/ imagette298134651767111178/1767110705_3596290_1401704680_5ac92559e271b763bbd5b77240aa96e4_rle_crop_4085697290_0.png.png imagette298134651767111178/1767110966_3604964_1401705727_2ed2f34663410771f0b66bc03f19dc6c_rle_crop_4085701986_0.png.png imagette298134691767111179/ wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/30/7968cdb871715f73033e894d9251d35b_2795806.png imagette298134651767111178 29813469 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=29813469 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette298134691767111179 29813471 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=29813471 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1401711195: '1767110966_3604964_1401705639_3ca8c5a5fa6bb8fd1719cd8cee9ad975_rle_crop_4085702010_0.png'} change filename to text .imagette298134711767111179/ imagette298134711767111179/1767110966_3604964_1401705639_3ca8c5a5fa6bb8fd1719cd8cee9ad975_rle_crop_4085702010_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/30/8f14fb2de07f28ca2e8dd2a95f229b51_99357442.png imagette298134711767111179 29813472 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=29813472 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1401707106: '1767110705_3596290_1401704680_5ac92559e271b763bbd5b77240aa96e4_rle_crop_4085697284_0.png', 1401709045: '1767110825_3600198_1401705331_7da2a7514b575b3ba4e9d61a4ac6af3f_rle_crop_4085699136_0.png', 1401710573: '1767110946_3604521_1401707053_5214707349b7507aae8cf876663cabc4_rle_crop_4085701356_0.png', 1401711107: '1767110966_3604964_1401705802_8fb49410d37edbd34c819f05571a8a32_rle_crop_4085701966_0.png', 1401711109: '1767110966_3604964_1401705670_5c385581e0ff069082d5c385b5dd7107_rle_crop_4085702004_0.png', 1401711111: '1767110966_3604964_1401705670_5c385581e0ff069082d5c385b5dd7107_rle_crop_4085701997_0.png', 1401711757: '1767111065_3610863_1401707053_5214707349b7507aae8cf876663cabc4_rle_crop_4085701356_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/30/47784606d64987030b5f4f883a6f26c6_13399350.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/30/64b6ca6443886c39ae0b6660f02547aa_39186439.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/30/fe94b22e7b144a21422c51c55bba7779_58126505.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/30/c671a4e7768363ce88afbe299fff08d8_98080300.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/30/3fc422d281b184f001852cb4732ad5ad_63684344.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/30/cf4b6e4bf5b5ef7a46419e7daf54421d_6975620.png change filename to text .imagette298134721767111179/ imagette298134721767111179/1767110705_3596290_1401704680_5ac92559e271b763bbd5b77240aa96e4_rle_crop_4085697284_0.png.png imagette298134721767111179/1767110946_3604521_1401707053_5214707349b7507aae8cf876663cabc4_rle_crop_4085701356_0.png.png imagette298134721767111179/1767110825_3600198_1401705331_7da2a7514b575b3ba4e9d61a4ac6af3f_rle_crop_4085699136_0.png.png imagette298134721767111179/1767110966_3604964_1401705670_5c385581e0ff069082d5c385b5dd7107_rle_crop_4085702004_0.png.png imagette298134721767111179/1767110966_3604964_1401705670_5c385581e0ff069082d5c385b5dd7107_rle_crop_4085701997_0.png.png imagette298134721767111179/1767110966_3604964_1401705802_8fb49410d37edbd34c819f05571a8a32_rle_crop_4085701966_0.png.png imagette298134721767111179/1767111065_3610863_1401707053_5214707349b7507aae8cf876663cabc4_rle_crop_4085701356_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/30/fe94b22e7b144a21422c51c55bba7779_4838788.png imagette298134721767111179 29813467 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=29813467 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1401709053: '1767110825_3600198_1401705331_7da2a7514b575b3ba4e9d61a4ac6af3f_rle_crop_4085699140_0.png', 1401711132: '1767110966_3604964_1401705869_a85530da37780baf9aecb4ccf97ad785_rle_crop_4085701950_0.png', 1401711135: '1767110966_3604964_1401705670_5c385581e0ff069082d5c385b5dd7107_rle_crop_4085701996_0.png', 1401711138: '1767110966_3604964_1401705639_3ca8c5a5fa6bb8fd1719cd8cee9ad975_rle_crop_4085702013_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/30/71351c401e5c31d6898f7179082387fb_26911320.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/30/2b98f0ab403177773859bacd74c01114_84223101.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/30/1cbeb17f1128fb058e6c082cb2e3f4fd_19771705.png change filename to text .imagette298134671767111179/ imagette298134671767111179/1767110966_3604964_1401705639_3ca8c5a5fa6bb8fd1719cd8cee9ad975_rle_crop_4085702013_0.png.png imagette298134671767111179/1767110966_3604964_1401705869_a85530da37780baf9aecb4ccf97ad785_rle_crop_4085701950_0.png.png imagette298134671767111179/1767110966_3604964_1401705670_5c385581e0ff069082d5c385b5dd7107_rle_crop_4085701996_0.png.png imagette298134671767111179/1767110825_3600198_1401705331_7da2a7514b575b3ba4e9d61a4ac6af3f_rle_crop_4085699140_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/30/40944f47f45ff63161e5388258470a63_51022295.png imagette298134671767111179 29813468 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=29813468 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1401707125: '1767110705_3596290_1401704746_583f1d3d7e97ac40ef67ea04fac1747b_rle_crop_4085697262_0.png', 1401707127: '1767110705_3596290_1401704746_583f1d3d7e97ac40ef67ea04fac1747b_rle_crop_4085697263_0.png', 1401711767: '1767111065_3610863_1401709435_de20e18dc0ba40bb4f34e89db248e9d3_rle_crop_4085702244_0.png', 1401711770: '1767111065_3610863_1401709435_de20e18dc0ba40bb4f34e89db248e9d3_rle_crop_4085702246_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/30/c252f7d1a51d0065d4e5957d09300153_24636140.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/30/50b0ad50e960f14cc33961c3edcb15b9_68973189.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/30/fcaaf5da4858eb743913439d6616e870_78531392.png change filename to text .imagette298134681767111180/ imagette298134681767111180/1767110705_3596290_1401704746_583f1d3d7e97ac40ef67ea04fac1747b_rle_crop_4085697262_0.png.png imagette298134681767111180/1767111065_3610863_1401709435_de20e18dc0ba40bb4f34e89db248e9d3_rle_crop_4085702244_0.png.png imagette298134681767111180/1767110705_3596290_1401704746_583f1d3d7e97ac40ef67ea04fac1747b_rle_crop_4085697263_0.png.png imagette298134681767111180/1767111065_3610863_1401709435_de20e18dc0ba40bb4f34e89db248e9d3_rle_crop_4085702246_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/30/8e8433f7a02c913ca9bbbb4fb4cef6d9_16945057.png imagette298134681767111180 29813473 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=29813473 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1401711089: '1767110966_3604964_1401705802_8fb49410d37edbd34c819f05571a8a32_rle_crop_4085701970_0.png'} change filename to text .imagette298134731767111180/ imagette298134731767111180/1767110966_3604964_1401705802_8fb49410d37edbd34c819f05571a8a32_rle_crop_4085701970_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/30/5fe5edf8511af161ef207b6541d9d066_83301923.png imagette298134731767111180 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=29813444 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/29813474,29813475,29813476,29813477,29813478,29813479,29813480,29813481,29813482,29813483,29813484,29813485?tags=flou,cartonnette,metal,plastique,environnement,Carton_gris,Carton_brun,mal_croppe,papier,kraft,autre_refus,Teint_Dans_La_Masse your option no_mail is active, we will not send the real mail to your client args[1401711705] : ('0.03228914884437059',) no score found for photo 1401711705 We are sending mail with results at report@fotonower.com args[1401711703] : ('0.03228914884437059',) no score found for photo 1401711703 We are sending mail with results at report@fotonower.com args[1401711674] : ('0.03228914884437059',) no score found for photo 1401711674 We are sending mail with results at report@fotonower.com args[1401711628] : ('0.03228914884437059',) no score found for photo 1401711628 We are sending mail with results at report@fotonower.com refus_total : 0.03228914884437059 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=29813444 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_P29813444_30-12-2025_17_12_58.pdf results_Auto_P29813444_30-12-2025_17_12_58.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29813444_30-12-2025_17_12_58.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','29813444','results_Auto_P29813444_30-12-2025_17_12_58.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29813444_30-12-2025_17_12_58.pdf','pdf','','0.11','0.03228914884437059') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29813444]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1401711705, 1401711703, 1401711674, 1401711628] map_info['map_portfolio_photo'] : {29813444: [1401711705, 1401711703, 1401711674, 1401711628, 1401711114, 1401711069, 1401711034, 1401711011, 1401711001, 1401710417, 1401710324, 1401710224, 1401710125, 1401710038, 1401709435, 1401709385, 1401709340, 1401709303, 1401707420, 1401707269, 1401707177, 1401707129, 1401707088, 1401707053, 1401706778, 1401706643, 1401706517, 1401706399, 1401706276, 1401706115, 1401705920, 1401705869, 1401705802, 1401705727, 1401705670, 1401705639, 1401705347, 1401705345, 1401705341, 1401705336, 1401705331, 1401705327, 1401705284, 1401705250, 1401705215, 1401705184, 1401705142, 1401704746, 1401704712, 1401704680, 1401704646]} final : False mtd_id 4302 list_pids : [1401711705, 1401711703, 1401711674, 1401711628] 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, '4289654') ('4302', '29813444', '1401711705', None, None, None, None, None, '4289654') ('4302', None, None, None, None, None, None, None, '4289654') ('4302', '29813444', '1401711703', None, None, None, None, None, '4289654') ('4302', None, None, None, None, None, None, None, '4289654') ('4302', '29813444', '1401711674', None, None, None, None, None, '4289654') ('4302', None, None, None, None, None, None, None, '4289654') ('4302', '29813444', '1401711628', None, None, None, None, None, '4289654') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 4 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', '29813444', '1401711705', None, None, None, None, None, '4289654'), ('4302', '29813444', '1401711703', None, None, None, None, None, '4289654'), ('4302', '29813444', '1401711674', None, None, None, None, None, '4289654'), ('4302', '29813444', '1401711628', None, None, None, None, None, '4289654')] time used for this insertion : 0.01360630989074707 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.7789647579193115 time spend to save output : 0.013855695724487305 total time spend for step 4 : 3.792820453643799 step5:split_time_score Tue Dec 30 17:13: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 : ['29813444'] 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 : [('29813444',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29813444) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1401711705: {'path': 'temp/1767111178_3549550_1401711705_52216c790600da885d69f7bdcbdfd22a.jpg', 'extension': 'jpg'}, 1401711703: {'path': 'temp/1767111178_3549550_1401711703_f52c2d38eb56d0b3d953167258ecd9c1.jpg', 'extension': 'jpg'}, 1401711628: {'path': 'temp/1767111178_3549550_1401711628_569c565f8e6867ff2eb51179d224e712.jpg', 'extension': 'jpg'}, 1401711674: {'path': 'temp/1767111178_3549550_1401711674_bb9ea8ba4a45b3c93a8d5a64caa6f2ad.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 = 29813444; (('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 = 29813444 group by h (('17', 51),) 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=29813444 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 (29813444) 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 (29813444) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 30122025 29813444 Nombre de photos uploadées : 51 / 23040 (0%) 30122025 29813444 Nombre de photos taguées (types de déchets): 0 / 51 (0%) 30122025 29813444 Nombre de photos taguées (volume) : 0 / 51 (0%) [{'photo_id': 1401704746, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/30/583f1d3d7e97ac40ef67ea04fac1747b.jpg', 'username': None, 'uploaded_at': 1767110467, 'text': 'image_30122025_17_00_14_010201m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1401704712, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/30/6655aa759aadc525ae424cb625bc7bc1.jpg', 'username': None, 'uploaded_at': 1767110467, 'text': 'image_30122025_17_00_25_010139m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1401704680, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/30/5ac92559e271b763bbd5b77240aa96e4.jpg', 'username': None, 'uploaded_at': 1767110467, 'text': 'image_30122025_17_00_35_010138m0.jpg 3.0000000000000004e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1401704646, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/30/abdaa55289c8f2acd02d77e693cf1798.jpg', 'username': None, 'uploaded_at': 1767110467, 'text': 'image_30122025_17_00_45_010136m0.jpg 4e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 3.337860107421875e-06 elapsed_time : order_list_meta_photo_and_scores 1.1205673217773438e-05 ??????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0021791458129882812 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 29813444, '2025-12-30' ) 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-12-30' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2809232,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.2937347888946533 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= 2809232 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2809232, 'dashboard_run_id': 2820458, 'mtr_portfolio_id': 29790877, 'dashboard_result_id': 18844865, '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_P29790877_30-12-2025_05_54_27.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29790879, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29790880, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29790881, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29790882, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29790883, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29790884, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29790885, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29790886, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29790887, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29790888, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29790889, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29790890, 'pht': 3726}}"}, {'dashboat_entry_day': 2809232, 'dashboard_run_id': 2820458, 'mtr_portfolio_id': 29790983, 'dashboard_result_id': 18844866, '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_P29790983_30-12-2025_05_55_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29791023, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29791024, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29791025, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29791026, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29791027, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29791028, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29791029, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29791030, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29791031, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29791032, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29791033, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29791034, 'pht': 3726}}"}, {'dashboat_entry_day': 2809232, 'dashboard_run_id': 2820458, 'mtr_portfolio_id': 29791397, 'dashboard_result_id': 18844867, '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_P29791397_30-12-2025_05_55_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29791400, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29791401, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29791402, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29791403, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29791404, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29791405, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29791406, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29791407, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29791408, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29791409, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29791410, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29791411, 'pht': 3726}}"}, {'dashboat_entry_day': 2809232, 'dashboard_run_id': 2820458, 'mtr_portfolio_id': 29791790, 'dashboard_result_id': 18844868, '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_P29791790_30-12-2025_05_55_43.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29791798, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29791799, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29791800, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29791801, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29791802, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29791803, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29791804, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29791805, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29791806, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29791807, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29791808, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29791809, 'pht': 3726}}"}, {'dashboat_entry_day': 2809232, 'dashboard_run_id': 2820458, 'mtr_portfolio_id': 29792732, 'dashboard_result_id': 18844869, '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_P29792732_30-12-2025_05_56_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29792734, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29792735, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29792736, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29792737, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29792738, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29792739, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29792740, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29792741, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29792742, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29792743, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29792744, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29792745, 'pht': 3726}}"}, {'dashboat_entry_day': 2809232, 'dashboard_run_id': 2820458, 'mtr_portfolio_id': 29795877, 'dashboard_result_id': 18844870, '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_P29795877_30-12-2025_09_50_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29795878, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29795879, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29795880, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29795881, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29795882, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29795883, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29795884, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29795885, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29795886, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29795887, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29795888, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29795889, 'pht': 3726}}"}, {'dashboat_entry_day': 2809232, 'dashboard_run_id': 2820458, 'mtr_portfolio_id': 29797237, 'dashboard_result_id': 18844871, '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_P29797237_30-12-2025_10_39_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29797240, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29797241, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29797242, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29797243, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29797244, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29797245, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29797246, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29797247, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29797248, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29797249, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29797250, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29797251, 'pht': 3726}}"}, {'dashboat_entry_day': 2809232, 'dashboard_run_id': 2820458, 'mtr_portfolio_id': 29797610, 'dashboard_result_id': 18844872, '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_P29797610_30-12-2025_10_47_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29797618, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29797619, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29797620, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29797621, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29797622, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29797623, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29797624, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29797625, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29797626, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29797627, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29797628, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29797629, 'pht': 3726}}"}, {'dashboat_entry_day': 2809232, 'dashboard_run_id': 2820458, 'mtr_portfolio_id': 29798325, 'dashboard_result_id': 18844873, '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_P29798325_30-12-2025_11_03_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29798335, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29798336, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29798337, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29798338, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29798339, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29798340, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29798341, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29798342, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29798343, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29798344, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29798345, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29798346, 'pht': 3726}}"}, {'dashboat_entry_day': 2809232, 'dashboard_run_id': 2820458, 'mtr_portfolio_id': 29799025, 'dashboard_result_id': 18844874, '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_P29799025_30-12-2025_11_17_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29799061, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29799062, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29799063, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29799064, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29799065, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29799066, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29799067, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29799068, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29799069, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29799070, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29799071, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29799072, 'pht': 3726}}"}, {'dashboat_entry_day': 2809232, 'dashboard_run_id': 2820458, 'mtr_portfolio_id': 29799682, 'dashboard_result_id': 18844875, '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_P29799682_30-12-2025_11_35_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29799731, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29799732, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29799733, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29799734, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29799735, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29799736, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29799737, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29799738, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29799739, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29799740, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29799741, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29799742, 'pht': 3726}}"}, {'dashboat_entry_day': 2809232, 'dashboard_run_id': 2820458, 'mtr_portfolio_id': 29800360, 'dashboard_result_id': 18844876, '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_P29800360_30-12-2025_11_47_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29800377, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29800378, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29800379, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29800380, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29800381, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29800382, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29800383, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29800384, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29800385, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29800386, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29800387, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29800388, 'pht': 3726}}"}, {'dashboat_entry_day': 2809232, 'dashboard_run_id': 2820458, 'mtr_portfolio_id': 29800908, 'dashboard_result_id': 18844877, '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_P29800908_30-12-2025_12_05_30.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29800915, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29800916, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29800917, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29800918, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29800919, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29800920, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29800922, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29800923, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29800924, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29800925, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29800926, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29800927, 'pht': 3726}}"}, {'dashboat_entry_day': 2809232, 'dashboard_run_id': 2820458, 'mtr_portfolio_id': 29801565, 'dashboard_result_id': 18844878, '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_P29801565_30-12-2025_12_16_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29801569, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29801570, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29801571, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29801572, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29801573, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29801574, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29801575, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29801576, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29801577, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29801578, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29801579, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29801580, 'pht': 3726}}"}, {'dashboat_entry_day': 2809232, 'dashboard_run_id': 2820458, 'mtr_portfolio_id': 29802386, 'dashboard_result_id': 18844879, '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_P29802386_30-12-2025_12_32_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29802393, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29802394, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29802395, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29802396, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29802397, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29802398, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29802399, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29802400, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29802401, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29802402, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29802403, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29802404, 'pht': 3726}}"}, {'dashboat_entry_day': 2809232, 'dashboard_run_id': 2820458, 'mtr_portfolio_id': 29803120, 'dashboard_result_id': 18844880, '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_P29803120_30-12-2025_12_46_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29803161, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29803162, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29803163, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29803164, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29803165, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29803166, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29803167, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29803168, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29803169, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29803170, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29803171, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29803172, 'pht': 3726}}"}, {'dashboat_entry_day': 2809232, 'dashboard_run_id': 2820458, 'mtr_portfolio_id': 29803763, 'dashboard_result_id': 18844881, '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_P29803763_30-12-2025_13_07_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29803794, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29803795, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29803796, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29803797, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29803798, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29803799, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29803800, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29803801, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29803802, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29803803, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29803804, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29803805, 'pht': 3726}}"}, {'dashboat_entry_day': 2809232, 'dashboard_run_id': 2820458, 'mtr_portfolio_id': 29804529, 'dashboard_result_id': 18844882, '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_P29804529_30-12-2025_13_18_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29804536, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29804537, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29804538, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29804539, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29804540, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29804541, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29804542, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29804543, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29804544, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29804545, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29804546, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29804547, 'pht': 3726}}"}, {'dashboat_entry_day': 2809232, 'dashboard_run_id': 2820458, 'mtr_portfolio_id': 29804985, 'dashboard_result_id': 18844883, '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_P29804985_30-12-2025_13_39_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29805001, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29805002, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29805003, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29805004, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29805005, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29805006, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29805007, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29805008, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29805009, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29805010, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29805011, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29805012, 'pht': 3726}}"}, {'dashboat_entry_day': 2809232, 'dashboard_run_id': 2820458, 'mtr_portfolio_id': 29805655, 'dashboard_result_id': 18844884, '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_P29805655_30-12-2025_13_46_29.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29805666, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29805667, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29805668, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29805669, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29805670, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29805671, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29805672, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29805673, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29805674, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29805675, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29805676, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29805677, 'pht': 3726}}"}, {'dashboat_entry_day': 2809232, 'dashboard_run_id': 2820458, 'mtr_portfolio_id': 29806068, 'dashboard_result_id': 18844885, '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_P29806068_30-12-2025_14_02_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29806101, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29806102, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29806103, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29806104, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29806105, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29806106, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29806107, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29806108, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29806109, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29806110, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29806111, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29806112, 'pht': 3726}}"}, {'dashboat_entry_day': 2809232, 'dashboard_run_id': 2820458, 'mtr_portfolio_id': 29806405, 'dashboard_result_id': 18844886, '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_P29806405_30-12-2025_14_19_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29806430, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29806431, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29806432, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29806433, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29806434, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29806435, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29806436, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29806437, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29806438, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29806439, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29806440, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29806441, 'pht': 3726}}"}, {'dashboat_entry_day': 2809232, 'dashboard_run_id': 2820458, 'mtr_portfolio_id': 29807136, 'dashboard_result_id': 18844887, '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_P29807136_30-12-2025_14_36_57.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29807150, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29807151, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29807152, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29807153, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29807154, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29807155, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29807156, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29807157, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29807158, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29807159, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29807160, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29807161, 'pht': 3726}}"}, {'dashboat_entry_day': 2809232, 'dashboard_run_id': 2820458, 'mtr_portfolio_id': 29807749, 'dashboard_result_id': 18844888, '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_P29807749_30-12-2025_14_46_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29807753, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29807754, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29807755, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29807756, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29807757, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29807758, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29807759, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29807760, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29807761, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29807762, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29807763, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29807764, 'pht': 3726}}"}, {'dashboat_entry_day': 2809232, 'dashboard_run_id': 2820458, 'mtr_portfolio_id': 29807975, 'dashboard_result_id': 18844889, '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_P29807975_30-12-2025_15_03_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29807991, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29807992, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29807993, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29807994, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29807995, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29807996, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29807997, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29807998, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29807999, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29808000, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29808001, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29808002, 'pht': 3726}}"}, {'dashboat_entry_day': 2809232, 'dashboard_run_id': 2820458, 'mtr_portfolio_id': 29808572, 'dashboard_result_id': 18844890, '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_P29808572_30-12-2025_15_17_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29808589, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29808590, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29808591, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29808592, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29808593, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29808594, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29808596, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29808597, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29808598, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29808599, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29808600, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29808601, 'pht': 3726}}"}, {'dashboat_entry_day': 2809232, 'dashboard_run_id': 2820458, 'mtr_portfolio_id': 29809267, 'dashboard_result_id': 18844891, '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_P29809267_30-12-2025_15_34_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29809283, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29809284, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29809285, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29809286, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29809287, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29809288, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29809289, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29809290, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29809291, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29809292, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29809293, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29809294, 'pht': 3726}}"}, {'dashboat_entry_day': 2809232, 'dashboard_run_id': 2820458, 'mtr_portfolio_id': 29809890, 'dashboard_result_id': 18844892, '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_P29809890_30-12-2025_15_49_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29809898, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29809899, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29809900, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29809901, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29809902, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29809903, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29809904, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29809905, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29809906, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29809907, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29809908, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29809909, 'pht': 3726}}"}, {'dashboat_entry_day': 2809232, 'dashboard_run_id': 2820458, 'mtr_portfolio_id': 29810418, 'dashboard_result_id': 18844893, '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_P29810418_30-12-2025_16_02_57.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29810452, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29810453, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29810454, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29810455, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29810456, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29810457, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29810458, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29810459, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29810460, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29810461, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29810462, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29810463, 'pht': 3726}}"}, {'dashboat_entry_day': 2809232, 'dashboard_run_id': 2820458, 'mtr_portfolio_id': 29810954, 'dashboard_result_id': 18844895, '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_P29810954_30-12-2025_16_19_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29810967, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29810968, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29810969, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29810970, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29810971, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29810972, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29810973, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29810974, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29810975, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29810976, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29810977, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29810978, 'pht': 3726}}"}, {'dashboat_entry_day': 2809232, 'dashboard_run_id': 2820458, 'mtr_portfolio_id': 29811670, 'dashboard_result_id': 18844896, '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_P29811670_30-12-2025_16_32_57.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29811677, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29811678, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29811679, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29811680, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29811681, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29811682, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29811683, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29811684, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29811685, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29811686, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29811687, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29811688, 'pht': 3726}}"}, {'dashboat_entry_day': 2809232, 'dashboard_run_id': 2820458, 'mtr_portfolio_id': 29812294, 'dashboard_result_id': 18844897, '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_P29812294_30-12-2025_16_57_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29812312, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29812313, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29812314, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29812315, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29812316, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29812317, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29812318, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29812319, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29812320, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29812321, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29812322, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29812323, 'pht': 3726}}"}, {'dashboat_entry_day': 2809232, 'dashboard_run_id': 2820458, 'mtr_portfolio_id': 29813176, 'dashboard_result_id': 18844898, '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_P29813176_30-12-2025_17_05_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29813180, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29813181, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29813182, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29813183, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29813184, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29813185, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29813186, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29813187, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29813188, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29813189, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29813190, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29813191, 'pht': 3726}}"}, {'dashboat_entry_day': 2809232, 'dashboard_run_id': 2820458, 'mtr_portfolio_id': 29813444, 'dashboard_result_id': 18844899, '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_P29813444_30-12-2025_17_11_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29813462, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29813463, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29813464, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29813465, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29813466, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29813467, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29813468, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29813469, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29813470, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29813471, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29813472, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29813473, '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 = 29790877 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': 4286652, 'mtr_portfolio_id': 29790877, 'created_at': datetime.datetime(2025, 12, 30, 5, 54, 26), 'result': '0.0348694091114477', 'result_long': None, 'result_double': None}] Qualite : 0.0348694091114477 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29790877 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29790877_30-12-2025_05_54_27.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29790877 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_P29790877_30-12-2025_05_54_27.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29790879, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29790880, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29790881, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29790882, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29790883, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29790884, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29790885, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29790886, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29790887, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29790888, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29790889, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29790890, 'pht': 3726}}" where mtr_portfolio_id = 29790877 and dashboard_run_id = 2820458 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`=29790877 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18844865, 0.0348694091114477, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29790877_30-12-2025_05_54_27.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29790879, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29790880, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29790881, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29790882, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29790883, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29790884, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29790885, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29790886, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29790887, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29790888, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29790889, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29790890, '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 = 29790983 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': 4286653, 'mtr_portfolio_id': 29790983, 'created_at': datetime.datetime(2025, 12, 30, 5, 54, 57), 'result': '0.0463877614951028', 'result_long': None, 'result_double': None}] Qualite : 0.0463877614951028 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29790983 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29790983_30-12-2025_05_55_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29790983 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_P29790983_30-12-2025_05_55_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29791023, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29791024, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29791025, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29791026, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29791027, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29791028, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29791029, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29791030, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29791031, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29791032, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29791033, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29791034, 'pht': 3726}}" where mtr_portfolio_id = 29790983 and dashboard_run_id = 2820458 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`=29790983 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18844866, 0.0463877614951028, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29790983_30-12-2025_05_55_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29791023, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29791024, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29791025, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29791026, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29791027, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29791028, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29791029, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29791030, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29791031, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29791032, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29791033, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29791034, '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 = 29791397 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': 4286654, 'mtr_portfolio_id': 29791397, 'created_at': datetime.datetime(2025, 12, 30, 5, 55, 30), 'result': '0.0505279555715365', 'result_long': None, 'result_double': None}] Qualite : 0.0505279555715365 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29791397 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29791397_30-12-2025_05_55_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29791397 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_P29791397_30-12-2025_05_55_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29791400, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29791401, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29791402, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29791403, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29791404, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29791405, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29791406, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29791407, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29791408, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29791409, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29791410, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29791411, 'pht': 3726}}" where mtr_portfolio_id = 29791397 and dashboard_run_id = 2820458 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`=29791397 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18844867, 0.0505279555715365, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29791397_30-12-2025_05_55_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29791400, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29791401, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29791402, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29791403, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29791404, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29791405, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29791406, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29791407, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29791408, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29791409, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29791410, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29791411, '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 = 29791790 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': 4286655, 'mtr_portfolio_id': 29791790, 'created_at': datetime.datetime(2025, 12, 30, 5, 55, 40), 'result': '0.06145194760347519', 'result_long': None, 'result_double': None}] Qualite : 0.06145194760347519 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29791790 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29791790_30-12-2025_05_55_43.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29791790 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_P29791790_30-12-2025_05_55_43.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29791798, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29791799, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29791800, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29791801, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29791802, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29791803, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29791804, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29791805, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29791806, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29791807, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29791808, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29791809, 'pht': 3726}}" where mtr_portfolio_id = 29791790 and dashboard_run_id = 2820458 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`=29791790 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18844868, 0.06145194760347519, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29791790_30-12-2025_05_55_43.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29791798, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29791799, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29791800, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29791801, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29791802, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29791803, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29791804, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29791805, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29791806, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29791807, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29791808, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29791809, '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 = 29792732 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': 4286656, 'mtr_portfolio_id': 29792732, 'created_at': datetime.datetime(2025, 12, 30, 5, 56), 'result': '0.04424892577297573', 'result_long': None, 'result_double': None}] Qualite : 0.04424892577297573 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29792732 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29792732_30-12-2025_05_56_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29792732 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_P29792732_30-12-2025_05_56_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29792734, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29792735, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29792736, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29792737, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29792738, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29792739, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29792740, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29792741, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29792742, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29792743, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29792744, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29792745, 'pht': 3726}}" where mtr_portfolio_id = 29792732 and dashboard_run_id = 2820458 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`=29792732 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18844869, 0.04424892577297573, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29792732_30-12-2025_05_56_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29792734, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29792735, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29792736, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29792737, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29792738, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29792739, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29792740, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29792741, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29792742, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29792743, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29792744, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29792745, '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 = 29795877 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': 4287149, 'mtr_portfolio_id': 29795877, 'created_at': datetime.datetime(2025, 12, 30, 9, 50, 58), 'result': '0.039355367116025095', 'result_long': None, 'result_double': None}] Qualite : 0.039355367116025095 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29795877 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29795877_30-12-2025_09_50_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29795877 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_P29795877_30-12-2025_09_50_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29795878, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29795879, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29795880, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29795881, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29795882, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29795883, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29795884, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29795885, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29795886, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29795887, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29795888, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29795889, 'pht': 3726}}" where mtr_portfolio_id = 29795877 and dashboard_run_id = 2820458 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`=29795877 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18844870, 0.039355367116025095, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29795877_30-12-2025_09_50_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29795878, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29795879, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29795880, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29795881, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29795882, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29795883, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29795884, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29795885, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29795886, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29795887, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29795888, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29795889, '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 = 29797237 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': 4287322, 'mtr_portfolio_id': 29797237, 'created_at': datetime.datetime(2025, 12, 30, 10, 38, 59), 'result': '0.033921253396910656', 'result_long': None, 'result_double': None}] Qualite : 0.033921253396910656 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29797237 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29797237_30-12-2025_10_39_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29797237 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_P29797237_30-12-2025_10_39_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29797240, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29797241, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29797242, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29797243, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29797244, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29797245, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29797246, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29797247, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29797248, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29797249, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29797250, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29797251, 'pht': 3726}}" where mtr_portfolio_id = 29797237 and dashboard_run_id = 2820458 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`=29797237 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18844871, 0.033921253396910656, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29797237_30-12-2025_10_39_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29797240, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29797241, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29797242, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29797243, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29797244, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29797245, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29797246, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29797247, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29797248, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29797249, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29797250, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29797251, '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 = 29797610 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': 4287387, 'mtr_portfolio_id': 29797610, 'created_at': datetime.datetime(2025, 12, 30, 10, 46, 59), 'result': '0.02814284116711131', 'result_long': None, 'result_double': None}] Qualite : 0.02814284116711131 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29797610 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29797610_30-12-2025_10_47_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29797610 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_P29797610_30-12-2025_10_47_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29797618, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29797619, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29797620, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29797621, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29797622, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29797623, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29797624, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29797625, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29797626, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29797627, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29797628, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29797629, 'pht': 3726}}" where mtr_portfolio_id = 29797610 and dashboard_run_id = 2820458 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`=29797610 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18844872, 0.02814284116711131, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29797610_30-12-2025_10_47_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29797618, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29797619, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29797620, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29797621, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29797622, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29797623, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29797624, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29797625, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29797626, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29797627, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29797628, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29797629, '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 = 29798325 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': 4287497, 'mtr_portfolio_id': 29798325, 'created_at': datetime.datetime(2025, 12, 30, 11, 3), 'result': '0.04468246908718581', 'result_long': None, 'result_double': None}] Qualite : 0.04468246908718581 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29798325 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29798325_30-12-2025_11_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29798325 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_P29798325_30-12-2025_11_03_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29798335, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29798336, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29798337, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29798338, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29798339, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29798340, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29798341, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29798342, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29798343, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29798344, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29798345, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29798346, 'pht': 3726}}" where mtr_portfolio_id = 29798325 and dashboard_run_id = 2820458 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`=29798325 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18844873, 0.04468246908718581, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29798325_30-12-2025_11_03_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29798335, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29798336, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29798337, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29798338, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29798339, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29798340, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29798341, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29798342, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29798343, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29798344, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29798345, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29798346, '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 = 29799025 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': 4287585, 'mtr_portfolio_id': 29799025, 'created_at': datetime.datetime(2025, 12, 30, 11, 16, 59), 'result': '0.08667658362391771', 'result_long': None, 'result_double': None}] Qualite : 0.08667658362391771 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29799025 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29799025_30-12-2025_11_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29799025 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_P29799025_30-12-2025_11_17_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29799061, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29799062, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29799063, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29799064, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29799065, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29799066, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29799067, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29799068, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29799069, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29799070, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29799071, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29799072, 'pht': 3726}}" where mtr_portfolio_id = 29799025 and dashboard_run_id = 2820458 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`=29799025 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18844874, 0.08667658362391771, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29799025_30-12-2025_11_17_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29799061, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29799062, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29799063, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29799064, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29799065, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29799066, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29799067, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29799068, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29799069, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29799070, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29799071, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29799072, '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 = 29799682 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': 4287640, 'mtr_portfolio_id': 29799682, 'created_at': datetime.datetime(2025, 12, 30, 11, 34, 59), 'result': '0.06698004484459952', 'result_long': None, 'result_double': None}] Qualite : 0.06698004484459952 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29799682 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29799682_30-12-2025_11_35_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29799682 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_P29799682_30-12-2025_11_35_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29799731, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29799732, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29799733, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29799734, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29799735, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29799736, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29799737, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29799738, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29799739, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29799740, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29799741, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29799742, 'pht': 3726}}" where mtr_portfolio_id = 29799682 and dashboard_run_id = 2820458 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`=29799682 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18844875, 0.06698004484459952, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29799682_30-12-2025_11_35_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29799731, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29799732, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29799733, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29799734, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29799735, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29799736, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29799737, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29799738, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29799739, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29799740, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29799741, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29799742, '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 = 29800360 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': 4287740, 'mtr_portfolio_id': 29800360, 'created_at': datetime.datetime(2025, 12, 30, 11, 46, 59), 'result': '0.09044129800279434', 'result_long': None, 'result_double': None}] Qualite : 0.09044129800279434 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29800360 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29800360_30-12-2025_11_47_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29800360 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_P29800360_30-12-2025_11_47_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29800377, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29800378, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29800379, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29800380, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29800381, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29800382, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29800383, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29800384, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29800385, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29800386, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29800387, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29800388, 'pht': 3726}}" where mtr_portfolio_id = 29800360 and dashboard_run_id = 2820458 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`=29800360 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18844876, 0.09044129800279434, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29800360_30-12-2025_11_47_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29800377, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29800378, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29800379, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29800380, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29800381, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29800382, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29800383, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29800384, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29800385, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29800386, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29800387, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29800388, '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 = 29800908 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': 4287857, 'mtr_portfolio_id': 29800908, 'created_at': datetime.datetime(2025, 12, 30, 12, 5, 30), 'result': '0.04178504958311081', 'result_long': None, 'result_double': None}] Qualite : 0.04178504958311081 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29800908 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29800908_30-12-2025_12_05_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29800908 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_P29800908_30-12-2025_12_05_30.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29800915, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29800916, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29800917, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29800918, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29800919, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29800920, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29800922, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29800923, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29800924, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29800925, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29800926, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29800927, 'pht': 3726}}" where mtr_portfolio_id = 29800908 and dashboard_run_id = 2820458 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`=29800908 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18844877, 0.04178504958311081, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29800908_30-12-2025_12_05_30.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29800915, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29800916, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29800917, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29800918, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29800919, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29800920, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29800922, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29800923, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29800924, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29800925, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29800926, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29800927, '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 = 29801565 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': 4287995, 'mtr_portfolio_id': 29801565, 'created_at': datetime.datetime(2025, 12, 30, 12, 16, 30), 'result': '0.061738346351304985', 'result_long': None, 'result_double': None}] Qualite : 0.061738346351304985 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29801565 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29801565_30-12-2025_12_16_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29801565 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_P29801565_30-12-2025_12_16_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29801569, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29801570, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29801571, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29801572, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29801573, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29801574, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29801575, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29801576, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29801577, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29801578, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29801579, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29801580, 'pht': 3726}}" where mtr_portfolio_id = 29801565 and dashboard_run_id = 2820458 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`=29801565 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18844878, 0.061738346351304985, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29801565_30-12-2025_12_16_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29801569, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29801570, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29801571, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29801572, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29801573, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29801574, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29801575, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29801576, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29801577, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29801578, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29801579, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29801580, '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 = 29802386 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': 4288100, 'mtr_portfolio_id': 29802386, 'created_at': datetime.datetime(2025, 12, 30, 12, 32, 58), 'result': '0.10020094194934427', 'result_long': None, 'result_double': None}] Qualite : 0.10020094194934427 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29802386 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29802386_30-12-2025_12_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29802386 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_P29802386_30-12-2025_12_32_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29802393, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29802394, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29802395, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29802396, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29802397, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29802398, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29802399, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29802400, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29802401, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29802402, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29802403, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29802404, 'pht': 3726}}" where mtr_portfolio_id = 29802386 and dashboard_run_id = 2820458 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`=29802386 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18844879, 0.10020094194934427, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29802386_30-12-2025_12_32_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29802393, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29802394, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29802395, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29802396, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29802397, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29802398, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29802399, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29802400, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29802401, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29802402, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29802403, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29802404, '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 = 29803120 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': 4288207, 'mtr_portfolio_id': 29803120, 'created_at': datetime.datetime(2025, 12, 30, 12, 46, 57), 'result': '0.06914954905671847', 'result_long': None, 'result_double': None}] Qualite : 0.06914954905671847 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29803120 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29803120_30-12-2025_12_46_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29803120 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_P29803120_30-12-2025_12_46_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29803161, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29803162, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29803163, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29803164, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29803165, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29803166, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29803167, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29803168, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29803169, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29803170, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29803171, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29803172, 'pht': 3726}}" where mtr_portfolio_id = 29803120 and dashboard_run_id = 2820458 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`=29803120 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18844880, 0.06914954905671847, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29803120_30-12-2025_12_46_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29803161, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29803162, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29803163, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29803164, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29803165, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29803166, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29803167, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29803168, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29803169, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29803170, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29803171, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29803172, '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 = 29803763 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': 4288276, 'mtr_portfolio_id': 29803763, 'created_at': datetime.datetime(2025, 12, 30, 13, 7), 'result': '0.060443862108655634', 'result_long': None, 'result_double': None}] Qualite : 0.060443862108655634 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29803763 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29803763_30-12-2025_13_07_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29803763 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_P29803763_30-12-2025_13_07_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29803794, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29803795, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29803796, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29803797, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29803798, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29803799, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29803800, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29803801, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29803802, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29803803, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29803804, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29803805, 'pht': 3726}}" where mtr_portfolio_id = 29803763 and dashboard_run_id = 2820458 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`=29803763 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18844881, 0.060443862108655634, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29803763_30-12-2025_13_07_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29803794, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29803795, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29803796, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29803797, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29803798, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29803799, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29803800, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29803801, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29803802, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29803803, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29803804, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29803805, '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 = 29804529 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': 4288429, 'mtr_portfolio_id': 29804529, 'created_at': datetime.datetime(2025, 12, 30, 13, 18, 59), 'result': '0.0690374605124261', 'result_long': None, 'result_double': None}] Qualite : 0.0690374605124261 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29804529 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29804529_30-12-2025_13_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29804529 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_P29804529_30-12-2025_13_18_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29804536, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29804537, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29804538, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29804539, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29804540, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29804541, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29804542, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29804543, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29804544, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29804545, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29804546, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29804547, 'pht': 3726}}" where mtr_portfolio_id = 29804529 and dashboard_run_id = 2820458 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`=29804529 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18844882, 0.0690374605124261, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29804529_30-12-2025_13_18_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29804536, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29804537, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29804538, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29804539, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29804540, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29804541, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29804542, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29804543, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29804544, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29804545, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29804546, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29804547, '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 = 29804985 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': 4288482, 'mtr_portfolio_id': 29804985, 'created_at': datetime.datetime(2025, 12, 30, 13, 38, 59), 'result': '0.07868173997295111', 'result_long': None, 'result_double': None}] Qualite : 0.07868173997295111 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29804985 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29804985_30-12-2025_13_39_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29804985 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_P29804985_30-12-2025_13_39_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29805001, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29805002, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29805003, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29805004, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29805005, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29805006, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29805007, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29805008, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29805009, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29805010, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29805011, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29805012, 'pht': 3726}}" where mtr_portfolio_id = 29804985 and dashboard_run_id = 2820458 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`=29804985 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18844883, 0.07868173997295111, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29804985_30-12-2025_13_39_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29805001, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29805002, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29805003, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29805004, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29805005, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29805006, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29805007, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29805008, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29805009, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29805010, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29805011, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29805012, '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 = 29805655 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': 4288574, 'mtr_portfolio_id': 29805655, 'created_at': datetime.datetime(2025, 12, 30, 13, 46, 29), 'result': '0.07467653211303711', 'result_long': None, 'result_double': None}] Qualite : 0.07467653211303711 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29805655 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29805655_30-12-2025_13_46_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29805655 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_P29805655_30-12-2025_13_46_29.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29805666, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29805667, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29805668, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29805669, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29805670, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29805671, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29805672, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29805673, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29805674, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29805675, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29805676, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29805677, 'pht': 3726}}" where mtr_portfolio_id = 29805655 and dashboard_run_id = 2820458 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`=29805655 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18844884, 0.07467653211303711, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29805655_30-12-2025_13_46_29.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29805666, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29805667, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29805668, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29805669, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29805670, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29805671, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29805672, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29805673, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29805674, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29805675, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29805676, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29805677, '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 = 29806068 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': 4288620, 'mtr_portfolio_id': 29806068, 'created_at': datetime.datetime(2025, 12, 30, 14, 2, 58), 'result': '0.041353131115149946', 'result_long': None, 'result_double': None}] Qualite : 0.041353131115149946 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29806068 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29806068_30-12-2025_14_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29806068 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_P29806068_30-12-2025_14_02_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29806101, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29806102, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29806103, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29806104, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29806105, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29806106, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29806107, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29806108, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29806109, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29806110, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29806111, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29806112, 'pht': 3726}}" where mtr_portfolio_id = 29806068 and dashboard_run_id = 2820458 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`=29806068 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18844885, 0.041353131115149946, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29806068_30-12-2025_14_02_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29806101, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29806102, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29806103, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29806104, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29806105, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29806106, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29806107, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29806108, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29806109, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29806110, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29806111, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29806112, '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 = 29806405 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': 4288693, 'mtr_portfolio_id': 29806405, 'created_at': datetime.datetime(2025, 12, 30, 14, 19, 1), 'result': '0.05856573578394818', 'result_long': None, 'result_double': None}] Qualite : 0.05856573578394818 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29806405 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29806405_30-12-2025_14_19_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29806405 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_P29806405_30-12-2025_14_19_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29806430, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29806431, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29806432, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29806433, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29806434, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29806435, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29806436, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29806437, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29806438, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29806439, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29806440, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29806441, 'pht': 3726}}" where mtr_portfolio_id = 29806405 and dashboard_run_id = 2820458 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`=29806405 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18844886, 0.05856573578394818, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29806405_30-12-2025_14_19_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29806430, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29806431, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29806432, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29806433, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29806434, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29806435, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29806436, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29806437, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29806438, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29806439, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29806440, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29806441, '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 = 29807136 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': 4288763, 'mtr_portfolio_id': 29807136, 'created_at': datetime.datetime(2025, 12, 30, 14, 36, 57), 'result': '0.0666570528973185', 'result_long': None, 'result_double': None}] Qualite : 0.0666570528973185 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29807136 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29807136_30-12-2025_14_36_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29807136 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_P29807136_30-12-2025_14_36_57.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29807150, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29807151, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29807152, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29807153, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29807154, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29807155, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29807156, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29807157, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29807158, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29807159, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29807160, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29807161, 'pht': 3726}}" where mtr_portfolio_id = 29807136 and dashboard_run_id = 2820458 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`=29807136 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18844887, 0.0666570528973185, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29807136_30-12-2025_14_36_57.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29807150, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29807151, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29807152, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29807153, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29807154, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29807155, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29807156, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29807157, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29807158, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29807159, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29807160, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29807161, '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 = 29807749 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': 4288856, 'mtr_portfolio_id': 29807749, 'created_at': datetime.datetime(2025, 12, 30, 14, 46, 58), 'result': '0.0822214256802385', 'result_long': None, 'result_double': None}] Qualite : 0.0822214256802385 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29807749 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29807749_30-12-2025_14_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29807749 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_P29807749_30-12-2025_14_46_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29807753, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29807754, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29807755, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29807756, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29807757, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29807758, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29807759, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29807760, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29807761, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29807762, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29807763, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29807764, 'pht': 3726}}" where mtr_portfolio_id = 29807749 and dashboard_run_id = 2820458 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`=29807749 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18844888, 0.0822214256802385, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29807749_30-12-2025_14_46_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29807753, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29807754, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29807755, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29807756, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29807757, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29807758, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29807759, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29807760, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29807761, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29807762, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29807763, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29807764, '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 = 29807975 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': 4288885, 'mtr_portfolio_id': 29807975, 'created_at': datetime.datetime(2025, 12, 30, 15, 2, 59), 'result': '0.05405081722722423', 'result_long': None, 'result_double': None}] Qualite : 0.05405081722722423 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29807975 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29807975_30-12-2025_15_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29807975 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_P29807975_30-12-2025_15_03_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29807991, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29807992, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29807993, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29807994, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29807995, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29807996, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29807997, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29807998, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29807999, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29808000, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29808001, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29808002, 'pht': 3726}}" where mtr_portfolio_id = 29807975 and dashboard_run_id = 2820458 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`=29807975 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18844889, 0.05405081722722423, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29807975_30-12-2025_15_03_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29807991, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29807992, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29807993, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29807994, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29807995, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29807996, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29807997, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29807998, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29807999, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29808000, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29808001, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29808002, '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 = 29808572 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': 4288972, 'mtr_portfolio_id': 29808572, 'created_at': datetime.datetime(2025, 12, 30, 15, 16, 59), 'result': '0.050320479973079126', 'result_long': None, 'result_double': None}] Qualite : 0.050320479973079126 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29808572 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29808572_30-12-2025_15_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29808572 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_P29808572_30-12-2025_15_17_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29808589, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29808590, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29808591, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29808592, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29808593, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29808594, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29808596, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29808597, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29808598, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29808599, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29808600, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29808601, 'pht': 3726}}" where mtr_portfolio_id = 29808572 and dashboard_run_id = 2820458 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`=29808572 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18844890, 0.050320479973079126, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29808572_30-12-2025_15_17_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29808589, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29808590, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29808591, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29808592, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29808593, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29808594, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29808596, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29808597, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29808598, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29808599, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29808600, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29808601, '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 = 29809267 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': 4289079, 'mtr_portfolio_id': 29809267, 'created_at': datetime.datetime(2025, 12, 30, 15, 33, 59), 'result': '0.057795355547802296', 'result_long': None, 'result_double': None}] Qualite : 0.057795355547802296 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29809267 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29809267_30-12-2025_15_34_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29809267 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_P29809267_30-12-2025_15_34_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29809283, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29809284, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29809285, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29809286, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29809287, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29809288, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29809289, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29809290, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29809291, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29809292, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29809293, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29809294, 'pht': 3726}}" where mtr_portfolio_id = 29809267 and dashboard_run_id = 2820458 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`=29809267 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18844891, 0.057795355547802296, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29809267_30-12-2025_15_34_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29809283, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29809284, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29809285, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29809286, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29809287, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29809288, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29809289, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29809290, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29809291, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29809292, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29809293, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29809294, '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 = 29809890 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': 4289165, 'mtr_portfolio_id': 29809890, 'created_at': datetime.datetime(2025, 12, 30, 15, 49), 'result': '0.048586920997346045', 'result_long': None, 'result_double': None}] Qualite : 0.048586920997346045 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29809890 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29809890_30-12-2025_15_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29809890 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_P29809890_30-12-2025_15_49_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29809898, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29809899, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29809900, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29809901, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29809902, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29809903, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29809904, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29809905, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29809906, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29809907, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29809908, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29809909, 'pht': 3726}}" where mtr_portfolio_id = 29809890 and dashboard_run_id = 2820458 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`=29809890 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18844892, 0.048586920997346045, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29809890_30-12-2025_15_49_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29809898, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29809899, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29809900, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29809901, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29809902, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29809903, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29809904, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29809905, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29809906, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29809907, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29809908, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29809909, '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 = 29810418 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': 4289248, 'mtr_portfolio_id': 29810418, 'created_at': datetime.datetime(2025, 12, 30, 16, 2, 57), 'result': '0.03607667162220529', 'result_long': None, 'result_double': None}] Qualite : 0.03607667162220529 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29810418 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29810418_30-12-2025_16_02_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29810418 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_P29810418_30-12-2025_16_02_57.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29810452, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29810453, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29810454, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29810455, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29810456, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29810457, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29810458, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29810459, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29810460, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29810461, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29810462, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29810463, 'pht': 3726}}" where mtr_portfolio_id = 29810418 and dashboard_run_id = 2820458 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`=29810418 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18844893, 0.03607667162220529, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29810418_30-12-2025_16_02_57.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29810452, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29810453, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29810454, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29810455, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29810456, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29810457, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29810458, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29810459, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29810460, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29810461, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29810462, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29810463, '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 = 29810954 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': 4289335, 'mtr_portfolio_id': 29810954, 'created_at': datetime.datetime(2025, 12, 30, 16, 19, 31), 'result': '0.047599694348580475', 'result_long': None, 'result_double': None}] Qualite : 0.047599694348580475 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29810954 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29810954_30-12-2025_16_19_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29810954 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_P29810954_30-12-2025_16_19_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29810967, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29810968, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29810969, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29810970, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29810971, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29810972, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29810973, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29810974, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29810975, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29810976, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29810977, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29810978, 'pht': 3726}}" where mtr_portfolio_id = 29810954 and dashboard_run_id = 2820458 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`=29810954 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18844895, 0.047599694348580475, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29810954_30-12-2025_16_19_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29810967, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29810968, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29810969, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29810970, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29810971, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29810972, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29810973, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29810974, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29810975, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29810976, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29810977, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29810978, '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 = 29811670 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': 4289408, 'mtr_portfolio_id': 29811670, 'created_at': datetime.datetime(2025, 12, 30, 16, 32, 57), 'result': '0.06764653363058412', 'result_long': None, 'result_double': None}] Qualite : 0.06764653363058412 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29811670 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29811670_30-12-2025_16_32_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29811670 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_P29811670_30-12-2025_16_32_57.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29811677, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29811678, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29811679, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29811680, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29811681, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29811682, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29811683, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29811684, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29811685, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29811686, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29811687, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29811688, 'pht': 3726}}" where mtr_portfolio_id = 29811670 and dashboard_run_id = 2820458 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`=29811670 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18844896, 0.06764653363058412, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29811670_30-12-2025_16_32_57.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29811677, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29811678, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29811679, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29811680, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29811681, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29811682, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29811683, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29811684, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29811685, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29811686, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29811687, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29811688, '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 = 29812294 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': 4289500, 'mtr_portfolio_id': 29812294, 'created_at': datetime.datetime(2025, 12, 30, 16, 56, 59), 'result': '0.04012791333373889', 'result_long': None, 'result_double': None}] Qualite : 0.04012791333373889 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29812294 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29812294_30-12-2025_16_57_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29812294 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_P29812294_30-12-2025_16_57_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29812312, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29812313, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29812314, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29812315, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29812316, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29812317, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29812318, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29812319, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29812320, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29812321, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29812322, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29812323, 'pht': 3726}}" where mtr_portfolio_id = 29812294 and dashboard_run_id = 2820456 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`=29812294 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18844897, 0.04012791333373889, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29812294_30-12-2025_16_57_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29812312, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29812313, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29812314, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29812315, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29812316, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29812317, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29812318, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29812319, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29812320, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29812321, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29812322, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29812323, '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 = 29813176 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': 4289624, 'mtr_portfolio_id': 29813176, 'created_at': datetime.datetime(2025, 12, 30, 17, 5, 1), 'result': '0.036882932692840806', 'result_long': None, 'result_double': None}] Qualite : 0.036882932692840806 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29813176 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29813176_30-12-2025_17_05_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29813176 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_P29813176_30-12-2025_17_05_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29813180, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29813181, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29813182, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29813183, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29813184, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29813185, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29813186, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29813187, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29813188, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29813189, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29813190, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29813191, 'pht': 3726}}" where mtr_portfolio_id = 29813176 and dashboard_run_id = 2820456 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`=29813176 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18844898, 0.036882932692840806, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29813176_30-12-2025_17_05_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29813180, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29813181, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29813182, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29813183, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29813184, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29813185, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29813186, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29813187, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29813188, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29813189, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29813190, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29813191, '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 = 29813444 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': 4289654, 'mtr_portfolio_id': 29813444, 'created_at': datetime.datetime(2025, 12, 30, 17, 12, 58), 'result': '0.03228914884437059', 'result_long': None, 'result_double': None}] Qualite : 0.03228914884437059 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29813444 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29813444_30-12-2025_17_12_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29813444 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_P29813444_30-12-2025_17_12_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29813462, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29813463, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29813464, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29813465, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29813466, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29813467, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29813468, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29813469, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29813470, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29813471, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29813472, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29813473, 'pht': 3726}}" where mtr_portfolio_id = 29813444 and dashboard_run_id = 2820456 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`=29813444 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18844899, 0.03228914884437059, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29813444_30-12-2025_17_12_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29813462, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29813463, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29813464, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29813465, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29813466, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29813467, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29813468, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29813469, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29813470, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29813471, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29813472, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29813473, '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 (29790877,29790983,29791397,29791790,29792732,29795877,29797237,29797610,29798325,29799025,29799682,29800360,29800908,29801565,29802386,29803120,29803763,29804529,29804985,29805655,29806068,29806405,29807136,29807749,29807975,29808572,29809267,29809890,29810418,29810954,29811670,29812294,29813176,29813444) result : ((1401601673,), (1401601679,), (1401601753,), (1401601754,), (1401601755,), (1401601757,), (1401601778,), (1401601779,), (1401601780,), (1401601800,), (1401601804,), (1401601808,), (1401601837,), (1401601841,), (1401601845,), (1401601830,), (1401601831,), (1401601834,), (1401601851,), (1401601852,), (1401601854,), (1401601858,), (1401601887,), (1401601888,), (1401601889,), (1401601912,), (1401601914,), (1401601916,), (1401601918,), (1401601944,), (1401601946,), (1401601948,), (1401601950,), (1401601952,), (1401601954,), (1401601962,), (1401601965,), (1401601968,), (1401601970,), (1401601998,), (1401602028,), (1401602058,), (1401602416,), (1401602449,), (1401602477,), (1401602480,), (1401602484,), (1401602485,), (1401602637,), (1401602638,), (1401602639,), (1401602642,), (1401602647,), (1401602650,), (1401602666,), (1401602668,), (1401602670,), (1401602692,), (1401602693,), (1401602694,), (1401602695,), (1401602719,), (1401602720,), (1401602722,), (1401602727,), (1401602731,), (1401602735,), (1401602746,), (1401602748,), (1401602753,), (1401602756,), (1401602760,), (1401602767,), (1401602773,), (1401602775,), (1401602777,), (1401602781,), (1401602785,), (1401602786,), (1401602789,), (1401602792,), (1401602796,), (1401602800,), (1401602803,), (1401602805,), (1401602808,), (1401602809,), (1401602811,), (1401602815,), (1401602874,), (1401602868,), (1401602870,), (1401602872,), (1401602896,), (1401602899,), (1401602901,), (1401602904,), (1401602908,), (1401602920,), (1401602921,), (1401602954,), (1401602957,), (1401602991,), (1401602992,), (1401602993,), (1401602996,), (1401602999,), (1401603009,), (1401603011,), (1401603015,), (1401603020,), (1401603025,), (1401603029,), (1401603032,), (1401603038,), (1401603040,), (1401603059,), (1401603060,), (1401603061,), (1401603082,), (1401603083,), (1401603084,), (1401603087,), (1401603102,), (1401603104,), (1401603108,), (1401603114,), (1401603155,), (1401603157,), (1401603158,), (1401603160,), (1401603162,), (1401603165,), (1401603176,), (1401603192,), (1401603194,), (1401603196,), (1401603199,), (1401603203,), (1401603216,), (1401603219,), (1401603222,), (1401603225,), (1401603230,), (1401603254,), (1401603258,), (1401603311,), (1401603312,), (1401603329,), (1401603331,), (1401603334,), (1401603246,), (1401603247,), (1401603248,), (1401603251,), (1401603267,), (1401603269,), (1401603272,), (1401603276,), (1401603280,), (1401603285,), (1401603299,), (1401603302,), (1401603307,), (1401603309,), (1401603322,), (1401603324,), (1401603327,), (1401603340,), (1401603390,), (1401603392,), (1401603432,), (1401603434,), (1401603435,), (1401603437,), (1401603455,), (1401603457,), (1401603460,), (1401603463,), (1401603485,), (1401603493,), (1401603499,), (1401603503,), (1401603508,), (1401603519,), (1401603522,), (1401603524,), (1401603547,), (1401603549,), (1401603553,), (1401603557,), (1401603560,), (1401603563,), (1401603568,), (1401603573,), (1401603575,), (1401603579,), (1401603581,), (1401603585,), (1401603587,), (1401603598,), (1401603600,), (1401603601,), (1401603643,), (1401603646,), (1401603650,), (1401603656,), (1401603660,), (1401603663,), (1401603671,), (1401603697,), (1401606743,), (1401606683,), (1401606740,), (1401606756,), (1401606758,), (1401606760,), (1401606761,), (1401606763,), (1401606777,), (1401606779,), (1401606782,), (1401606784,), (1401606786,), (1401606788,), (1401606796,), (1401606798,), (1401606801,), (1401606803,), (1401606805,), (1401606808,), (1401606812,), (1401606831,), (1401606834,), (1401606837,), (1401606882,), (1401610665,), (1401639240,), (1401639300,), (1401639683,), (1401639691,), (1401639693,), (1401639696,), (1401639717,), (1401639801,), (1401639803,), (1401639890,), (1401639925,), (1401645937,), (1401649754,), (1401649756,), (1401649759,), (1401649760,), (1401649765,), (1401649782,), (1401649804,), (1401649805,), (1401649830,), (1401649831,), (1401649868,), (1401649870,), (1401649871,), (1401649872,), (1401649874,), (1401649893,), (1401649895,), (1401649896,), (1401649947,), (1401649948,), (1401649949,), (1401649971,), (1401649973,), (1401649975,), (1401649979,), (1401649982,), (1401649985,), (1401649994,), (1401649997,), (1401650004,), (1401650006,), (1401650008,), (1401650011,), (1401650014,), (1401650017,), (1401650062,), (1401650064,), (1401650065,), (1401650066,), (1401650093,), (1401650094,), (1401650095,), (1401650097,), (1401650116,), (1401650118,), (1401650179,), (1401650181,), (1401650182,), (1401650184,), (1401650205,), (1401650206,), (1401650207,), (1401650208,), (1401650211,), (1401650254,), (1401650257,), (1401650258,), (1401650302,), (1401650522,), (1401650299,), (1401650300,), (1401650332,), (1401650335,), (1401650338,), (1401650342,), (1401650345,), (1401650347,), (1401650363,), (1401650365,), (1401650369,), (1401650372,), (1401650380,), (1401650384,), (1401650413,), (1401650417,), (1401650421,), (1401650425,), (1401650430,), (1401650434,), (1401650443,), (1401650445,), (1401650447,), (1401650449,), (1401650451,), (1401650453,), (1401650467,), (1401650469,), (1401650474,), (1401650481,), (1401650484,), (1401650487,), (1401650493,), (1401650494,), (1401650495,), (1401650498,), (1401650501,), (1401650504,), (1401650526,), (1401650527,), (1401650529,), (1401650536,), (1401650546,), (1401650563,), (1401650565,), (1401650567,), (1401650577,), (1401650584,), (1401650587,), (1401650624,), (1401650626,), (1401650628,), (1401650630,), (1401650632,), (1401650897,), (1401650927,), (1401650958,), (1401650997,), (1401651286,), (1401651309,), (1401651318,), (1401651616,), (1401651651,), (1401651688,), (1401651726,), (1401651768,), (1401652104,), (1401652151,), (1401652191,), (1401652228,), (1401652265,), (1401652305,), (1401652397,), (1401652433,), (1401652571,), (1401652578,), (1401652597,), (1401652601,), (1401653110,), (1401653595,), (1401653555,), (1401653731,), (1401653732,), (1401653754,), (1401653762,), (1401654123,), (1401654184,), (1401654246,), (1401654278,), (1401654311,), (1401654470,), (1401654473,), (1401654478,), (1401654480,), (1401654520,), (1401654523,), (1401654533,), (1401654806,), (1401654834,), (1401654836,), (1401655017,), (1401655020,), (1401655028,), (1401655061,), (1401655063,), (1401655066,), (1401655068,), (1401655071,), (1401655074,), (1401655100,), (1401655137,), (1401655173,), (1401655204,), (1401655241,), (1401655276,), (1401655440,), (1401655473,), (1401655505,), (1401655536,), (1401655548,), (1401655585,), (1401655688,), (1401655726,), (1401655747,), (1401655750,), (1401656085,), (1401656086,), (1401656106,), (1401656122,), (1401656131,), (1401656245,), (1401656248,), (1401656251,), (1401656254,), (1401656257,), (1401656497,), (1401656532,), (1401656568,), (1401656603,), (1401656955,), (1401656842,), (1401656877,), (1401656909,), (1401656925,), (1401657487,), (1401657549,), (1401657667,), (1401657713,), (1401657767,), (1401657841,), (1401658014,), (1401658018,), (1401658032,), (1401658067,), (1401658100,), (1401658138,), (1401658471,), (1401658474,), (1401658507,), (1401658524,), (1401658529,), (1401658532,), (1401658538,), (1401658539,), (1401658541,), (1401658543,), (1401658545,), (1401658546,), (1401658557,), (1401658559,), (1401658562,), (1401658572,), (1401658580,), (1401658591,), (1401658606,), (1401658616,), (1401658880,), (1401658914,), (1401658946,), (1401658989,), (1401659029,), (1401659382,), (1401659406,), (1401659597,), (1401659631,), (1401659672,), (1401659712,), (1401659716,), (1401659720,), (1401659850,), (1401659853,), (1401659857,), (1401659861,), (1401659864,), (1401659902,), (1401659904,), (1401659907,), (1401659909,), (1401659913,), (1401660087,), (1401660088,), (1401660089,), (1401660149,), (1401660151,), (1401660152,), (1401660189,), (1401660226,), (1401660257,), (1401660267,), (1401660283,), (1401660296,), (1401660309,), (1401660325,), (1401660353,), (1401660384,), (1401660387,), (1401660430,), (1401660423,), (1401660425,), (1401660426,), (1401660480,), (1401660482,), (1401660519,), (1401660643,), (1401660761,), (1401660861,), (1401661666,), (1401661697,), (1401661730,), (1401661762,), (1401661799,), (1401661985,), (1401662038,), (1401662134,), (1401662223,), (1401662315,), (1401662584,), (1401662599,), (1401662628,), (1401662632,), (1401662644,), (1401662655,), (1401662673,), (1401662696,), (1401662733,), (1401662771,), (1401662807,), (1401663076,), (1401663088,), (1401663096,), (1401663100,), (1401663105,), (1401663180,), (1401663213,), (1401663246,), (1401663279,), (1401663290,), (1401663292,), (1401663297,), (1401663299,), (1401663302,), (1401663305,), (1401663308,), (1401663312,), (1401663314,), (1401663317,), (1401663319,), (1401663324,), (1401663350,), (1401663352,), (1401663354,), (1401663358,), (1401663426,), (1401663431,), (1401663434,), (1401663438,), (1401663443,), (1401663447,), (1401663460,), (1401663463,), (1401663465,), (1401663468,), (1401663472,), (1401663499,), (1401663501,), (1401663504,), (1401663508,), (1401663531,), (1401663534,), (1401663537,), (1401663579,), (1401663591,), (1401663594,), (1401663597,), (1401663628,), (1401663610,), (1401663614,), (1401663647,), (1401663650,), (1401663653,), (1401663658,), (1401663663,), (1401663667,), (1401663686,), (1401663715,), (1401663749,), (1401663764,), (1401663777,), (1401663785,), (1401663809,), (1401663813,), (1401663815,), (1401663816,), (1401663819,), (1401663821,), (1401663831,), (1401663833,), (1401663838,), (1401663840,), (1401663842,), (1401663845,), (1401663855,), (1401663856,), (1401663859,), (1401663860,), (1401663863,), (1401663864,), (1401663865,), (1401663866,), (1401663869,), (1401663878,), (1401663882,), (1401663886,), (1401664027,), (1401664033,), (1401664040,), (1401664043,), (1401664096,), (1401664099,), (1401664102,), (1401664106,), (1401664109,), (1401664111,), (1401664123,), (1401664142,), (1401664144,), (1401664145,), (1401664146,), (1401664331,), (1401664362,), (1401664392,), (1401664424,), (1401664456,), (1401664522,), (1401664554,), (1401664556,), (1401664558,), (1401664560,), (1401664592,), (1401664594,), (1401664597,), (1401664600,), (1401664604,), (1401664606,), (1401664617,), (1401664620,), (1401664633,), (1401664678,), (1401664677,), (1401664710,), (1401664713,), (1401664716,), (1401664718,), (1401664737,), (1401664738,), (1401664857,), (1401664927,), (1401664930,), (1401664932,), (1401664935,), (1401664939,), (1401664966,), (1401664967,), (1401664968,), (1401665001,), (1401665089,), (1401665289,), (1401665293,), (1401665298,), (1401665534,), (1401665536,), (1401665538,), (1401665541,), (1401665544,), (1401665549,), (1401665557,), (1401665566,), (1401665568,), (1401665569,), (1401665570,), (1401665573,), (1401665575,), (1401665599,), (1401665600,), (1401665603,), (1401665606,), (1401665609,), (1401665632,), (1401665636,), (1401665640,), (1401665644,), (1401665647,), (1401665663,), (1401665665,), (1401665692,), (1401665695,), (1401665698,), (1401665752,), (1401665758,), (1401665764,), (1401665769,), (1401665777,), (1401665778,), (1401665780,), (1401665781,), (1401665782,), (1401665783,), (1401665807,), (1401665802,), (1401665804,), (1401665840,), (1401666405,), (1401666475,), (1401666541,), (1401667232,), (1401667263,), (1401667294,), (1401667470,), (1401667533,), (1401667601,), (1401668029,), (1401668076,), (1401668110,), (1401668707,), (1401668742,), (1401668841,), (1401670023,), (1401670105,), (1401670559,), (1401670560,), (1401670563,), (1401670621,), (1401670683,), (1401670685,), (1401670713,), (1401670808,), (1401670818,), (1401671089,), (1401671091,), (1401671093,), (1401671097,), (1401671124,), (1401671126,), (1401671128,), (1401671130,), (1401671160,), (1401671477,), (1401671440,), (1401671839,), (1401671894,), (1401672166,), (1401672226,), (1401672276,), (1401672309,), (1401672432,), (1401672438,), (1401672471,), (1401672710,), (1401672722,), (1401672739,), (1401672762,), (1401673017,), (1401673031,), (1401673033,), (1401673063,), (1401673065,), (1401673067,), (1401673119,), (1401673129,), (1401673152,), (1401673160,), (1401673165,), (1401673193,), (1401673196,), (1401673225,), (1401673227,), (1401673264,), (1401673267,), (1401673394,), (1401673408,), (1401673409,), (1401673412,), (1401673536,), (1401673537,), (1401673539,), (1401673543,), (1401673564,), (1401673567,), (1401673570,), (1401673694,), (1401673711,), (1401673721,), (1401673798,), (1401673786,), (1401673791,), (1401673842,), (1401673850,), (1401673852,), (1401673872,), (1401673922,), (1401673924,), (1401673926,), (1401673929,), (1401673932,), (1401673937,), (1401673962,), (1401673981,), (1401673993,), (1401674123,), (1401674131,), (1401674134,), (1401674138,), (1401674144,), (1401674146,), (1401674158,), (1401674159,), (1401674165,), (1401674167,), (1401674170,), (1401674171,), (1401674174,), (1401674176,), (1401674178,), (1401674179,), (1401674185,), (1401674188,), (1401674215,), (1401674217,), (1401674257,), (1401674293,), (1401674295,), (1401674296,), (1401674297,), (1401674349,), (1401674358,), (1401674362,), (1401674446,), (1401674479,), (1401674492,), (1401674494,), (1401674526,), (1401674530,), (1401674593,), (1401674594,), (1401674595,), (1401674598,), (1401674600,), (1401674603,), (1401674638,), (1401674640,), (1401674642,), (1401674644,), (1401674668,), (1401674669,), (1401674671,), (1401674673,), (1401674677,), (1401674707,), (1401674698,), (1401674701,), (1401674704,), (1401674736,), (1401674738,), (1401674740,), (1401674742,), (1401674841,), (1401674850,), (1401674852,), (1401674875,), (1401674878,), (1401674881,), (1401674886,), (1401674920,), (1401674922,), (1401674924,), (1401674926,), (1401674955,), (1401674957,), (1401674961,), (1401674966,), (1401674970,), (1401674979,), (1401674988,), (1401674990,), (1401674994,), (1401675002,), (1401675005,), (1401675009,), (1401675012,), (1401675014,), (1401675181,), (1401675185,), (1401675187,), (1401675190,), (1401675193,), (1401675197,), (1401675205,), (1401675207,), (1401675210,), (1401675213,), (1401675218,), (1401675222,), (1401675226,), (1401675242,), (1401675245,), (1401675248,), (1401675345,), (1401678620,), (1401678559,), (1401678592,), (1401678971,), (1401678975,), (1401678979,), (1401678982,), (1401678987,), (1401678991,), (1401679011,), (1401679013,), (1401679015,), (1401679017,), (1401679045,), (1401679048,), (1401679050,), (1401679053,), (1401679057,), (1401679076,), (1401679079,), (1401679080,), (1401679081,), (1401679084,), (1401679105,), (1401679108,), (1401679111,), (1401679114,), (1401679117,), (1401679136,), (1401679138,), (1401679140,), (1401679142,), (1401679145,), (1401679149,), (1401679179,), (1401679180,), (1401679181,), (1401679184,), (1401679221,), (1401679224,), (1401679226,), (1401679230,), (1401679233,), (1401679235,), (1401679257,), (1401679259,), (1401679272,), (1401679300,), (1401679305,), (1401679306,), (1401679309,), (1401679312,), (1401679316,), (1401679336,), (1401679338,), (1401679341,), (1401679344,), (1401679392,), (1401679375,), (1401679377,), (1401679379,), (1401679383,), (1401679388,), (1401679407,), (1401679409,), (1401679411,), (1401679415,), (1401679477,), (1401679480,), (1401679482,), (1401679485,), (1401679489,), (1401679511,), (1401679513,), (1401679514,), (1401679518,), (1401679523,), (1401679527,), (1401679572,), (1401679575,), (1401679578,), (1401679582,), (1401679613,), (1401679614,), (1401679615,), (1401679617,), (1401679621,), (1401679623,), (1401679940,), (1401679977,), (1401680009,), (1401680044,), (1401680077,), (1401680478,), (1401680513,), (1401680543,), (1401680578,), (1401680614,), (1401680649,), (1401680773,), (1401680806,), (1401680837,), (1401680850,), (1401680852,), (1401680861,), (1401680865,), (1401680868,), (1401680873,), (1401680955,), (1401680996,), (1401681037,), (1401681098,), (1401681161,), (1401681226,), (1401681645,), (1401681674,), (1401681707,), (1401681744,), (1401681872,), (1401681875,), (1401681878,), (1401681882,), (1401681886,), (1401681888,), (1401681904,), (1401681906,), (1401681908,), (1401681911,), (1401681935,), (1401681937,), (1401681939,), (1401681942,), (1401681945,), (1401682408,), (1401682369,), (1401682393,), (1401682464,), (1401682465,), (1401682466,), (1401682468,), (1401682473,), (1401682566,), (1401682589,), (1401682600,), (1401682603,), (1401682628,), (1401682629,), (1401682631,), (1401682632,), (1401682635,), (1401682639,), (1401682663,), (1401682672,), (1401682678,), (1401682681,), (1401682709,), (1401682723,), (1401682729,), (1401682744,), (1401682754,), (1401682770,), (1401682811,), (1401682812,), (1401682817,), (1401682846,), (1401682850,), (1401682883,), (1401682917,), (1401683183,), (1401683186,), (1401683189,), (1401683190,), (1401683193,), (1401683195,), (1401683335,), (1401683334,), (1401683445,), (1401683446,), (1401683448,), (1401683450,), (1401683658,), (1401683748,), (1401683812,), (1401683879,), (1401683922,), (1401683965,), (1401684115,), (1401684118,), (1401684119,), (1401684121,), (1401684123,), (1401684126,), (1401684175,), (1401684177,), (1401684179,), (1401684182,), (1401684185,), (1401684189,), (1401684205,), (1401684207,), (1401684211,), (1401684215,), (1401684219,), (1401684227,), (1401684236,), (1401684241,), (1401684243,), (1401684246,), (1401684249,), (1401684251,), (1401684253,), (1401684274,), (1401684276,), (1401684279,), (1401684281,), (1401684283,), (1401684286,), (1401684295,), (1401684308,), (1401684319,), (1401684325,), (1401684327,), (1401684355,), (1401684452,), (1401684510,), (1401684547,), (1401684551,), (1401684552,), (1401684554,), (1401684557,), (1401684559,), (1401684612,), (1401684617,), (1401684623,), (1401684659,), (1401684694,), (1401684695,), (1401684704,), (1401684707,), (1401685132,), (1401684883,), (1401684918,), (1401685020,), (1401685062,), (1401685097,), (1401685339,), (1401685341,), (1401685342,), (1401685343,), (1401686004,), (1401686020,), (1401686049,), (1401686071,), (1401686075,), (1401686090,), (1401686111,), (1401686113,), (1401686136,), (1401686143,), (1401686145,), (1401686341,), (1401686343,), (1401686345,), (1401686347,), (1401686632,), (1401686670,), (1401686711,), (1401686747,), (1401686786,), (1401687310,), (1401687349,), (1401687383,), (1401687417,), (1401687451,), (1401687463,), (1401687491,), (1401687527,), (1401687561,), (1401687923,), (1401687990,), (1401688073,), (1401688114,), (1401688153,), (1401688184,), (1401688382,), (1401688405,), (1401688414,), (1401688417,), (1401688453,), (1401688474,), (1401688499,), (1401688501,), (1401688503,), (1401688517,), (1401688529,), (1401688533,), (1401688553,), (1401688593,), (1401688602,), (1401688607,), (1401688714,), (1401688729,), (1401688733,), (1401688747,), (1401688750,), (1401688752,), (1401688782,), (1401688784,), (1401688786,), (1401688789,), (1401688792,), (1401688795,), (1401688849,), (1401688852,), (1401688856,), (1401688859,), (1401688862,), (1401688865,), (1401688942,), (1401688988,), (1401689020,), (1401689045,), (1401689055,), (1401689057,), (1401689067,), (1401689082,), (1401689097,), (1401689098,), (1401689101,), (1401689104,), (1401689334,), (1401689245,), (1401689277,), (1401689299,), (1401689302,), (1401689306,), (1401689399,), (1401689400,), (1401689401,), (1401689404,), (1401689541,), (1401689542,), (1401689545,), (1401689549,), (1401689553,), (1401689556,), (1401689577,), (1401689580,), (1401689583,), (1401689586,), (1401689589,), (1401689592,), (1401689620,), (1401689625,), (1401689629,), (1401689633,), (1401689661,), (1401689667,), (1401689677,), (1401689685,), (1401689689,), (1401689830,), (1401689856,), (1401689889,), (1401689996,), (1401690000,), (1401690003,), (1401690028,), (1401690031,), (1401690034,), (1401690517,), (1401690516,), (1401690603,), (1401690606,), (1401690609,), (1401690683,), (1401690685,), (1401690699,), (1401690700,), (1401690703,), (1401690774,), (1401690776,), (1401690778,), (1401690781,), (1401691060,), (1401691063,), (1401691065,), (1401691069,), (1401691075,), (1401691099,), (1401691102,), (1401691106,), (1401691110,), (1401691116,), (1401691118,), (1401691135,), (1401691137,), (1401691139,), (1401691143,), (1401691146,), (1401691149,), (1401691166,), (1401691176,), (1401691179,), (1401691185,), (1401691192,), (1401691194,), (1401691195,), (1401691198,), (1401691251,), (1401691252,), (1401691254,), (1401691256,), (1401691259,), (1401691262,), (1401691291,), (1401691282,), (1401691285,), (1401691288,), (1401691309,), (1401691312,), (1401691313,), (1401691315,), (1401691318,), (1401691325,), (1401691349,), (1401691350,), (1401691352,), (1401691355,), (1401691375,), (1401691377,), (1401691380,), (1401691383,), (1401691389,), (1401691397,), (1401691517,), (1401691519,), (1401691520,), (1401691521,), (1401691524,), (1401691563,), (1401691564,), (1401691567,), (1401691570,), (1401691574,), (1401691578,), (1401691613,), (1401691617,), (1401691621,), (1401691625,), (1401691649,), (1401691650,), (1401691651,), (1401691653,), (1401691655,), (1401691659,), (1401691680,), (1401691684,), (1401691687,), (1401691707,), (1401691833,), (1401691834,), (1401691835,), (1401691837,), (1401691839,), (1401691841,), (1401691855,), (1401691858,), (1401691864,), (1401691868,), (1401691871,), (1401691873,), (1401691894,), (1401691895,), (1401691897,), (1401691898,), (1401691899,), (1401691901,), (1401691904,), (1401691906,), (1401691910,), (1401691911,), (1401691913,), (1401691914,), (1401691921,), (1401691924,), (1401691925,), (1401691927,), (1401691931,), (1401691934,), (1401691945,), (1401691955,), (1401691967,), (1401691975,), (1401691978,), (1401691979,), (1401692022,), (1401692024,), (1401692026,), (1401692028,), (1401692030,), (1401692032,), (1401692039,), (1401692045,), (1401692051,), (1401692056,), (1401692061,), (1401692065,), (1401692072,), (1401692073,), (1401692074,), (1401692087,), (1401692090,), (1401692092,), (1401692119,), (1401692120,), (1401692128,), (1401692131,), (1401692136,), (1401692105,), (1401692109,), (1401692113,), (1401692116,), (1401692169,), (1401692175,), (1401692178,), (1401692183,), (1401692206,), (1401692208,), (1401692213,), (1401692221,), (1401692224,), (1401692226,), (1401692271,), (1401692280,), (1401692283,), (1401692286,), (1401692290,), (1401692292,), (1401692294,), (1401692331,), (1401692336,), (1401692339,), (1401692341,), (1401692344,), (1401692347,), (1401692419,), (1401692422,), (1401692424,), (1401692429,), (1401692474,), (1401692475,), (1401692479,), (1401692481,), (1401692485,), (1401692489,), (1401692517,), (1401692519,), (1401692521,), (1401692524,), (1401692556,), (1401692564,), (1401692572,), (1401692576,), (1401692581,), (1401692588,), (1401692683,), (1401692701,), (1401692704,), (1401692708,), (1401692774,), (1401692800,), (1401692805,), (1401692814,), (1401692826,), (1401692829,), (1401692897,), (1401692907,), (1401692912,), (1401692962,), (1401692963,), (1401692972,), (1401693009,), (1401693044,), (1401693082,), (1401693199,), (1401693233,), (1401693266,), (1401693273,), (1401693330,), (1401693337,), (1401693339,), (1401693542,), (1401693519,), (1401693716,), (1401693719,), (1401693721,), (1401693724,), (1401693728,), (1401693748,), (1401693750,), (1401693752,), (1401693755,), (1401693759,), (1401693762,), (1401693793,), (1401693795,), (1401693798,), (1401693802,), (1401693807,), (1401693844,), (1401693846,), (1401693849,), (1401693871,), (1401693873,), (1401693876,), (1401693878,), (1401693882,), (1401693903,), (1401693905,), (1401693907,), (1401693929,), (1401693931,), (1401693934,), (1401693938,), (1401693942,), (1401693961,), (1401693964,), (1401693966,), (1401693969,), (1401694006,), (1401694009,), (1401694012,), (1401694017,), (1401694147,), (1401694164,), (1401694173,), (1401694195,), (1401694200,), (1401694540,), (1401694537,), (1401694572,), (1401694576,), (1401694579,), (1401694606,), (1401694608,), (1401694609,), (1401694612,), (1401694615,), (1401694618,), (1401694664,), (1401694704,), (1401694706,), (1401694708,), (1401694712,), (1401694761,), (1401694858,), (1401694892,), (1401695091,), (1401695096,), (1401695105,), (1401695118,), (1401695121,), (1401695123,), (1401695212,), (1401695213,), (1401695216,), (1401695219,), (1401695223,), (1401695227,), (1401695288,), (1401695290,), (1401695321,), (1401695325,), (1401695335,), (1401695345,), (1401695377,), (1401695399,), (1401695411,), (1401695413,), (1401695414,), (1401695416,), (1401695419,), (1401695437,), (1401695439,), (1401695440,), (1401695443,), (1401695446,), (1401695449,), (1401695476,), (1401695484,), (1401695487,), (1401695491,), (1401695495,), (1401695514,), (1401695518,), (1401695520,), (1401695526,), (1401695528,), (1401695531,), (1401695540,), (1401695545,), (1401695588,), (1401695590,), (1401695592,), (1401695594,), (1401695598,), (1401695601,), (1401695646,), (1401695679,), (1401695714,), (1401696002,), (1401695882,), (1401695885,), (1401695889,), (1401695919,), (1401695967,), (1401696039,), (1401696040,), (1401696041,), (1401696043,), (1401696047,), (1401696072,), (1401696073,), (1401696075,), (1401696079,), (1401696084,), (1401696106,), (1401696108,), (1401696110,), (1401696113,), (1401696118,), (1401696145,), (1401696148,), (1401696151,), (1401696155,), (1401696177,), (1401696180,), (1401696181,), (1401696183,), (1401696187,), (1401696190,), (1401696226,), (1401696230,), (1401696265,), (1401696301,), (1401696337,), (1401696374,), (1401696542,), (1401696546,), (1401696550,), (1401696555,), (1401696558,), (1401696561,), (1401696581,), (1401696584,), (1401696586,), (1401696593,), (1401696595,), (1401696597,), (1401696600,), (1401696603,), (1401696607,), (1401696626,), (1401696627,), (1401696628,), (1401696630,), (1401696634,), (1401696663,), (1401696666,), (1401696676,), (1401696680,), (1401696714,), (1401696753,), (1401696790,), (1401696795,), (1401696803,), (1401696814,), (1401696815,), (1401696816,), (1401696843,), (1401696852,), (1401696859,), (1401696929,), (1401696930,), (1401696932,), (1401696935,), (1401696939,), (1401697153,), (1401697199,), (1401697236,), (1401697368,), (1401697430,), (1401698065,), (1401698007,), (1401699796,), (1401699839,), (1401699889,), (1401700349,), (1401700351,), (1401700352,), (1401700353,), (1401700355,), (1401700495,), (1401700527,), (1401700561,), (1401700595,), (1401700820,), (1401700824,), (1401700827,), (1401700850,), (1401700932,), (1401700933,), (1401700960,), (1401700971,), (1401700973,), (1401701012,), (1401701015,), (1401701018,), (1401701024,), (1401701029,), (1401701033,), (1401701058,), (1401701060,), (1401701063,), (1401701066,), (1401701069,), (1401701072,), (1401701080,), (1401701083,), (1401701085,), (1401701087,), (1401701091,), (1401701094,), (1401701097,), (1401701125,), (1401701127,), (1401701130,), (1401701133,), (1401701182,), (1401701184,), (1401701187,), (1401701190,), (1401701193,), (1401701195,), (1401701251,), (1401701341,), (1401701767,), (1401701755,), (1401701757,), (1401701759,), (1401701763,), (1401701796,), (1401701799,), (1401701801,), (1401701805,), (1401701818,), (1401701971,), (1401701974,), (1401701999,), (1401702000,), (1401702001,), (1401702003,), (1401702009,), (1401702033,), (1401702036,), (1401702039,), (1401702042,), (1401702162,), (1401702193,), (1401702222,), (1401702226,), (1401702236,), (1401702241,), (1401702269,), (1401702272,), (1401702276,), (1401702287,), (1401702289,), (1401702292,), (1401702315,), (1401702373,), (1401702558,), (1401702561,), (1401702564,), (1401702570,), (1401702578,), (1401702628,), (1401702630,), (1401702636,), (1401702667,), (1401702669,), (1401702671,), (1401702675,), (1401702679,), (1401702696,), (1401702787,), (1401702788,), (1401702789,), (1401702792,), (1401702797,), (1401702801,), (1401702817,), (1401702821,), (1401702889,), (1401702902,), (1401702904,), (1401702906,), (1401702910,), (1401702967,), (1401702955,), (1401702957,), (1401702958,), (1401702962,), (1401702995,), (1401702997,), (1401702999,), (1401703003,), (1401703027,), (1401703029,), (1401703031,), (1401703034,), (1401703037,), (1401703038,), (1401703079,), (1401703081,), (1401703086,), (1401703090,), (1401703095,), (1401703100,), (1401703110,), (1401703117,), (1401703121,), (1401703123,), (1401703125,), (1401703128,), (1401703151,), (1401703153,), (1401703155,), (1401703162,), (1401703184,), (1401703220,), (1401703228,), (1401703230,), (1401703232,), (1401703235,), (1401703239,), (1401703243,), (1401703258,), (1401703274,), (1401703277,), (1401703280,), (1401703282,), (1401703284,), (1401703306,), (1401703308,), (1401703311,), (1401703314,), (1401703317,), (1401703335,), (1401703337,), (1401703339,), (1401703342,), (1401703347,), (1401703363,), (1401703451,), (1401703454,), (1401703456,), (1401703459,), (1401703464,), (1401703497,), (1401703498,), (1401703499,), (1401703502,), (1401703503,), (1401703506,), (1401703534,), (1401703538,), (1401703540,), (1401703544,), (1401703549,), (1401703554,), (1401703597,), (1401703600,), (1401703601,), (1401703604,), (1401703605,), (1401703612,), (1401703645,), (1401703654,), (1401703659,), (1401703661,), (1401703663,), (1401703665,), (1401703688,), (1401703724,), (1401703758,), (1401703773,), (1401703776,), (1401703777,), (1401703781,), (1401703784,), (1401703791,), (1401703796,), (1401703800,), (1401703819,), (1401703836,), (1401703846,), (1401703849,), (1401703851,), (1401704178,), (1401703863,), (1401704141,), (1401704166,), (1401704168,), (1401704170,), (1401704174,), (1401704199,), (1401704201,), (1401704202,), (1401704203,), (1401704207,), (1401704261,), (1401704269,), (1401704288,), (1401704307,), (1401704340,), (1401704345,), (1401704348,), (1401704352,), (1401704354,), (1401704357,), (1401704781,), (1401704646,), (1401704680,), (1401704712,), (1401704746,), (1401705142,), (1401705184,), (1401705215,), (1401705250,), (1401705284,), (1401705327,), (1401705331,), (1401705336,), (1401705341,), (1401705345,), (1401705347,), (1401705639,), (1401705670,), (1401705727,), (1401705802,), (1401705869,), (1401705920,), (1401706115,), (1401706276,), (1401706399,), (1401706517,), (1401706643,), (1401706778,), (1401707053,), (1401707088,), (1401707129,), (1401707177,), (1401707269,), (1401707420,), (1401709303,), (1401709340,), (1401709385,), (1401709435,), (1401710038,), (1401710125,), (1401710224,), (1401710324,), (1401710417,), (1401711001,), (1401711011,), (1401711034,), (1401711069,), (1401711114,), (1401711628,), (1401711674,), (1401711703,), (1401711705,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'30122025': {'nb_upload': 51, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29813444]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1401711705, 1401711703, 1401711674, 1401711628] map_info['map_portfolio_photo'] : {29813444: [1401711705, 1401711703, 1401711674, 1401711628, 1401711114, 1401711069, 1401711034, 1401711011, 1401711001, 1401710417, 1401710324, 1401710224, 1401710125, 1401710038, 1401709435, 1401709385, 1401709340, 1401709303, 1401707420, 1401707269, 1401707177, 1401707129, 1401707088, 1401707053, 1401706778, 1401706643, 1401706517, 1401706399, 1401706276, 1401706115, 1401705920, 1401705869, 1401705802, 1401705727, 1401705670, 1401705639, 1401705347, 1401705345, 1401705341, 1401705336, 1401705331, 1401705327, 1401705284, 1401705250, 1401705215, 1401705184, 1401705142, 1401704746, 1401704712, 1401704680, 1401704646]} final : True mtd_id 4302 list_pids : [1401711705, 1401711703, 1401711674, 1401711628] Looping around the photos to save general results len do output : 1 /29813444Didn'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, '4289654') ('4302', '29813444', '1401711705', None, None, None, None, None, '4289654') ('4302', None, None, None, None, None, None, None, '4289654') ('4302', '29813444', '1401711703', None, None, None, None, None, '4289654') ('4302', None, None, None, None, None, None, None, '4289654') ('4302', '29813444', '1401711674', None, None, None, None, None, '4289654') ('4302', None, None, None, None, None, None, None, '4289654') ('4302', '29813444', '1401711628', None, None, None, None, None, '4289654') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 5 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, '29813444', 'None', None, None, None, None, '4289654'), ('4302', '29813444', '1401711705', None, None, None, None, None, '4289654'), ('4302', '29813444', '1401711703', None, None, None, None, None, '4289654'), ('4302', '29813444', '1401711674', None, None, None, None, None, '4289654'), ('4302', '29813444', '1401711628', None, None, None, None, None, '4289654')] time used for this insertion : 0.014911651611328125 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.7078163623809814 time spend to save output : 0.015098333358764648 total time spend for step 5 : 2.722914695739746 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 (4289654) 2.14user 2.57system 0:10.36elapsed 45%CPU (0avgtext+0avgdata 163816maxresident)k 200inputs+6232outputs (5major+67048minor)pagefaults 0swaps