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 : 3972527 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 (4262665) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (4262665) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29649587 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['4262665'] with mtr_portfolio_ids : ['29649587'] and first list_photo_ids : [] new path : /proc/3972527/ Name: python3 Umask: 0002 State: R (running) Tgid: 3972527 Ngid: 0 Pid: 3972527 PPid: 3972526 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 3972527 NSpid: 3972527 NSpgid: 3971057 NSsid: 3971057 VmPeak: 1113364 kB VmSize: 1113364 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 105020 kB VmRSS: 105020 kB RssAnon: 66292 kB RssFile: 38728 kB RssShmem: 0 kB VmData: 872092 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130476 kB VmPTE: 608 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63019 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 49 nonvoluntary_ctxt_switches: 150 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '3972527', 'Ngid': '0', 'Pid': '3972527', 'PPid': '3972526', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '3972527', 'NSpid': '3972527', 'NSpgid': '3971057', 'NSsid': '3971057', 'VmPeak': '1113364 kB', 'VmSize': '1113364 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '105020 kB', 'VmRSS': '105020 kB', 'RssAnon': '66292 kB', 'RssFile': '38728 kB', 'RssShmem': '0 kB', 'VmData': '872092 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130476 kB', 'VmPTE': '608 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63019', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '49', 'nonvoluntary_ctxt_switches': '150'} ('datou_batch_current', '3972527', '1113364', '0', '1113364', '872092', '105020', b'', 'marlene', '4262665') 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 (29649587) 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 (4262665 ) ) 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 (29649587) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1400662409, 'portfolio_id': 29649587}, {'photo_id': 1400662401, 'portfolio_id': 29649587}, {'photo_id': 1400662396, 'portfolio_id': 29649587}, {'photo_id': 1400662393, 'portfolio_id': 29649587}, {'photo_id': 1400662391, 'portfolio_id': 29649587}, {'photo_id': 1400662388, 'portfolio_id': 29649587}, {'photo_id': 1400662387, 'portfolio_id': 29649587}, {'photo_id': 1400662372, 'portfolio_id': 29649587}, {'photo_id': 1400662368, 'portfolio_id': 29649587}, {'photo_id': 1400662366, 'portfolio_id': 29649587}, {'photo_id': 1400662362, 'portfolio_id': 29649587}, {'photo_id': 1400662326, 'portfolio_id': 29649587}, {'photo_id': 1400662323, 'portfolio_id': 29649587}, {'photo_id': 1400662320, 'portfolio_id': 29649587}, {'photo_id': 1400662318, 'portfolio_id': 29649587}, {'photo_id': 1400662289, 'portfolio_id': 29649587}, {'photo_id': 1400662278, 'portfolio_id': 29649587}, {'photo_id': 1400662270, 'portfolio_id': 29649587}, {'photo_id': 1400662259, 'portfolio_id': 29649587}, {'photo_id': 1400662256, 'portfolio_id': 29649587}, {'photo_id': 1400662254, 'portfolio_id': 29649587}, {'photo_id': 1400662251, 'portfolio_id': 29649587}, {'photo_id': 1400662249, 'portfolio_id': 29649587}, {'photo_id': 1400662247, 'portfolio_id': 29649587}, {'photo_id': 1400662040, 'portfolio_id': 29649587}, {'photo_id': 1400662007, 'portfolio_id': 29649587}, {'photo_id': 1400661970, 'portfolio_id': 29649587}, {'photo_id': 1400661934, 'portfolio_id': 29649587}, {'photo_id': 1400661781, 'portfolio_id': 29649587}, {'photo_id': 1400661778, 'portfolio_id': 29649587}] map_portfolio_id_photo_id: {29649587: [1400662409, 1400662401, 1400662396, 1400662393, 1400662391, 1400662388, 1400662387, 1400662372, 1400662368, 1400662366, 1400662362, 1400662326, 1400662323, 1400662320, 1400662318, 1400662289, 1400662278, 1400662270, 1400662259, 1400662256, 1400662254, 1400662251, 1400662249, 1400662247, 1400662040, 1400662007, 1400661970, 1400661934, 1400661781, 1400661778]} ##### 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.01893758773803711 #### 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 23 08:26:57 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 (29649587) 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 : 29649587 get user id for portfolio 29649587 get sub ptf for main ptf 29649587, type 3726 and hashtags ['kraft', 'Teint_Dans_La_Masse', 'metal', 'Carton_brun', 'environnement', 'mal_croppe', 'papier', 'cartonnette', 'Carton_gris', 'plastique', 'autre_refus', 'flou'] 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`=29649587 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','Teint_Dans_La_Masse','metal','Carton_brun','environnement','mal_croppe','papier','cartonnette','Carton_gris','plastique','autre_refus','flou')) 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`=29649587 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','Teint_Dans_La_Masse','metal','Carton_brun','environnement','mal_croppe','papier','cartonnette','Carton_gris','plastique','autre_refus','flou')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_gris': {'main_port_id': 29649587, 'sub_port_id': 29649588, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20246830, 'last_updated_at': datetime.datetime(2025, 12, 23, 8, 24, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 23, 8, 24, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 23, 8, 23, 26)}, 'kraft': {'main_port_id': 29649587, 'sub_port_id': 29649589, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20246831, 'last_updated_at': datetime.datetime(2025, 12, 23, 8, 24, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 23, 8, 24, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 23, 8, 23, 26)}, 'papier': {'main_port_id': 29649587, 'sub_port_id': 29649590, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20246832, 'last_updated_at': datetime.datetime(2025, 12, 23, 8, 24, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 23, 8, 24, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 23, 8, 23, 26)}, 'mal_croppe': {'main_port_id': 29649587, 'sub_port_id': 29649591, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20246833, 'last_updated_at': datetime.datetime(2025, 12, 23, 8, 24, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 23, 8, 24, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 23, 8, 23, 26)}, 'Teint_Dans_La_Masse': {'main_port_id': 29649587, 'sub_port_id': 29649592, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20246834, 'last_updated_at': datetime.datetime(2025, 12, 23, 8, 24, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 23, 8, 24, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 23, 8, 23, 26)}, 'Carton_brun': {'main_port_id': 29649587, 'sub_port_id': 29649593, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20246835, 'last_updated_at': datetime.datetime(2025, 12, 23, 8, 24, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 23, 8, 24, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 23, 8, 23, 26)}, 'cartonnette': {'main_port_id': 29649587, 'sub_port_id': 29649594, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20246836, 'last_updated_at': datetime.datetime(2025, 12, 23, 8, 24, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 23, 8, 24, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 23, 8, 23, 26)}, 'flou': {'main_port_id': 29649587, 'sub_port_id': 29649595, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20246837, 'last_updated_at': datetime.datetime(2025, 12, 23, 8, 24, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 23, 8, 24, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 23, 8, 23, 26)}, 'plastique': {'main_port_id': 29649587, 'sub_port_id': 29649596, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20246838, 'last_updated_at': datetime.datetime(2025, 12, 23, 8, 24, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 23, 8, 24, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 23, 8, 23, 26)}, 'environnement': {'main_port_id': 29649587, 'sub_port_id': 29649597, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20246839, 'last_updated_at': datetime.datetime(2025, 12, 23, 8, 24, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 23, 8, 24, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 23, 8, 23, 26)}, 'autre_refus': {'main_port_id': 29649587, 'sub_port_id': 29649598, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20246840, 'last_updated_at': datetime.datetime(2025, 12, 23, 8, 24, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 23, 8, 24, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 23, 8, 23, 26)}, 'metal': {'main_port_id': 29649587, 'sub_port_id': 29649599, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20246841, 'last_updated_at': datetime.datetime(2025, 12, 23, 8, 24, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 23, 8, 24, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 23, 8, 23, 26)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29649588 , 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=29649587 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 (29649588) result : ((1400662340,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29649587) result : ((1400661778,), (1400661781,), (1400661934,), (1400661970,), (1400662007,), (1400662040,), (1400662247,), (1400662249,), (1400662251,), (1400662254,), (1400662256,), (1400662259,), (1400662270,), (1400662278,), (1400662289,), (1400662318,), (1400662320,), (1400662323,), (1400662326,), (1400662362,), (1400662366,), (1400662368,), (1400662372,), (1400662387,), (1400662388,), (1400662391,), (1400662393,), (1400662396,), (1400662401,), (1400662409,)) 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 29649589 , 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=29649587 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 (29649589) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29649587) result : ((1400661778,), (1400661781,), (1400661934,), (1400661970,), (1400662007,), (1400662040,), (1400662247,), (1400662249,), (1400662251,), (1400662254,), (1400662256,), (1400662259,), (1400662270,), (1400662278,), (1400662289,), (1400662318,), (1400662320,), (1400662323,), (1400662326,), (1400662362,), (1400662366,), (1400662368,), (1400662372,), (1400662387,), (1400662388,), (1400662391,), (1400662393,), (1400662396,), (1400662401,), (1400662409,)) 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 29649590 , 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=29649587 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 (29649590) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29649587) result : ((1400661778,), (1400661781,), (1400661934,), (1400661970,), (1400662007,), (1400662040,), (1400662247,), (1400662249,), (1400662251,), (1400662254,), (1400662256,), (1400662259,), (1400662270,), (1400662278,), (1400662289,), (1400662318,), (1400662320,), (1400662323,), (1400662326,), (1400662362,), (1400662366,), (1400662368,), (1400662372,), (1400662387,), (1400662388,), (1400662391,), (1400662393,), (1400662396,), (1400662401,), (1400662409,)) 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 29649591 , 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=29649587 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 (29649591) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29649587) result : ((1400661778,), (1400661781,), (1400661934,), (1400661970,), (1400662007,), (1400662040,), (1400662247,), (1400662249,), (1400662251,), (1400662254,), (1400662256,), (1400662259,), (1400662270,), (1400662278,), (1400662289,), (1400662318,), (1400662320,), (1400662323,), (1400662326,), (1400662362,), (1400662366,), (1400662368,), (1400662372,), (1400662387,), (1400662388,), (1400662391,), (1400662393,), (1400662396,), (1400662401,), (1400662409,)) 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 29649592 , 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=29649587 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 (29649592) result : ((1400662305,), (1400662306,), (1400662307,), (1400662337,), (1400662338,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29649587) result : ((1400661778,), (1400661781,), (1400661934,), (1400661970,), (1400662007,), (1400662040,), (1400662247,), (1400662249,), (1400662251,), (1400662254,), (1400662256,), (1400662259,), (1400662270,), (1400662278,), (1400662289,), (1400662318,), (1400662320,), (1400662323,), (1400662326,), (1400662362,), (1400662366,), (1400662368,), (1400662372,), (1400662387,), (1400662388,), (1400662391,), (1400662393,), (1400662396,), (1400662401,), (1400662409,)) 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 29649593 , 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=29649587 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 (29649593) result : ((1400662308,), (1400662309,), (1400662310,), (1400662311,), (1400662312,), (1400662342,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29649587) result : ((1400661778,), (1400661781,), (1400661934,), (1400661970,), (1400662007,), (1400662040,), (1400662247,), (1400662249,), (1400662251,), (1400662254,), (1400662256,), (1400662259,), (1400662270,), (1400662278,), (1400662289,), (1400662318,), (1400662320,), (1400662323,), (1400662326,), (1400662362,), (1400662366,), (1400662368,), (1400662372,), (1400662387,), (1400662388,), (1400662391,), (1400662393,), (1400662396,), (1400662401,), (1400662409,)) 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 29649594 , 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=29649587 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 (29649594) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29649587) result : ((1400661778,), (1400661781,), (1400661934,), (1400661970,), (1400662007,), (1400662040,), (1400662247,), (1400662249,), (1400662251,), (1400662254,), (1400662256,), (1400662259,), (1400662270,), (1400662278,), (1400662289,), (1400662318,), (1400662320,), (1400662323,), (1400662326,), (1400662362,), (1400662366,), (1400662368,), (1400662372,), (1400662387,), (1400662388,), (1400662391,), (1400662393,), (1400662396,), (1400662401,), (1400662409,)) 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 29649595 , 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=29649587 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 (29649595) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29649587) result : ((1400661778,), (1400661781,), (1400661934,), (1400661970,), (1400662007,), (1400662040,), (1400662247,), (1400662249,), (1400662251,), (1400662254,), (1400662256,), (1400662259,), (1400662270,), (1400662278,), (1400662289,), (1400662318,), (1400662320,), (1400662323,), (1400662326,), (1400662362,), (1400662366,), (1400662368,), (1400662372,), (1400662387,), (1400662388,), (1400662391,), (1400662393,), (1400662396,), (1400662401,), (1400662409,)) 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 29649596 , 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=29649587 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 (29649596) result : ((1400662313,), (1400662314,), (1400662315,), (1400662316,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29649587) result : ((1400661778,), (1400661781,), (1400661934,), (1400661970,), (1400662007,), (1400662040,), (1400662247,), (1400662249,), (1400662251,), (1400662254,), (1400662256,), (1400662259,), (1400662270,), (1400662278,), (1400662289,), (1400662318,), (1400662320,), (1400662323,), (1400662326,), (1400662362,), (1400662366,), (1400662368,), (1400662372,), (1400662387,), (1400662388,), (1400662391,), (1400662393,), (1400662396,), (1400662401,), (1400662409,)) 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 29649597 , 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=29649587 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 (29649597) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29649587) result : ((1400661778,), (1400661781,), (1400661934,), (1400661970,), (1400662007,), (1400662040,), (1400662247,), (1400662249,), (1400662251,), (1400662254,), (1400662256,), (1400662259,), (1400662270,), (1400662278,), (1400662289,), (1400662318,), (1400662320,), (1400662323,), (1400662326,), (1400662362,), (1400662366,), (1400662368,), (1400662372,), (1400662387,), (1400662388,), (1400662391,), (1400662393,), (1400662396,), (1400662401,), (1400662409,)) 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 29649598 , 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=29649587 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 (29649598) result : ((1400662339,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29649587) result : ((1400661778,), (1400661781,), (1400661934,), (1400661970,), (1400662007,), (1400662040,), (1400662247,), (1400662249,), (1400662251,), (1400662254,), (1400662256,), (1400662259,), (1400662270,), (1400662278,), (1400662289,), (1400662318,), (1400662320,), (1400662323,), (1400662326,), (1400662362,), (1400662366,), (1400662368,), (1400662372,), (1400662387,), (1400662388,), (1400662391,), (1400662393,), (1400662396,), (1400662401,), (1400662409,)) 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 29649599 , 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=29649587 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 (29649599) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29649587) result : ((1400661778,), (1400661781,), (1400661934,), (1400661970,), (1400662007,), (1400662040,), (1400662247,), (1400662249,), (1400662251,), (1400662254,), (1400662256,), (1400662259,), (1400662270,), (1400662278,), (1400662289,), (1400662318,), (1400662320,), (1400662323,), (1400662326,), (1400662362,), (1400662366,), (1400662368,), (1400662372,), (1400662387,), (1400662388,), (1400662391,), (1400662393,), (1400662396,), (1400662401,), (1400662409,)) 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`=29649587 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','Teint_Dans_La_Masse','metal','Carton_brun','environnement','mal_croppe','papier','cartonnette','Carton_gris','plastique','autre_refus','flou')) 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`=29649587 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','Teint_Dans_La_Masse','metal','Carton_brun','environnement','mal_croppe','papier','cartonnette','Carton_gris','plastique','autre_refus','flou')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_gris': {'main_port_id': 29649587, 'sub_port_id': 29649600, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20246842, 'last_updated_at': datetime.datetime(2025, 12, 23, 8, 23, 28), 'last_updated_at_desc': datetime.datetime(2025, 12, 23, 8, 23, 28), 'last_updated_at_asc': datetime.datetime(2025, 12, 23, 8, 23, 28)}, 'kraft': {'main_port_id': 29649587, 'sub_port_id': 29649601, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20246843, 'last_updated_at': datetime.datetime(2025, 12, 23, 8, 23, 28), 'last_updated_at_desc': datetime.datetime(2025, 12, 23, 8, 23, 28), 'last_updated_at_asc': datetime.datetime(2025, 12, 23, 8, 23, 28)}, 'papier': {'main_port_id': 29649587, 'sub_port_id': 29649602, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20246844, 'last_updated_at': datetime.datetime(2025, 12, 23, 8, 23, 28), 'last_updated_at_desc': datetime.datetime(2025, 12, 23, 8, 23, 28), 'last_updated_at_asc': datetime.datetime(2025, 12, 23, 8, 23, 28)}, 'mal_croppe': {'main_port_id': 29649587, 'sub_port_id': 29649603, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20246845, 'last_updated_at': datetime.datetime(2025, 12, 23, 8, 23, 28), 'last_updated_at_desc': datetime.datetime(2025, 12, 23, 8, 23, 28), 'last_updated_at_asc': datetime.datetime(2025, 12, 23, 8, 23, 28)}, 'Teint_Dans_La_Masse': {'main_port_id': 29649587, 'sub_port_id': 29649604, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20246846, 'last_updated_at': datetime.datetime(2025, 12, 23, 8, 23, 28), 'last_updated_at_desc': datetime.datetime(2025, 12, 23, 8, 23, 28), 'last_updated_at_asc': datetime.datetime(2025, 12, 23, 8, 23, 28)}, 'Carton_brun': {'main_port_id': 29649587, 'sub_port_id': 29649605, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20246847, 'last_updated_at': datetime.datetime(2025, 12, 23, 8, 23, 28), 'last_updated_at_desc': datetime.datetime(2025, 12, 23, 8, 23, 28), 'last_updated_at_asc': datetime.datetime(2025, 12, 23, 8, 23, 28)}, 'cartonnette': {'main_port_id': 29649587, 'sub_port_id': 29649606, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20246848, 'last_updated_at': datetime.datetime(2025, 12, 23, 8, 23, 28), 'last_updated_at_desc': datetime.datetime(2025, 12, 23, 8, 23, 28), 'last_updated_at_asc': datetime.datetime(2025, 12, 23, 8, 23, 28)}, 'flou': {'main_port_id': 29649587, 'sub_port_id': 29649607, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20246849, 'last_updated_at': datetime.datetime(2025, 12, 23, 8, 23, 28), 'last_updated_at_desc': datetime.datetime(2025, 12, 23, 8, 23, 28), 'last_updated_at_asc': datetime.datetime(2025, 12, 23, 8, 23, 28)}, 'plastique': {'main_port_id': 29649587, 'sub_port_id': 29649608, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20246850, 'last_updated_at': datetime.datetime(2025, 12, 23, 8, 23, 28), 'last_updated_at_desc': datetime.datetime(2025, 12, 23, 8, 23, 28), 'last_updated_at_asc': datetime.datetime(2025, 12, 23, 8, 23, 28)}, 'environnement': {'main_port_id': 29649587, 'sub_port_id': 29649609, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20246851, 'last_updated_at': datetime.datetime(2025, 12, 23, 8, 23, 28), 'last_updated_at_desc': datetime.datetime(2025, 12, 23, 8, 23, 28), 'last_updated_at_asc': datetime.datetime(2025, 12, 23, 8, 23, 28)}, 'autre_refus': {'main_port_id': 29649587, 'sub_port_id': 29649610, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20246852, 'last_updated_at': datetime.datetime(2025, 12, 23, 8, 23, 28), 'last_updated_at_desc': datetime.datetime(2025, 12, 23, 8, 23, 28), 'last_updated_at_asc': datetime.datetime(2025, 12, 23, 8, 23, 28)}, 'metal': {'main_port_id': 29649587, 'sub_port_id': 29649611, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20246853, 'last_updated_at': datetime.datetime(2025, 12, 23, 8, 24, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 23, 8, 24, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 23, 8, 23, 28)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29649600,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29649588 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29649601,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29649589 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29649602,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29649590 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29649603,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29649591 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29649604,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29649592 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29649605,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29649593 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29649606,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29649594 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29649607,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29649595 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29649608,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29649596 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29649609,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29649597 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29649610,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29649598 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29649611,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29649599 lien utilise dans velours : https://marlene.fotonower.com/velours/29649600,29649601,29649602,29649603,29649604,29649605,29649606,29649607,29649608,29649609,29649610,29649611?tags=Carton_gris,kraft,papier,mal_croppe,Teint_Dans_La_Masse,Carton_brun,cartonnette,flou,plastique,environnement,autre_refus,metal After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29649587]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1400662409, 1400662401, 1400662396, 1400662393, 1400662391, 1400662388, 1400662387, 1400662372, 1400662368, 1400662366, 1400662362] map_info['map_portfolio_photo'] : {29649587: [1400662409, 1400662401, 1400662396, 1400662393, 1400662391, 1400662388, 1400662387, 1400662372, 1400662368, 1400662366, 1400662362, 1400662326, 1400662323, 1400662320, 1400662318, 1400662289, 1400662278, 1400662270, 1400662259, 1400662256, 1400662254, 1400662251, 1400662249, 1400662247, 1400662040, 1400662007, 1400661970, 1400661934, 1400661781, 1400661778]} final : False mtd_id 4302 list_pids : [1400662409, 1400662401, 1400662396, 1400662393, 1400662391, 1400662388, 1400662387, 1400662372, 1400662368, 1400662366, 1400662362] Looping around the photos to save general results len do output : 1 /29649587. 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, '4262665') ('4302', '29649587', '1400662409', None, None, None, None, None, '4262665') ('4302', None, None, None, None, None, None, None, '4262665') ('4302', '29649587', '1400662401', None, None, None, None, None, '4262665') ('4302', None, None, None, None, None, None, None, '4262665') ('4302', '29649587', '1400662396', None, None, None, None, None, '4262665') ('4302', None, None, None, None, None, None, None, '4262665') ('4302', '29649587', '1400662393', None, None, None, None, None, '4262665') ('4302', None, None, None, None, None, None, None, '4262665') ('4302', '29649587', '1400662391', None, None, None, None, None, '4262665') ('4302', None, None, None, None, None, None, None, '4262665') ('4302', '29649587', '1400662388', None, None, None, None, None, '4262665') ('4302', None, None, None, None, None, None, None, '4262665') ('4302', '29649587', '1400662387', None, None, None, None, None, '4262665') ('4302', None, None, None, None, None, None, None, '4262665') ('4302', '29649587', '1400662372', None, None, None, None, None, '4262665') ('4302', None, None, None, None, None, None, None, '4262665') ('4302', '29649587', '1400662368', None, None, None, None, None, '4262665') ('4302', None, None, None, None, None, None, None, '4262665') ('4302', '29649587', '1400662366', None, None, None, None, None, '4262665') ('4302', None, None, None, None, None, None, None, '4262665') ('4302', '29649587', '1400662362', None, None, None, None, None, '4262665') 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', None, '29649587', "{'Carton_gris': 29649588, 'kraft': 29649589, 'papier': 29649590, 'mal_croppe': 29649591, 'Teint_Dans_La_Masse': 29649592, 'Carton_brun': 29649593, 'cartonnette': 29649594, 'flou': 29649595, 'plastique': 29649596, 'environnement': 29649597, 'autre_refus': 29649598, 'metal': 29649599}", None, None, None, None, '4262665'), ('4302', '29649587', '1400662409', None, None, None, None, None, '4262665'), ('4302', '29649587', '1400662401', None, None, None, None, None, '4262665'), ('4302', '29649587', '1400662396', None, None, None, None, None, '4262665'), ('4302', '29649587', '1400662393', None, None, None, None, None, '4262665'), ('4302', '29649587', '1400662391', None, None, None, None, None, '4262665'), ('4302', '29649587', '1400662388', None, None, None, None, None, '4262665'), ('4302', '29649587', '1400662387', None, None, None, None, None, '4262665'), ('4302', '29649587', '1400662372', None, None, None, None, None, '4262665'), ('4302', '29649587', '1400662368', None, None, None, None, None, '4262665'), ('4302', '29649587', '1400662366', None, None, None, None, None, '4262665'), ('4302', '29649587', '1400662362', None, None, None, None, None, '4262665')] time used for this insertion : 0.018596410751342773 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.8075008392333984 time spend to save output : 0.018936872482299805 total time spend for step 1 : 1.8264377117156982 step2:final Tue Dec 23 08:26:59 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 (29649587) 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 29649587 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1400661781,1400661778,1400662040,1400662270,1400662007,1400662259,1400661970,1400662256,1400662254,1400661934,1400662251,1400662249,1400662247,1400662289,1400662278,1400662409,1400662372,1400662326,1400662323,1400662368,1400662401,1400662366,1400662320,1400662396,1400662362,1400662393,1400662318,1400662391,1400662388,1400662387); 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([29649587]) Inside saveOutput : final : False verbose : True original output for save of step final : {1400662409: ('0.05164605022987706',), 1400662401: ('0.05164605022987706',), 1400662396: ('0.05164605022987706',), 1400662393: ('0.05164605022987706',), 1400662391: ('0.05164605022987706',), 1400662388: ('0.05164605022987706',), 1400662387: ('0.05164605022987706',), 1400662372: ('0.05164605022987706',), 1400662368: ('0.05164605022987706',), 1400662366: ('0.05164605022987706',), 1400662362: ('0.05164605022987706',)} new output for save of step final : {1400662409: ('0.05164605022987706',), 1400662401: ('0.05164605022987706',), 1400662396: ('0.05164605022987706',), 1400662393: ('0.05164605022987706',), 1400662391: ('0.05164605022987706',), 1400662388: ('0.05164605022987706',), 1400662387: ('0.05164605022987706',), 1400662372: ('0.05164605022987706',), 1400662368: ('0.05164605022987706',), 1400662366: ('0.05164605022987706',), 1400662362: ('0.05164605022987706',)} [1400662409, 1400662401, 1400662396, 1400662393, 1400662391, 1400662388, 1400662387, 1400662372, 1400662368, 1400662366, 1400662362] map_info['map_portfolio_photo'] : {29649587: [1400662409, 1400662401, 1400662396, 1400662393, 1400662391, 1400662388, 1400662387, 1400662372, 1400662368, 1400662366, 1400662362, 1400662326, 1400662323, 1400662320, 1400662318, 1400662289, 1400662278, 1400662270, 1400662259, 1400662256, 1400662254, 1400662251, 1400662249, 1400662247, 1400662040, 1400662007, 1400661970, 1400661934, 1400661781, 1400661778]} final : False mtd_id 4302 list_pids : [1400662409, 1400662401, 1400662396, 1400662393, 1400662391, 1400662388, 1400662387, 1400662372, 1400662368, 1400662366, 1400662362] Looping around the photos to save general results len do output : 11 /1400662409.Didn't retrieve data . /1400662401.Didn't retrieve data . /1400662396.Didn't retrieve data . /1400662393.Didn't retrieve data . /1400662391.Didn't retrieve data . /1400662388.Didn't retrieve data . /1400662387.Didn't retrieve data . /1400662372.Didn't retrieve data . /1400662368.Didn't retrieve data . /1400662366.Didn't retrieve data . /1400662362.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, '4262665') ('4302', '29649587', '1400662409', None, None, None, None, None, '4262665') ('4302', None, None, None, None, None, None, None, '4262665') ('4302', '29649587', '1400662401', None, None, None, None, None, '4262665') ('4302', None, None, None, None, None, None, None, '4262665') ('4302', '29649587', '1400662396', None, None, None, None, None, '4262665') ('4302', None, None, None, None, None, None, None, '4262665') ('4302', '29649587', '1400662393', None, None, None, None, None, '4262665') ('4302', None, None, None, None, None, None, None, '4262665') ('4302', '29649587', '1400662391', None, None, None, None, None, '4262665') ('4302', None, None, None, None, None, None, None, '4262665') ('4302', '29649587', '1400662388', None, None, None, None, None, '4262665') ('4302', None, None, None, None, None, None, None, '4262665') ('4302', '29649587', '1400662387', None, None, None, None, None, '4262665') ('4302', None, None, None, None, None, None, None, '4262665') ('4302', '29649587', '1400662372', None, None, None, None, None, '4262665') ('4302', None, None, None, None, None, None, None, '4262665') ('4302', '29649587', '1400662368', None, None, None, None, None, '4262665') ('4302', None, None, None, None, None, None, None, '4262665') ('4302', '29649587', '1400662366', None, None, None, None, None, '4262665') ('4302', None, None, None, None, None, None, None, '4262665') ('4302', '29649587', '1400662362', None, None, None, None, None, '4262665') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 33 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', '29649587', '1400662409', '0.05164605022987706', None, None, None, None, '4262665'), ('4302', '29649587', '1400662401', '0.05164605022987706', None, None, None, None, '4262665'), ('4302', '29649587', '1400662396', '0.05164605022987706', None, None, None, None, '4262665'), ('4302', '29649587', '1400662393', '0.05164605022987706', None, None, None, None, '4262665'), ('4302', '29649587', '1400662391', '0.05164605022987706', None, None, None, None, '4262665'), ('4302', '29649587', '1400662388', '0.05164605022987706', None, None, None, None, '4262665'), ('4302', '29649587', '1400662387', '0.05164605022987706', None, None, None, None, '4262665'), ('4302', '29649587', '1400662372', '0.05164605022987706', None, None, None, None, '4262665'), ('4302', '29649587', '1400662368', '0.05164605022987706', None, None, None, None, '4262665'), ('4302', '29649587', '1400662366', '0.05164605022987706', None, None, None, None, '4262665'), ('4302', '29649587', '1400662362', '0.05164605022987706', None, None, None, None, '4262665')] time used for this insertion : 0.016837358474731445 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.0838630199432373 time spend to save output : 0.01735711097717285 total time spend for step 2 : 0.10122013092041016 step3:velours_tree Tue Dec 23 08:26:59 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 : {29649587: [{'Carton_gris': 29649588, 'kraft': 29649589, 'papier': 29649590, 'mal_croppe': 29649591, 'Teint_Dans_La_Masse': 29649592, 'Carton_brun': 29649593, 'cartonnette': 29649594, 'flou': 29649595, 'plastique': 29649596, 'environnement': 29649597, 'autre_refus': 29649598, 'metal': 29649599}]} input_args_next_step : {29649587: ()} output_args : {29649587: [{'Carton_gris': 29649588, 'kraft': 29649589, 'papier': 29649590, 'mal_croppe': 29649591, 'Teint_Dans_La_Masse': 29649592, 'Carton_brun': 29649593, 'cartonnette': 29649594, 'flou': 29649595, 'plastique': 29649596, 'environnement': 29649597, 'autre_refus': 29649598, 'metal': 29649599}]} args : 29649587 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'Carton_gris': 29649588, 'kraft': 29649589, 'papier': 29649590, 'mal_croppe': 29649591, 'Teint_Dans_La_Masse': 29649592, 'Carton_brun': 29649593, 'cartonnette': 29649594, 'flou': 29649595, 'plastique': 29649596, 'environnement': 29649597, 'autre_refus': 29649598, 'metal': 29649599},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29649587) 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([29649587]) 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.31830859184265137 time spend to save output : 4.172325134277344e-05 total time spend for step 3 : 0.31835031509399414 step4:send_mail_cod Tue Dec 23 08:26:59 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 : {1400662409: ('0.05164605022987706',), 1400662401: ('0.05164605022987706',), 1400662396: ('0.05164605022987706',), 1400662393: ('0.05164605022987706',), 1400662391: ('0.05164605022987706',), 1400662388: ('0.05164605022987706',), 1400662387: ('0.05164605022987706',), 1400662372: ('0.05164605022987706',), 1400662368: ('0.05164605022987706',), 1400662366: ('0.05164605022987706',), 1400662362: ('0.05164605022987706',)} input_args_next_step : {1400662409: ()} output_args : {1400662409: ('0.05164605022987706',), 1400662401: ('0.05164605022987706',), 1400662396: ('0.05164605022987706',), 1400662393: ('0.05164605022987706',), 1400662391: ('0.05164605022987706',), 1400662388: ('0.05164605022987706',), 1400662387: ('0.05164605022987706',), 1400662372: ('0.05164605022987706',), 1400662368: ('0.05164605022987706',), 1400662366: ('0.05164605022987706',), 1400662362: ('0.05164605022987706',)} args : 1400662409 depend.output_id : 0 input_args_next_step : {1400662409: ('0.05164605022987706',), 1400662401: ()} output_args : {1400662409: ('0.05164605022987706',), 1400662401: ('0.05164605022987706',), 1400662396: ('0.05164605022987706',), 1400662393: ('0.05164605022987706',), 1400662391: ('0.05164605022987706',), 1400662388: ('0.05164605022987706',), 1400662387: ('0.05164605022987706',), 1400662372: ('0.05164605022987706',), 1400662368: ('0.05164605022987706',), 1400662366: ('0.05164605022987706',), 1400662362: ('0.05164605022987706',)} args : 1400662401 depend.output_id : 0 input_args_next_step : {1400662409: ('0.05164605022987706',), 1400662401: ('0.05164605022987706',), 1400662396: ()} output_args : {1400662409: ('0.05164605022987706',), 1400662401: ('0.05164605022987706',), 1400662396: ('0.05164605022987706',), 1400662393: ('0.05164605022987706',), 1400662391: ('0.05164605022987706',), 1400662388: ('0.05164605022987706',), 1400662387: ('0.05164605022987706',), 1400662372: ('0.05164605022987706',), 1400662368: ('0.05164605022987706',), 1400662366: ('0.05164605022987706',), 1400662362: ('0.05164605022987706',)} args : 1400662396 depend.output_id : 0 input_args_next_step : {1400662409: ('0.05164605022987706',), 1400662401: ('0.05164605022987706',), 1400662396: ('0.05164605022987706',), 1400662393: ()} output_args : {1400662409: ('0.05164605022987706',), 1400662401: ('0.05164605022987706',), 1400662396: ('0.05164605022987706',), 1400662393: ('0.05164605022987706',), 1400662391: ('0.05164605022987706',), 1400662388: ('0.05164605022987706',), 1400662387: ('0.05164605022987706',), 1400662372: ('0.05164605022987706',), 1400662368: ('0.05164605022987706',), 1400662366: ('0.05164605022987706',), 1400662362: ('0.05164605022987706',)} args : 1400662393 depend.output_id : 0 input_args_next_step : {1400662409: ('0.05164605022987706',), 1400662401: ('0.05164605022987706',), 1400662396: ('0.05164605022987706',), 1400662393: ('0.05164605022987706',), 1400662391: ()} output_args : {1400662409: ('0.05164605022987706',), 1400662401: ('0.05164605022987706',), 1400662396: ('0.05164605022987706',), 1400662393: ('0.05164605022987706',), 1400662391: ('0.05164605022987706',), 1400662388: ('0.05164605022987706',), 1400662387: ('0.05164605022987706',), 1400662372: ('0.05164605022987706',), 1400662368: ('0.05164605022987706',), 1400662366: ('0.05164605022987706',), 1400662362: ('0.05164605022987706',)} args : 1400662391 depend.output_id : 0 input_args_next_step : {1400662409: ('0.05164605022987706',), 1400662401: ('0.05164605022987706',), 1400662396: ('0.05164605022987706',), 1400662393: ('0.05164605022987706',), 1400662391: ('0.05164605022987706',), 1400662388: ()} output_args : {1400662409: ('0.05164605022987706',), 1400662401: ('0.05164605022987706',), 1400662396: ('0.05164605022987706',), 1400662393: ('0.05164605022987706',), 1400662391: ('0.05164605022987706',), 1400662388: ('0.05164605022987706',), 1400662387: ('0.05164605022987706',), 1400662372: ('0.05164605022987706',), 1400662368: ('0.05164605022987706',), 1400662366: ('0.05164605022987706',), 1400662362: ('0.05164605022987706',)} args : 1400662388 depend.output_id : 0 input_args_next_step : {1400662409: ('0.05164605022987706',), 1400662401: ('0.05164605022987706',), 1400662396: ('0.05164605022987706',), 1400662393: ('0.05164605022987706',), 1400662391: ('0.05164605022987706',), 1400662388: ('0.05164605022987706',), 1400662387: ()} output_args : {1400662409: ('0.05164605022987706',), 1400662401: ('0.05164605022987706',), 1400662396: ('0.05164605022987706',), 1400662393: ('0.05164605022987706',), 1400662391: ('0.05164605022987706',), 1400662388: ('0.05164605022987706',), 1400662387: ('0.05164605022987706',), 1400662372: ('0.05164605022987706',), 1400662368: ('0.05164605022987706',), 1400662366: ('0.05164605022987706',), 1400662362: ('0.05164605022987706',)} args : 1400662387 depend.output_id : 0 input_args_next_step : {1400662409: ('0.05164605022987706',), 1400662401: ('0.05164605022987706',), 1400662396: ('0.05164605022987706',), 1400662393: ('0.05164605022987706',), 1400662391: ('0.05164605022987706',), 1400662388: ('0.05164605022987706',), 1400662387: ('0.05164605022987706',), 1400662372: ()} output_args : {1400662409: ('0.05164605022987706',), 1400662401: ('0.05164605022987706',), 1400662396: ('0.05164605022987706',), 1400662393: ('0.05164605022987706',), 1400662391: ('0.05164605022987706',), 1400662388: ('0.05164605022987706',), 1400662387: ('0.05164605022987706',), 1400662372: ('0.05164605022987706',), 1400662368: ('0.05164605022987706',), 1400662366: ('0.05164605022987706',), 1400662362: ('0.05164605022987706',)} args : 1400662372 depend.output_id : 0 input_args_next_step : {1400662409: ('0.05164605022987706',), 1400662401: ('0.05164605022987706',), 1400662396: ('0.05164605022987706',), 1400662393: ('0.05164605022987706',), 1400662391: ('0.05164605022987706',), 1400662388: ('0.05164605022987706',), 1400662387: ('0.05164605022987706',), 1400662372: ('0.05164605022987706',), 1400662368: ()} output_args : {1400662409: ('0.05164605022987706',), 1400662401: ('0.05164605022987706',), 1400662396: ('0.05164605022987706',), 1400662393: ('0.05164605022987706',), 1400662391: ('0.05164605022987706',), 1400662388: ('0.05164605022987706',), 1400662387: ('0.05164605022987706',), 1400662372: ('0.05164605022987706',), 1400662368: ('0.05164605022987706',), 1400662366: ('0.05164605022987706',), 1400662362: ('0.05164605022987706',)} args : 1400662368 depend.output_id : 0 input_args_next_step : {1400662409: ('0.05164605022987706',), 1400662401: ('0.05164605022987706',), 1400662396: ('0.05164605022987706',), 1400662393: ('0.05164605022987706',), 1400662391: ('0.05164605022987706',), 1400662388: ('0.05164605022987706',), 1400662387: ('0.05164605022987706',), 1400662372: ('0.05164605022987706',), 1400662368: ('0.05164605022987706',), 1400662366: ()} output_args : {1400662409: ('0.05164605022987706',), 1400662401: ('0.05164605022987706',), 1400662396: ('0.05164605022987706',), 1400662393: ('0.05164605022987706',), 1400662391: ('0.05164605022987706',), 1400662388: ('0.05164605022987706',), 1400662387: ('0.05164605022987706',), 1400662372: ('0.05164605022987706',), 1400662368: ('0.05164605022987706',), 1400662366: ('0.05164605022987706',), 1400662362: ('0.05164605022987706',)} args : 1400662366 depend.output_id : 0 input_args_next_step : {1400662409: ('0.05164605022987706',), 1400662401: ('0.05164605022987706',), 1400662396: ('0.05164605022987706',), 1400662393: ('0.05164605022987706',), 1400662391: ('0.05164605022987706',), 1400662388: ('0.05164605022987706',), 1400662387: ('0.05164605022987706',), 1400662372: ('0.05164605022987706',), 1400662368: ('0.05164605022987706',), 1400662366: ('0.05164605022987706',), 1400662362: ()} output_args : {1400662409: ('0.05164605022987706',), 1400662401: ('0.05164605022987706',), 1400662396: ('0.05164605022987706',), 1400662393: ('0.05164605022987706',), 1400662391: ('0.05164605022987706',), 1400662388: ('0.05164605022987706',), 1400662387: ('0.05164605022987706',), 1400662372: ('0.05164605022987706',), 1400662368: ('0.05164605022987706',), 1400662366: ('0.05164605022987706',), 1400662362: ('0.05164605022987706',)} args : 1400662362 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 : {29649587: [{'Carton_gris': 29649588, 'kraft': 29649589, 'papier': 29649590, 'mal_croppe': 29649591, 'Teint_Dans_La_Masse': 29649592, 'Carton_brun': 29649593, 'cartonnette': 29649594, 'flou': 29649595, 'plastique': 29649596, 'environnement': 29649597, 'autre_refus': 29649598, 'metal': 29649599}]} input_args_next_step : {1400662409: ('0.05164605022987706',), 1400662401: ('0.05164605022987706',), 1400662396: ('0.05164605022987706',), 1400662393: ('0.05164605022987706',), 1400662391: ('0.05164605022987706',), 1400662388: ('0.05164605022987706',), 1400662387: ('0.05164605022987706',), 1400662372: ('0.05164605022987706',), 1400662368: ('0.05164605022987706',), 1400662366: ('0.05164605022987706',), 1400662362: ('0.05164605022987706',), 29649587: ()} output_args : {29649587: [{'Carton_gris': 29649588, 'kraft': 29649589, 'papier': 29649590, 'mal_croppe': 29649591, 'Teint_Dans_La_Masse': 29649592, 'Carton_brun': 29649593, 'cartonnette': 29649594, 'flou': 29649595, 'plastique': 29649596, 'environnement': 29649597, 'autre_refus': 29649598, 'metal': 29649599}]} args : 29649587 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 :12, first value : ('0.05164605022987706',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29649587) 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 (1400662409,1400662401,1400662396,1400662393,1400662391,1400662388,1400662387,1400662372,1400662368,1400662366,1400662362) Found this number of photos: 11 ##### Call download_photos : nb_thread : 5 begin to download photo : 1400662362 begin to download photo : 1400662372 begin to download photo : 1400662391 begin to download photo : 1400662401 download finish for photo 1400662362 begin to download photo : 1400662366 download finish for photo 1400662391 begin to download photo : 1400662393 download finish for photo 1400662401 begin to download photo : 1400662409 download finish for photo 1400662372 begin to download photo : 1400662387 download finish for photo 1400662393 begin to download photo : 1400662396 download finish for photo 1400662387 begin to download photo : 1400662388 download finish for photo 1400662409 download finish for photo 1400662366 begin to download photo : 1400662368 download finish for photo 1400662396 download finish for photo 1400662368 download finish for photo 1400662388 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette296495891766474820/ imagette296495911766474820/ imagette296495941766474820/ imagette296495951766474820/ length of list_filenames : 11 ; length of list_pids : 11 ; length of list_args : 11 results_Auto_P29649587_23-12-2025_08_27_00.pdf 29649589 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=29649589 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette296495891766474820 29649591 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=29649591 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette296495911766474820 29649594 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=29649594 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette296495941766474820 29649595 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=29649595 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette296495951766474820 29649596 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=29649596 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1400662313: '1766474547_1415660_1400662007_4fc2bcc8585fff629b3f4dd73bc5be08_rle_crop_4078954794_0.png', 1400662314: '1766474547_1415660_1400661970_9afd4890b7b6f4fe2f10815ce3ed1e48_rle_crop_4078954804_0.png', 1400662315: '1766474547_1415660_1400661970_9afd4890b7b6f4fe2f10815ce3ed1e48_rle_crop_4078954812_0.png', 1400662316: '1766474547_1415660_1400661934_7dd6048ebb6b485641367d0ddb25bc53_rle_crop_4078954827_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/fcd7f630b00b8c36410e45cff6874d7b_5181846.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/0224d4974eb3730ff40799adf128bd91_27529660.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/c1a838b66e46c5fea1c8c8174addc1b9_17164872.png change filename to text .imagette296495961766474820/ imagette296495961766474820/1766474547_1415660_1400662007_4fc2bcc8585fff629b3f4dd73bc5be08_rle_crop_4078954794_0.png.png imagette296495961766474820/1766474547_1415660_1400661970_9afd4890b7b6f4fe2f10815ce3ed1e48_rle_crop_4078954804_0.png.png imagette296495961766474820/1766474547_1415660_1400661970_9afd4890b7b6f4fe2f10815ce3ed1e48_rle_crop_4078954812_0.png.png imagette296495961766474820/1766474547_1415660_1400661934_7dd6048ebb6b485641367d0ddb25bc53_rle_crop_4078954827_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/fefe015a0e8200802141344dbfe83107_60523889.png imagette296495961766474820 29649598 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=29649598 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1400662339: '1766474586_1418112_1400661778_8bb2bbf039af28a92d77cce77928d96c_rle_crop_4078954965_0.png'} change filename to text .imagette296495981766474820/ imagette296495981766474820/1766474586_1418112_1400661778_8bb2bbf039af28a92d77cce77928d96c_rle_crop_4078954965_0.png.png imagette296495991766474820/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/f94fb3fc2f9bc4ef292ca7e73e39fb9a_92108159.png imagette296495981766474820 29649599 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=29649599 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette296495991766474820 29649588 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=29649588 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1400662340: '1766474586_1418112_1400662040_14c3da23f8ee9933aeb5fa468d665570_rle_crop_4078954932_0.png'} change filename to text .imagette296495881766474821/ imagette296495881766474821/1766474586_1418112_1400662040_14c3da23f8ee9933aeb5fa468d665570_rle_crop_4078954932_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/0f9cc40d933df6224cf664c36926437b_87740842.png imagette296495881766474821 29649592 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=29649592 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1400662305: '1766474547_1415660_1400662007_4fc2bcc8585fff629b3f4dd73bc5be08_rle_crop_4078954796_0.png', 1400662306: '1766474547_1415660_1400661970_9afd4890b7b6f4fe2f10815ce3ed1e48_rle_crop_4078954806_0.png', 1400662307: '1766474547_1415660_1400661934_7dd6048ebb6b485641367d0ddb25bc53_rle_crop_4078954826_0.png', 1400662337: '1766474586_1418112_1400662040_14c3da23f8ee9933aeb5fa468d665570_rle_crop_4078954938_0.png', 1400662338: '1766474586_1418112_1400661778_8bb2bbf039af28a92d77cce77928d96c_rle_crop_4078954966_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/e52001141e24411e9362c44ef12851de_82730179.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/ed5dd4cfb41b9d1e72f392bf9a37c952_89867414.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/e89c97f8b9a7a5bbb689d06e7ccbc758_64763957.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/66f2f6afd681d6c62066e9fbc15e1f07_16307653.png change filename to text .imagette296495921766474821/ imagette296495921766474821/1766474547_1415660_1400661970_9afd4890b7b6f4fe2f10815ce3ed1e48_rle_crop_4078954806_0.png.png imagette296495921766474821/1766474586_1418112_1400662040_14c3da23f8ee9933aeb5fa468d665570_rle_crop_4078954938_0.png.png imagette296495921766474821/1766474547_1415660_1400662007_4fc2bcc8585fff629b3f4dd73bc5be08_rle_crop_4078954796_0.png.png imagette296495921766474821/1766474547_1415660_1400661934_7dd6048ebb6b485641367d0ddb25bc53_rle_crop_4078954826_0.png.png imagette296495921766474821/1766474586_1418112_1400661778_8bb2bbf039af28a92d77cce77928d96c_rle_crop_4078954966_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/fc85060a0060d18dfa96e91a7f8402a1_97857998.png imagette296495921766474821 29649593 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=29649593 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1400662308: '1766474547_1415660_1400662007_4fc2bcc8585fff629b3f4dd73bc5be08_rle_crop_4078954791_0.png', 1400662309: '1766474547_1415660_1400662007_4fc2bcc8585fff629b3f4dd73bc5be08_rle_crop_4078954797_0.png', 1400662310: '1766474547_1415660_1400661970_9afd4890b7b6f4fe2f10815ce3ed1e48_rle_crop_4078954809_0.png', 1400662311: '1766474547_1415660_1400661970_9afd4890b7b6f4fe2f10815ce3ed1e48_rle_crop_4078954810_0.png', 1400662312: '1766474547_1415660_1400661934_7dd6048ebb6b485641367d0ddb25bc53_rle_crop_4078954819_0.png', 1400662342: '1766474586_1418112_1400662040_14c3da23f8ee9933aeb5fa468d665570_rle_crop_4078954940_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/ff529789714d3be27b89f13506521dd9_79492650.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/4988b1957d734538d73a4c665cf87e35_73490024.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/62c0437d99dbedd35b6a00e5f302a508_43698077.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/2d98f5b46c6e5a2e91606fca75c78916_21776090.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/c411834789925060b75e810a20a05cab_85467907.png change filename to text .imagette296495931766474821/ imagette296495931766474821/1766474586_1418112_1400662040_14c3da23f8ee9933aeb5fa468d665570_rle_crop_4078954940_0.png.png imagette296495931766474821/1766474547_1415660_1400662007_4fc2bcc8585fff629b3f4dd73bc5be08_rle_crop_4078954797_0.png.png imagette296495931766474821/1766474547_1415660_1400661970_9afd4890b7b6f4fe2f10815ce3ed1e48_rle_crop_4078954809_0.png.png imagette296495931766474821/1766474547_1415660_1400661934_7dd6048ebb6b485641367d0ddb25bc53_rle_crop_4078954819_0.png.png imagette296495931766474821/1766474547_1415660_1400662007_4fc2bcc8585fff629b3f4dd73bc5be08_rle_crop_4078954791_0.png.png imagette296495931766474821/1766474547_1415660_1400661970_9afd4890b7b6f4fe2f10815ce3ed1e48_rle_crop_4078954810_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/f6d1f645a87893cd77a178a2afa81b5d_44439126.png imagette296495931766474821 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=29649587 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/29649600,29649601,29649602,29649603,29649604,29649605,29649606,29649607,29649608,29649609,29649610,29649611?tags=Carton_gris,kraft,papier,mal_croppe,Teint_Dans_La_Masse,Carton_brun,cartonnette,flou,plastique,environnement,autre_refus,metal your option no_mail is active, we will not send the real mail to your client args[1400662409] : ('0.05164605022987706',) no score found for photo 1400662409 We are sending mail with results at report@fotonower.com args[1400662401] : ('0.05164605022987706',) no score found for photo 1400662401 We are sending mail with results at report@fotonower.com args[1400662396] : ('0.05164605022987706',) no score found for photo 1400662396 We are sending mail with results at report@fotonower.com args[1400662393] : ('0.05164605022987706',) no score found for photo 1400662393 We are sending mail with results at report@fotonower.com args[1400662391] : ('0.05164605022987706',) no score found for photo 1400662391 We are sending mail with results at report@fotonower.com args[1400662388] : ('0.05164605022987706',) no score found for photo 1400662388 We are sending mail with results at report@fotonower.com args[1400662387] : ('0.05164605022987706',) no score found for photo 1400662387 We are sending mail with results at report@fotonower.com args[1400662372] : ('0.05164605022987706',) no score found for photo 1400662372 We are sending mail with results at report@fotonower.com args[1400662368] : ('0.05164605022987706',) no score found for photo 1400662368 We are sending mail with results at report@fotonower.com args[1400662366] : ('0.05164605022987706',) no score found for photo 1400662366 We are sending mail with results at report@fotonower.com args[1400662362] : ('0.05164605022987706',) no score found for photo 1400662362 We are sending mail with results at report@fotonower.com refus_total : 0.05164605022987706 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=29649587 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_P29649587_23-12-2025_08_27_00.pdf results_Auto_P29649587_23-12-2025_08_27_00.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29649587_23-12-2025_08_27_00.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','29649587','results_Auto_P29649587_23-12-2025_08_27_00.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29649587_23-12-2025_08_27_00.pdf','pdf','','0.15','0.05164605022987706') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29649587]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1400662409, 1400662401, 1400662396, 1400662393, 1400662391, 1400662388, 1400662387, 1400662372, 1400662368, 1400662366, 1400662362] map_info['map_portfolio_photo'] : {29649587: [1400662409, 1400662401, 1400662396, 1400662393, 1400662391, 1400662388, 1400662387, 1400662372, 1400662368, 1400662366, 1400662362, 1400662326, 1400662323, 1400662320, 1400662318, 1400662289, 1400662278, 1400662270, 1400662259, 1400662256, 1400662254, 1400662251, 1400662249, 1400662247, 1400662040, 1400662007, 1400661970, 1400661934, 1400661781, 1400661778]} final : False mtd_id 4302 list_pids : [1400662409, 1400662401, 1400662396, 1400662393, 1400662391, 1400662388, 1400662387, 1400662372, 1400662368, 1400662366, 1400662362] 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, '4262665') ('4302', '29649587', '1400662409', None, None, None, None, None, '4262665') ('4302', None, None, None, None, None, None, None, '4262665') ('4302', '29649587', '1400662401', None, None, None, None, None, '4262665') ('4302', None, None, None, None, None, None, None, '4262665') ('4302', '29649587', '1400662396', None, None, None, None, None, '4262665') ('4302', None, None, None, None, None, None, None, '4262665') ('4302', '29649587', '1400662393', None, None, None, None, None, '4262665') ('4302', None, None, None, None, None, None, None, '4262665') ('4302', '29649587', '1400662391', None, None, None, None, None, '4262665') ('4302', None, None, None, None, None, None, None, '4262665') ('4302', '29649587', '1400662388', None, None, None, None, None, '4262665') ('4302', None, None, None, None, None, None, None, '4262665') ('4302', '29649587', '1400662387', None, None, None, None, None, '4262665') ('4302', None, None, None, None, None, None, None, '4262665') ('4302', '29649587', '1400662372', None, None, None, None, None, '4262665') ('4302', None, None, None, None, None, None, None, '4262665') ('4302', '29649587', '1400662368', None, None, None, None, None, '4262665') ('4302', None, None, None, None, None, None, None, '4262665') ('4302', '29649587', '1400662366', None, None, None, None, None, '4262665') ('4302', None, None, None, None, None, None, None, '4262665') ('4302', '29649587', '1400662362', None, None, None, None, None, '4262665') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 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', '29649587', '1400662409', None, None, None, None, None, '4262665'), ('4302', '29649587', '1400662401', None, None, None, None, None, '4262665'), ('4302', '29649587', '1400662396', None, None, None, None, None, '4262665'), ('4302', '29649587', '1400662393', None, None, None, None, None, '4262665'), ('4302', '29649587', '1400662391', None, None, None, None, None, '4262665'), ('4302', '29649587', '1400662388', None, None, None, None, None, '4262665'), ('4302', '29649587', '1400662387', None, None, None, None, None, '4262665'), ('4302', '29649587', '1400662372', None, None, None, None, None, '4262665'), ('4302', '29649587', '1400662368', None, None, None, None, None, '4262665'), ('4302', '29649587', '1400662366', None, None, None, None, None, '4262665'), ('4302', '29649587', '1400662362', None, None, None, None, None, '4262665')] time used for this insertion : 0.01594400405883789 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.150083541870117 time spend to save output : 0.01620793342590332 total time spend for step 4 : 3.1662914752960205 step5:split_time_score Tue Dec 23 08:27:03 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 : ['29649587'] 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 : [('29649587',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29649587) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1400662401: {'path': 'temp/1766474819_3972527_1400662401_dd6df48b35c8bea2167366501de4370f.jpg', 'extension': 'jpg'}, 1400662409: {'path': 'temp/1766474819_3972527_1400662409_be947a600b1c1d0ac57f7be5a5a6e479.jpg', 'extension': 'jpg'}, 1400662391: {'path': 'temp/1766474819_3972527_1400662391_06fb6c04c835c0527f9d0dde3bed0d6e.jpg', 'extension': 'jpg'}, 1400662393: {'path': 'temp/1766474819_3972527_1400662393_7c9b788a3a4caa0066281a2a722f28f5.jpg', 'extension': 'jpg'}, 1400662396: {'path': 'temp/1766474819_3972527_1400662396_d927f8cbd0e92170e4f2c9e2bc79ace7.jpg', 'extension': 'jpg'}, 1400662362: {'path': 'temp/1766474819_3972527_1400662362_72bc4e7bdeef7268553fbdb06579c580.jpg', 'extension': 'jpg'}, 1400662366: {'path': 'temp/1766474819_3972527_1400662366_cf290b07ce6df82c4f0d01cdcc19fd1f.jpg', 'extension': 'jpg'}, 1400662368: {'path': 'temp/1766474819_3972527_1400662368_bd61d467371bb28e65c52b867b430235.jpg', 'extension': 'jpg'}, 1400662372: {'path': 'temp/1766474819_3972527_1400662372_ddfc60c91511ede341401c68d226fe86.jpg', 'extension': 'jpg'}, 1400662387: {'path': 'temp/1766474819_3972527_1400662387_c6d87e3fb57c6de8c46e36263405d7f7.jpg', 'extension': 'jpg'}, 1400662388: {'path': 'temp/1766474819_3972527_1400662388_774616a317ada0229954b826b390fd13.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 = 29649587; (('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 = 29649587 group by h (('08', 30),) 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=29649587 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 (29649587) 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 (29649587) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 23122025 29649587 Nombre de photos uploadées : 30 / 23040 (0%) 23122025 29649587 Nombre de photos taguées (types de déchets): 0 / 30 (0%) 23122025 29649587 Nombre de photos taguées (volume) : 0 / 30 (0%) [{'photo_id': 1400661781, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/2da6e1eaf2fee1f48431c463fa2ad9a6.jpg', 'username': None, 'uploaded_at': 1766474347, 'text': 'image_23122025_08_18_04_010135m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1400661778, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/8bb2bbf039af28a92d77cce77928d96c.jpg', 'username': None, 'uploaded_at': 1766474347, 'text': 'image_23122025_08_18_24_010135m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1400662040, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/14c3da23f8ee9933aeb5fa468d665570.jpg', 'username': None, 'uploaded_at': 1766474407, 'text': 'image_23122025_08_18_53_010137m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1400662270, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/d1af5df81d5b25aa0a287c286b5d265c.jpg', 'username': None, 'uploaded_at': 1766474507, 'text': 'image_23122025_08_18_53_10137.jpg'}] 0 [] elapsed_time : load_data_split_time_score 2.86102294921875e-06 elapsed_time : order_list_meta_photo_and_scores 1.049041748046875e-05 ?????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0012004375457763672 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 29649587, '2025-12-23' ) 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-23' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2776859,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.24826765060424805 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= 2776859 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2776859, 'dashboard_run_id': 2785554, 'mtr_portfolio_id': 29636316, 'dashboard_result_id': 18649232, '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_P29636316_23-12-2025_06_10_04.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29636321, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29636322, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29636323, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29636324, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29636325, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29636326, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29636327, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29636328, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29636329, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29636330, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29636331, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29636332, 'pht': 3726}}"}, {'dashboat_entry_day': 2776859, 'dashboard_run_id': 2785554, 'mtr_portfolio_id': 29636749, 'dashboard_result_id': 18649233, '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_P29636749_23-12-2025_06_10_31.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29636751, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29636752, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29636753, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29636754, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29636755, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29636756, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29636757, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29636758, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29636759, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29636760, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29636761, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29636762, 'pht': 3726}}"}, {'dashboat_entry_day': 2776859, 'dashboard_run_id': 2785554, 'mtr_portfolio_id': 29637002, 'dashboard_result_id': 18649234, '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_P29637002_23-12-2025_06_11_12.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29637006, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29637007, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29637008, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29637009, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29637010, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29637011, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29637012, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29637013, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29637014, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29637015, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29637016, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29637017, 'pht': 3726}}"}, {'dashboat_entry_day': 2776859, 'dashboard_run_id': 2785554, 'mtr_portfolio_id': 29637369, 'dashboard_result_id': 18649235, '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_P29637369_23-12-2025_06_11_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29637374, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29637375, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29637376, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29637377, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29637378, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29637379, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29637380, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29637381, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29637382, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29637383, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29637384, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29637385, 'pht': 3726}}"}, {'dashboat_entry_day': 2776859, 'dashboard_run_id': 2785554, 'mtr_portfolio_id': 29638070, 'dashboard_result_id': 18649236, '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_P29638070_23-12-2025_06_12_03.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29638072, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29638073, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29638074, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29638075, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29638076, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29638077, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29638078, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29638079, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29638080, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29638081, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29638082, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29638083, 'pht': 3726}}"}, {'dashboat_entry_day': 2776859, 'dashboard_run_id': 2785554, 'mtr_portfolio_id': 29638385, 'dashboard_result_id': 18649237, '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_P29638385_23-12-2025_06_12_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29638390, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29638391, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29638392, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29638393, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29638394, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29638395, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29638396, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29638397, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29638398, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29638399, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29638400, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29638401, 'pht': 3726}}"}, {'dashboat_entry_day': 2776859, 'dashboard_run_id': 2785554, 'mtr_portfolio_id': 29638771, 'dashboard_result_id': 18649238, '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_P29638771_23-12-2025_06_13_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29638796, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29638797, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29638798, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29638799, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29638800, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29638801, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29638802, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29638803, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29638804, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29638805, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29638806, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29638807, 'pht': 3726}}"}, {'dashboat_entry_day': 2776859, 'dashboard_run_id': 2785554, 'mtr_portfolio_id': 29639188, 'dashboard_result_id': 18649239, '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_P29639188_23-12-2025_06_14_03.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29639196, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29639197, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29639198, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29639199, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29639200, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29639201, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29639202, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29639203, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29639204, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29639205, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29639206, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29639207, 'pht': 3726}}"}, {'dashboat_entry_day': 2776859, 'dashboard_run_id': 2785554, 'mtr_portfolio_id': 29639703, 'dashboard_result_id': 18649240, '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_P29639703_23-12-2025_06_14_33.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29639712, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29639713, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29639714, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29639715, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29639716, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29639717, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29639718, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29639719, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29639720, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29639721, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29639722, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29639723, 'pht': 3726}}"}, {'dashboat_entry_day': 2776859, 'dashboard_run_id': 2785554, 'mtr_portfolio_id': 29640097, 'dashboard_result_id': 18649241, '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_P29640097_23-12-2025_06_15_33.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29640123, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29640124, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29640125, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29640126, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29640127, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29640128, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29640129, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29640130, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29640131, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29640132, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29640133, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29640134, 'pht': 3726}}"}, {'dashboat_entry_day': 2776859, 'dashboard_run_id': 2785554, 'mtr_portfolio_id': 29640520, 'dashboard_result_id': 18649242, '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_P29640520_23-12-2025_06_15_42.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29640552, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29640553, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29640554, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29640555, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29640556, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29640557, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29640558, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29640559, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29640560, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29640561, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29640562, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29640563, 'pht': 3726}}"}, {'dashboat_entry_day': 2776859, 'dashboard_run_id': 2785554, 'mtr_portfolio_id': 29641030, 'dashboard_result_id': 18649243, '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_P29641030_23-12-2025_06_16_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29641037, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29641038, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29641039, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29641040, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29641041, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29641043, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29641044, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29641045, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29641046, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29641047, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29641048, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29641049, 'pht': 3726}}"}, {'dashboat_entry_day': 2776859, 'dashboard_run_id': 2785554, 'mtr_portfolio_id': 29641457, 'dashboard_result_id': 18649244, '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_P29641457_23-12-2025_06_16_13.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29641464, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29641465, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29641466, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29641467, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29641468, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29641469, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29641470, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29641471, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29641472, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29641473, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29641474, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29641475, 'pht': 3726}}"}, {'dashboat_entry_day': 2776859, 'dashboard_run_id': 2785554, 'mtr_portfolio_id': 29641822, 'dashboard_result_id': 18649245, '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_P29641822_23-12-2025_06_16_33.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29641848, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29641849, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29641850, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29641851, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29641852, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29641853, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29641854, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29641855, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29641856, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29641857, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29641858, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29641859, 'pht': 3726}}"}, {'dashboat_entry_day': 2776859, 'dashboard_run_id': 2785554, 'mtr_portfolio_id': 29642134, 'dashboard_result_id': 18649246, '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_P29642134_23-12-2025_06_17_32.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29642187, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29642188, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29642189, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29642190, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29642191, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29642192, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29642193, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29642194, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29642195, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29642196, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29642197, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29642198, 'pht': 3726}}"}, {'dashboat_entry_day': 2776859, 'dashboard_run_id': 2785554, 'mtr_portfolio_id': 29643214, 'dashboard_result_id': 18649247, '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_P29643214_23-12-2025_06_18_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29643215, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29643216, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29643217, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29643218, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29643219, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29643220, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29643221, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29643222, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29643223, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29643224, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29643225, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29643226, 'pht': 3726}}"}, {'dashboat_entry_day': 2776859, 'dashboard_run_id': 2785554, 'mtr_portfolio_id': 29643562, 'dashboard_result_id': 18649248, '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_P29643562_23-12-2025_06_18_35.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29643577, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29643578, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29643579, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29643580, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29643581, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29643582, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29643583, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29643584, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29643585, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29643586, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29643587, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29643588, 'pht': 3726}}"}, {'dashboat_entry_day': 2776859, 'dashboard_run_id': 2785554, 'mtr_portfolio_id': 29643930, 'dashboard_result_id': 18649249, '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_P29643930_23-12-2025_05_49_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29643934, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29643935, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29643936, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29643937, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29643938, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29643939, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29643940, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29643941, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29643942, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29643943, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29643944, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29643945, 'pht': 3726}}"}, {'dashboat_entry_day': 2776859, 'dashboard_run_id': 2785554, 'mtr_portfolio_id': 29644377, 'dashboard_result_id': 18649250, '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_P29644377_23-12-2025_06_05_33.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29644382, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29644383, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29644384, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29644385, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29644386, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29644387, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29644388, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29644389, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29644390, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29644391, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29644392, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29644393, 'pht': 3726}}"}, {'dashboat_entry_day': 2776859, 'dashboard_run_id': 2785554, 'mtr_portfolio_id': 29644726, 'dashboard_result_id': 18649251, '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_P29644726_23-12-2025_06_18_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29644730, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29644731, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29644732, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29644733, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29644734, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29644735, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29644736, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29644737, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29644738, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29644739, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29644740, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29644741, 'pht': 3726}}"}, {'dashboat_entry_day': 2776859, 'dashboard_run_id': 2785554, 'mtr_portfolio_id': 29645305, 'dashboard_result_id': 18649252, '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_P29645305_23-12-2025_06_33_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29645313, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29645314, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29645315, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29645316, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29645317, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29645318, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29645319, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29645320, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29645321, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29645322, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29645323, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29645324, 'pht': 3726}}"}, {'dashboat_entry_day': 2776859, 'dashboard_run_id': 2785554, 'mtr_portfolio_id': 29645753, 'dashboard_result_id': 18649253, '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_P29645753_23-12-2025_06_48_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29645761, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29645762, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29645763, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29645764, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29645765, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29645766, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29645767, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29645768, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29645769, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29645770, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29645771, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29645772, 'pht': 3726}}"}, {'dashboat_entry_day': 2776859, 'dashboard_run_id': 2785554, 'mtr_portfolio_id': 29646216, 'dashboard_result_id': 18649254, '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_P29646216_23-12-2025_07_05_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29646248, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29646249, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29646250, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29646251, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29646252, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29646253, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29646254, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29646255, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29646256, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29646257, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29646258, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29646259, 'pht': 3726}}"}, {'dashboat_entry_day': 2776859, 'dashboard_run_id': 2785554, 'mtr_portfolio_id': 29646665, 'dashboard_result_id': 18649255, '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_P29646665_23-12-2025_07_17_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29646672, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29646673, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29646674, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29646675, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29646676, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29646677, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29646678, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29646679, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29646680, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29646681, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29646682, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29646683, 'pht': 3726}}"}, {'dashboat_entry_day': 2776859, 'dashboard_run_id': 2785554, 'mtr_portfolio_id': 29647197, 'dashboard_result_id': 18649256, '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_P29647197_23-12-2025_07_35_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29647252, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29647253, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29647254, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29647255, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29647256, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29647257, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29647258, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29647259, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29647260, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29647261, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29647262, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29647263, 'pht': 3726}}"}, {'dashboat_entry_day': 2776859, 'dashboard_run_id': 2785554, 'mtr_portfolio_id': 29647945, 'dashboard_result_id': 18649257, '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_P29647945_23-12-2025_07_49_30.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29647946, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29647947, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29647948, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29647949, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29647950, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29647951, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29647952, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29647953, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29647954, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29647955, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29647956, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29647957, 'pht': 3726}}"}, {'dashboat_entry_day': 2776859, 'dashboard_run_id': 2785554, 'mtr_portfolio_id': 29648452, 'dashboard_result_id': 18649258, '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_P29648452_23-12-2025_08_03_30.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29648474, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29648475, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29648476, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29648477, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29648478, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29648479, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29648480, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29648481, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29648482, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29648483, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29648484, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29648485, 'pht': 3726}}"}, {'dashboat_entry_day': 2776859, 'dashboard_run_id': 2785554, 'mtr_portfolio_id': 29648806, 'dashboard_result_id': 18649259, '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_P29648806_23-12-2025_08_22_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29648808, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29648809, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29648810, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29648811, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29648812, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29648813, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29648814, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29648815, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29648816, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29648817, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29648818, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29648819, 'pht': 3726}}"}, {'dashboat_entry_day': 2776859, 'dashboard_run_id': 2785554, 'mtr_portfolio_id': 29649587, 'dashboard_result_id': 18649260, '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_P29649587_23-12-2025_08_24_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29649588, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29649589, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29649590, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29649591, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29649592, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29649593, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29649594, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29649595, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29649596, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29649597, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29649598, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29649599, '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 = 29636316 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': 4261825, 'mtr_portfolio_id': 29636316, 'created_at': datetime.datetime(2025, 12, 23, 6, 10, 1), 'result': '0.03940876924268868', 'result_long': None, 'result_double': None}] Qualite : 0.03940876924268868 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29636316 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29636316_23-12-2025_06_10_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29636316 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_P29636316_23-12-2025_06_10_04.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29636321, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29636322, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29636323, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29636324, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29636325, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29636326, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29636327, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29636328, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29636329, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29636330, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29636331, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29636332, 'pht': 3726}}" where mtr_portfolio_id = 29636316 and dashboard_run_id = 2785554 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`=29636316 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18649232, 0.03940876924268868, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29636316_23-12-2025_06_10_04.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29636321, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29636322, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29636323, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29636324, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29636325, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29636326, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29636327, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29636328, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29636329, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29636330, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29636331, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29636332, '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 = 29636749 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': 4261826, 'mtr_portfolio_id': 29636749, 'created_at': datetime.datetime(2025, 12, 23, 6, 10, 29), 'result': '0.16902849484634944', 'result_long': None, 'result_double': None}] Qualite : 0.16902849484634944 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29636749 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29636749_23-12-2025_06_10_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29636749 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_P29636749_23-12-2025_06_10_31.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29636751, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29636752, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29636753, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29636754, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29636755, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29636756, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29636757, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29636758, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29636759, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29636760, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29636761, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29636762, 'pht': 3726}}" where mtr_portfolio_id = 29636749 and dashboard_run_id = 2785554 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`=29636749 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18649233, 0.16902849484634944, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29636749_23-12-2025_06_10_31.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29636751, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29636752, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29636753, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29636754, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29636755, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29636756, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29636757, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29636758, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29636759, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29636760, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29636761, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29636762, '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 = 29637002 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': 4261827, 'mtr_portfolio_id': 29637002, 'created_at': datetime.datetime(2025, 12, 23, 6, 11, 9), 'result': '0.06047722273103851', 'result_long': None, 'result_double': None}] Qualite : 0.06047722273103851 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29637002 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29637002_23-12-2025_06_11_12.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29637002 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_P29637002_23-12-2025_06_11_12.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29637006, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29637007, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29637008, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29637009, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29637010, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29637011, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29637012, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29637013, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29637014, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29637015, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29637016, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29637017, 'pht': 3726}}" where mtr_portfolio_id = 29637002 and dashboard_run_id = 2785554 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`=29637002 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18649234, 0.06047722273103851, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29637002_23-12-2025_06_11_12.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29637006, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29637007, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29637008, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29637009, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29637010, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29637011, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29637012, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29637013, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29637014, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29637015, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29637016, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29637017, '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 = 29637369 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': 4261828, 'mtr_portfolio_id': 29637369, 'created_at': datetime.datetime(2025, 12, 23, 6, 11, 29), 'result': '0.057042701013973615', 'result_long': None, 'result_double': None}] Qualite : 0.057042701013973615 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29637369 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29637369_23-12-2025_06_11_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29637369 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_P29637369_23-12-2025_06_11_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29637374, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29637375, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29637376, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29637377, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29637378, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29637379, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29637380, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29637381, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29637382, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29637383, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29637384, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29637385, 'pht': 3726}}" where mtr_portfolio_id = 29637369 and dashboard_run_id = 2785554 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`=29637369 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18649235, 0.057042701013973615, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29637369_23-12-2025_06_11_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29637374, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29637375, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29637376, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29637377, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29637378, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29637379, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29637380, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29637381, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29637382, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29637383, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29637384, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29637385, '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 = 29638070 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': 4261829, 'mtr_portfolio_id': 29638070, 'created_at': datetime.datetime(2025, 12, 23, 6, 12), 'result': '0.03987673048739972', 'result_long': None, 'result_double': None}] Qualite : 0.03987673048739972 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29638070 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29638070_23-12-2025_06_12_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29638070 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_P29638070_23-12-2025_06_12_03.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29638072, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29638073, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29638074, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29638075, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29638076, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29638077, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29638078, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29638079, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29638080, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29638081, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29638082, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29638083, 'pht': 3726}}" where mtr_portfolio_id = 29638070 and dashboard_run_id = 2785554 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`=29638070 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18649236, 0.03987673048739972, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29638070_23-12-2025_06_12_03.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29638072, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29638073, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29638074, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29638075, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29638076, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29638077, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29638078, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29638079, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29638080, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29638081, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29638082, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29638083, '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 = 29638385 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': 4261830, 'mtr_portfolio_id': 29638385, 'created_at': datetime.datetime(2025, 12, 23, 6, 12, 27), 'result': '0.04077658368513079', 'result_long': None, 'result_double': None}] Qualite : 0.04077658368513079 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29638385 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29638385_23-12-2025_06_12_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29638385 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_P29638385_23-12-2025_06_12_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29638390, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29638391, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29638392, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29638393, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29638394, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29638395, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29638396, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29638397, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29638398, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29638399, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29638400, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29638401, 'pht': 3726}}" where mtr_portfolio_id = 29638385 and dashboard_run_id = 2785554 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`=29638385 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18649237, 0.04077658368513079, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29638385_23-12-2025_06_12_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29638390, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29638391, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29638392, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29638393, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29638394, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29638395, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29638396, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29638397, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29638398, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29638399, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29638400, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29638401, '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 = 29638771 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': 4261831, 'mtr_portfolio_id': 29638771, 'created_at': datetime.datetime(2025, 12, 23, 6, 13, 28), 'result': '0.056661082471385', 'result_long': None, 'result_double': None}] Qualite : 0.056661082471385 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29638771 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29638771_23-12-2025_06_13_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29638771 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_P29638771_23-12-2025_06_13_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29638796, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29638797, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29638798, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29638799, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29638800, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29638801, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29638802, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29638803, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29638804, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29638805, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29638806, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29638807, 'pht': 3726}}" where mtr_portfolio_id = 29638771 and dashboard_run_id = 2785554 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`=29638771 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18649238, 0.056661082471385, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29638771_23-12-2025_06_13_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29638796, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29638797, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29638798, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29638799, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29638800, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29638801, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29638802, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29638803, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29638804, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29638805, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29638806, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29638807, '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 = 29639188 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': 4261832, 'mtr_portfolio_id': 29639188, 'created_at': datetime.datetime(2025, 12, 23, 6, 14), 'result': '0.05022872528762333', 'result_long': None, 'result_double': None}] Qualite : 0.05022872528762333 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29639188 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29639188_23-12-2025_06_14_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29639188 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_P29639188_23-12-2025_06_14_03.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29639196, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29639197, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29639198, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29639199, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29639200, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29639201, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29639202, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29639203, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29639204, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29639205, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29639206, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29639207, 'pht': 3726}}" where mtr_portfolio_id = 29639188 and dashboard_run_id = 2785554 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`=29639188 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18649239, 0.05022872528762333, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29639188_23-12-2025_06_14_03.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29639196, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29639197, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29639198, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29639199, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29639200, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29639201, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29639202, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29639203, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29639204, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29639205, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29639206, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29639207, '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 = 29639703 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': 4261833, 'mtr_portfolio_id': 29639703, 'created_at': datetime.datetime(2025, 12, 23, 6, 14, 30), 'result': '0.046713944844588226', 'result_long': None, 'result_double': None}] Qualite : 0.046713944844588226 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29639703 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29639703_23-12-2025_06_14_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29639703 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_P29639703_23-12-2025_06_14_33.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29639712, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29639713, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29639714, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29639715, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29639716, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29639717, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29639718, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29639719, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29639720, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29639721, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29639722, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29639723, 'pht': 3726}}" where mtr_portfolio_id = 29639703 and dashboard_run_id = 2785554 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`=29639703 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18649240, 0.046713944844588226, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29639703_23-12-2025_06_14_33.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29639712, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29639713, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29639714, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29639715, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29639716, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29639717, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29639718, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29639719, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29639720, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29639721, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29639722, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29639723, '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 = 29640097 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': 4261834, 'mtr_portfolio_id': 29640097, 'created_at': datetime.datetime(2025, 12, 23, 6, 15, 30), 'result': '0.03675939625086917', 'result_long': None, 'result_double': None}] Qualite : 0.03675939625086917 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29640097 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29640097_23-12-2025_06_15_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29640097 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_P29640097_23-12-2025_06_15_33.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29640123, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29640124, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29640125, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29640126, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29640127, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29640128, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29640129, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29640130, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29640131, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29640132, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29640133, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29640134, 'pht': 3726}}" where mtr_portfolio_id = 29640097 and dashboard_run_id = 2785554 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`=29640097 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18649241, 0.03675939625086917, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29640097_23-12-2025_06_15_33.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29640123, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29640124, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29640125, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29640126, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29640127, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29640128, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29640129, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29640130, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29640131, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29640132, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29640133, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29640134, '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 = 29640520 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': 4261835, 'mtr_portfolio_id': 29640520, 'created_at': datetime.datetime(2025, 12, 23, 6, 15, 39), 'result': '0.06299501049786141', 'result_long': None, 'result_double': None}] Qualite : 0.06299501049786141 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29640520 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29640520_23-12-2025_06_15_42.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29640520 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_P29640520_23-12-2025_06_15_42.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29640552, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29640553, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29640554, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29640555, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29640556, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29640557, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29640558, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29640559, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29640560, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29640561, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29640562, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29640563, 'pht': 3726}}" where mtr_portfolio_id = 29640520 and dashboard_run_id = 2785554 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`=29640520 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18649242, 0.06299501049786141, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29640520_23-12-2025_06_15_42.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29640552, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29640553, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29640554, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29640555, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29640556, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29640557, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29640558, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29640559, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29640560, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29640561, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29640562, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29640563, '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 = 29641030 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': 4261836, 'mtr_portfolio_id': 29641030, 'created_at': datetime.datetime(2025, 12, 23, 6, 15, 58), 'result': '0.0583930712361426', 'result_long': None, 'result_double': None}] Qualite : 0.0583930712361426 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29641030 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29641030_23-12-2025_06_16_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29641030 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_P29641030_23-12-2025_06_16_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29641037, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29641038, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29641039, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29641040, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29641041, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29641043, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29641044, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29641045, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29641046, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29641047, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29641048, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29641049, 'pht': 3726}}" where mtr_portfolio_id = 29641030 and dashboard_run_id = 2785554 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`=29641030 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18649243, 0.0583930712361426, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29641030_23-12-2025_06_16_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29641037, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29641038, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29641039, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29641040, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29641041, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29641043, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29641044, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29641045, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29641046, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29641047, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29641048, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29641049, '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 = 29641457 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': 4261837, 'mtr_portfolio_id': 29641457, 'created_at': datetime.datetime(2025, 12, 23, 6, 16, 10), 'result': '0.04179461171972966', 'result_long': None, 'result_double': None}] Qualite : 0.04179461171972966 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29641457 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29641457_23-12-2025_06_16_13.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29641457 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_P29641457_23-12-2025_06_16_13.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29641464, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29641465, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29641466, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29641467, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29641468, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29641469, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29641470, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29641471, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29641472, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29641473, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29641474, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29641475, 'pht': 3726}}" where mtr_portfolio_id = 29641457 and dashboard_run_id = 2785554 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`=29641457 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18649244, 0.04179461171972966, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29641457_23-12-2025_06_16_13.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29641464, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29641465, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29641466, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29641467, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29641468, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29641469, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29641470, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29641471, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29641472, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29641473, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29641474, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29641475, '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 = 29641822 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': 4261838, 'mtr_portfolio_id': 29641822, 'created_at': datetime.datetime(2025, 12, 23, 6, 16, 30), 'result': '0.041627689957212666', 'result_long': None, 'result_double': None}] Qualite : 0.041627689957212666 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29641822 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29641822_23-12-2025_06_16_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29641822 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_P29641822_23-12-2025_06_16_33.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29641848, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29641849, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29641850, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29641851, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29641852, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29641853, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29641854, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29641855, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29641856, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29641857, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29641858, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29641859, 'pht': 3726}}" where mtr_portfolio_id = 29641822 and dashboard_run_id = 2785554 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`=29641822 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18649245, 0.041627689957212666, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29641822_23-12-2025_06_16_33.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29641848, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29641849, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29641850, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29641851, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29641852, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29641853, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29641854, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29641855, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29641856, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29641857, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29641858, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29641859, '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 = 29642134 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': 4261839, 'mtr_portfolio_id': 29642134, 'created_at': datetime.datetime(2025, 12, 23, 6, 17, 29), 'result': '0.05594789448702286', 'result_long': None, 'result_double': None}] Qualite : 0.05594789448702286 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29642134 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29642134_23-12-2025_06_17_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29642134 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_P29642134_23-12-2025_06_17_32.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29642187, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29642188, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29642189, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29642190, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29642191, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29642192, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29642193, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29642194, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29642195, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29642196, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29642197, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29642198, 'pht': 3726}}" where mtr_portfolio_id = 29642134 and dashboard_run_id = 2785554 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`=29642134 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18649246, 0.05594789448702286, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29642134_23-12-2025_06_17_32.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29642187, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29642188, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29642189, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29642190, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29642191, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29642192, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29642193, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29642194, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29642195, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29642196, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29642197, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29642198, '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 = 29643214 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': 4261841, 'mtr_portfolio_id': 29643214, 'created_at': datetime.datetime(2025, 12, 23, 6, 17, 57), 'result': '0.04925766423598088', 'result_long': None, 'result_double': None}] Qualite : 0.04925766423598088 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29643214 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29643214_23-12-2025_06_18_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29643214 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_P29643214_23-12-2025_06_18_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29643215, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29643216, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29643217, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29643218, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29643219, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29643220, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29643221, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29643222, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29643223, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29643224, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29643225, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29643226, 'pht': 3726}}" where mtr_portfolio_id = 29643214 and dashboard_run_id = 2785554 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`=29643214 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18649247, 0.04925766423598088, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29643214_23-12-2025_06_18_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29643215, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29643216, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29643217, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29643218, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29643219, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29643220, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29643221, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29643222, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29643223, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29643224, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29643225, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29643226, '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 = 29643562 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': 4261842, 'mtr_portfolio_id': 29643562, 'created_at': datetime.datetime(2025, 12, 23, 6, 18, 31), 'result': '0.04532272203748461', 'result_long': None, 'result_double': None}] Qualite : 0.04532272203748461 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29643562 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29643562_23-12-2025_06_18_35.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29643562 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_P29643562_23-12-2025_06_18_35.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29643577, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29643578, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29643579, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29643580, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29643581, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29643582, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29643583, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29643584, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29643585, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29643586, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29643587, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29643588, 'pht': 3726}}" where mtr_portfolio_id = 29643562 and dashboard_run_id = 2785554 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`=29643562 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18649248, 0.04532272203748461, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29643562_23-12-2025_06_18_35.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29643577, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29643578, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29643579, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29643580, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29643581, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29643582, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29643583, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29643584, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29643585, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29643586, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29643587, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29643588, '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 = 29643930 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': 4261756, 'mtr_portfolio_id': 29643930, 'created_at': datetime.datetime(2025, 12, 23, 5, 49), 'result': '0.0496121970637117', 'result_long': None, 'result_double': None}] Qualite : 0.0496121970637117 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29643930 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29643930_23-12-2025_05_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29643930 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_P29643930_23-12-2025_05_49_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29643934, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29643935, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29643936, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29643937, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29643938, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29643939, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29643940, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29643941, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29643942, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29643943, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29643944, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29643945, 'pht': 3726}}" where mtr_portfolio_id = 29643930 and dashboard_run_id = 2785554 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`=29643930 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18649249, 0.0496121970637117, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29643930_23-12-2025_05_49_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29643934, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29643935, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29643936, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29643937, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29643938, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29643939, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29643940, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29643941, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29643942, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29643943, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29643944, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29643945, '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 = 29644377 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': 4261936, 'mtr_portfolio_id': 29644377, 'created_at': datetime.datetime(2025, 12, 23, 6, 5, 33), 'result': '0.054760300202230376', 'result_long': None, 'result_double': None}] Qualite : 0.054760300202230376 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29644377 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29644377_23-12-2025_06_05_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29644377 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_P29644377_23-12-2025_06_05_33.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29644382, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29644383, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29644384, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29644385, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29644386, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29644387, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29644388, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29644389, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29644390, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29644391, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29644392, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29644393, 'pht': 3726}}" where mtr_portfolio_id = 29644377 and dashboard_run_id = 2785554 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`=29644377 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18649250, 0.054760300202230376, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29644377_23-12-2025_06_05_33.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29644382, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29644383, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29644384, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29644385, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29644386, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29644387, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29644388, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29644389, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29644390, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29644391, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29644392, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29644393, '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 = 29644726 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': 4262007, 'mtr_portfolio_id': 29644726, 'created_at': datetime.datetime(2025, 12, 23, 6, 18, 59), 'result': '0.04745574769060109', 'result_long': None, 'result_double': None}] Qualite : 0.04745574769060109 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29644726 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29644726_23-12-2025_06_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29644726 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_P29644726_23-12-2025_06_18_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29644730, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29644731, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29644732, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29644733, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29644734, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29644735, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29644736, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29644737, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29644738, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29644739, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29644740, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29644741, 'pht': 3726}}" where mtr_portfolio_id = 29644726 and dashboard_run_id = 2785554 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`=29644726 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18649251, 0.04745574769060109, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29644726_23-12-2025_06_18_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29644730, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29644731, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29644732, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29644733, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29644734, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29644735, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29644736, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29644737, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29644738, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29644739, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29644740, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29644741, '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 = 29645305 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': 4262077, 'mtr_portfolio_id': 29645305, 'created_at': datetime.datetime(2025, 12, 23, 6, 32, 59), 'result': '0.0436536935248561', 'result_long': None, 'result_double': None}] Qualite : 0.0436536935248561 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29645305 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29645305_23-12-2025_06_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29645305 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_P29645305_23-12-2025_06_33_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29645313, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29645314, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29645315, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29645316, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29645317, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29645318, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29645319, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29645320, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29645321, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29645322, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29645323, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29645324, 'pht': 3726}}" where mtr_portfolio_id = 29645305 and dashboard_run_id = 2785554 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`=29645305 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18649252, 0.0436536935248561, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29645305_23-12-2025_06_33_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29645313, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29645314, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29645315, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29645316, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29645317, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29645318, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29645319, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29645320, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29645321, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29645322, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29645323, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29645324, '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 = 29645753 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': 4262151, 'mtr_portfolio_id': 29645753, 'created_at': datetime.datetime(2025, 12, 23, 6, 48, 59), 'result': '0.04859650096961727', 'result_long': None, 'result_double': None}] Qualite : 0.04859650096961727 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29645753 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29645753_23-12-2025_06_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29645753 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_P29645753_23-12-2025_06_48_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29645761, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29645762, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29645763, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29645764, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29645765, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29645766, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29645767, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29645768, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29645769, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29645770, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29645771, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29645772, 'pht': 3726}}" where mtr_portfolio_id = 29645753 and dashboard_run_id = 2785554 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`=29645753 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18649253, 0.04859650096961727, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29645753_23-12-2025_06_48_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29645761, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29645762, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29645763, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29645764, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29645765, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29645766, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29645767, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29645768, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29645769, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29645770, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29645771, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29645772, '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 = 29646216 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': 4262217, 'mtr_portfolio_id': 29646216, 'created_at': datetime.datetime(2025, 12, 23, 7, 4, 59), 'result': '0.06393157974755656', 'result_long': None, 'result_double': None}] Qualite : 0.06393157974755656 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29646216 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29646216_23-12-2025_07_05_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29646216 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_P29646216_23-12-2025_07_05_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29646248, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29646249, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29646250, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29646251, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29646252, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29646253, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29646254, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29646255, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29646256, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29646257, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29646258, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29646259, 'pht': 3726}}" where mtr_portfolio_id = 29646216 and dashboard_run_id = 2785554 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`=29646216 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18649254, 0.06393157974755656, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29646216_23-12-2025_07_05_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29646248, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29646249, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29646250, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29646251, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29646252, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29646253, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29646254, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29646255, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29646256, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29646257, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29646258, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29646259, '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 = 29646665 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': 4262288, 'mtr_portfolio_id': 29646665, 'created_at': datetime.datetime(2025, 12, 23, 7, 17, 58), 'result': '0.040704952401575206', 'result_long': None, 'result_double': None}] Qualite : 0.040704952401575206 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29646665 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29646665_23-12-2025_07_17_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29646665 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_P29646665_23-12-2025_07_17_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29646672, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29646673, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29646674, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29646675, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29646676, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29646677, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29646678, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29646679, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29646680, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29646681, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29646682, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29646683, 'pht': 3726}}" where mtr_portfolio_id = 29646665 and dashboard_run_id = 2785554 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`=29646665 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18649255, 0.040704952401575206, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29646665_23-12-2025_07_17_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29646672, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29646673, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29646674, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29646675, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29646676, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29646677, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29646678, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29646679, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29646680, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29646681, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29646682, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29646683, '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 = 29647197 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': 4262351, 'mtr_portfolio_id': 29647197, 'created_at': datetime.datetime(2025, 12, 23, 7, 35, 57), 'result': '0.06002413737127621', 'result_long': None, 'result_double': None}] Qualite : 0.06002413737127621 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29647197 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29647197_23-12-2025_07_35_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29647197 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_P29647197_23-12-2025_07_35_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29647252, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29647253, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29647254, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29647255, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29647256, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29647257, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29647258, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29647259, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29647260, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29647261, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29647262, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29647263, 'pht': 3726}}" where mtr_portfolio_id = 29647197 and dashboard_run_id = 2785554 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`=29647197 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18649256, 0.06002413737127621, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29647197_23-12-2025_07_35_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29647252, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29647253, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29647254, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29647255, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29647256, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29647257, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29647258, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29647259, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29647260, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29647261, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29647262, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29647263, '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 = 29647945 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': 4262431, 'mtr_portfolio_id': 29647945, 'created_at': datetime.datetime(2025, 12, 23, 7, 49, 29), 'result': '0.051001304173479665', 'result_long': None, 'result_double': None}] Qualite : 0.051001304173479665 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29647945 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29647945_23-12-2025_07_49_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29647945 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_P29647945_23-12-2025_07_49_30.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29647946, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29647947, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29647948, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29647949, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29647950, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29647951, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29647952, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29647953, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29647954, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29647955, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29647956, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29647957, 'pht': 3726}}" where mtr_portfolio_id = 29647945 and dashboard_run_id = 2785554 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`=29647945 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18649257, 0.051001304173479665, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29647945_23-12-2025_07_49_30.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29647946, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29647947, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29647948, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29647949, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29647950, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29647951, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29647952, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29647953, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29647954, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29647955, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29647956, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29647957, '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 = 29648452 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': 4262515, 'mtr_portfolio_id': 29648452, 'created_at': datetime.datetime(2025, 12, 23, 8, 3, 29), 'result': '0.03960136937719556', 'result_long': None, 'result_double': None}] Qualite : 0.03960136937719556 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29648452 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29648452_23-12-2025_08_03_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29648452 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_P29648452_23-12-2025_08_03_30.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29648474, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29648475, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29648476, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29648477, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29648478, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29648479, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29648480, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29648481, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29648482, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29648483, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29648484, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29648485, 'pht': 3726}}" where mtr_portfolio_id = 29648452 and dashboard_run_id = 2785554 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`=29648452 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18649258, 0.03960136937719556, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29648452_23-12-2025_08_03_30.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29648474, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29648475, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29648476, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29648477, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29648478, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29648479, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29648480, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29648481, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29648482, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29648483, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29648484, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29648485, '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 = 29648806 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': 4262579, 'mtr_portfolio_id': 29648806, 'created_at': datetime.datetime(2025, 12, 23, 8, 22), 'result': '0.04333380181185619', 'result_long': None, 'result_double': None}] Qualite : 0.04333380181185619 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29648806 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29648806_23-12-2025_08_22_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29648806 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_P29648806_23-12-2025_08_22_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29648808, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29648809, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29648810, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29648811, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29648812, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29648813, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29648814, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29648815, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29648816, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29648817, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29648818, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29648819, 'pht': 3726}}" where mtr_portfolio_id = 29648806 and dashboard_run_id = 2785554 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`=29648806 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18649259, 0.04333380181185619, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29648806_23-12-2025_08_22_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29648808, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29648809, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29648810, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29648811, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29648812, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29648813, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29648814, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29648815, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29648816, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29648817, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29648818, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29648819, '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 = 29649587 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': 4262665, 'mtr_portfolio_id': 29649587, 'created_at': datetime.datetime(2025, 12, 23, 8, 26, 59), 'result': '0.05164605022987706', 'result_long': None, 'result_double': None}] Qualite : 0.05164605022987706 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29649587 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29649587_23-12-2025_08_27_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29649587 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_P29649587_23-12-2025_08_27_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29649588, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29649589, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29649590, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29649591, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29649592, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29649593, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29649594, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29649595, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29649596, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29649597, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29649598, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29649599, 'pht': 3726}}" where mtr_portfolio_id = 29649587 and dashboard_run_id = 2785554 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`=29649587 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18649260, 0.05164605022987706, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29649587_23-12-2025_08_27_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29649588, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29649589, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29649590, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29649591, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29649592, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29649593, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29649594, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29649595, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29649596, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29649597, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29649598, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29649599, '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 (29636316,29636749,29637002,29637369,29638070,29638385,29638771,29639188,29639703,29640097,29640520,29641030,29641457,29641822,29642134,29643214,29643562,29643930,29644377,29644726,29645305,29645753,29646216,29646665,29647197,29647945,29648452,29648806,29649587) result : ((1400619724,), (1400619761,), (1400619795,), (1400619831,), (1400620155,), (1400620158,), (1400620162,), (1400620784,), (1400620848,), (1400620936,), (1400620977,), (1400621034,), (1400621529,), (1400621566,), (1400621601,), (1400621636,), (1400621861,), (1400621863,), (1400621865,), (1400621868,), (1400621872,), (1400621875,), (1400621941,), (1400621976,), (1400622114,), (1400622141,), (1400622147,), (1400622251,), (1400622252,), (1400622253,), (1400622255,), (1400622259,), (1400622277,), (1400622278,), (1400622279,), (1400622280,), (1400622296,), (1400622298,), (1400622428,), (1400622430,), (1400622432,), (1400622437,), (1400622471,), (1400622495,), (1400622678,), (1400622679,), (1400622682,), (1400622714,), (1400622732,), (1400622737,), (1400622771,), (1400622774,), (1400623012,), (1400623007,), (1400623010,), (1400623033,), (1400623035,), (1400623053,), (1400623054,), (1400623217,), (1400623220,), (1400623223,), (1400623243,), (1400623246,), (1400623247,), (1400623249,), (1400623265,), (1400623267,), (1400623268,), (1400623270,), (1400623273,), (1400623310,), (1400623313,), (1400623339,), (1400623341,), (1400623344,), (1400623335,), (1400623337,), (1400623338,), (1400623362,), (1400623364,), (1400623365,), (1400623382,), (1400623384,), (1400623386,), (1400623388,), (1400623392,), (1400623395,), (1400623411,), (1400623413,), (1400623414,), (1400623428,), (1400623454,), (1400623455,), (1400623456,), (1400623458,), (1400623472,), (1400623474,), (1400623476,), (1400623494,), (1400623495,), (1400623496,), (1400623497,), (1400623500,), (1400623513,), (1400623514,), (1400623535,), (1400623536,), (1400623557,), (1400623559,), (1400623561,), (1400623565,), (1400623568,), (1400623570,), (1400623576,), (1400623579,), (1400623583,), (1400623584,), (1400623586,), (1400623588,), (1400623601,), (1400623604,), (1400623606,), (1400623609,), (1400623612,), (1400623620,), (1400623622,), (1400623623,), (1400623629,), (1400623632,), (1400623640,), (1400623643,), (1400623644,), (1400623650,), (1400623652,), (1400623655,), (1400623688,), (1400623686,), (1400623702,), (1400623703,), (1400623704,), (1400623706,), (1400623730,), (1400623731,), (1400623732,), (1400623734,), (1400623737,), (1400623754,), (1400623756,), (1400623758,), (1400623760,), (1400623779,), (1400623797,), (1400623799,), (1400623800,), (1400623801,), (1400623803,), (1400623804,), (1400623821,), (1400623822,), (1400623823,), (1400623825,), (1400623838,), (1400623839,), (1400623840,), (1400623842,), (1400623865,), (1400623867,), (1400623870,), (1400623871,), (1400623889,), (1400623891,), (1400623892,), (1400623893,), (1400623910,), (1400623911,), (1400623912,), (1400623929,), (1400623931,), (1400623934,), (1400623936,), (1400623955,), (1400623958,), (1400623959,), (1400623982,), (1400623986,), (1400623990,), (1400623995,), (1400623999,), (1400624341,), (1400624377,), (1400624410,), (1400624431,), (1400624434,), (1400624437,), (1400627807,), (1400627824,), (1400627825,), (1400627826,), (1400627844,), (1400627846,), (1400627848,), (1400627865,), (1400627867,), (1400627868,), (1400627869,), (1400627872,), (1400627887,), (1400627888,), (1400627889,), (1400627890,), (1400627895,), (1400627917,), (1400627918,), (1400627919,), (1400627941,), (1400627943,), (1400627945,), (1400627949,), (1400627952,), (1400627954,), (1400627974,), (1400627978,), (1400627979,), (1400627980,), (1400627983,), (1400627986,), (1400627998,), (1400627999,), (1400628021,), (1400628023,), (1400628025,), (1400628027,), (1400628043,), (1400628044,), (1400628045,), (1400628046,), (1400628073,), (1400628074,), (1400628075,), (1400628091,), (1400628097,), (1400628099,), (1400628103,), (1400628106,), (1400628129,), (1400628122,), (1400628124,), (1400628125,), (1400628126,), (1400628143,), (1400628144,), (1400628183,), (1400628184,), (1400628185,), (1400628208,), (1400628209,), (1400628210,), (1400628212,), (1400628239,), (1400628241,), (1400628263,), (1400628264,), (1400628265,), (1400628268,), (1400628271,), (1400628275,), (1400628289,), (1400628290,), (1400628291,), (1400628307,), (1400628309,), (1400628311,), (1400628312,), (1400628337,), (1400628338,), (1400628339,), (1400628340,), (1400628359,), (1400628362,), (1400628393,), (1400628396,), (1400628398,), (1400628400,), (1400628404,), (1400628418,), (1400628420,), (1400628421,), (1400628454,), (1400628457,), (1400628497,), (1400628501,), (1400628504,), (1400628509,), (1400628513,), (1400628685,), (1400628719,), (1400628755,), (1400628985,), (1400629050,), (1400629124,), (1400629186,), (1400629255,), (1400628574,), (1400628610,), (1400628644,), (1400629551,), (1400629649,), (1400629717,), (1400629789,), (1400629870,), (1400630303,), (1400630307,), (1400630310,), (1400630317,), (1400630319,), (1400630332,), (1400630453,), (1400630480,), (1400630485,), (1400630487,), (1400630634,), (1400630636,), (1400630692,), (1400630700,), (1400630759,), (1400630768,), (1400630866,), (1400630869,), (1400631220,), (1400631274,), (1400631308,), (1400631837,), (1400631840,), (1400631843,), (1400631846,), (1400631991,), (1400631994,), (1400632005,), (1400632039,), (1400632154,), (1400632155,), (1400632157,), (1400632159,), (1400632175,), (1400632177,), (1400632180,), (1400632183,), (1400632186,), (1400632189,), (1400632204,), (1400632207,), (1400632210,), (1400632212,), (1400632215,), (1400633129,), (1400633132,), (1400633134,), (1400633163,), (1400633165,), (1400633166,), (1400633168,), (1400633616,), (1400633640,), (1400633672,), (1400633695,), (1400633704,), (1400633707,), (1400633733,), (1400633756,), (1400633758,), (1400633760,), (1400633764,), (1400633797,), (1400633792,), (1400633795,), (1400633813,), (1400633815,), (1400633817,), (1400633820,), (1400633824,), (1400633839,), (1400633842,), (1400633845,), (1400633866,), (1400633868,), (1400633870,), (1400633872,), (1400633874,), (1400633904,), (1400633907,), (1400633909,), (1400633912,), (1400633916,), (1400633919,), (1400633932,), (1400633935,), (1400633938,), (1400633941,), (1400633944,), (1400633946,), (1400633949,), (1400633951,), (1400633953,), (1400633956,), (1400633962,), (1400633964,), (1400633966,), (1400633986,), (1400633988,), (1400633993,), (1400633997,), (1400634018,), (1400634021,), (1400634024,), (1400634027,), (1400634037,), (1400634040,), (1400634062,), (1400634064,), (1400634066,), (1400634068,), (1400634090,), (1400634092,), (1400634094,), (1400634097,), (1400634125,), (1400634128,), (1400634131,), (1400634133,), (1400634137,), (1400634156,), (1400634158,), (1400634189,), (1400634192,), (1400634194,), (1400634232,), (1400634235,), (1400634244,), (1400634246,), (1400634222,), (1400634224,), (1400634226,), (1400634230,), (1400634252,), (1400634255,), (1400634256,), (1400634257,), (1400634259,), (1400634273,), (1400634276,), (1400634280,), (1400634284,), (1400634287,), (1400634299,), (1400634300,), (1400634326,), (1400634328,), (1400634330,), (1400634332,), (1400634336,), (1400634349,), (1400634351,), (1400634352,), (1400634417,), (1400634438,), (1400634440,), (1400634441,), (1400634461,), (1400634462,), (1400634463,), (1400634484,), (1400634486,), (1400634488,), (1400634492,), (1400634495,), (1400634498,), (1400634522,), (1400634542,), (1400634544,), (1400634545,), (1400634546,), (1400634549,), (1400634566,), (1400634567,), (1400634568,), (1400634593,), (1400634612,), (1400634616,), (1400634619,), (1400634648,), (1400634638,), (1400634642,), (1400634645,), (1400634670,), (1400634673,), (1400634675,), (1400634696,), (1400634698,), (1400634700,), (1400634703,), (1400634713,), (1400634722,), (1400634724,), (1400634727,), (1400634744,), (1400634747,), (1400634766,), (1400634767,), (1400634769,), (1400634772,), (1400634775,), (1400634796,), (1400634799,), (1400634802,), (1400634805,), (1400634809,), (1400634812,), (1400634822,), (1400634825,), (1400634827,), (1400634828,), (1400634830,), (1400634846,), (1400634848,), (1400634850,), (1400634874,), (1400634879,), (1400634883,), (1400634903,), (1400634905,), (1400634907,), (1400634909,), (1400634922,), (1400634924,), (1400634926,), (1400634929,), (1400634933,), (1400634937,), (1400634945,), (1400634953,), (1400634955,), (1400634981,), (1400634985,), (1400635001,), (1400635039,), (1400635075,), (1400635457,), (1400635488,), (1400635491,), (1400635539,), (1400635543,), (1400635547,), (1400635550,), (1400635552,), (1400635554,), (1400635566,), (1400635414,), (1400635416,), (1400635425,), (1400635559,), (1400635562,), (1400635845,), (1400635877,), (1400635912,), (1400636289,), (1400636328,), (1400636358,), (1400636388,), (1400636422,), (1400636767,), (1400636801,), (1400636833,), (1400636868,), (1400636901,), (1400636928,), (1400636930,), (1400636932,), (1400636935,), (1400636938,), (1400636940,), (1400636956,), (1400637077,), (1400637110,), (1400637460,), (1400637470,), (1400637473,), (1400637640,), (1400637641,), (1400637643,), (1400637645,), (1400637647,), (1400637672,), (1400637674,), (1400637676,), (1400637678,), (1400637681,), (1400637696,), (1400637699,), (1400637702,), (1400637707,), (1400637710,), (1400637713,), (1400637720,), (1400637721,), (1400637724,), (1400637739,), (1400637740,), (1400637742,), (1400637744,), (1400637746,), (1400637749,), (1400637759,), (1400637761,), (1400637803,), (1400637810,), (1400637812,), (1400637830,), (1400637833,), (1400637836,), (1400637837,), (1400637906,), (1400637888,), (1400637897,), (1400637900,), (1400637902,), (1400637920,), (1400637922,), (1400637924,), (1400637926,), (1400637943,), (1400637966,), (1400637967,), (1400637989,), (1400637991,), (1400637993,), (1400638014,), (1400638016,), (1400638018,), (1400638022,), (1400638026,), (1400638053,), (1400638054,), (1400638055,), (1400638057,), (1400638080,), (1400638081,), (1400638116,), (1400638118,), (1400638119,), (1400638135,), (1400638137,), (1400638139,), (1400638163,), (1400638166,), (1400638168,), (1400638171,), (1400638173,), (1400638187,), (1400638190,), (1400638192,), (1400638194,), (1400638197,), (1400638224,), (1400638226,), (1400638245,), (1400638247,), (1400638249,), (1400638251,), (1400638273,), (1400638276,), (1400638280,), (1400638320,), (1400638322,), (1400638340,), (1400638342,), (1400638312,), (1400638313,), (1400638315,), (1400638317,), (1400638358,), (1400638360,), (1400638361,), (1400638363,), (1400638382,), (1400638406,), (1400638408,), (1400638410,), (1400638463,), (1400638465,), (1400638467,), (1400638469,), (1400638473,), (1400638476,), (1400638480,), (1400638482,), (1400638488,), (1400638490,), (1400638491,), (1400638492,), (1400638524,), (1400638526,), (1400638527,), (1400638528,), (1400638544,), (1400638545,), (1400638547,), (1400638551,), (1400638555,), (1400638568,), (1400638570,), (1400638571,), (1400638574,), (1400638578,), (1400638590,), (1400638592,), (1400638593,), (1400638594,), (1400638621,), (1400638622,), (1400638623,), (1400638625,), (1400638640,), (1400638642,), (1400638644,), (1400638646,), (1400638682,), (1400638684,), (1400638685,), (1400638700,), (1400638703,), (1400638704,), (1400638706,), (1400638738,), (1400638736,), (1400638737,), (1400638753,), (1400638755,), (1400638757,), (1400638759,), (1400638762,), (1400638766,), (1400638783,), (1400638785,), (1400638786,), (1400638787,), (1400638790,), (1400638805,), (1400638806,), (1400638829,), (1400638831,), (1400638833,), (1400638835,), (1400638839,), (1400638863,), (1400638864,), (1400638865,), (1400638868,), (1400638871,), (1400638876,), (1400638886,), (1400638888,), (1400638893,), (1400638895,), (1400638896,), (1400638898,), (1400638901,), (1400638912,), (1400638914,), (1400638916,), (1400638936,), (1400638938,), (1400638939,), (1400638940,), (1400638943,), (1400638956,), (1400638958,), (1400638959,), (1400638961,), (1400638978,), (1400638980,), (1400638997,), (1400638999,), (1400639001,), (1400639004,), (1400639021,), (1400639024,), (1400639374,), (1400639407,), (1400639448,), (1400639482,), (1400639518,), (1400639554,), (1400639791,), (1400639661,), (1400639684,), (1400639719,), (1400639754,), (1400640253,), (1400640304,), (1400640341,), (1400640757,), (1400640791,), (1400640849,), (1400640913,), (1400640999,), (1400641441,), (1400641509,), (1400641575,), (1400641628,), (1400641667,), (1400642140,), (1400642176,), (1400642209,), (1400642242,), (1400642276,), (1400642447,), (1400642448,), (1400642449,), (1400642451,), (1400642455,), (1400642482,), (1400642483,), (1400642496,), (1400642532,), (1400642940,), (1400642978,), (1400642982,), (1400642984,), (1400642998,), (1400643155,), (1400643157,), (1400643158,), (1400643159,), (1400643162,), (1400643164,), (1400643195,), (1400643197,), (1400643198,), (1400643199,), (1400643222,), (1400643223,), (1400643225,), (1400643229,), (1400643233,), (1400643237,), (1400643246,), (1400646839,), (1400646859,), (1400646837,), (1400646858,), (1400646897,), (1400646898,), (1400646917,), (1400646919,), (1400646921,), (1400646950,), (1400646952,), (1400646954,), (1400646955,), (1400646970,), (1400646972,), (1400646974,), (1400646976,), (1400646980,), (1400646983,), (1400646997,), (1400646999,), (1400647000,), (1400647012,), (1400647013,), (1400647014,), (1400647016,), (1400647019,), (1400647022,), (1400647042,), (1400647047,), (1400647049,), (1400647051,), (1400647055,), (1400647065,), (1400647067,), (1400647068,), (1400647069,), (1400647103,), (1400647104,), (1400647106,), (1400647109,), (1400647112,), (1400647115,), (1400647127,), (1400647129,), (1400647133,), (1400647137,), (1400647141,), (1400647148,), (1400647154,), (1400647156,), (1400647163,), (1400647166,), (1400647168,), (1400647170,), (1400647179,), (1400647182,), (1400647185,), (1400647176,), (1400647197,), (1400647225,), (1400647277,), (1400647278,), (1400647279,), (1400647302,), (1400647305,), (1400647306,), (1400647309,), (1400647313,), (1400647316,), (1400647327,), (1400647328,), (1400647329,), (1400647331,), (1400647333,), (1400647341,), (1400647350,), (1400647352,), (1400647355,), (1400647356,), (1400647357,), (1400647359,), (1400647364,), (1400647368,), (1400647370,), (1400647373,), (1400647376,), (1400647387,), (1400647389,), (1400647393,), (1400647397,), (1400647460,), (1400647463,), (1400647468,), (1400647480,), (1400647489,), (1400647492,), (1400647506,), (1400647509,), (1400647512,), (1400647514,), (1400647520,), (1400647522,), (1400647530,), (1400647531,), (1400647538,), (1400647545,), (1400647547,), (1400647549,), (1400647556,), (1400647558,), (1400647561,), (1400647562,), (1400647564,), (1400647567,), (1400647568,), (1400647571,), (1400647573,), (1400647574,), (1400647575,), (1400647577,), (1400647578,), (1400647579,), (1400647581,), (1400647584,), (1400647588,), (1400647592,), (1400647602,), (1400647630,), (1400647633,), (1400647635,), (1400647637,), (1400647652,), (1400647654,), (1400647655,), (1400647656,), (1400647659,), (1400647661,), (1400647678,), (1400647680,), (1400647681,), (1400647683,), (1400647686,), (1400647748,), (1400647752,), (1400647755,), (1400647767,), (1400647772,), (1400647780,), (1400647733,), (1400647735,), (1400647739,), (1400647785,), (1400647787,), (1400647791,), (1400647795,), (1400647799,), (1400647803,), (1400647806,), (1400647807,), (1400647808,), (1400647810,), (1400647814,), (1400647843,), (1400647845,), (1400647847,), (1400647851,), (1400647854,), (1400647857,), (1400647862,), (1400647864,), (1400647866,), (1400647872,), (1400647874,), (1400647876,), (1400647880,), (1400647884,), (1400647886,), (1400647912,), (1400647914,), (1400647916,), (1400647918,), (1400647922,), (1400647938,), (1400647940,), (1400647941,), (1400647942,), (1400647945,), (1400647948,), (1400647982,), (1400647983,), (1400647984,), (1400647986,), (1400647990,), (1400648007,), (1400648010,), (1400648015,), (1400648019,), (1400648022,), (1400648024,), (1400648037,), (1400648039,), (1400648040,), (1400648041,), (1400648057,), (1400648058,), (1400648059,), (1400648061,), (1400648064,), (1400648068,), (1400648100,), (1400648107,), (1400648108,), (1400648111,), (1400648129,), (1400648131,), (1400648133,), (1400648134,), (1400648136,), (1400648164,), (1400648166,), (1400648168,), (1400648171,), (1400648173,), (1400648176,), (1400648181,), (1400648183,), (1400648184,), (1400648186,), (1400648192,), (1400648194,), (1400648196,), (1400648200,), (1400648204,), (1400648255,), (1400648257,), (1400648258,), (1400648260,), (1400648262,), (1400648264,), (1400648240,), (1400648243,), (1400648246,), (1400648250,), (1400648253,), (1400648273,), (1400648274,), (1400648276,), (1400648277,), (1400648284,), (1400648287,), (1400648292,), (1400648293,), (1400648307,), (1400648309,), (1400648310,), (1400648311,), (1400648314,), (1400648329,), (1400648330,), (1400648331,), (1400648333,), (1400648337,), (1400648339,), (1400648360,), (1400648362,), (1400648364,), (1400648366,), (1400648382,), (1400648384,), (1400648388,), (1400648392,), (1400648397,), (1400648401,), (1400648415,), (1400648417,), (1400648418,), (1400648420,), (1400648434,), (1400648438,), (1400648440,), (1400648445,), (1400648456,), (1400648458,), (1400648459,), (1400648461,), (1400648463,), (1400648491,), (1400648492,), (1400648493,), (1400648496,), (1400648499,), (1400648502,), (1400648509,), (1400648511,), (1400648513,), (1400648514,), (1400648515,), (1400648519,), (1400648521,), (1400648525,), (1400648529,), (1400648554,), (1400648556,), (1400648557,), (1400648559,), (1400648564,), (1400648567,), (1400648581,), (1400648582,), (1400648583,), (1400648584,), (1400648603,), (1400648604,), (1400648605,), (1400648607,), (1400648631,), (1400648669,), (1400648902,), (1400648940,), (1400648976,), (1400649013,), (1400649604,), (1400649611,), (1400649647,), (1400649681,), (1400649715,), (1400649753,), (1400649786,), (1400649817,), (1400650294,), (1400650458,), (1400649455,), (1400649494,), (1400649530,), (1400649568,), (1400649974,), (1400650034,), (1400650099,), (1400650163,), (1400650230,), (1400650629,), (1400650668,), (1400650710,), (1400650746,), (1400650755,), (1400650901,), (1400650931,), (1400650963,), (1400650981,), (1400650986,), (1400650988,), (1400651052,), (1400651069,), (1400651081,), (1400651102,), (1400651112,), (1400651115,), (1400651118,), (1400651125,), (1400651133,), (1400651135,), (1400651139,), (1400651141,), (1400651142,), (1400651144,), (1400651148,), (1400651163,), (1400651165,), (1400651166,), (1400651167,), (1400651170,), (1400651194,), (1400651195,), (1400651196,), (1400651226,), (1400651227,), (1400651230,), (1400651232,), (1400651234,), (1400651237,), (1400651263,), (1400651265,), (1400651266,), (1400651267,), (1400651270,), (1400651273,), (1400651290,), (1400651291,), (1400651293,), (1400651296,), (1400651299,), (1400651302,), (1400651318,), (1400651319,), (1400651320,), (1400651328,), (1400651333,), (1400651335,), (1400651338,), (1400651340,), (1400651342,), (1400651344,), (1400651362,), (1400651364,), (1400651365,), (1400651366,), (1400651398,), (1400651399,), (1400651401,), (1400651405,), (1400651409,), (1400651413,), (1400651421,), (1400651422,), (1400651423,), (1400651429,), (1400651431,), (1400651435,), (1400651437,), (1400651440,), (1400651462,), (1400651452,), (1400651454,), (1400651456,), (1400651458,), (1400651487,), (1400651488,), (1400651489,), (1400651490,), (1400651493,), (1400651495,), (1400651519,), (1400651520,), (1400651521,), (1400651533,), (1400651555,), (1400651560,), (1400651562,), (1400651566,), (1400651568,), (1400651586,), (1400651588,), (1400651589,), (1400651590,), (1400651593,), (1400651618,), (1400651621,), (1400651626,), (1400651631,), (1400651636,), (1400651640,), (1400651649,), (1400651650,), (1400651653,), (1400651668,), (1400651670,), (1400651673,), (1400651676,), (1400651680,), (1400651685,), (1400651693,), (1400651695,), (1400651696,), (1400651697,), (1400651700,), (1400651702,), (1400651722,), (1400651723,), (1400651724,), (1400651727,), (1400651730,), (1400651733,), (1400651746,), (1400651748,), (1400651751,), (1400651754,), (1400651757,), (1400651761,), (1400651770,), (1400651771,), (1400651773,), (1400651790,), (1400651792,), (1400651793,), (1400651820,), (1400651825,), (1400651827,), (1400651831,), (1400651836,), (1400651839,), (1400651846,), (1400651857,), (1400651859,), (1400651884,), (1400651887,), (1400651888,), (1400651889,), (1400651892,), (1400651896,), (1400651954,), (1400651967,), (1400651968,), (1400651969,), (1400651971,), (1400651973,), (1400651975,), (1400651939,), (1400651940,), (1400651942,), (1400651946,), (1400651950,), (1400651982,), (1400651984,), (1400651986,), (1400651990,), (1400651995,), (1400652004,), (1400652006,), (1400652007,), (1400652008,), (1400652011,), (1400652014,), (1400652037,), (1400652043,), (1400652045,), (1400652049,), (1400652053,), (1400652056,), (1400652063,), (1400652064,), (1400652065,), (1400652066,), (1400652068,), (1400652080,), (1400652090,), (1400652093,), (1400652095,), (1400652097,), (1400652099,), (1400652120,), (1400652122,), (1400652125,), (1400652127,), (1400652142,), (1400652148,), (1400652150,), (1400652152,), (1400652154,), (1400652157,), (1400652181,), (1400652183,), (1400652185,), (1400652188,), (1400652209,), (1400652212,), (1400652215,), (1400652219,), (1400652223,), (1400652226,), (1400652249,), (1400652252,), (1400652255,), (1400652258,), (1400652275,), (1400652278,), (1400652280,), (1400652282,), (1400652285,), (1400652288,), (1400652319,), (1400652321,), (1400652323,), (1400652325,), (1400652328,), (1400652331,), (1400652350,), (1400652353,), (1400652356,), (1400652361,), (1400652391,), (1400652392,), (1400652395,), (1400652398,), (1400652402,), (1400652405,), (1400652417,), (1400652421,), (1400652424,), (1400652427,), (1400652430,), (1400652433,), (1400652437,), (1400652448,), (1400652456,), (1400652458,), (1400652460,), (1400652464,), (1400652481,), (1400652483,), (1400652485,), (1400652474,), (1400652475,), (1400652479,), (1400652507,), (1400652508,), (1400652511,), (1400652513,), (1400652516,), (1400652518,), (1400652542,), (1400652546,), (1400652548,), (1400652575,), (1400652578,), (1400652579,), (1400652580,), (1400652582,), (1400652607,), (1400652608,), (1400652609,), (1400652611,), (1400652614,), (1400652632,), (1400652634,), (1400652636,), (1400652640,), (1400652642,), (1400652644,), (1400652659,), (1400652662,), (1400652664,), (1400652670,), (1400652672,), (1400652676,), (1400652677,), (1400652679,), (1400652682,), (1400652685,), (1400652694,), (1400652696,), (1400652699,), (1400652704,), (1400652709,), (1400652744,), (1400652746,), (1400652750,), (1400652753,), (1400652756,), (1400652758,), (1400652766,), (1400652768,), (1400652771,), (1400652775,), (1400652777,), (1400652782,), (1400652784,), (1400652789,), (1400652793,), (1400652802,), (1400652803,), (1400652805,), (1400652814,), (1400652824,), (1400652826,), (1400652837,), (1400652839,), (1400652841,), (1400652843,), (1400652856,), (1400652857,), (1400652858,), (1400652860,), (1400652864,), (1400652868,), (1400652898,), (1400652902,), (1400652905,), (1400652909,), (1400652919,), (1400652920,), (1400652921,), (1400652924,), (1400652927,), (1400652940,), (1400652934,), (1400652936,), (1400652938,), (1400653051,), (1400653099,), (1400653134,), (1400653167,), (1400653203,), (1400653240,), (1400653517,), (1400653549,), (1400653584,), (1400653617,), (1400654293,), (1400654445,), (1400654553,), (1400654617,), (1400654689,), (1400654761,), (1400655056,), (1400655119,), (1400655216,), (1400655286,), (1400655288,), (1400655292,), (1400655301,), (1400655334,), (1400655500,), (1400655501,), (1400655502,), (1400655504,), (1400655565,), (1400655568,), (1400655571,), (1400655577,), (1400655580,), (1400655585,), (1400655606,), (1400655608,), (1400655609,), (1400655610,), (1400655630,), (1400655631,), (1400655632,), (1400655634,), (1400655638,), (1400655640,), (1400655677,), (1400655679,), (1400655681,), (1400655684,), (1400655687,), (1400655689,), (1400655697,), (1400655699,), (1400655701,), (1400655713,), (1400655720,), (1400655721,), (1400655723,), (1400655727,), (1400655731,), (1400655733,), (1400655743,), (1400655745,), (1400655747,), (1400655748,), (1400655763,), (1400655764,), (1400655765,), (1400655767,), (1400655770,), (1400655772,), (1400655802,), (1400655804,), (1400655806,), (1400655809,), (1400655811,), (1400655813,), (1400655819,), (1400655821,), (1400655826,), (1400655828,), (1400655830,), (1400655834,), (1400655836,), (1400655840,), (1400655843,), (1400655845,), (1400655869,), (1400655864,), (1400655866,), (1400655867,), (1400655889,), (1400655891,), (1400655894,), (1400655899,), (1400655904,), (1400655963,), (1400655968,), (1400655969,), (1400655971,), (1400655975,), (1400656038,), (1400656156,), (1400656165,), (1400656166,), (1400656224,), (1400656227,), (1400656230,), (1400656234,), (1400656238,), (1400656270,), (1400656278,), (1400656285,), (1400656308,), (1400656311,), (1400656316,), (1400656539,), (1400656540,), (1400656542,), (1400656546,), (1400656550,), (1400656554,), (1400656566,), (1400656567,), (1400656569,), (1400656571,), (1400656573,), (1400656576,), (1400656647,), (1400656649,), (1400656651,), (1400656654,), (1400656659,), (1400656665,), (1400656798,), (1400656832,), (1400656866,), (1400656900,), (1400656935,), (1400656972,), (1400656973,), (1400656974,), (1400656976,), (1400656980,), (1400656983,), (1400656999,), (1400657001,), (1400657002,), (1400657004,), (1400657007,), (1400657023,), (1400657025,), (1400657029,), (1400657031,), (1400657034,), (1400657037,), (1400657053,), (1400657056,), (1400657059,), (1400657062,), (1400657083,), (1400657084,), (1400657085,), (1400657049,), (1400657050,), (1400657090,), (1400657092,), (1400657095,), (1400657098,), (1400657101,), (1400657103,), (1400657107,), (1400657108,), (1400657109,), (1400657111,), (1400657142,), (1400657149,), (1400657151,), (1400657154,), (1400657157,), (1400657160,), (1400657169,), (1400657170,), (1400657172,), (1400657180,), (1400657190,), (1400657193,), (1400657195,), (1400657198,), (1400657200,), (1400657209,), (1400657211,), (1400657212,), (1400657213,), (1400657228,), (1400657235,), (1400657273,), (1400657275,), (1400657276,), (1400657277,), (1400657280,), (1400657339,), (1400657344,), (1400657345,), (1400657347,), (1400657364,), (1400657366,), (1400657368,), (1400657371,), (1400657376,), (1400657380,), (1400657398,), (1400657400,), (1400657402,), (1400657425,), (1400657426,), (1400657427,), (1400657431,), (1400657435,), (1400657440,), (1400657453,), (1400657455,), (1400657456,), (1400657468,), (1400657470,), (1400657475,), (1400657478,), (1400657483,), (1400657485,), (1400657504,), (1400657506,), (1400657543,), (1400657544,), (1400657545,), (1400657548,), (1400657551,), (1400657555,), (1400657562,), (1400657564,), (1400657577,), (1400657578,), (1400657580,), (1400657582,), (1400657586,), (1400657627,), (1400657614,), (1400657620,), (1400657622,), (1400657624,), (1400657641,), (1400657643,), (1400657644,), (1400657645,), (1400657648,), (1400657651,), (1400657674,), (1400657678,), (1400657679,), (1400657681,), (1400657708,), (1400657716,), (1400657722,), (1400657724,), (1400657728,), (1400657732,), (1400657751,), (1400657753,), (1400657754,), (1400657755,), (1400657758,), (1400657786,), (1400657788,), (1400657790,), (1400657794,), (1400657798,), (1400657802,), (1400657815,), (1400657817,), (1400657819,), (1400657821,), (1400657833,), (1400657836,), (1400657841,), (1400657845,), (1400657849,), (1400657852,), (1400657857,), (1400657859,), (1400657862,), (1400657863,), (1400657866,), (1400657904,), (1400657905,), (1400657906,), (1400657908,), (1400657910,), (1400657913,), (1400657927,), (1400657929,), (1400657937,), (1400657940,), (1400657942,), (1400657946,), (1400657948,), (1400657951,), (1400657954,), (1400657987,), (1400657992,), (1400657994,), (1400657997,), (1400658000,), (1400658003,), (1400658018,), (1400658020,), (1400658022,), (1400658052,), (1400658054,), (1400658055,), (1400658056,), (1400658059,), (1400658061,), (1400658088,), (1400658092,), (1400658093,), (1400658094,), (1400658118,), (1400658121,), (1400658127,), (1400658129,), (1400658132,), (1400658135,), (1400658108,), (1400658111,), (1400658113,), (1400658115,), (1400658153,), (1400658154,), (1400658156,), (1400658158,), (1400658161,), (1400658170,), (1400658171,), (1400658172,), (1400658187,), (1400658223,), (1400658260,), (1400658387,), (1400658389,), (1400658391,), (1400658395,), (1400658398,), (1400658401,), (1400658408,), (1400658410,), (1400658425,), (1400658426,), (1400658427,), (1400658430,), (1400658433,), (1400658663,), (1400658689,), (1400658690,), (1400658692,), (1400658695,), (1400658699,), (1400658924,), (1400658928,), (1400658930,), (1400658932,), (1400658953,), (1400658955,), (1400658956,), (1400658976,), (1400658978,), (1400658979,), (1400658981,), (1400658984,), (1400658986,), (1400659003,), (1400659005,), (1400659007,), (1400659009,), (1400659047,), (1400659048,), (1400659051,), (1400659056,), (1400659079,), (1400659114,), (1400659179,), (1400659181,), (1400659568,), (1400660464,), (1400660729,), (1400661783,), (1400661778,), (1400661781,), (1400661934,), (1400661970,), (1400662007,), (1400662040,), (1400662247,), (1400662249,), (1400662251,), (1400662254,), (1400662256,), (1400662259,), (1400662270,), (1400662278,), (1400662289,), (1400662318,), (1400662320,), (1400662323,), (1400662326,), (1400662362,), (1400662366,), (1400662368,), (1400662372,), (1400662387,), (1400662388,), (1400662391,), (1400662393,), (1400662396,), (1400662401,), (1400662409,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'23122025': {'nb_upload': 30, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29649587]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1400662409, 1400662401, 1400662396, 1400662393, 1400662391, 1400662388, 1400662387, 1400662372, 1400662368, 1400662366, 1400662362] map_info['map_portfolio_photo'] : {29649587: [1400662409, 1400662401, 1400662396, 1400662393, 1400662391, 1400662388, 1400662387, 1400662372, 1400662368, 1400662366, 1400662362, 1400662326, 1400662323, 1400662320, 1400662318, 1400662289, 1400662278, 1400662270, 1400662259, 1400662256, 1400662254, 1400662251, 1400662249, 1400662247, 1400662040, 1400662007, 1400661970, 1400661934, 1400661781, 1400661778]} final : True mtd_id 4302 list_pids : [1400662409, 1400662401, 1400662396, 1400662393, 1400662391, 1400662388, 1400662387, 1400662372, 1400662368, 1400662366, 1400662362] Looping around the photos to save general results len do output : 1 /29649587Didn'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, '4262665') ('4302', '29649587', '1400662409', None, None, None, None, None, '4262665') ('4302', None, None, None, None, None, None, None, '4262665') ('4302', '29649587', '1400662401', None, None, None, None, None, '4262665') ('4302', None, None, None, None, None, None, None, '4262665') ('4302', '29649587', '1400662396', None, None, None, None, None, '4262665') ('4302', None, None, None, None, None, None, None, '4262665') ('4302', '29649587', '1400662393', None, None, None, None, None, '4262665') ('4302', None, None, None, None, None, None, None, '4262665') ('4302', '29649587', '1400662391', None, None, None, None, None, '4262665') ('4302', None, None, None, None, None, None, None, '4262665') ('4302', '29649587', '1400662388', None, None, None, None, None, '4262665') ('4302', None, None, None, None, None, None, None, '4262665') ('4302', '29649587', '1400662387', None, None, None, None, None, '4262665') ('4302', None, None, None, None, None, None, None, '4262665') ('4302', '29649587', '1400662372', None, None, None, None, None, '4262665') ('4302', None, None, None, None, None, None, None, '4262665') ('4302', '29649587', '1400662368', None, None, None, None, None, '4262665') ('4302', None, None, None, None, None, None, None, '4262665') ('4302', '29649587', '1400662366', None, None, None, None, None, '4262665') ('4302', None, None, None, None, None, None, None, '4262665') ('4302', '29649587', '1400662362', None, None, None, None, None, '4262665') 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', None, '29649587', 'None', None, None, None, None, '4262665'), ('4302', '29649587', '1400662409', None, None, None, None, None, '4262665'), ('4302', '29649587', '1400662401', None, None, None, None, None, '4262665'), ('4302', '29649587', '1400662396', None, None, None, None, None, '4262665'), ('4302', '29649587', '1400662393', None, None, None, None, None, '4262665'), ('4302', '29649587', '1400662391', None, None, None, None, None, '4262665'), ('4302', '29649587', '1400662388', None, None, None, None, None, '4262665'), ('4302', '29649587', '1400662387', None, None, None, None, None, '4262665'), ('4302', '29649587', '1400662372', None, None, None, None, None, '4262665'), ('4302', '29649587', '1400662368', None, None, None, None, None, '4262665'), ('4302', '29649587', '1400662366', None, None, None, None, None, '4262665'), ('4302', '29649587', '1400662362', None, None, None, None, None, '4262665')] time used for this insertion : 0.01563549041748047 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.031123399734497 time spend to save output : 0.015933513641357422 total time spend for step 5 : 3.0470569133758545 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 (4262665) 2.26user 2.70system 0:11.15elapsed 44%CPU (0avgtext+0avgdata 166660maxresident)k 5424inputs+9168outputs (27major+79892minor)pagefaults 0swaps