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 : 1431951 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 (4240827) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (4240827) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29503062 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['4240827'] with mtr_portfolio_ids : ['29503062'] and first list_photo_ids : [] new path : /proc/1431951/ Name: python3 Umask: 0002 State: R (running) Tgid: 1431951 Ngid: 0 Pid: 1431951 PPid: 1431950 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 1431951 NSpid: 1431951 NSpgid: 1430654 NSsid: 1430654 VmPeak: 1113364 kB VmSize: 1113364 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 104744 kB VmRSS: 104744 kB RssAnon: 66292 kB RssFile: 38452 kB RssShmem: 0 kB VmData: 872092 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130476 kB VmPTE: 612 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: 91 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '1431951', 'Ngid': '0', 'Pid': '1431951', 'PPid': '1431950', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '1431951', 'NSpid': '1431951', 'NSpgid': '1430654', 'NSsid': '1430654', 'VmPeak': '1113364 kB', 'VmSize': '1113364 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '104744 kB', 'VmRSS': '104744 kB', 'RssAnon': '66292 kB', 'RssFile': '38452 kB', 'RssShmem': '0 kB', 'VmData': '872092 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130476 kB', 'VmPTE': '612 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': '91'} ('datou_batch_current', '1431951', '1113364', '0', '1113364', '872092', '104744', b'', 'marlene', '4240827') 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 (29503062) 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 (4240827 ) ) 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 (29503062) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1399801069, 'portfolio_id': 29503062}, {'photo_id': 1399800514, 'portfolio_id': 29503062}, {'photo_id': 1399799423, 'portfolio_id': 29503062}, {'photo_id': 1399798905, 'portfolio_id': 29503062}, {'photo_id': 1399798902, 'portfolio_id': 29503062}, {'photo_id': 1399798899, 'portfolio_id': 29503062}, {'photo_id': 1399798897, 'portfolio_id': 29503062}, {'photo_id': 1399798889, 'portfolio_id': 29503062}, {'photo_id': 1399798879, 'portfolio_id': 29503062}, {'photo_id': 1399798858, 'portfolio_id': 29503062}, {'photo_id': 1399798855, 'portfolio_id': 29503062}, {'photo_id': 1399798854, 'portfolio_id': 29503062}, {'photo_id': 1399798853, 'portfolio_id': 29503062}, {'photo_id': 1399798852, 'portfolio_id': 29503062}, {'photo_id': 1399798851, 'portfolio_id': 29503062}, {'photo_id': 1399798836, 'portfolio_id': 29503062}, {'photo_id': 1399798834, 'portfolio_id': 29503062}, {'photo_id': 1399798832, 'portfolio_id': 29503062}, {'photo_id': 1399798815, 'portfolio_id': 29503062}, {'photo_id': 1399798813, 'portfolio_id': 29503062}, {'photo_id': 1399798810, 'portfolio_id': 29503062}, {'photo_id': 1399798809, 'portfolio_id': 29503062}, {'photo_id': 1399798808, 'portfolio_id': 29503062}, {'photo_id': 1399798807, 'portfolio_id': 29503062}, {'photo_id': 1399798801, 'portfolio_id': 29503062}, {'photo_id': 1399798785, 'portfolio_id': 29503062}, {'photo_id': 1399798783, 'portfolio_id': 29503062}, {'photo_id': 1399798780, 'portfolio_id': 29503062}, {'photo_id': 1399798776, 'portfolio_id': 29503062}, {'photo_id': 1399798774, 'portfolio_id': 29503062}, {'photo_id': 1399798772, 'portfolio_id': 29503062}, {'photo_id': 1399798745, 'portfolio_id': 29503062}, {'photo_id': 1399798744, 'portfolio_id': 29503062}, {'photo_id': 1399798743, 'portfolio_id': 29503062}, {'photo_id': 1399798742, 'portfolio_id': 29503062}, {'photo_id': 1399798723, 'portfolio_id': 29503062}, {'photo_id': 1399798721, 'portfolio_id': 29503062}] map_portfolio_id_photo_id: {29503062: [1399801069, 1399800514, 1399799423, 1399798905, 1399798902, 1399798899, 1399798897, 1399798889, 1399798879, 1399798858, 1399798855, 1399798854, 1399798853, 1399798852, 1399798851, 1399798836, 1399798834, 1399798832, 1399798815, 1399798813, 1399798810, 1399798809, 1399798808, 1399798807, 1399798801, 1399798785, 1399798783, 1399798780, 1399798776, 1399798774, 1399798772, 1399798745, 1399798744, 1399798743, 1399798742, 1399798723, 1399798721]} ##### 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.019120454788208008 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Wed Dec 17 16:06:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29503062) 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 : 29503062 get user id for portfolio 29503062 get sub ptf for main ptf 29503062, type 3726 and hashtags ['plastique', 'autre_refus', 'flou', 'Teint_Dans_La_Masse', 'kraft', 'metal', 'Carton_brun', 'environnement', 'mal_croppe', 'papier', 'Carton_gris', 'cartonnette'] 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`=29503062 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','autre_refus','flou','Teint_Dans_La_Masse','kraft','metal','Carton_brun','environnement','mal_croppe','papier','Carton_gris','cartonnette')) 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`=29503062 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','autre_refus','flou','Teint_Dans_La_Masse','kraft','metal','Carton_brun','environnement','mal_croppe','papier','Carton_gris','cartonnette')) AND mptpi.`min_score`=0.5 To do returned map {'environnement': {'main_port_id': 29503062, 'sub_port_id': 29503065, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20118832, 'last_updated_at': datetime.datetime(2025, 12, 17, 16, 4, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 17, 16, 4, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 17, 15, 52, 57)}, 'Carton_brun': {'main_port_id': 29503062, 'sub_port_id': 29503066, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20118833, 'last_updated_at': datetime.datetime(2025, 12, 17, 16, 4, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 17, 16, 4, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 17, 15, 52, 57)}, 'autre_refus': {'main_port_id': 29503062, 'sub_port_id': 29503067, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20118834, 'last_updated_at': datetime.datetime(2025, 12, 17, 16, 4, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 17, 16, 4, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 17, 15, 52, 57)}, 'Carton_gris': {'main_port_id': 29503062, 'sub_port_id': 29503068, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20118835, 'last_updated_at': datetime.datetime(2025, 12, 17, 16, 4, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 17, 16, 4, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 17, 15, 52, 57)}, 'Teint_Dans_La_Masse': {'main_port_id': 29503062, 'sub_port_id': 29503069, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20118836, 'last_updated_at': datetime.datetime(2025, 12, 17, 16, 4, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 17, 16, 4, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 17, 15, 52, 57)}, 'metal': {'main_port_id': 29503062, 'sub_port_id': 29503070, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20118837, 'last_updated_at': datetime.datetime(2025, 12, 17, 16, 4, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 17, 16, 4, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 17, 15, 52, 57)}, 'papier': {'main_port_id': 29503062, 'sub_port_id': 29503071, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20118838, 'last_updated_at': datetime.datetime(2025, 12, 17, 16, 4, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 17, 16, 4, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 17, 15, 52, 57)}, 'cartonnette': {'main_port_id': 29503062, 'sub_port_id': 29503072, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20118839, 'last_updated_at': datetime.datetime(2025, 12, 17, 16, 4, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 17, 16, 4, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 17, 15, 52, 57)}, 'flou': {'main_port_id': 29503062, 'sub_port_id': 29503073, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20118840, 'last_updated_at': datetime.datetime(2025, 12, 17, 16, 4, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 17, 16, 4, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 17, 15, 52, 57)}, 'mal_croppe': {'main_port_id': 29503062, 'sub_port_id': 29503074, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20118841, 'last_updated_at': datetime.datetime(2025, 12, 17, 16, 4, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 17, 16, 4, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 17, 15, 52, 57)}, 'kraft': {'main_port_id': 29503062, 'sub_port_id': 29503075, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20118842, 'last_updated_at': datetime.datetime(2025, 12, 17, 16, 4, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 17, 16, 4, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 17, 15, 52, 57)}, 'plastique': {'main_port_id': 29503062, 'sub_port_id': 29503076, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20118843, 'last_updated_at': datetime.datetime(2025, 12, 17, 16, 4, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 17, 16, 4, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 17, 15, 52, 57)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29503065 , 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=29503062 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 (29503065) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29503062) result : ((1399798721,), (1399798723,), (1399798742,), (1399798743,), (1399798744,), (1399798745,), (1399798772,), (1399798774,), (1399798776,), (1399798780,), (1399798783,), (1399798785,), (1399798801,), (1399798807,), (1399798808,), (1399798809,), (1399798810,), (1399798813,), (1399798815,), (1399798832,), (1399798834,), (1399798836,), (1399798851,), (1399798852,), (1399798853,), (1399798854,), (1399798855,), (1399798858,), (1399798879,), (1399798889,), (1399798897,), (1399798899,), (1399798902,), (1399798905,), (1399799423,), (1399800514,), (1399801069,)) 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 29503066 , 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=29503062 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 (29503066) result : ((1399798822,), (1399798863,), (1399798890,), (1399799848,), (1399800500,), (1399800501,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29503062) result : ((1399798721,), (1399798723,), (1399798742,), (1399798743,), (1399798744,), (1399798745,), (1399798772,), (1399798774,), (1399798776,), (1399798780,), (1399798783,), (1399798785,), (1399798801,), (1399798807,), (1399798808,), (1399798809,), (1399798810,), (1399798813,), (1399798815,), (1399798832,), (1399798834,), (1399798836,), (1399798851,), (1399798852,), (1399798853,), (1399798854,), (1399798855,), (1399798858,), (1399798879,), (1399798889,), (1399798897,), (1399798899,), (1399798902,), (1399798905,), (1399799423,), (1399800514,), (1399801069,)) 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 29503067 , 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=29503062 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 (29503067) result : ((1399798877,), (1399798878,), (1399799244,), (1399799755,), (1399799756,), (1399800499,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29503062) result : ((1399798721,), (1399798723,), (1399798742,), (1399798743,), (1399798744,), (1399798745,), (1399798772,), (1399798774,), (1399798776,), (1399798780,), (1399798783,), (1399798785,), (1399798801,), (1399798807,), (1399798808,), (1399798809,), (1399798810,), (1399798813,), (1399798815,), (1399798832,), (1399798834,), (1399798836,), (1399798851,), (1399798852,), (1399798853,), (1399798854,), (1399798855,), (1399798858,), (1399798879,), (1399798889,), (1399798897,), (1399798899,), (1399798902,), (1399798905,), (1399799423,), (1399800514,), (1399801069,)) 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 29503068 , 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=29503062 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 (29503068) result : ((1399798862,), (1399798881,), (1399798882,), (1399798883,), (1399798884,), (1399798885,), (1399800495,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29503062) result : ((1399798721,), (1399798723,), (1399798742,), (1399798743,), (1399798744,), (1399798745,), (1399798772,), (1399798774,), (1399798776,), (1399798780,), (1399798783,), (1399798785,), (1399798801,), (1399798807,), (1399798808,), (1399798809,), (1399798810,), (1399798813,), (1399798815,), (1399798832,), (1399798834,), (1399798836,), (1399798851,), (1399798852,), (1399798853,), (1399798854,), (1399798855,), (1399798858,), (1399798879,), (1399798889,), (1399798897,), (1399798899,), (1399798902,), (1399798905,), (1399799423,), (1399800514,), (1399801069,)) 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 29503069 , 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=29503062 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 (29503069) result : ((1399798819,), (1399798860,), (1399798876,), (1399799235,), (1399799747,), (1399799749,), (1399799750,), (1399799751,), (1399799752,), (1399799753,), (1399799754,), (1399799829,), (1399800491,), (1399800492,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29503062) result : ((1399798721,), (1399798723,), (1399798742,), (1399798743,), (1399798744,), (1399798745,), (1399798772,), (1399798774,), (1399798776,), (1399798780,), (1399798783,), (1399798785,), (1399798801,), (1399798807,), (1399798808,), (1399798809,), (1399798810,), (1399798813,), (1399798815,), (1399798832,), (1399798834,), (1399798836,), (1399798851,), (1399798852,), (1399798853,), (1399798854,), (1399798855,), (1399798858,), (1399798879,), (1399798889,), (1399798897,), (1399798899,), (1399798902,), (1399798905,), (1399799423,), (1399800514,), (1399801069,)) 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 29503070 , 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=29503062 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 (29503070) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29503062) result : ((1399798721,), (1399798723,), (1399798742,), (1399798743,), (1399798744,), (1399798745,), (1399798772,), (1399798774,), (1399798776,), (1399798780,), (1399798783,), (1399798785,), (1399798801,), (1399798807,), (1399798808,), (1399798809,), (1399798810,), (1399798813,), (1399798815,), (1399798832,), (1399798834,), (1399798836,), (1399798851,), (1399798852,), (1399798853,), (1399798854,), (1399798855,), (1399798858,), (1399798879,), (1399798889,), (1399798897,), (1399798899,), (1399798902,), (1399798905,), (1399799423,), (1399800514,), (1399801069,)) 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 29503071 , 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=29503062 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 (29503071) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29503062) result : ((1399798721,), (1399798723,), (1399798742,), (1399798743,), (1399798744,), (1399798745,), (1399798772,), (1399798774,), (1399798776,), (1399798780,), (1399798783,), (1399798785,), (1399798801,), (1399798807,), (1399798808,), (1399798809,), (1399798810,), (1399798813,), (1399798815,), (1399798832,), (1399798834,), (1399798836,), (1399798851,), (1399798852,), (1399798853,), (1399798854,), (1399798855,), (1399798858,), (1399798879,), (1399798889,), (1399798897,), (1399798899,), (1399798902,), (1399798905,), (1399799423,), (1399800514,), (1399801069,)) 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 29503072 , 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=29503062 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 (29503072) result : ((1399798821,), (1399798886,), (1399798887,), (1399798888,), (1399799757,), (1399799758,), (1399799838,), (1399800496,), (1399800497,), (1399800498,), (1399800502,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29503062) result : ((1399798721,), (1399798723,), (1399798742,), (1399798743,), (1399798744,), (1399798745,), (1399798772,), (1399798774,), (1399798776,), (1399798780,), (1399798783,), (1399798785,), (1399798801,), (1399798807,), (1399798808,), (1399798809,), (1399798810,), (1399798813,), (1399798815,), (1399798832,), (1399798834,), (1399798836,), (1399798851,), (1399798852,), (1399798853,), (1399798854,), (1399798855,), (1399798858,), (1399798879,), (1399798889,), (1399798897,), (1399798899,), (1399798902,), (1399798905,), (1399799423,), (1399800514,), (1399801069,)) 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 29503073 , 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=29503062 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 (29503073) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29503062) result : ((1399798721,), (1399798723,), (1399798742,), (1399798743,), (1399798744,), (1399798745,), (1399798772,), (1399798774,), (1399798776,), (1399798780,), (1399798783,), (1399798785,), (1399798801,), (1399798807,), (1399798808,), (1399798809,), (1399798810,), (1399798813,), (1399798815,), (1399798832,), (1399798834,), (1399798836,), (1399798851,), (1399798852,), (1399798853,), (1399798854,), (1399798855,), (1399798858,), (1399798879,), (1399798889,), (1399798897,), (1399798899,), (1399798902,), (1399798905,), (1399799423,), (1399800514,), (1399801069,)) 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 29503074 , 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=29503062 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 (29503074) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29503062) result : ((1399798721,), (1399798723,), (1399798742,), (1399798743,), (1399798744,), (1399798745,), (1399798772,), (1399798774,), (1399798776,), (1399798780,), (1399798783,), (1399798785,), (1399798801,), (1399798807,), (1399798808,), (1399798809,), (1399798810,), (1399798813,), (1399798815,), (1399798832,), (1399798834,), (1399798836,), (1399798851,), (1399798852,), (1399798853,), (1399798854,), (1399798855,), (1399798858,), (1399798879,), (1399798889,), (1399798897,), (1399798899,), (1399798902,), (1399798905,), (1399799423,), (1399800514,), (1399801069,)) 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 29503075 , 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=29503062 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 (29503075) result : ((1399799863,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29503062) result : ((1399798721,), (1399798723,), (1399798742,), (1399798743,), (1399798744,), (1399798745,), (1399798772,), (1399798774,), (1399798776,), (1399798780,), (1399798783,), (1399798785,), (1399798801,), (1399798807,), (1399798808,), (1399798809,), (1399798810,), (1399798813,), (1399798815,), (1399798832,), (1399798834,), (1399798836,), (1399798851,), (1399798852,), (1399798853,), (1399798854,), (1399798855,), (1399798858,), (1399798879,), (1399798889,), (1399798897,), (1399798899,), (1399798902,), (1399798905,), (1399799423,), (1399800514,), (1399801069,)) 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 29503076 , 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=29503062 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 (29503076) result : ((1399798824,), (1399798892,), (1399798893,), (1399798894,), (1399798895,), (1399798896,), (1399799760,), (1399799856,), (1399800504,), (1399800505,), (1399800506,), (1399800507,), (1399800508,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29503062) result : ((1399798721,), (1399798723,), (1399798742,), (1399798743,), (1399798744,), (1399798745,), (1399798772,), (1399798774,), (1399798776,), (1399798780,), (1399798783,), (1399798785,), (1399798801,), (1399798807,), (1399798808,), (1399798809,), (1399798810,), (1399798813,), (1399798815,), (1399798832,), (1399798834,), (1399798836,), (1399798851,), (1399798852,), (1399798853,), (1399798854,), (1399798855,), (1399798858,), (1399798879,), (1399798889,), (1399798897,), (1399798899,), (1399798902,), (1399798905,), (1399799423,), (1399800514,), (1399801069,)) 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`=29503062 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','autre_refus','flou','Teint_Dans_La_Masse','kraft','metal','Carton_brun','environnement','mal_croppe','papier','Carton_gris','cartonnette')) 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`=29503062 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','autre_refus','flou','Teint_Dans_La_Masse','kraft','metal','Carton_brun','environnement','mal_croppe','papier','Carton_gris','cartonnette')) AND mptpi.`min_score`=0.5 To do returned map {'environnement': {'main_port_id': 29503062, 'sub_port_id': 29503077, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20118844, 'last_updated_at': datetime.datetime(2025, 12, 17, 15, 52, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 17, 15, 52, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 17, 15, 52, 59)}, 'Carton_brun': {'main_port_id': 29503062, 'sub_port_id': 29503078, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20118845, 'last_updated_at': datetime.datetime(2025, 12, 17, 15, 52, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 17, 15, 52, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 17, 15, 52, 59)}, 'autre_refus': {'main_port_id': 29503062, 'sub_port_id': 29503079, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20118846, 'last_updated_at': datetime.datetime(2025, 12, 17, 15, 52, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 17, 15, 52, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 17, 15, 52, 59)}, 'Carton_gris': {'main_port_id': 29503062, 'sub_port_id': 29503080, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20118847, 'last_updated_at': datetime.datetime(2025, 12, 17, 15, 52, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 17, 15, 52, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 17, 15, 52, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 29503062, 'sub_port_id': 29503081, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20118848, 'last_updated_at': datetime.datetime(2025, 12, 17, 15, 52, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 17, 15, 52, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 17, 15, 52, 59)}, 'metal': {'main_port_id': 29503062, 'sub_port_id': 29503082, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20118849, 'last_updated_at': datetime.datetime(2025, 12, 17, 15, 52, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 17, 15, 52, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 17, 15, 52, 59)}, 'papier': {'main_port_id': 29503062, 'sub_port_id': 29503083, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20118850, 'last_updated_at': datetime.datetime(2025, 12, 17, 15, 52, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 17, 15, 52, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 17, 15, 52, 59)}, 'cartonnette': {'main_port_id': 29503062, 'sub_port_id': 29503084, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20118851, 'last_updated_at': datetime.datetime(2025, 12, 17, 15, 52, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 17, 15, 52, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 17, 15, 52, 59)}, 'flou': {'main_port_id': 29503062, 'sub_port_id': 29503085, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20118852, 'last_updated_at': datetime.datetime(2025, 12, 17, 15, 52, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 17, 15, 52, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 17, 15, 52, 59)}, 'mal_croppe': {'main_port_id': 29503062, 'sub_port_id': 29503086, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20118853, 'last_updated_at': datetime.datetime(2025, 12, 17, 15, 52, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 17, 15, 52, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 17, 15, 52, 59)}, 'kraft': {'main_port_id': 29503062, 'sub_port_id': 29503087, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20118854, 'last_updated_at': datetime.datetime(2025, 12, 17, 15, 52, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 17, 15, 52, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 17, 15, 52, 59)}, 'plastique': {'main_port_id': 29503062, 'sub_port_id': 29503088, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20118855, 'last_updated_at': datetime.datetime(2025, 12, 17, 16, 4, 30), 'last_updated_at_desc': datetime.datetime(2025, 12, 17, 16, 4, 30), 'last_updated_at_asc': datetime.datetime(2025, 12, 17, 15, 52, 59)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29503077,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29503065 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29503078,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29503066 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29503079,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29503067 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29503080,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29503068 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29503081,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29503069 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29503082,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29503070 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29503083,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29503071 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29503084,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29503072 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29503085,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29503073 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29503086,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29503074 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29503087,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29503075 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29503088,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29503076 lien utilise dans velours : https://marlene.fotonower.com/velours/29503077,29503078,29503079,29503080,29503081,29503082,29503083,29503084,29503085,29503086,29503087,29503088?tags=environnement,Carton_brun,autre_refus,Carton_gris,Teint_Dans_La_Masse,metal,papier,cartonnette,flou,mal_croppe,kraft,plastique After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29503062]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1399801069] map_info['map_portfolio_photo'] : {29503062: [1399801069, 1399800514, 1399799423, 1399798905, 1399798902, 1399798899, 1399798897, 1399798889, 1399798879, 1399798858, 1399798855, 1399798854, 1399798853, 1399798852, 1399798851, 1399798836, 1399798834, 1399798832, 1399798815, 1399798813, 1399798810, 1399798809, 1399798808, 1399798807, 1399798801, 1399798785, 1399798783, 1399798780, 1399798776, 1399798774, 1399798772, 1399798745, 1399798744, 1399798743, 1399798742, 1399798723, 1399798721]} final : False mtd_id 4302 list_pids : [1399801069] Looping around the photos to save general results len do output : 1 /29503062. 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, '4240827') ('4302', '29503062', '1399801069', None, None, None, None, None, '4240827') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 2 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, '29503062', "{'environnement': 29503065, 'Carton_brun': 29503066, 'autre_refus': 29503067, 'Carton_gris': 29503068, 'Teint_Dans_La_Masse': 29503069, 'metal': 29503070, 'papier': 29503071, 'cartonnette': 29503072, 'flou': 29503073, 'mal_croppe': 29503074, 'kraft': 29503075, 'plastique': 29503076}", None, None, None, None, '4240827'), ('4302', '29503062', '1399801069', None, None, None, None, None, '4240827')] time used for this insertion : 0.014264106750488281 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.812168836593628 time spend to save output : 0.014492511749267578 total time spend for step 1 : 1.8266613483428955 step2:final Wed Dec 17 16:06: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 (29503062) 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 29503062 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1399798723,1399798721,1399798745,1399798801,1399798744,1399798785,1399798743,1399798783,1399798742,1399798780,1399798776,1399798774,1399798772,1399798815,1399798813,1399798810,1399798809,1399798808,1399798807,1399798836,1399798834,1399798832,1399798858,1399798855,1399798854,1399798853,1399798852,1399798851,1399798905,1399798902,1399798899,1399798897,1399798889,1399798879,1399799423,1399800514,1399801069); 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([29503062]) Inside saveOutput : final : False verbose : True original output for save of step final : {1399801069: ('0.08273750678181571',)} new output for save of step final : {1399801069: ('0.08273750678181571',)} [1399801069] map_info['map_portfolio_photo'] : {29503062: [1399801069, 1399800514, 1399799423, 1399798905, 1399798902, 1399798899, 1399798897, 1399798889, 1399798879, 1399798858, 1399798855, 1399798854, 1399798853, 1399798852, 1399798851, 1399798836, 1399798834, 1399798832, 1399798815, 1399798813, 1399798810, 1399798809, 1399798808, 1399798807, 1399798801, 1399798785, 1399798783, 1399798780, 1399798776, 1399798774, 1399798772, 1399798745, 1399798744, 1399798743, 1399798742, 1399798723, 1399798721]} final : False mtd_id 4302 list_pids : [1399801069] Looping around the photos to save general results len do output : 1 /1399801069.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, '4240827') ('4302', '29503062', '1399801069', None, None, None, None, None, '4240827') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 3 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', '29503062', '1399801069', '0.08273750678181571', None, None, None, None, '4240827')] time used for this insertion : 0.014308452606201172 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.08261728286743164 time spend to save output : 0.014485359191894531 total time spend for step 2 : 0.09710264205932617 step3:velours_tree Wed Dec 17 16:07:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {29503062: [{'environnement': 29503065, 'Carton_brun': 29503066, 'autre_refus': 29503067, 'Carton_gris': 29503068, 'Teint_Dans_La_Masse': 29503069, 'metal': 29503070, 'papier': 29503071, 'cartonnette': 29503072, 'flou': 29503073, 'mal_croppe': 29503074, 'kraft': 29503075, 'plastique': 29503076}]} input_args_next_step : {29503062: ()} output_args : {29503062: [{'environnement': 29503065, 'Carton_brun': 29503066, 'autre_refus': 29503067, 'Carton_gris': 29503068, 'Teint_Dans_La_Masse': 29503069, 'metal': 29503070, 'papier': 29503071, 'cartonnette': 29503072, 'flou': 29503073, 'mal_croppe': 29503074, 'kraft': 29503075, 'plastique': 29503076}]} args : 29503062 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 : ({'environnement': 29503065, 'Carton_brun': 29503066, 'autre_refus': 29503067, 'Carton_gris': 29503068, 'Teint_Dans_La_Masse': 29503069, 'metal': 29503070, 'papier': 29503071, 'cartonnette': 29503072, 'flou': 29503073, 'mal_croppe': 29503074, 'kraft': 29503075, 'plastique': 29503076},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29503062) 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([29503062]) 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.2680788040161133 time spend to save output : 5.078315734863281e-05 total time spend for step 3 : 0.2681295871734619 step4:send_mail_cod Wed Dec 17 16:07:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1399801069: ('0.08273750678181571',)} input_args_next_step : {1399801069: ()} output_args : {1399801069: ('0.08273750678181571',)} args : 1399801069 depend.output_id : 0 complete output_args for input 3 : {29503062: [{'environnement': 29503065, 'Carton_brun': 29503066, 'autre_refus': 29503067, 'Carton_gris': 29503068, 'Teint_Dans_La_Masse': 29503069, 'metal': 29503070, 'papier': 29503071, 'cartonnette': 29503072, 'flou': 29503073, 'mal_croppe': 29503074, 'kraft': 29503075, 'plastique': 29503076}]} input_args_next_step : {1399801069: ('0.08273750678181571',), 29503062: ()} output_args : {29503062: [{'environnement': 29503065, 'Carton_brun': 29503066, 'autre_refus': 29503067, 'Carton_gris': 29503068, 'Teint_Dans_La_Masse': 29503069, 'metal': 29503070, 'papier': 29503071, 'cartonnette': 29503072, 'flou': 29503073, 'mal_croppe': 29503074, 'kraft': 29503075, 'plastique': 29503076}]} args : 29503062 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 :2, first value : ('0.08273750678181571',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29503062) 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 (1399801069) Found this number of photos: 1 ##### Call download_photos : nb_thread : 5 begin to download photo : 1399801069 download finish for photo 1399801069 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 1 ; length of list_pids : 1 ; length of list_args : 1 results_Auto_P29503062_17-12-2025_16_07_00.pdf 29503067 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=29503067 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1399798877: '1765983446_441210_1399798810_0688d98f1bc53c3da98308c6b0ee7d67_rle_crop_4072908377_0.png', 1399798878: '1765983446_441210_1399798808_defb5172239d0291623cc67bbac3980f_rle_crop_4072908419_0.png', 1399799244: '1765983545_446626_1399798853_9e89ba3a64481f2893f9ce66ab78fd12_rle_crop_4072915065_0.png', 1399799755: '1765983666_479258_1399798774_e93cb613c6378954b58812f7e224c943_rle_crop_4072921305_0.png', 1399799756: '1765983666_479258_1399798772_81b0cbf4225db6e325d041a4a35e3f5f_rle_crop_4072921318_0.png', 1399800499: '1765983805_486233_1399798905_67f26f826994f30ecf65054302d33674_rle_crop_4072924780_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/17/64d7bc96ca41e3186ac5ba22d45f687f_430886.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/17/8ef8d3f7ff77e9cf5be4b61b5cb026a3_49615714.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/17/39f2db37e5eff8f2640d018364d99886_60920291.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/17/4bda3249118a6d7babd4f7efd36784f5_16577523.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/17/65c11de4e579ee0b10ab78ea69ff2974_40179984.png change filename to text .imagette295030671765984020/ imagette295030671765984020/1765983446_441210_1399798810_0688d98f1bc53c3da98308c6b0ee7d67_rle_crop_4072908377_0.png.png imagette295030671765984020/1765983666_479258_1399798772_81b0cbf4225db6e325d041a4a35e3f5f_rle_crop_4072921318_0.png.png imagette295030671765984020/1765983446_441210_1399798808_defb5172239d0291623cc67bbac3980f_rle_crop_4072908419_0.png.png imagette295030671765984020/1765983805_486233_1399798905_67f26f826994f30ecf65054302d33674_rle_crop_4072924780_0.png.png imagette295030671765984020/1765983666_479258_1399798774_e93cb613c6378954b58812f7e224c943_rle_crop_4072921305_0.png.png imagette295030671765984020/1765983545_446626_1399798853_9e89ba3a64481f2893f9ce66ab78fd12_rle_crop_4072915065_0.png.png imagette295030701765984020/ wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/17/438fbf97512f77036282a786a34f1ed8_8362055.png imagette295030671765984020 29503070 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=29503070 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette295030701765984020 29503072 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=29503072 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1399798821: '1765983308_436676_1399798742_773727ff049b4cef0bf0067806318cf3_rle_crop_4072901767_0.png', 1399798886: '1765983446_441210_1399798836_c8a6c02490998b915cfff9b010dd5fa3_rle_crop_4072908344_0.png', 1399798887: '1765983446_441210_1399798813_74aa96bb16f4fd846606478535c32aff_rle_crop_4072908366_0.png', 1399798888: '1765983446_441210_1399798810_0688d98f1bc53c3da98308c6b0ee7d67_rle_crop_4072908376_0.png', 1399799757: '1765983666_479258_1399798815_9e996c0b847f956b677c54c7050549f6_rle_crop_4072919242_0.png', 1399799758: '1765983666_479258_1399798815_9e996c0b847f956b677c54c7050549f6_rle_crop_4072919240_0.png', 1399799838: '1765983685_480176_1399798780_6930350bbf02d3402fe470babf16df88_rle_crop_4072924463_0.png', 1399800496: '1765983786_485894_1399798902_5f8698e68fdcbb26e526e365078f847c_rle_crop_4072924671_0.png', 1399800497: '1765983786_485894_1399798899_d7e924e76d383a5bddf1a6f9afae93da_rle_crop_4072924713_0.png', 1399800498: '1765983786_485894_1399798889_b76144495f704ab40ca428526d515c23_rle_crop_4072924734_0.png', 1399800502: '1765983805_486233_1399798905_67f26f826994f30ecf65054302d33674_rle_crop_4072924777_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/17/d18238b0e449b79d765996ff44dd6fd0_33183298.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/17/2b3e30cd424235edf3a1115c32da3d31_29699223.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/17/4187b43f9f0499d896d2f6e53db53e88_29938725.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/17/90f921929a47166fc88072d0e41e9340_72983275.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/17/b00336b19c124f6eed018220941cc78d_13263268.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/17/ca8602e32b3f513e918d7f3f32f270e9_76722276.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/17/d18238b0e449b79d765996ff44dd6fd0_89638277.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/17/ad36a1650bd33cfcb33868098ec5f506_57474222.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/17/a2a63aa8542ae1d2d4c1ac01c87169ad_93252608.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/17/bd517deebbff08aa424ded8eef9beed1_45063503.png change filename to text .imagette295030721765984020/ imagette295030721765984020/1765983446_441210_1399798836_c8a6c02490998b915cfff9b010dd5fa3_rle_crop_4072908344_0.png.png imagette295030721765984020/1765983805_486233_1399798905_67f26f826994f30ecf65054302d33674_rle_crop_4072924777_0.png.png imagette295030721765984020/1765983666_479258_1399798815_9e996c0b847f956b677c54c7050549f6_rle_crop_4072919242_0.png.png imagette295030721765984020/1765983786_485894_1399798889_b76144495f704ab40ca428526d515c23_rle_crop_4072924734_0.png.png imagette295030721765984020/1765983446_441210_1399798810_0688d98f1bc53c3da98308c6b0ee7d67_rle_crop_4072908376_0.png.png imagette295030721765984020/1765983666_479258_1399798815_9e996c0b847f956b677c54c7050549f6_rle_crop_4072919240_0.png.png imagette295030721765984020/1765983685_480176_1399798780_6930350bbf02d3402fe470babf16df88_rle_crop_4072924463_0.png.png imagette295030721765984020/1765983446_441210_1399798813_74aa96bb16f4fd846606478535c32aff_rle_crop_4072908366_0.png.png imagette295030721765984020/1765983786_485894_1399798899_d7e924e76d383a5bddf1a6f9afae93da_rle_crop_4072924713_0.png.png imagette295030721765984020/1765983308_436676_1399798742_773727ff049b4cef0bf0067806318cf3_rle_crop_4072901767_0.png.png imagette295030721765984020/1765983786_485894_1399798902_5f8698e68fdcbb26e526e365078f847c_rle_crop_4072924671_0.png.png imagette295030731765984021/ imagette295030741765984021/ wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/17/3edb817ca17914b1f18ba8e54f8ea9ee_22374840.png imagette295030721765984020 29503073 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=29503073 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette295030731765984021 29503074 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=29503074 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette295030741765984021 29503075 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=29503075 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1399799863: '1765983685_480176_1399798776_ecf8ba418e4520df797a199bcfe1a9d2_rle_crop_4072924471_0.png'} change filename to text .imagette295030751765984021/ imagette295030751765984021/1765983685_480176_1399798776_ecf8ba418e4520df797a199bcfe1a9d2_rle_crop_4072924471_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/17/57f2a2d737d67cbb52b6e8cfa1ed0602_10342320.png imagette295030751765984021 29503076 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=29503076 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1399798824: '1765983308_436676_1399798744_b0becbac75a28ea53013bef43884825a_rle_crop_4072901738_0.png', 1399798892: '1765983446_441210_1399798836_c8a6c02490998b915cfff9b010dd5fa3_rle_crop_4072908348_0.png', 1399798893: '1765983446_441210_1399798836_c8a6c02490998b915cfff9b010dd5fa3_rle_crop_4072908352_0.png', 1399798894: '1765983446_441210_1399798810_0688d98f1bc53c3da98308c6b0ee7d67_rle_crop_4072908372_0.png', 1399798895: '1765983446_441210_1399798809_24d32ab6c6ef8a7a82428505d588c62f_rle_crop_4072908396_0.png', 1399798896: '1765983446_441210_1399798807_629f3fda82b6305a877fc2b40049eab8_rle_crop_4072908436_0.png', 1399799760: '1765983666_479258_1399798815_9e996c0b847f956b677c54c7050549f6_rle_crop_4072919252_0.png', 1399799856: '1765983685_480176_1399798785_4b785bbd841c9621c68d6c9e991f15ac_rle_crop_4072924434_0.png', 1399800504: '1765983805_486233_1399798905_67f26f826994f30ecf65054302d33674_rle_crop_4072924782_0.png', 1399800505: '1765983805_486233_1399798905_67f26f826994f30ecf65054302d33674_rle_crop_4072924783_0.png', 1399800506: '1765983786_485894_1399799423_548d6669f7e2b4ccbc2d812168f2c20b_rle_crop_4072924666_0.png', 1399800507: '1765983786_485894_1399798902_5f8698e68fdcbb26e526e365078f847c_rle_crop_4072924676_0.png', 1399800508: '1765983786_485894_1399798899_d7e924e76d383a5bddf1a6f9afae93da_rle_crop_4072924720_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/17/7714f76651b08d1ce53325433046a683_12249469.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/17/0050147df8fd0da7b0b34ae2362b1d58_52165736.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/17/ca34b829dc5234f976db0d4d0007eee3_93751493.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/17/73f691d267d17efe3b87f6ad710b3322_34735715.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/17/db894080909bad816f3871f4cbb6d2d8_39795091.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/17/e07ffb80aa73f41694ed999c3203ce4c_30451971.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/17/580c58efe244287598ef366536d4dbd1_14090066.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/17/7714f76651b08d1ce53325433046a683_70345493.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/17/e98d1aabfb60fd4b8e9f9ede40054bf1_25764786.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/17/b949e3331dcb2bcf2686028ca27f45c1_44318763.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/17/9ec576f2a1dde87b2c66122e90a3f507_14885649.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/17/2a738e442466c22b00aadd146e4bde32_52991597.png change filename to text .imagette295030761765984021/ imagette295030761765984021/1765983786_485894_1399798899_d7e924e76d383a5bddf1a6f9afae93da_rle_crop_4072924720_0.png.png imagette295030761765984021/1765983666_479258_1399798815_9e996c0b847f956b677c54c7050549f6_rle_crop_4072919252_0.png.png imagette295030761765984021/1765983446_441210_1399798807_629f3fda82b6305a877fc2b40049eab8_rle_crop_4072908436_0.png.png imagette295030761765984021/1765983446_441210_1399798809_24d32ab6c6ef8a7a82428505d588c62f_rle_crop_4072908396_0.png.png imagette295030761765984021/1765983685_480176_1399798785_4b785bbd841c9621c68d6c9e991f15ac_rle_crop_4072924434_0.png.png imagette295030761765984021/1765983805_486233_1399798905_67f26f826994f30ecf65054302d33674_rle_crop_4072924783_0.png.png imagette295030761765984021/1765983786_485894_1399799423_548d6669f7e2b4ccbc2d812168f2c20b_rle_crop_4072924666_0.png.png imagette295030761765984021/1765983446_441210_1399798836_c8a6c02490998b915cfff9b010dd5fa3_rle_crop_4072908348_0.png.png imagette295030761765984021/1765983805_486233_1399798905_67f26f826994f30ecf65054302d33674_rle_crop_4072924782_0.png.png imagette295030761765984021/1765983446_441210_1399798810_0688d98f1bc53c3da98308c6b0ee7d67_rle_crop_4072908372_0.png.png imagette295030761765984021/1765983446_441210_1399798836_c8a6c02490998b915cfff9b010dd5fa3_rle_crop_4072908352_0.png.png imagette295030761765984021/1765983786_485894_1399798902_5f8698e68fdcbb26e526e365078f847c_rle_crop_4072924676_0.png.png imagette295030761765984021/1765983308_436676_1399798744_b0becbac75a28ea53013bef43884825a_rle_crop_4072901738_0.png.png wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/17/d65b3b9b7ca8fbbc5a8e57037cc0efb6_95921782.png imagette295030761765984021 29503066 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=29503066 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1399798822: '1765983308_436676_1399798744_b0becbac75a28ea53013bef43884825a_rle_crop_4072901739_0.png', 1399798863: '1765983425_440794_1399798834_41af1319eed2ed4143d4624b5e7e77f9_rle_crop_4072908106_0.png', 1399798890: '1765983446_441210_1399798836_c8a6c02490998b915cfff9b010dd5fa3_rle_crop_4072908347_0.png', 1399799848: '1765983685_480176_1399798785_4b785bbd841c9621c68d6c9e991f15ac_rle_crop_4072924435_0.png', 1399800500: '1765983786_485894_1399798902_5f8698e68fdcbb26e526e365078f847c_rle_crop_4072924672_0.png', 1399800501: '1765983786_485894_1399798899_d7e924e76d383a5bddf1a6f9afae93da_rle_crop_4072924717_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/17/e016112f47286184d752a741bc3d15a8_53232710.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/17/8a854700f651efb336d0ccca4bf5598f_62933635.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/17/dc4f85fcc3c4a5b636c8d64332b0c95f_61571524.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/17/e016112f47286184d752a741bc3d15a8_54661254.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/17/55d344e4cff5812fd36ad128954dc4e5_79845642.png change filename to text .imagette295030661765984022/ imagette295030661765984022/1765983446_441210_1399798836_c8a6c02490998b915cfff9b010dd5fa3_rle_crop_4072908347_0.png.png imagette295030661765984022/1765983308_436676_1399798744_b0becbac75a28ea53013bef43884825a_rle_crop_4072901739_0.png.png imagette295030661765984022/1765983685_480176_1399798785_4b785bbd841c9621c68d6c9e991f15ac_rle_crop_4072924435_0.png.png imagette295030661765984022/1765983786_485894_1399798902_5f8698e68fdcbb26e526e365078f847c_rle_crop_4072924672_0.png.png imagette295030661765984022/1765983786_485894_1399798899_d7e924e76d383a5bddf1a6f9afae93da_rle_crop_4072924717_0.png.png imagette295030661765984022/1765983425_440794_1399798834_41af1319eed2ed4143d4624b5e7e77f9_rle_crop_4072908106_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/17/4d7e08c059ae049b7686ac913695c1c4_48067924.png imagette295030661765984022 29503068 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=29503068 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1399798862: '1765983425_440794_1399798834_41af1319eed2ed4143d4624b5e7e77f9_rle_crop_4072908109_0.png', 1399798881: '1765983446_441210_1399798808_defb5172239d0291623cc67bbac3980f_rle_crop_4072908416_0.png', 1399798882: '1765983446_441210_1399798808_defb5172239d0291623cc67bbac3980f_rle_crop_4072908411_0.png', 1399798883: '1765983446_441210_1399798807_629f3fda82b6305a877fc2b40049eab8_rle_crop_4072908428_0.png', 1399798884: '1765983446_441210_1399798807_629f3fda82b6305a877fc2b40049eab8_rle_crop_4072908437_0.png', 1399798885: '1765983446_441210_1399798807_629f3fda82b6305a877fc2b40049eab8_rle_crop_4072908433_0.png', 1399800495: '1765983786_485894_1399799423_548d6669f7e2b4ccbc2d812168f2c20b_rle_crop_4072924663_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/17/735756236cc958786b42c7522da97e24_54755529.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/17/84cd0c6d735dc99a566bd5ccc497e9cc_16611525.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/17/46b62b2c2d9373ffb9088fafd031ceba_50412088.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/17/a2529a840431beb86b02a1fb0d0f7b07_32752822.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/17/bef697cbad5ce0c4794274142b21ac28_51861490.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/17/a5bbff65a6d9235a87811fdb09069733_15624221.png change filename to text .imagette295030681765984023/ imagette295030681765984023/1765983425_440794_1399798834_41af1319eed2ed4143d4624b5e7e77f9_rle_crop_4072908109_0.png.png imagette295030681765984023/1765983446_441210_1399798808_defb5172239d0291623cc67bbac3980f_rle_crop_4072908411_0.png.png imagette295030681765984023/1765983446_441210_1399798807_629f3fda82b6305a877fc2b40049eab8_rle_crop_4072908433_0.png.png imagette295030681765984023/1765983446_441210_1399798807_629f3fda82b6305a877fc2b40049eab8_rle_crop_4072908437_0.png.png imagette295030681765984023/1765983446_441210_1399798808_defb5172239d0291623cc67bbac3980f_rle_crop_4072908416_0.png.png imagette295030681765984023/1765983446_441210_1399798807_629f3fda82b6305a877fc2b40049eab8_rle_crop_4072908428_0.png.png imagette295030681765984023/1765983786_485894_1399799423_548d6669f7e2b4ccbc2d812168f2c20b_rle_crop_4072924663_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/17/716443d610c402b307e9f7a381c7e1d1_61709025.png imagette295030681765984023 29503069 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=29503069 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1399798819: '1765983308_436676_1399798744_b0becbac75a28ea53013bef43884825a_rle_crop_4072901744_0.png', 1399798860: '1765983425_440794_1399798834_41af1319eed2ed4143d4624b5e7e77f9_rle_crop_4072908105_0.png', 1399798876: '1765983446_441210_1399798808_defb5172239d0291623cc67bbac3980f_rle_crop_4072908418_0.png', 1399799235: '1765983545_446626_1399798852_1bde092e8c6c583a839243cd5e46d77c_rle_crop_4072916055_0.png', 1399799747: '1765983666_479258_1399798815_9e996c0b847f956b677c54c7050549f6_rle_crop_4072919243_0.png', 1399799749: '1765983666_479258_1399798815_9e996c0b847f956b677c54c7050549f6_rle_crop_4072919244_0.png', 1399799750: '1765983666_479258_1399798774_e93cb613c6378954b58812f7e224c943_rle_crop_4072921312_0.png', 1399799751: '1765983666_479258_1399798774_e93cb613c6378954b58812f7e224c943_rle_crop_4072921313_0.png', 1399799752: '1765983666_479258_1399798772_81b0cbf4225db6e325d041a4a35e3f5f_rle_crop_4072921326_0.png', 1399799753: '1765983666_479258_1399798772_81b0cbf4225db6e325d041a4a35e3f5f_rle_crop_4072921330_0.png', 1399799754: '1765983666_479258_1399798772_81b0cbf4225db6e325d041a4a35e3f5f_rle_crop_4072921322_0.png', 1399799829: '1765983685_480176_1399798785_4b785bbd841c9621c68d6c9e991f15ac_rle_crop_4072924440_0.png', 1399800491: '1765983786_485894_1399798889_b76144495f704ab40ca428526d515c23_rle_crop_4072924740_0.png', 1399800492: '1765983786_485894_1399798879_a5779d9f10ef69e9280310af817b8ca0_rle_crop_4072924750_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/17/69600bced406d1d5377ba353f6858cda_67188367.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/17/652652113cdbdfaf9e27ba9cb7dbc87e_27890726.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/17/33141ab706c7fe336fc14e5c16dd422d_93672090.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/17/813023630533d7ffacb235f1c21863fc_28342957.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/17/a99f05a16ad13d08ccdd66849fffae6c_78120848.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/17/8adc63adfee054ac5044246748fc1b6c_66609146.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/17/e16d8bad49ea1518e685e7685d0ae66c_65012392.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/17/53479b3834952a5cf2e6f8f70a024ec2_21708567.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/17/e1f14cad6d412d81ca4212fc377b84db_25391220.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/17/52ffc12bd66c44ccbcb7c507518e0f46_40990838.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/17/3d0efdb5be81876f7b13a62cc3e59883_27006583.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/17/69600bced406d1d5377ba353f6858cda_81045860.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/17/85592f531337411ecb52deeaf850bbc2_86341397.png change filename to text .imagette295030691765984024/ imagette295030691765984024/1765983666_479258_1399798774_e93cb613c6378954b58812f7e224c943_rle_crop_4072921312_0.png.png imagette295030691765984024/1765983545_446626_1399798852_1bde092e8c6c583a839243cd5e46d77c_rle_crop_4072916055_0.png.png imagette295030691765984024/1765983685_480176_1399798785_4b785bbd841c9621c68d6c9e991f15ac_rle_crop_4072924440_0.png.png imagette295030691765984024/1765983666_479258_1399798815_9e996c0b847f956b677c54c7050549f6_rle_crop_4072919244_0.png.png imagette295030691765984024/1765983666_479258_1399798774_e93cb613c6378954b58812f7e224c943_rle_crop_4072921313_0.png.png imagette295030691765984024/1765983666_479258_1399798772_81b0cbf4225db6e325d041a4a35e3f5f_rle_crop_4072921322_0.png.png imagette295030691765984024/1765983666_479258_1399798815_9e996c0b847f956b677c54c7050549f6_rle_crop_4072919243_0.png.png imagette295030691765984024/1765983425_440794_1399798834_41af1319eed2ed4143d4624b5e7e77f9_rle_crop_4072908105_0.png.png imagette295030691765984024/1765983786_485894_1399798879_a5779d9f10ef69e9280310af817b8ca0_rle_crop_4072924750_0.png.png imagette295030691765984024/1765983446_441210_1399798808_defb5172239d0291623cc67bbac3980f_rle_crop_4072908418_0.png.png imagette295030691765984024/1765983308_436676_1399798744_b0becbac75a28ea53013bef43884825a_rle_crop_4072901744_0.png.png imagette295030691765984024/1765983666_479258_1399798772_81b0cbf4225db6e325d041a4a35e3f5f_rle_crop_4072921330_0.png.png imagette295030691765984024/1765983786_485894_1399798889_b76144495f704ab40ca428526d515c23_rle_crop_4072924740_0.png.png imagette295030691765984024/1765983666_479258_1399798772_81b0cbf4225db6e325d041a4a35e3f5f_rle_crop_4072921326_0.png.png wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/17/c14bebdfdefbcf15a5e2b703b7b12053_48186790.png imagette295030691765984024 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=29503062 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/29503077,29503078,29503079,29503080,29503081,29503082,29503083,29503084,29503085,29503086,29503087,29503088?tags=environnement,Carton_brun,autre_refus,Carton_gris,Teint_Dans_La_Masse,metal,papier,cartonnette,flou,mal_croppe,kraft,plastique your option no_mail is active, we will not send the real mail to your client args[1399801069] : ('0.08273750678181571',) no score found for photo 1399801069 We are sending mail with results at report@fotonower.com refus_total : 0.08273750678181571 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=29503062 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_P29503062_17-12-2025_16_07_00.pdf results_Auto_P29503062_17-12-2025_16_07_00.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29503062_17-12-2025_16_07_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','29503062','results_Auto_P29503062_17-12-2025_16_07_00.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29503062_17-12-2025_16_07_00.pdf','pdf','','0.19','0.08273750678181571') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29503062]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1399801069] map_info['map_portfolio_photo'] : {29503062: [1399801069, 1399800514, 1399799423, 1399798905, 1399798902, 1399798899, 1399798897, 1399798889, 1399798879, 1399798858, 1399798855, 1399798854, 1399798853, 1399798852, 1399798851, 1399798836, 1399798834, 1399798832, 1399798815, 1399798813, 1399798810, 1399798809, 1399798808, 1399798807, 1399798801, 1399798785, 1399798783, 1399798780, 1399798776, 1399798774, 1399798772, 1399798745, 1399798744, 1399798743, 1399798742, 1399798723, 1399798721]} final : False mtd_id 4302 list_pids : [1399801069] 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, '4240827') ('4302', '29503062', '1399801069', None, None, None, None, None, '4240827') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 1 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', '29503062', '1399801069', None, None, None, None, None, '4240827')] time used for this insertion : 0.015210390090942383 save_final save missing photos in datou_result : time spend for datou_step_exec : 5.61390233039856 time spend to save output : 0.01536417007446289 total time spend for step 4 : 5.6292665004730225 step5:split_time_score Wed Dec 17 16:07:05 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 : ['29503062'] 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 : [('29503062',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29503062) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1399801069: {'path': 'temp/1765984020_1431951_1399801069_2e7f444304d4b9b258babfe131e90314.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 = 29503062; (('arc_en_ciel_jrm_live',), ('arc_en_ciel_jrm_bis',), ('arc_en_ciel_jrm',)) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos_view ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 29503062 group by h (('15', 37),) 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=29503062 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 (29503062) 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 (29503062) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 17122025 29503062 Nombre de photos uploadées : 37 / 23040 (0%) 17122025 29503062 Nombre de photos taguées (types de déchets): 0 / 37 (0%) 17122025 29503062 Nombre de photos taguées (volume) : 0 / 37 (0%) [{'photo_id': 1399798723, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/17/bd4cbc37f06d94d817b6402a7440ce15.jpg', 'username': None, 'uploaded_at': 1765983127, 'text': 'image_17122025_15_51_24_010138m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1399798721, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/17/868f0f1be7b7b32a0fb3a0d135602349.jpg', 'username': None, 'uploaded_at': 1765983127, 'text': 'image_17122025_15_51_34_010140m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1399798745, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/17/c490a19ac50220038a49f6d943b0c910.jpg', 'username': None, 'uploaded_at': 1765983187, 'text': 'image_17122025_15_51_55_010138m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1399798801, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/17/7d1df31f5cfb8b34494708d077734351.jpg', 'username': None, 'uploaded_at': 1765983287, 'text': 'image_17122025_15_51_55_010138m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 1.9073486328125e-06 elapsed_time : order_list_meta_photo_and_scores 5.0067901611328125e-06 ????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0012884140014648438 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 29503062, '2025-12-17' ) 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-17' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2748388,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.5406856536865234 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= 2748388 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2748388, 'dashboard_run_id': 2759158, 'mtr_portfolio_id': 29485245, 'dashboard_result_id': 18470472, '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_P29485245_17-12-2025_06_07_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29485246, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29485247, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29485248, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29485249, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29485250, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29485251, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29485252, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29485253, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29485254, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29485255, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29485256, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29485257, 'pht': 3726}}"}, {'dashboat_entry_day': 2748388, 'dashboard_run_id': 2759158, 'mtr_portfolio_id': 29485330, 'dashboard_result_id': 18470473, '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_P29485330_17-12-2025_06_08_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29485331, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29485332, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29485333, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29485334, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29485335, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29485336, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29485337, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29485338, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29485339, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29485340, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29485341, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29485342, 'pht': 3726}}"}, {'dashboat_entry_day': 2748388, 'dashboard_run_id': 2759158, 'mtr_portfolio_id': 29486151, 'dashboard_result_id': 18470474, '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_P29486151_17-12-2025_06_08_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29486156, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29486157, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29486158, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29486159, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29486160, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29486161, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29486162, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29486163, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29486164, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29486165, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29486166, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29486167, 'pht': 3726}}"}, {'dashboat_entry_day': 2748388, 'dashboard_run_id': 2759158, 'mtr_portfolio_id': 29486387, 'dashboard_result_id': 18470475, '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_P29486387_17-12-2025_06_09_28.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29486392, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29486393, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29486394, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29486395, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29486396, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29486397, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29486398, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29486399, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29486400, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29486401, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29486402, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29486403, 'pht': 3726}}"}, {'dashboat_entry_day': 2748388, 'dashboard_run_id': 2759158, 'mtr_portfolio_id': 29486785, 'dashboard_result_id': 18470476, '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_P29486785_17-12-2025_05_46_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29486789, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29486790, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29486791, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29486792, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29486793, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29486794, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29486795, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29486796, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29486797, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29486798, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29486799, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29486800, 'pht': 3726}}"}, {'dashboat_entry_day': 2748388, 'dashboard_run_id': 2759158, 'mtr_portfolio_id': 29487088, 'dashboard_result_id': 18470477, '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_P29487088_17-12-2025_06_03_33.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29487097, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29487098, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29487099, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29487100, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29487101, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29487102, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29487103, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29487104, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29487105, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29487106, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29487107, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29487108, 'pht': 3726}}"}, {'dashboat_entry_day': 2748388, 'dashboard_run_id': 2759158, 'mtr_portfolio_id': 29487491, 'dashboard_result_id': 18470478, '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_P29487491_17-12-2025_06_17_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29487495, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29487496, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29487497, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29487498, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29487499, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29487500, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29487501, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29487502, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29487503, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29487504, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29487505, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29487506, 'pht': 3726}}"}, {'dashboat_entry_day': 2748388, 'dashboard_run_id': 2759158, 'mtr_portfolio_id': 29488001, 'dashboard_result_id': 18470479, '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_P29488001_17-12-2025_07_46_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29488002, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29488003, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29488004, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29488005, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29488006, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29488007, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29488008, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29488009, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29488010, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29488011, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29488012, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29488013, 'pht': 3726}}"}, {'dashboat_entry_day': 2748388, 'dashboard_run_id': 2759158, 'mtr_portfolio_id': 29488439, 'dashboard_result_id': 18470480, '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_P29488439_17-12-2025_06_48_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29488443, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29488444, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29488445, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29488446, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29488447, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29488448, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29488449, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29488450, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29488451, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29488452, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29488453, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29488454, 'pht': 3726}}"}, {'dashboat_entry_day': 2748388, 'dashboard_run_id': 2759158, 'mtr_portfolio_id': 29488957, 'dashboard_result_id': 18470481, '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_P29488957_17-12-2025_07_02_57.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29488965, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29488966, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29488967, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29488968, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29488969, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29488970, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29488971, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29488972, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29488973, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29488974, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29488975, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29488976, 'pht': 3726}}"}, {'dashboat_entry_day': 2748388, 'dashboard_run_id': 2759158, 'mtr_portfolio_id': 29489376, 'dashboard_result_id': 18470482, '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_P29489376_17-12-2025_07_19_02.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29489402, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29489403, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29489404, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29489405, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29489406, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29489407, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29489408, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29489409, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29489410, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29489411, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29489412, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29489413, 'pht': 3726}}"}, {'dashboat_entry_day': 2748388, 'dashboard_run_id': 2759158, 'mtr_portfolio_id': 29489974, 'dashboard_result_id': 18470483, '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_P29489974_17-12-2025_07_32_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29490007, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29490008, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29490009, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29490010, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29490011, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29490012, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29490013, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29490014, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29490015, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29490016, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29490017, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29490018, 'pht': 3726}}"}, {'dashboat_entry_day': 2748388, 'dashboard_run_id': 2759158, 'mtr_portfolio_id': 29490515, 'dashboard_result_id': 18470484, '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_P29490515_17-12-2025_07_46_57.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29490541, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29490542, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29490543, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29490544, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29490545, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29490546, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29490547, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29490548, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29490549, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29490550, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29490551, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29490552, 'pht': 3726}}"}, {'dashboat_entry_day': 2748388, 'dashboard_run_id': 2759158, 'mtr_portfolio_id': 29491177, 'dashboard_result_id': 18470485, '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_P29491177_17-12-2025_08_03_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29491180, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29491181, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29491182, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29491183, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29491184, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29491185, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29491186, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29491187, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29491188, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29491189, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29491190, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29491191, 'pht': 3726}}"}, {'dashboat_entry_day': 2748388, 'dashboard_run_id': 2759158, 'mtr_portfolio_id': 29491559, 'dashboard_result_id': 18470486, '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_P29491559_17-12-2025_08_21_11.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29491584, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29491585, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29491586, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29491587, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29491588, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29491589, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29491590, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29491591, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29491592, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29491593, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29491594, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29491595, 'pht': 3726}}"}, {'dashboat_entry_day': 2748388, 'dashboard_run_id': 2759158, 'mtr_portfolio_id': 29492179, 'dashboard_result_id': 18470487, '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_P29492179_17-12-2025_08_33_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29492183, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29492184, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29492185, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29492186, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29492187, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29492188, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29492189, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29492190, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29492191, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29492192, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29492193, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29492194, 'pht': 3726}}"}, {'dashboat_entry_day': 2748388, 'dashboard_run_id': 2759158, 'mtr_portfolio_id': 29492555, 'dashboard_result_id': 18470488, '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_P29492555_17-12-2025_08_46_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29492583, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29492584, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29492585, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29492586, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29492587, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29492588, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29492589, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29492590, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29492591, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29492592, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29492593, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29492594, 'pht': 3726}}"}, {'dashboat_entry_day': 2748388, 'dashboard_run_id': 2759158, 'mtr_portfolio_id': 29493108, 'dashboard_result_id': 18470489, '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_P29493108_17-12-2025_09_33_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29493134, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29493135, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29493136, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29493137, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29493138, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29493139, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29493140, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29493141, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29493142, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29493143, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29493144, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29493145, 'pht': 3726}}"}, {'dashboat_entry_day': 2748388, 'dashboard_run_id': 2759158, 'mtr_portfolio_id': 29494104, 'dashboard_result_id': 18470490, '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_P29494104_17-12-2025_09_49_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29494112, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29494113, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29494114, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29494115, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29494116, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29494117, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29494118, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29494119, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29494120, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29494121, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29494122, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29494123, 'pht': 3726}}"}, {'dashboat_entry_day': 2748388, 'dashboard_run_id': 2759158, 'mtr_portfolio_id': 29494438, 'dashboard_result_id': 18470491, '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_P29494438_17-12-2025_10_03_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29494445, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29494446, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29494447, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29494448, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29494449, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29494450, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29494451, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29494452, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29494453, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29494454, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29494455, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29494456, 'pht': 3726}}"}, {'dashboat_entry_day': 2748388, 'dashboard_run_id': 2759158, 'mtr_portfolio_id': 29494773, 'dashboard_result_id': 18470492, '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_P29494773_17-12-2025_10_18_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29494790, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29494791, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29494792, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29494793, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29494794, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29494795, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29494796, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29494797, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29494798, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29494799, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29494800, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29494801, 'pht': 3726}}"}, {'dashboat_entry_day': 2748388, 'dashboard_run_id': 2759158, 'mtr_portfolio_id': 29495425, 'dashboard_result_id': 18470493, '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_P29495425_17-12-2025_10_32_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29495433, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29495434, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29495435, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29495436, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29495437, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29495438, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29495439, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29495440, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29495441, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29495442, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29495443, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29495444, 'pht': 3726}}"}, {'dashboat_entry_day': 2748388, 'dashboard_run_id': 2759158, 'mtr_portfolio_id': 29495864, 'dashboard_result_id': 18470494, '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_P29495864_17-12-2025_10_49_28.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29495907, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29495908, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29495909, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29495910, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29495911, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29495912, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29495913, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29495914, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29495915, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29495916, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29495917, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29495918, 'pht': 3726}}"}, {'dashboat_entry_day': 2748388, 'dashboard_run_id': 2759158, 'mtr_portfolio_id': 29496570, 'dashboard_result_id': 18470495, '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_P29496570_17-12-2025_11_15_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29496571, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29496572, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29496573, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29496574, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29496575, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29496576, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29496577, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29496578, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29496579, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29496580, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29496581, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29496582, 'pht': 3726}}"}, {'dashboat_entry_day': 2748388, 'dashboard_run_id': 2759158, 'mtr_portfolio_id': 29497550, 'dashboard_result_id': 18470496, '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_P29497550_17-12-2025_11_33_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29497553, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29497554, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29497555, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29497556, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29497557, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29497558, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29497559, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29497560, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29497561, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29497562, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29497563, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29497564, 'pht': 3726}}"}, {'dashboat_entry_day': 2748388, 'dashboard_run_id': 2759158, 'mtr_portfolio_id': 29497780, 'dashboard_result_id': 18470497, '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_P29497780_17-12-2025_11_49_29.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29497797, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29497798, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29497799, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29497800, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29497801, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29497802, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29497803, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29497804, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29497805, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29497806, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29497807, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29497808, 'pht': 3726}}"}, {'dashboat_entry_day': 2748388, 'dashboard_run_id': 2759158, 'mtr_portfolio_id': 29498331, 'dashboard_result_id': 18470498, '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_P29498331_17-12-2025_12_03_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29498335, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29498336, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29498337, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29498338, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29498339, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29498340, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29498341, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29498342, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29498343, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29498344, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29498345, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29498346, 'pht': 3726}}"}, {'dashboat_entry_day': 2748388, 'dashboard_run_id': 2759158, 'mtr_portfolio_id': 29498746, 'dashboard_result_id': 18470499, '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_P29498746_17-12-2025_14_01_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29498761, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29498762, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29498763, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29498764, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29498765, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29498766, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29498767, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29498768, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29498769, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29498770, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29498771, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29498772, 'pht': 3726}}"}, {'dashboat_entry_day': 2748388, 'dashboard_run_id': 2759158, 'mtr_portfolio_id': 29499437, 'dashboard_result_id': 18470500, '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_P29499437_17-12-2025_13_49_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29499438, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29499439, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29499440, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29499441, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29499442, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29499443, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29499444, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29499445, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29499446, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29499447, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29499448, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29499449, 'pht': 3726}}"}, {'dashboat_entry_day': 2748388, 'dashboard_run_id': 2759158, 'mtr_portfolio_id': 29499809, 'dashboard_result_id': 18470501, '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_P29499809_17-12-2025_14_02_57.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29499811, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29499812, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29499813, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29499814, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29499815, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29499816, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29499817, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29499818, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29499819, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29499820, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29499821, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29499822, 'pht': 3726}}"}, {'dashboat_entry_day': 2748388, 'dashboard_run_id': 2759158, 'mtr_portfolio_id': 29500190, 'dashboard_result_id': 18470502, '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_P29500190_17-12-2025_14_19_33.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29500203, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29500204, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29500205, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29500206, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29500207, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29500208, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29500209, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29500210, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29500211, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29500212, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29500213, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29500214, 'pht': 3726}}"}, {'dashboat_entry_day': 2748388, 'dashboard_run_id': 2759158, 'mtr_portfolio_id': 29500777, 'dashboard_result_id': 18470503, '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_P29500777_17-12-2025_14_32_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29500782, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29500783, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29500784, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29500785, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29500786, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29500787, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29500788, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29500789, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29500790, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29500791, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29500792, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29500793, 'pht': 3726}}"}, {'dashboat_entry_day': 2748388, 'dashboard_run_id': 2759158, 'mtr_portfolio_id': 29501317, 'dashboard_result_id': 18470504, '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_P29501317_17-12-2025_14_46_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29501372, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29501373, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29501374, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29501375, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29501376, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29501377, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29501378, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29501379, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29501380, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29501381, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29501382, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29501383, 'pht': 3726}}"}, {'dashboat_entry_day': 2748388, 'dashboard_run_id': 2759158, 'mtr_portfolio_id': 29501873, 'dashboard_result_id': 18470505, '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_P29501873_17-12-2025_15_03_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29501882, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29501883, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29501884, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29501885, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29501886, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29501887, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29501888, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29501889, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29501890, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29501891, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29501892, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29501893, 'pht': 3726}}"}, {'dashboat_entry_day': 2748388, 'dashboard_run_id': 2759158, 'mtr_portfolio_id': 29502422, 'dashboard_result_id': 18470506, '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_P29502422_17-12-2025_15_16_57.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29502426, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29502427, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29502428, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29502430, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29502431, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29502432, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29502433, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29502434, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29502435, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29502436, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29502437, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29502438, 'pht': 3726}}"}, {'dashboat_entry_day': 2748388, 'dashboard_run_id': 2759158, 'mtr_portfolio_id': 29502768, 'dashboard_result_id': 18470507, '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_P29502768_17-12-2025_15_46_30.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29502770, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29502771, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29502772, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29502773, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29502774, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29502775, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29502776, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29502777, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29502778, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29502779, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29502780, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29502781, 'pht': 3726}}"}, {'dashboat_entry_day': 2748388, 'dashboard_run_id': 2759158, 'mtr_portfolio_id': 29503061, 'dashboard_result_id': 18470508, '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_P29503061_17-12-2025_15_53_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29503089, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29503090, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29503091, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29503092, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29503093, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29503095, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29503096, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29503097, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29503098, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29503099, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29503100, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29503101, 'pht': 3726}}"}, {'dashboat_entry_day': 2748388, 'dashboard_run_id': 2759158, 'mtr_portfolio_id': 29503062, 'dashboard_result_id': 18470509, '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_P29503062_17-12-2025_16_01_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29503065, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29503066, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29503067, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29503068, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29503069, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29503070, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29503071, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29503072, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29503073, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29503074, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29503075, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29503076, '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 = 29485245 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': 4237902, 'mtr_portfolio_id': 29485245, 'created_at': datetime.datetime(2025, 12, 17, 6, 7, 31), 'result': '0.02842152714867772', 'result_long': None, 'result_double': None}] Qualite : 0.02842152714867772 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29485245 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29485245_17-12-2025_06_07_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29485245 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_P29485245_17-12-2025_06_07_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29485246, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29485247, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29485248, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29485249, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29485250, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29485251, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29485252, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29485253, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29485254, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29485255, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29485256, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29485257, 'pht': 3726}}" where mtr_portfolio_id = 29485245 and dashboard_run_id = 2759158 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`=29485245 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18470472, 0.02842152714867772, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29485245_17-12-2025_06_07_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29485246, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29485247, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29485248, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29485249, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29485250, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29485251, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29485252, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29485253, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29485254, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29485255, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29485256, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29485257, '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 = 29485330 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': 4237903, 'mtr_portfolio_id': 29485330, 'created_at': datetime.datetime(2025, 12, 17, 6, 8), 'result': '0.07549590350533569', 'result_long': None, 'result_double': None}] Qualite : 0.07549590350533569 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29485330 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29485330_17-12-2025_06_08_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29485330 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_P29485330_17-12-2025_06_08_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29485331, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29485332, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29485333, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29485334, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29485335, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29485336, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29485337, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29485338, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29485339, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29485340, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29485341, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29485342, 'pht': 3726}}" where mtr_portfolio_id = 29485330 and dashboard_run_id = 2759158 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`=29485330 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18470473, 0.07549590350533569, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29485330_17-12-2025_06_08_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29485331, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29485332, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29485333, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29485334, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29485335, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29485336, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29485337, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29485338, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29485339, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29485340, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29485341, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29485342, '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 = 29486151 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': 4237905, 'mtr_portfolio_id': 29486151, 'created_at': datetime.datetime(2025, 12, 17, 6, 8, 29), 'result': '0.03183617600169805', 'result_long': None, 'result_double': None}] Qualite : 0.03183617600169805 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29486151 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29486151_17-12-2025_06_08_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29486151 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_P29486151_17-12-2025_06_08_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29486156, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29486157, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29486158, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29486159, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29486160, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29486161, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29486162, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29486163, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29486164, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29486165, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29486166, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29486167, 'pht': 3726}}" where mtr_portfolio_id = 29486151 and dashboard_run_id = 2759158 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`=29486151 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18470474, 0.03183617600169805, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29486151_17-12-2025_06_08_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29486156, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29486157, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29486158, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29486159, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29486160, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29486161, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29486162, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29486163, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29486164, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29486165, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29486166, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29486167, '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 = 29486387 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': 4237906, 'mtr_portfolio_id': 29486387, 'created_at': datetime.datetime(2025, 12, 17, 6, 9, 26), 'result': '0.0324798333062245', 'result_long': None, 'result_double': None}] Qualite : 0.0324798333062245 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29486387 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29486387_17-12-2025_06_09_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29486387 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_P29486387_17-12-2025_06_09_28.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29486392, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29486393, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29486394, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29486395, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29486396, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29486397, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29486398, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29486399, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29486400, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29486401, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29486402, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29486403, 'pht': 3726}}" where mtr_portfolio_id = 29486387 and dashboard_run_id = 2759158 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`=29486387 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18470475, 0.0324798333062245, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29486387_17-12-2025_06_09_28.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29486392, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29486393, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29486394, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29486395, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29486396, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29486397, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29486398, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29486399, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29486400, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29486401, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29486402, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29486403, '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 = 29486785 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': 4237838, 'mtr_portfolio_id': 29486785, 'created_at': datetime.datetime(2025, 12, 17, 5, 46, 58), 'result': '0.04598327004340759', 'result_long': None, 'result_double': None}] Qualite : 0.04598327004340759 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29486785 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29486785_17-12-2025_05_46_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29486785 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_P29486785_17-12-2025_05_46_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29486789, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29486790, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29486791, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29486792, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29486793, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29486794, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29486795, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29486796, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29486797, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29486798, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29486799, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29486800, 'pht': 3726}}" where mtr_portfolio_id = 29486785 and dashboard_run_id = 2759158 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`=29486785 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18470476, 0.04598327004340759, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29486785_17-12-2025_05_46_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29486789, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29486790, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29486791, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29486792, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29486793, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29486794, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29486795, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29486796, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29486797, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29486798, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29486799, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29486800, '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 = 29487088 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': 4237952, 'mtr_portfolio_id': 29487088, 'created_at': datetime.datetime(2025, 12, 17, 6, 3, 32), 'result': '0.06849932624904866', 'result_long': None, 'result_double': None}] Qualite : 0.06849932624904866 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29487088 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29487088_17-12-2025_06_03_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29487088 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_P29487088_17-12-2025_06_03_33.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29487097, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29487098, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29487099, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29487100, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29487101, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29487102, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29487103, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29487104, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29487105, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29487106, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29487107, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29487108, 'pht': 3726}}" where mtr_portfolio_id = 29487088 and dashboard_run_id = 2759158 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`=29487088 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18470477, 0.06849932624904866, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29487088_17-12-2025_06_03_33.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29487097, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29487098, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29487099, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29487100, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29487101, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29487102, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29487103, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29487104, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29487105, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29487106, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29487107, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29487108, '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 = 29487491 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': 4238038, 'mtr_portfolio_id': 29487491, 'created_at': datetime.datetime(2025, 12, 17, 6, 17, 1), 'result': '0.04276553075229865', 'result_long': None, 'result_double': None}] Qualite : 0.04276553075229865 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29487491 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29487491_17-12-2025_06_17_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29487491 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_P29487491_17-12-2025_06_17_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29487495, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29487496, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29487497, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29487498, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29487499, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29487500, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29487501, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29487502, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29487503, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29487504, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29487505, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29487506, 'pht': 3726}}" where mtr_portfolio_id = 29487491 and dashboard_run_id = 2759158 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`=29487491 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18470478, 0.04276553075229865, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29487491_17-12-2025_06_17_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29487495, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29487496, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29487497, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29487498, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29487499, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29487500, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29487501, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29487502, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29487503, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29487504, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29487505, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29487506, '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 = 29488001 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': 4238101, 'mtr_portfolio_id': 29488001, 'created_at': datetime.datetime(2025, 12, 17, 7, 46), 'result': '0.06161135460556961', 'result_long': None, 'result_double': None}] Qualite : 0.06161135460556961 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29488001 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29488001_17-12-2025_07_46_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29488001 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_P29488001_17-12-2025_07_46_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29488002, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29488003, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29488004, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29488005, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29488006, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29488007, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29488008, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29488009, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29488010, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29488011, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29488012, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29488013, 'pht': 3726}}" where mtr_portfolio_id = 29488001 and dashboard_run_id = 2759158 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`=29488001 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18470479, 0.06161135460556961, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29488001_17-12-2025_07_46_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29488002, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29488003, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29488004, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29488005, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29488006, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29488007, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29488008, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29488009, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29488010, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29488011, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29488012, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29488013, '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 = 29488439 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': 4238167, 'mtr_portfolio_id': 29488439, 'created_at': datetime.datetime(2025, 12, 17, 6, 48, 57), 'result': '0.03138842258814577', 'result_long': None, 'result_double': None}] Qualite : 0.03138842258814577 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29488439 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29488439_17-12-2025_06_48_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29488439 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_P29488439_17-12-2025_06_48_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29488443, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29488444, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29488445, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29488446, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29488447, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29488448, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29488449, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29488450, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29488451, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29488452, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29488453, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29488454, 'pht': 3726}}" where mtr_portfolio_id = 29488439 and dashboard_run_id = 2759158 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`=29488439 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18470480, 0.03138842258814577, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29488439_17-12-2025_06_48_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29488443, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29488444, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29488445, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29488446, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29488447, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29488448, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29488449, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29488450, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29488451, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29488452, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29488453, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29488454, '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 = 29488957 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': 4238245, 'mtr_portfolio_id': 29488957, 'created_at': datetime.datetime(2025, 12, 17, 7, 2, 57), 'result': '0.06134156506036359', 'result_long': None, 'result_double': None}] Qualite : 0.06134156506036359 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29488957 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29488957_17-12-2025_07_02_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29488957 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_P29488957_17-12-2025_07_02_57.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29488965, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29488966, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29488967, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29488968, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29488969, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29488970, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29488971, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29488972, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29488973, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29488974, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29488975, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29488976, 'pht': 3726}}" where mtr_portfolio_id = 29488957 and dashboard_run_id = 2759158 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`=29488957 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18470481, 0.06134156506036359, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29488957_17-12-2025_07_02_57.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29488965, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29488966, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29488967, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29488968, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29488969, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29488970, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29488971, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29488972, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29488973, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29488974, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29488975, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29488976, '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 = 29489376 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': 4238312, 'mtr_portfolio_id': 29489376, 'created_at': datetime.datetime(2025, 12, 17, 7, 19, 1), 'result': '0.05220400425543265', 'result_long': None, 'result_double': None}] Qualite : 0.05220400425543265 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29489376 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29489376_17-12-2025_07_19_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29489376 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_P29489376_17-12-2025_07_19_02.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29489402, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29489403, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29489404, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29489405, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29489406, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29489407, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29489408, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29489409, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29489410, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29489411, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29489412, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29489413, 'pht': 3726}}" where mtr_portfolio_id = 29489376 and dashboard_run_id = 2759158 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`=29489376 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18470482, 0.05220400425543265, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29489376_17-12-2025_07_19_02.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29489402, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29489403, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29489404, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29489405, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29489406, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29489407, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29489408, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29489409, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29489410, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29489411, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29489412, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29489413, '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 = 29489974 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': 4238396, 'mtr_portfolio_id': 29489974, 'created_at': datetime.datetime(2025, 12, 17, 7, 32, 59), 'result': '0.05084775663673203', 'result_long': None, 'result_double': None}] Qualite : 0.05084775663673203 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29489974 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29489974_17-12-2025_07_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29489974 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_P29489974_17-12-2025_07_32_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29490007, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29490008, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29490009, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29490010, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29490011, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29490012, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29490013, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29490014, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29490015, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29490016, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29490017, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29490018, 'pht': 3726}}" where mtr_portfolio_id = 29489974 and dashboard_run_id = 2759158 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`=29489974 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18470483, 0.05084775663673203, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29489974_17-12-2025_07_32_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29490007, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29490008, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29490009, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29490010, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29490011, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29490012, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29490013, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29490014, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29490015, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29490016, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29490017, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29490018, '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 = 29490515 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': 4238455, 'mtr_portfolio_id': 29490515, 'created_at': datetime.datetime(2025, 12, 17, 7, 46, 57), 'result': '0.03758465496803979', 'result_long': None, 'result_double': None}] Qualite : 0.03758465496803979 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29490515 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29490515_17-12-2025_07_46_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29490515 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_P29490515_17-12-2025_07_46_57.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29490541, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29490542, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29490543, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29490544, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29490545, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29490546, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29490547, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29490548, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29490549, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29490550, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29490551, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29490552, 'pht': 3726}}" where mtr_portfolio_id = 29490515 and dashboard_run_id = 2759158 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`=29490515 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18470484, 0.03758465496803979, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29490515_17-12-2025_07_46_57.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29490541, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29490542, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29490543, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29490544, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29490545, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29490546, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29490547, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29490548, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29490549, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29490550, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29490551, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29490552, '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 = 29491177 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': 4238519, 'mtr_portfolio_id': 29491177, 'created_at': datetime.datetime(2025, 12, 17, 8, 2, 59), 'result': '0.04435515762245053', 'result_long': None, 'result_double': None}] Qualite : 0.04435515762245053 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29491177 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29491177_17-12-2025_08_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29491177 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_P29491177_17-12-2025_08_03_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29491180, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29491181, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29491182, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29491183, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29491184, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29491185, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29491186, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29491187, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29491188, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29491189, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29491190, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29491191, 'pht': 3726}}" where mtr_portfolio_id = 29491177 and dashboard_run_id = 2759158 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`=29491177 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18470485, 0.04435515762245053, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29491177_17-12-2025_08_03_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29491180, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29491181, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29491182, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29491183, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29491184, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29491185, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29491186, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29491187, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29491188, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29491189, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29491190, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29491191, '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 = 29491559 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': 4238582, 'mtr_portfolio_id': 29491559, 'created_at': datetime.datetime(2025, 12, 17, 8, 21, 11), 'result': '0.031636902934064855', 'result_long': None, 'result_double': None}] Qualite : 0.031636902934064855 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29491559 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29491559_17-12-2025_08_21_11.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29491559 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_P29491559_17-12-2025_08_21_11.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29491584, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29491585, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29491586, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29491587, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29491588, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29491589, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29491590, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29491591, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29491592, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29491593, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29491594, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29491595, 'pht': 3726}}" where mtr_portfolio_id = 29491559 and dashboard_run_id = 2759158 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`=29491559 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18470486, 0.031636902934064855, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29491559_17-12-2025_08_21_11.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29491584, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29491585, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29491586, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29491587, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29491588, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29491589, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29491590, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29491591, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29491592, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29491593, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29491594, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29491595, '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 = 29492179 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': 4238677, 'mtr_portfolio_id': 29492179, 'created_at': datetime.datetime(2025, 12, 17, 8, 33), 'result': '0.052873050959463035', 'result_long': None, 'result_double': None}] Qualite : 0.052873050959463035 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29492179 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29492179_17-12-2025_08_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29492179 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_P29492179_17-12-2025_08_33_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29492183, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29492184, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29492185, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29492186, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29492187, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29492188, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29492189, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29492190, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29492191, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29492192, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29492193, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29492194, 'pht': 3726}}" where mtr_portfolio_id = 29492179 and dashboard_run_id = 2759158 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`=29492179 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18470487, 0.052873050959463035, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29492179_17-12-2025_08_33_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29492183, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29492184, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29492185, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29492186, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29492187, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29492188, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29492189, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29492190, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29492191, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29492192, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29492193, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29492194, '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 = 29492555 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': 4238736, 'mtr_portfolio_id': 29492555, 'created_at': datetime.datetime(2025, 12, 17, 8, 46, 59), 'result': '0.03544329333231965', 'result_long': None, 'result_double': None}] Qualite : 0.03544329333231965 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29492555 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29492555_17-12-2025_08_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29492555 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_P29492555_17-12-2025_08_46_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29492583, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29492584, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29492585, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29492586, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29492587, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29492588, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29492589, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29492590, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29492591, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29492592, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29492593, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29492594, 'pht': 3726}}" where mtr_portfolio_id = 29492555 and dashboard_run_id = 2759158 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`=29492555 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18470488, 0.03544329333231965, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29492555_17-12-2025_08_46_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29492583, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29492584, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29492585, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29492586, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29492587, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29492588, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29492589, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29492590, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29492591, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29492592, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29492593, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29492594, '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 = 29493108 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': 4238805, 'mtr_portfolio_id': 29493108, 'created_at': datetime.datetime(2025, 12, 17, 9, 33), 'result': '0.04867049934557913', 'result_long': None, 'result_double': None}] Qualite : 0.04867049934557913 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29493108 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29493108_17-12-2025_09_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29493108 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_P29493108_17-12-2025_09_33_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29493134, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29493135, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29493136, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29493137, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29493138, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29493139, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29493140, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29493141, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29493142, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29493143, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29493144, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29493145, 'pht': 3726}}" where mtr_portfolio_id = 29493108 and dashboard_run_id = 2759158 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`=29493108 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18470489, 0.04867049934557913, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29493108_17-12-2025_09_33_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29493134, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29493135, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29493136, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29493137, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29493138, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29493139, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29493140, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29493141, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29493142, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29493143, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29493144, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29493145, '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 = 29494104 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': 4238954, 'mtr_portfolio_id': 29494104, 'created_at': datetime.datetime(2025, 12, 17, 9, 49, 1), 'result': '0.05681291821162675', 'result_long': None, 'result_double': None}] Qualite : 0.05681291821162675 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29494104 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29494104_17-12-2025_09_49_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29494104 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_P29494104_17-12-2025_09_49_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29494112, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29494113, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29494114, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29494115, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29494116, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29494117, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29494118, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29494119, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29494120, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29494121, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29494122, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29494123, 'pht': 3726}}" where mtr_portfolio_id = 29494104 and dashboard_run_id = 2759158 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`=29494104 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18470490, 0.05681291821162675, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29494104_17-12-2025_09_49_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29494112, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29494113, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29494114, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29494115, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29494116, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29494117, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29494118, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29494119, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29494120, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29494121, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29494122, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29494123, '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 = 29494438 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': 4239010, 'mtr_portfolio_id': 29494438, 'created_at': datetime.datetime(2025, 12, 17, 10, 2, 59), 'result': '0.05506351209733118', 'result_long': None, 'result_double': None}] Qualite : 0.05506351209733118 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29494438 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29494438_17-12-2025_10_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29494438 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_P29494438_17-12-2025_10_03_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29494445, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29494446, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29494447, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29494448, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29494449, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29494450, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29494451, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29494452, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29494453, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29494454, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29494455, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29494456, 'pht': 3726}}" where mtr_portfolio_id = 29494438 and dashboard_run_id = 2759158 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`=29494438 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18470491, 0.05506351209733118, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29494438_17-12-2025_10_03_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29494445, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29494446, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29494447, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29494448, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29494449, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29494450, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29494451, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29494452, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29494453, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29494454, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29494455, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29494456, '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 = 29494773 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': 4239100, 'mtr_portfolio_id': 29494773, 'created_at': datetime.datetime(2025, 12, 17, 10, 18, 59), 'result': '0.05033239076188781', 'result_long': None, 'result_double': None}] Qualite : 0.05033239076188781 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29494773 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29494773_17-12-2025_10_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29494773 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_P29494773_17-12-2025_10_18_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29494790, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29494791, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29494792, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29494793, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29494794, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29494795, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29494796, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29494797, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29494798, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29494799, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29494800, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29494801, 'pht': 3726}}" where mtr_portfolio_id = 29494773 and dashboard_run_id = 2759158 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`=29494773 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18470492, 0.05033239076188781, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29494773_17-12-2025_10_18_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29494790, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29494791, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29494792, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29494793, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29494794, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29494795, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29494796, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29494797, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29494798, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29494799, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29494800, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29494801, '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 = 29495425 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': 4239174, 'mtr_portfolio_id': 29495425, 'created_at': datetime.datetime(2025, 12, 17, 10, 32, 59), 'result': '0.07524959816888564', 'result_long': None, 'result_double': None}] Qualite : 0.07524959816888564 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29495425 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29495425_17-12-2025_10_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29495425 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_P29495425_17-12-2025_10_32_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29495433, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29495434, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29495435, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29495436, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29495437, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29495438, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29495439, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29495440, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29495441, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29495442, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29495443, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29495444, 'pht': 3726}}" where mtr_portfolio_id = 29495425 and dashboard_run_id = 2759158 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`=29495425 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18470493, 0.07524959816888564, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29495425_17-12-2025_10_32_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29495433, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29495434, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29495435, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29495436, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29495437, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29495438, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29495439, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29495440, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29495441, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29495442, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29495443, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29495444, '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 = 29495864 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': 4239251, 'mtr_portfolio_id': 29495864, 'created_at': datetime.datetime(2025, 12, 17, 10, 49, 27), 'result': '0.03471950625787625', 'result_long': None, 'result_double': None}] Qualite : 0.03471950625787625 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29495864 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29495864_17-12-2025_10_49_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29495864 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_P29495864_17-12-2025_10_49_28.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29495907, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29495908, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29495909, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29495910, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29495911, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29495912, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29495913, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29495914, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29495915, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29495916, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29495917, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29495918, 'pht': 3726}}" where mtr_portfolio_id = 29495864 and dashboard_run_id = 2759158 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`=29495864 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18470494, 0.03471950625787625, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29495864_17-12-2025_10_49_28.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29495907, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29495908, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29495909, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29495910, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29495911, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29495912, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29495913, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29495914, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29495915, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29495916, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29495917, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29495918, '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 = 29496570 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': 4239363, 'mtr_portfolio_id': 29496570, 'created_at': datetime.datetime(2025, 12, 17, 11, 15, 1), 'result': '0.03642050983877358', 'result_long': None, 'result_double': None}] Qualite : 0.03642050983877358 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29496570 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29496570_17-12-2025_11_15_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29496570 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_P29496570_17-12-2025_11_15_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29496571, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29496572, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29496573, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29496574, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29496575, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29496576, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29496577, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29496578, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29496579, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29496580, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29496581, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29496582, 'pht': 3726}}" where mtr_portfolio_id = 29496570 and dashboard_run_id = 2759158 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`=29496570 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18470495, 0.03642050983877358, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29496570_17-12-2025_11_15_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29496571, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29496572, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29496573, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29496574, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29496575, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29496576, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29496577, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29496578, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29496579, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29496580, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29496581, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29496582, '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 = 29497550 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': 4239475, 'mtr_portfolio_id': 29497550, 'created_at': datetime.datetime(2025, 12, 17, 11, 33), 'result': '0.0345357719354671', 'result_long': None, 'result_double': None}] Qualite : 0.0345357719354671 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29497550 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29497550_17-12-2025_11_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29497550 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_P29497550_17-12-2025_11_33_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29497553, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29497554, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29497555, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29497556, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29497557, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29497558, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29497559, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29497560, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29497561, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29497562, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29497563, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29497564, 'pht': 3726}}" where mtr_portfolio_id = 29497550 and dashboard_run_id = 2759158 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`=29497550 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18470496, 0.0345357719354671, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29497550_17-12-2025_11_33_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29497553, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29497554, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29497555, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29497556, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29497557, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29497558, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29497559, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29497560, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29497561, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29497562, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29497563, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29497564, '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 = 29497780 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': 4239726, 'mtr_portfolio_id': 29497780, 'created_at': datetime.datetime(2025, 12, 17, 11, 49, 28), 'result': '0.019067628491743996', 'result_long': None, 'result_double': None}] Qualite : 0.019067628491743996 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29497780 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29497780_17-12-2025_11_49_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29497780 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_P29497780_17-12-2025_11_49_29.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29497797, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29497798, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29497799, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29497800, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29497801, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29497802, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29497803, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29497804, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29497805, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29497806, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29497807, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29497808, 'pht': 3726}}" where mtr_portfolio_id = 29497780 and dashboard_run_id = 2759158 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`=29497780 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18470497, 0.019067628491743996, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29497780_17-12-2025_11_49_29.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29497797, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29497798, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29497799, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29497800, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29497801, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29497802, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29497803, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29497804, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29497805, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29497806, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29497807, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29497808, '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 = 29498331 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': 4239808, 'mtr_portfolio_id': 29498331, 'created_at': datetime.datetime(2025, 12, 17, 12, 2, 59), 'result': '0.02718309586322523', 'result_long': None, 'result_double': None}] Qualite : 0.02718309586322523 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29498331 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29498331_17-12-2025_12_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29498331 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_P29498331_17-12-2025_12_03_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29498335, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29498336, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29498337, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29498338, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29498339, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29498340, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29498341, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29498342, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29498343, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29498344, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29498345, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29498346, 'pht': 3726}}" where mtr_portfolio_id = 29498331 and dashboard_run_id = 2759158 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`=29498331 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18470498, 0.02718309586322523, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29498331_17-12-2025_12_03_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29498335, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29498336, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29498337, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29498338, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29498339, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29498340, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29498341, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29498342, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29498343, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29498344, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29498345, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29498346, '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 = 29498746 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': 4239879, 'mtr_portfolio_id': 29498746, 'created_at': datetime.datetime(2025, 12, 17, 14, 1, 59), 'result': '0.060021877680669335', 'result_long': None, 'result_double': None}] Qualite : 0.060021877680669335 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29498746 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29498746_17-12-2025_14_01_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29498746 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_P29498746_17-12-2025_14_01_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29498761, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29498762, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29498763, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29498764, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29498765, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29498766, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29498767, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29498768, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29498769, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29498770, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29498771, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29498772, 'pht': 3726}}" where mtr_portfolio_id = 29498746 and dashboard_run_id = 2759158 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`=29498746 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18470499, 0.060021877680669335, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29498746_17-12-2025_14_01_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29498761, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29498762, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29498763, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29498764, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29498765, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29498766, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29498767, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29498768, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29498769, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29498770, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29498771, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29498772, '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 = 29499437 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': 4240095, 'mtr_portfolio_id': 29499437, 'created_at': datetime.datetime(2025, 12, 17, 13, 49), 'result': '0.060141817810284076', 'result_long': None, 'result_double': None}] Qualite : 0.060141817810284076 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29499437 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29499437_17-12-2025_13_49_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29499437 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_P29499437_17-12-2025_13_49_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29499438, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29499439, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29499440, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29499441, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29499442, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29499443, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29499444, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29499445, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29499446, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29499447, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29499448, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29499449, 'pht': 3726}}" where mtr_portfolio_id = 29499437 and dashboard_run_id = 2759158 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`=29499437 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18470500, 0.060141817810284076, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29499437_17-12-2025_13_49_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29499438, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29499439, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29499440, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29499441, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29499442, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29499443, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29499444, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29499445, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29499446, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29499447, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29499448, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29499449, '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 = 29499809 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': 4240120, 'mtr_portfolio_id': 29499809, 'created_at': datetime.datetime(2025, 12, 17, 14, 2, 57), 'result': '0.0395573149135856', 'result_long': None, 'result_double': None}] Qualite : 0.0395573149135856 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29499809 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29499809_17-12-2025_14_02_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29499809 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_P29499809_17-12-2025_14_02_57.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29499811, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29499812, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29499813, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29499814, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29499815, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29499816, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29499817, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29499818, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29499819, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29499820, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29499821, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29499822, 'pht': 3726}}" where mtr_portfolio_id = 29499809 and dashboard_run_id = 2759158 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`=29499809 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18470501, 0.0395573149135856, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29499809_17-12-2025_14_02_57.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29499811, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29499812, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29499813, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29499814, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29499815, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29499816, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29499817, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29499818, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29499819, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29499820, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29499821, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29499822, '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 = 29500190 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': 4240178, 'mtr_portfolio_id': 29500190, 'created_at': datetime.datetime(2025, 12, 17, 14, 19, 33), 'result': '0.036522704229659524', 'result_long': None, 'result_double': None}] Qualite : 0.036522704229659524 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29500190 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29500190_17-12-2025_14_19_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29500190 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_P29500190_17-12-2025_14_19_33.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29500203, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29500204, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29500205, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29500206, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29500207, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29500208, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29500209, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29500210, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29500211, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29500212, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29500213, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29500214, 'pht': 3726}}" where mtr_portfolio_id = 29500190 and dashboard_run_id = 2759158 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`=29500190 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18470502, 0.036522704229659524, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29500190_17-12-2025_14_19_33.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29500203, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29500204, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29500205, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29500206, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29500207, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29500208, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29500209, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29500210, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29500211, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29500212, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29500213, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29500214, '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 = 29500777 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': 4240309, 'mtr_portfolio_id': 29500777, 'created_at': datetime.datetime(2025, 12, 17, 14, 32, 59), 'result': '0.0503400587928257', 'result_long': None, 'result_double': None}] Qualite : 0.0503400587928257 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29500777 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29500777_17-12-2025_14_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29500777 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_P29500777_17-12-2025_14_32_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29500782, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29500783, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29500784, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29500785, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29500786, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29500787, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29500788, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29500789, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29500790, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29500791, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29500792, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29500793, 'pht': 3726}}" where mtr_portfolio_id = 29500777 and dashboard_run_id = 2759158 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`=29500777 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18470503, 0.0503400587928257, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29500777_17-12-2025_14_32_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29500782, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29500783, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29500784, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29500785, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29500786, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29500787, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29500788, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29500789, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29500790, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29500791, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29500792, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29500793, '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 = 29501317 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': 4240507, 'mtr_portfolio_id': 29501317, 'created_at': datetime.datetime(2025, 12, 17, 14, 46, 58), 'result': '0.05529232140488498', 'result_long': None, 'result_double': None}] Qualite : 0.05529232140488498 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29501317 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29501317_17-12-2025_14_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29501317 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_P29501317_17-12-2025_14_46_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29501372, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29501373, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29501374, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29501375, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29501376, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29501377, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29501378, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29501379, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29501380, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29501381, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29501382, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29501383, 'pht': 3726}}" where mtr_portfolio_id = 29501317 and dashboard_run_id = 2759158 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`=29501317 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18470504, 0.05529232140488498, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29501317_17-12-2025_14_46_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29501372, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29501373, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29501374, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29501375, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29501376, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29501377, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29501378, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29501379, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29501380, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29501381, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29501382, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29501383, '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 = 29501873 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': 4240632, 'mtr_portfolio_id': 29501873, 'created_at': datetime.datetime(2025, 12, 17, 15, 3), 'result': '0.037316242479944785', 'result_long': None, 'result_double': None}] Qualite : 0.037316242479944785 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29501873 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29501873_17-12-2025_15_03_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29501873 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_P29501873_17-12-2025_15_03_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29501882, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29501883, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29501884, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29501885, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29501886, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29501887, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29501888, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29501889, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29501890, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29501891, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29501892, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29501893, 'pht': 3726}}" where mtr_portfolio_id = 29501873 and dashboard_run_id = 2759158 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`=29501873 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18470505, 0.037316242479944785, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29501873_17-12-2025_15_03_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29501882, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29501883, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29501884, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29501885, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29501886, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29501887, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29501888, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29501889, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29501890, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29501891, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29501892, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29501893, '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 = 29502422 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': 4240723, 'mtr_portfolio_id': 29502422, 'created_at': datetime.datetime(2025, 12, 17, 15, 16, 57), 'result': '0.0789759246463782', 'result_long': None, 'result_double': None}] Qualite : 0.0789759246463782 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29502422 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29502422_17-12-2025_15_16_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29502422 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_P29502422_17-12-2025_15_16_57.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29502426, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29502427, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29502428, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29502430, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29502431, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29502432, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29502433, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29502434, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29502435, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29502436, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29502437, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29502438, 'pht': 3726}}" where mtr_portfolio_id = 29502422 and dashboard_run_id = 2759158 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`=29502422 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18470506, 0.0789759246463782, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29502422_17-12-2025_15_16_57.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29502426, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29502427, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29502428, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29502430, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29502431, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29502432, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29502433, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29502434, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29502435, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29502436, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29502437, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29502438, '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 = 29502768 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': 4240757, 'mtr_portfolio_id': 29502768, 'created_at': datetime.datetime(2025, 12, 17, 15, 46, 30), 'result': '0.04353398890292629', 'result_long': None, 'result_double': None}] Qualite : 0.04353398890292629 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29502768 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29502768_17-12-2025_15_46_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29502768 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_P29502768_17-12-2025_15_46_30.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29502770, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29502771, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29502772, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29502773, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29502774, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29502775, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29502776, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29502777, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29502778, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29502779, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29502780, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29502781, 'pht': 3726}}" where mtr_portfolio_id = 29502768 and dashboard_run_id = 2759156 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`=29502768 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18470507, 0.04353398890292629, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29502768_17-12-2025_15_46_30.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29502770, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29502771, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29502772, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29502773, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29502774, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29502775, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29502776, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29502777, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29502778, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29502779, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29502780, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29502781, '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 = 29503061 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': 4240826, 'mtr_portfolio_id': 29503061, 'created_at': datetime.datetime(2025, 12, 17, 15, 53, 30), 'result': '0.07000236522734761', 'result_long': None, 'result_double': None}] Qualite : 0.07000236522734761 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29503061 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29503061_17-12-2025_15_53_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29503061 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_P29503061_17-12-2025_15_53_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29503089, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29503090, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29503091, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29503092, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29503093, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29503095, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29503096, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29503097, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29503098, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29503099, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29503100, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29503101, 'pht': 3726}}" where mtr_portfolio_id = 29503061 and dashboard_run_id = 2759156 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`=29503061 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18470508, 0.07000236522734761, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29503061_17-12-2025_15_53_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29503089, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29503090, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29503091, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29503092, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29503093, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29503095, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29503096, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29503097, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29503098, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29503099, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29503100, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29503101, '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 = 29503062 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': 4240827, 'mtr_portfolio_id': 29503062, 'created_at': datetime.datetime(2025, 12, 17, 16, 7), 'result': '0.08273750678181571', 'result_long': None, 'result_double': None}] Qualite : 0.08273750678181571 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29503062 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29503062_17-12-2025_16_07_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29503062 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_P29503062_17-12-2025_16_07_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29503065, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29503066, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29503067, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29503068, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29503069, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29503070, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29503071, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29503072, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29503073, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29503074, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29503075, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29503076, 'pht': 3726}}" where mtr_portfolio_id = 29503062 and dashboard_run_id = 2759156 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`=29503062 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18470509, 0.08273750678181571, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29503062_17-12-2025_16_07_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29503065, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29503066, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29503067, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29503068, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29503069, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29503070, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29503071, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29503072, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29503073, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29503074, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29503075, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29503076, '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 (29485245,29485330,29486151,29486387,29486785,29487088,29487491,29488001,29488439,29488957,29489376,29489974,29490515,29491177,29491559,29492179,29492555,29493108,29494104,29494438,29494773,29495425,29495864,29496570,29497550,29497780,29498331,29498746,29499437,29499809,29500190,29500777,29501317,29501873,29502422,29502768,29503061,29503062) result : ((1399736565,), (1399736593,), (1399736649,), (1399736650,), (1399736692,), (1399736693,), (1399736694,), (1399736790,), (1399736818,), (1399736820,), (1399736821,), (1399736824,), (1399736845,), (1399736900,), (1399736932,), (1399736959,), (1399736961,), (1399736979,), (1399743998,), (1399744452,), (1399744765,), (1399744778,), (1399744780,), (1399744782,), (1399744786,), (1399744790,), (1399744802,), (1399744803,), (1399744804,), (1399744805,), (1399744808,), (1399744826,), (1399744827,), (1399744828,), (1399744829,), (1399744848,), (1399744849,), (1399744850,), (1399744851,), (1399744872,), (1399744873,), (1399744874,), (1399744875,), (1399744889,), (1399744890,), (1399744891,), (1399744892,), (1399744913,), (1399744914,), (1399744915,), (1399744916,), (1399744919,), (1399744934,), (1399744936,), (1399744937,), (1399744940,), (1399744944,), (1399744947,), (1399744958,), (1399744959,), (1399744963,), (1399744961,), (1399744962,), (1399744977,), (1399744978,), (1399744997,), (1399744998,), (1399744999,), (1399745000,), (1399745002,), (1399745005,), (1399745017,), (1399745019,), (1399745021,), (1399745024,), (1399745028,), (1399745036,), (1399745047,), (1399745060,), (1399745061,), (1399745062,), (1399745063,), (1399745066,), (1399745093,), (1399745094,), (1399745095,), (1399745096,), (1399745099,), (1399745111,), (1399745112,), (1399745113,), (1399745114,), (1399745117,), (1399745121,), (1399745135,), (1399745136,), (1399745137,), (1399745138,), (1399745151,), (1399745152,), (1399745153,), (1399745154,), (1399745156,), (1399745159,), (1399745186,), (1399745187,), (1399745188,), (1399745189,), (1399745192,), (1399745202,), (1399745203,), (1399745204,), (1399745280,), (1399745301,), (1399745299,), (1399745300,), (1399745326,), (1399745328,), (1399745330,), (1399745345,), (1399745346,), (1399745362,), (1399745364,), (1399745366,), (1399745367,), (1399745369,), (1399745382,), (1399745383,), (1399745384,), (1399745386,), (1399745391,), (1399745394,), (1399745404,), (1399745418,), (1399745420,), (1399745421,), (1399745422,), (1399745441,), (1399745442,), (1399745443,), (1399745444,), (1399745446,), (1399745463,), (1399745464,), (1399745465,), (1399745468,), (1399745470,), (1399745473,), (1399745481,), (1399745483,), (1399745485,), (1399745487,), (1399745491,), (1399745518,), (1399745520,), (1399745522,), (1399745526,), (1399745530,), (1399745534,), (1399745541,), (1399745542,), (1399745543,), (1399745544,), (1399745559,), (1399745560,), (1399745561,), (1399745578,), (1399745579,), (1399745580,), (1399745581,), (1399745584,), (1399745588,), (1399745601,), (1399745602,), (1399745603,), (1399745616,), (1399745617,), (1399745618,), (1399745621,), (1399745625,), (1399745629,), (1399745643,), (1399745641,), (1399745642,), (1399745655,), (1399745669,), (1399745671,), (1399745673,), (1399745677,), (1399745690,), (1399745691,), (1399745692,), (1399745693,), (1399745715,), (1399745716,), (1399745717,), (1399745718,), (1399745737,), (1399745738,), (1399745739,), (1399745757,), (1399745758,), (1399745759,), (1399745760,), (1399745763,), (1399745776,), (1399745778,), (1399745780,), (1399745784,), (1399745788,), (1399745820,), (1399745821,), (1399745822,), (1399745823,), (1399745845,), (1399745847,), (1399745851,), (1399745855,), (1399745859,), (1399745863,), (1399745873,), (1399745874,), (1399745875,), (1399745876,), (1399745877,), (1399745894,), (1399745895,), (1399745896,), (1399745897,), (1399745899,), (1399745902,), (1399745929,), (1399745930,), (1399745932,), (1399745935,), (1399745937,), (1399745939,), (1399745945,), (1399745947,), (1399745948,), (1399745950,), (1399745952,), (1399745954,), (1399746224,), (1399746269,), (1399746304,), (1399746634,), (1399746591,), (1399746594,), (1399746597,), (1399746601,), (1399746822,), (1399746823,), (1399746824,), (1399746825,), (1399747199,), (1399747231,), (1399747265,), (1399747651,), (1399747686,), (1399747717,), (1399747748,), (1399747781,), (1399747894,), (1399747932,), (1399747964,), (1399747981,), (1399747992,), (1399747996,), (1399748043,), (1399748062,), (1399748089,), (1399748093,), (1399748098,), (1399748103,), (1399748104,), (1399748107,), (1399748110,), (1399748124,), (1399748126,), (1399748128,), (1399748130,), (1399748133,), (1399748135,), (1399748159,), (1399748161,), (1399748162,), (1399748164,), (1399748166,), (1399748168,), (1399748197,), (1399748199,), (1399748202,), (1399748204,), (1399748206,), (1399748208,), (1399748230,), (1399748234,), (1399748236,), (1399748239,), (1399748245,), (1399748253,), (1399748259,), (1399748260,), (1399748262,), (1399748264,), (1399748266,), (1399748267,), (1399748271,), (1399748272,), (1399748275,), (1399748276,), (1399748277,), (1399748278,), (1399748282,), (1399748284,), (1399748285,), (1399748287,), (1399748292,), (1399748294,), (1399748303,), (1399748305,), (1399748306,), (1399748307,), (1399748310,), (1399748312,), (1399748335,), (1399748344,), (1399748430,), (1399748420,), (1399748425,), (1399748429,), (1399748449,), (1399748477,), (1399748479,), (1399748499,), (1399748501,), (1399748503,), (1399748507,), (1399748511,), (1399748514,), (1399748529,), (1399748531,), (1399748533,), (1399748535,), (1399748537,), (1399748556,), (1399748557,), (1399748558,), (1399748559,), (1399748594,), (1399748596,), (1399748598,), (1399748607,), (1399748608,), (1399748609,), (1399748610,), (1399748613,), (1399748632,), (1399748634,), (1399748637,), (1399748640,), (1399748660,), (1399748662,), (1399748664,), (1399748668,), (1399748675,), (1399748681,), (1399748697,), (1399748699,), (1399748701,), (1399748703,), (1399748720,), (1399748721,), (1399748722,), (1399748751,), (1399748753,), (1399748755,), (1399748756,), (1399748776,), (1399748777,), (1399748778,), (1399748801,), (1399748803,), (1399748806,), (1399748808,), (1399748810,), (1399748835,), (1399748826,), (1399748827,), (1399748828,), (1399748831,), (1399748856,), (1399748858,), (1399748859,), (1399748860,), (1399748884,), (1399748885,), (1399748886,), (1399748887,), (1399748890,), (1399748911,), (1399748912,), (1399748913,), (1399748916,), (1399748919,), (1399748920,), (1399748929,), (1399748930,), (1399748940,), (1399748941,), (1399748942,), (1399748969,), (1399749052,), (1399749053,), (1399749054,), (1399749055,), (1399749086,), (1399749087,), (1399749088,), (1399749107,), (1399749108,), (1399749127,), (1399749129,), (1399749131,), (1399749133,), (1399749135,), (1399749137,), (1399749151,), (1399749152,), (1399749153,), (1399749154,), (1399749156,), (1399749181,), (1399749183,), (1399749198,), (1399749199,), (1399749201,), (1399749202,), (1399749204,), (1399749206,), (1399749241,), (1399749231,), (1399749232,), (1399749234,), (1399749236,), (1399749239,), (1399749253,), (1399749255,), (1399749257,), (1399749261,), (1399749292,), (1399749293,), (1399749295,), (1399749297,), (1399749299,), (1399749301,), (1399749312,), (1399749315,), (1399749316,), (1399749317,), (1399749320,), (1399749323,), (1399749350,), (1399749352,), (1399749354,), (1399749375,), (1399749377,), (1399749379,), (1399749381,), (1399749383,), (1399749412,), (1399749414,), (1399749416,), (1399749431,), (1399749432,), (1399749434,), (1399749435,), (1399749437,), (1399749439,), (1399749481,), (1399749482,), (1399749483,), (1399749510,), (1399749513,), (1399749516,), (1399749520,), (1399749523,), (1399749526,), (1399749553,), (1399749554,), (1399749555,), (1399749556,), (1399749575,), (1399749578,), (1399749579,), (1399749581,), (1399749610,), (1399749611,), (1399749612,), (1399749615,), (1399749618,), (1399749621,), (1399749628,), (1399749629,), (1399749630,), (1399750064,), (1399750098,), (1399750132,), (1399750165,), (1399750299,), (1399750300,), (1399750331,), (1399750335,), (1399750364,), (1399750367,), (1399750576,), (1399750567,), (1399750570,), (1399750573,), (1399750937,), (1399750971,), (1399751005,), (1399751038,), (1399751071,), (1399751444,), (1399751481,), (1399751513,), (1399751545,), (1399751673,), (1399751675,), (1399751677,), (1399751679,), (1399751709,), (1399751986,), (1399751987,), (1399751988,), (1399752020,), (1399752030,), (1399752047,), (1399752066,), (1399752067,), (1399752071,), (1399752073,), (1399752075,), (1399752077,), (1399752080,), (1399752082,), (1399752108,), (1399752109,), (1399752110,), (1399752111,), (1399752138,), (1399752140,), (1399752142,), (1399752145,), (1399752148,), (1399752150,), (1399752160,), (1399752164,), (1399752167,), (1399752168,), (1399752169,), (1399752213,), (1399752215,), (1399752217,), (1399752235,), (1399752237,), (1399752239,), (1399752241,), (1399752269,), (1399752270,), (1399752271,), (1399752294,), (1399752313,), (1399752314,), (1399752315,), (1399752333,), (1399752335,), (1399752338,), (1399752395,), (1399752393,), (1399752394,), (1399752468,), (1399752475,), (1399752477,), (1399752478,), (1399752487,), (1399752489,), (1399752526,), (1399752528,), (1399752531,), (1399752535,), (1399752539,), (1399752541,), (1399752886,), (1399752943,), (1399752965,), (1399752966,), (1399752969,), (1399753141,), (1399753142,), (1399753191,), (1399753193,), (1399753194,), (1399753196,), (1399753286,), (1399753287,), (1399753288,), (1399753289,), (1399753292,), (1399753294,), (1399753485,), (1399753490,), (1399753501,), (1399753513,), (1399753520,), (1399753521,), (1399753543,), (1399753545,), (1399753553,), (1399753560,), (1399753594,), (1399753655,), (1399754118,), (1399754134,), (1399754138,), (1399754139,), (1399754213,), (1399754214,), (1399754215,), (1399754219,), (1399754221,), (1399754254,), (1399754256,), (1399754258,), (1399754261,), (1399754265,), (1399754267,), (1399754298,), (1399754300,), (1399754302,), (1399754304,), (1399754325,), (1399754327,), (1399754349,), (1399754344,), (1399754345,), (1399754346,), (1399754347,), (1399754369,), (1399754370,), (1399754371,), (1399754372,), (1399754375,), (1399754393,), (1399754394,), (1399754396,), (1399754398,), (1399754402,), (1399754447,), (1399754449,), (1399754659,), (1399754692,), (1399754743,), (1399754781,), (1399754785,), (1399754906,), (1399754907,), (1399754908,), (1399754909,), (1399754931,), (1399754933,), (1399754934,), (1399754936,), (1399755029,), (1399755059,), (1399755061,), (1399755158,), (1399755159,), (1399755160,), (1399755161,), (1399755187,), (1399755188,), (1399755189,), (1399755204,), (1399755205,), (1399755206,), (1399755207,), (1399755210,), (1399755247,), (1399755248,), (1399755249,), (1399755400,), (1399755411,), (1399755436,), (1399755438,), (1399755450,), (1399755506,), (1399755507,), (1399755508,), (1399755509,), (1399755512,), (1399755528,), (1399755529,), (1399755530,), (1399755533,), (1399755536,), (1399755541,), (1399755555,), (1399755560,), (1399755564,), (1399755563,), (1399755586,), (1399755587,), (1399755606,), (1399755628,), (1399755629,), (1399755630,), (1399755643,), (1399755644,), (1399755645,), (1399755646,), (1399755649,), (1399755650,), (1399755663,), (1399755664,), (1399755665,), (1399755666,), (1399755687,), (1399755688,), (1399755689,), (1399755690,), (1399755708,), (1399755709,), (1399755710,), (1399755711,), (1399755713,), (1399755715,), (1399755729,), (1399755730,), (1399755731,), (1399755732,), (1399755735,), (1399755761,), (1399755763,), (1399755765,), (1399755768,), (1399755771,), (1399755772,), (1399755787,), (1399755788,), (1399755789,), (1399755802,), (1399755803,), (1399755819,), (1399755821,), (1399755823,), (1399755827,), (1399755831,), (1399755836,), (1399755850,), (1399755851,), (1399755854,), (1399755857,), (1399755859,), (1399755861,), (1399755869,), (1399755871,), (1399755873,), (1399755875,), (1399755877,), (1399755878,), (1399756127,), (1399756130,), (1399756161,), (1399756227,), (1399756432,), (1399756484,), (1399756522,), (1399756564,), (1399756597,), (1399756846,), (1399756741,), (1399756776,), (1399756810,), (1399756930,), (1399756975,), (1399757013,), (1399757051,), (1399757063,), (1399757066,), (1399757171,), (1399757173,), (1399757175,), (1399757177,), (1399757179,), (1399757204,), (1399757206,), (1399757208,), (1399757221,), (1399757222,), (1399757223,), (1399757226,), (1399757229,), (1399757232,), (1399757241,), (1399757259,), (1399757271,), (1399757276,), (1399757278,), (1399757282,), (1399757301,), (1399757303,), (1399757305,), (1399757307,), (1399757310,), (1399757332,), (1399757333,), (1399757334,), (1399757336,), (1399757338,), (1399757340,), (1399757347,), (1399757348,), (1399757353,), (1399757357,), (1399757358,), (1399757359,), (1399757393,), (1399757395,), (1399757397,), (1399757399,), (1399757402,), (1399757422,), (1399757423,), (1399757424,), (1399757425,), (1399757460,), (1399757461,), (1399757463,), (1399757465,), (1399757468,), (1399757487,), (1399757490,), (1399757528,), (1399757626,), (1399757620,), (1399757621,), (1399757622,), (1399757623,), (1399757653,), (1399757655,), (1399757657,), (1399757672,), (1399757673,), (1399757694,), (1399757696,), (1399757698,), (1399757700,), (1399757703,), (1399757706,), (1399757718,), (1399757719,), (1399757720,), (1399757743,), (1399757744,), (1399757746,), (1399757748,), (1399757750,), (1399757771,), (1399757772,), (1399757773,), (1399757776,), (1399757779,), (1399757781,), (1399757789,), (1399757798,), (1399757799,), (1399757800,), (1399757823,), (1399757826,), (1399757828,), (1399757831,), (1399757864,), (1399757865,), (1399757868,), (1399757871,), (1399757874,), (1399757877,), (1399757892,), (1399757897,), (1399757901,), (1399757903,), (1399757908,), (1399757913,), (1399757917,), (1399757919,), (1399757925,), (1399757933,), (1399757934,), (1399757937,), (1399757948,), (1399757952,), (1399757962,), (1399757963,), (1399757964,), (1399757978,), (1399757967,), (1399757968,), (1399757969,), (1399757972,), (1399757975,), (1399757991,), (1399757992,), (1399757993,), (1399758005,), (1399758006,), (1399758008,), (1399758012,), (1399758048,), (1399758049,), (1399758063,), (1399758093,), (1399758240,), (1399758248,), (1399758252,), (1399758253,), (1399758280,), (1399758281,), (1399758282,), (1399758283,), (1399758286,), (1399758289,), (1399758303,), (1399758305,), (1399758306,), (1399758308,), (1399758310,), (1399758313,), (1399758331,), (1399758332,), (1399758340,), (1399758350,), (1399758357,), (1399758363,), (1399758391,), (1399758394,), (1399758397,), (1399758399,), (1399758402,), (1399758404,), (1399758413,), (1399758416,), (1399758420,), (1399758425,), (1399758429,), (1399758430,), (1399758443,), (1399758444,), (1399758446,), (1399758449,), (1399758452,), (1399758454,), (1399758460,), (1399758467,), (1399758469,), (1399758470,), (1399758471,), (1399758494,), (1399758495,), (1399758496,), (1399758497,), (1399758499,), (1399758501,), (1399758528,), (1399758529,), (1399758540,), (1399758581,), (1399758613,), (1399758648,), (1399758686,), (1399758906,), (1399758881,), (1399758901,), (1399759021,), (1399759022,), (1399759024,), (1399759178,), (1399759213,), (1399759374,), (1399759376,), (1399759378,), (1399759422,), (1399759423,), (1399759424,), (1399759425,), (1399759428,), (1399759441,), (1399759443,), (1399759445,), (1399759447,), (1399759450,), (1399759563,), (1399759597,), (1399759629,), (1399759823,), (1399759825,), (1399759827,), (1399759829,), (1399759831,), (1399759869,), (1399759870,), (1399759872,), (1399759873,), (1399759890,), (1399759891,), (1399759892,), (1399759895,), (1399759898,), (1399759904,), (1399759914,), (1399759915,), (1399759918,), (1399759920,), (1399759922,), (1399759947,), (1399759949,), (1399759951,), (1399759953,), (1399759956,), (1399759959,), (1399759987,), (1399759988,), (1399759989,), (1399759992,), (1399759995,), (1399759998,), (1399760220,), (1399760257,), (1399760284,), (1399760292,), (1399760314,), (1399760327,), (1399760331,), (1399760333,), (1399760335,), (1399760337,), (1399760343,), (1399760353,), (1399760359,), (1399760360,), (1399760363,), (1399760366,), (1399760368,), (1399760370,), (1399760376,), (1399760378,), (1399760380,), (1399765985,), (1399765982,), (1399765983,), (1399765984,), (1399766002,), (1399766004,), (1399766007,), (1399766009,), (1399766036,), (1399766038,), (1399766040,), (1399766261,), (1399766296,), (1399766307,), (1399766311,), (1399766315,), (1399766319,), (1399766325,), (1399766334,), (1399766335,), (1399766337,), (1399766379,), (1399766382,), (1399766383,), (1399766386,), (1399766389,), (1399766394,), (1399766411,), (1399766414,), (1399766416,), (1399766418,), (1399766420,), (1399766422,), (1399766432,), (1399766435,), (1399766437,), (1399766439,), (1399766444,), (1399766446,), (1399766449,), (1399766459,), (1399766464,), (1399766499,), (1399766505,), (1399766507,), (1399766509,), (1399766512,), (1399766527,), (1399766528,), (1399766529,), (1399766530,), (1399766556,), (1399766558,), (1399766560,), (1399766562,), (1399766609,), (1399766610,), (1399766611,), (1399766612,), (1399766615,), (1399766642,), (1399766643,), (1399766645,), (1399766647,), (1399766650,), (1399766665,), (1399766666,), (1399766668,), (1399766669,), (1399766748,), (1399766730,), (1399766738,), (1399766739,), (1399766742,), (1399766745,), (1399766753,), (1399766754,), (1399766756,), (1399766758,), (1399766761,), (1399766763,), (1399766781,), (1399766783,), (1399766785,), (1399766788,), (1399766790,), (1399766793,), (1399766836,), (1399766837,), (1399766839,), (1399766842,), (1399766845,), (1399766851,), (1399766864,), (1399766865,), (1399766866,), (1399766867,), (1399766868,), (1399766869,), (1399766873,), (1399766876,), (1399766878,), (1399766881,), (1399766885,), (1399766889,), (1399766891,), (1399766893,), (1399766895,), (1399766897,), (1399766901,), (1399766904,), (1399766978,), (1399766980,), (1399766982,), (1399766984,), (1399766987,), (1399767001,), (1399767004,), (1399767006,), (1399767026,), (1399767028,), (1399767030,), (1399767100,), (1399767103,), (1399767107,), (1399767111,), (1399767115,), (1399767118,), (1399767128,), (1399767129,), (1399767149,), (1399767150,), (1399767151,), (1399767152,), (1399767191,), (1399767194,), (1399767196,), (1399767198,), (1399767200,), (1399767552,), (1399767555,), (1399767558,), (1399767562,), (1399767565,), (1399767568,), (1399767572,), (1399767573,), (1399767576,), (1399767600,), (1399767629,), (1399767662,), (1399767947,), (1399768014,), (1399768305,), (1399767784,), (1399767819,), (1399767854,), (1399767889,), (1399768540,), (1399768603,), (1399768667,), (1399768731,), (1399768793,), (1399768862,), (1399769177,), (1399769178,), (1399769179,), (1399769555,), (1399769615,), (1399769659,), (1399769712,), (1399769746,), (1399769880,), (1399769881,), (1399769882,), (1399769885,), (1399769888,), (1399769891,), (1399769902,), (1399769903,), (1399769913,), (1399769917,), (1399769950,), (1399769951,), (1399769982,), (1399769984,), (1399769986,), (1399769987,), (1399769990,), (1399770012,), (1399770014,), (1399770016,), (1399770019,), (1399770022,), (1399770024,), (1399770029,), (1399770031,), (1399770035,), (1399770037,), (1399770042,), (1399770045,), (1399770048,), (1399770051,), (1399770099,), (1399770100,), (1399770101,), (1399770102,), (1399770105,), (1399770107,), (1399770272,), (1399770274,), (1399770276,), (1399770304,), (1399770306,), (1399770308,), (1399770310,), (1399770338,), (1399770339,), (1399770341,), (1399770368,), (1399770369,), (1399770370,), (1399770377,), (1399770385,), (1399770388,), (1399770502,), (1399770504,), (1399770507,), (1399770510,), (1399770518,), (1399770550,), (1399770598,), (1399770609,), (1399770622,), (1399770659,), (1399770667,), (1399770669,), (1399770678,), (1399770675,), (1399770694,), (1399770695,), (1399770696,), (1399770697,), (1399770700,), (1399770742,), (1399770744,), (1399770780,), (1399770814,), (1399770848,), (1399770860,), (1399770872,), (1399770873,), (1399770877,), (1399770880,), (1399770884,), (1399770887,), (1399770900,), (1399770906,), (1399770907,), (1399770908,), (1399770909,), (1399770910,), (1399770915,), (1399770918,), (1399770921,), (1399770925,), (1399770927,), (1399770929,), (1399770940,), (1399770942,), (1399770944,), (1399770946,), (1399770949,), (1399770951,), (1399770956,), (1399770964,), (1399770965,), (1399770966,), (1399770967,), (1399770970,), (1399770973,), (1399770992,), (1399770994,), (1399770996,), (1399771001,), (1399771004,), (1399771033,), (1399771048,), (1399771057,), (1399771066,), (1399771080,), (1399771231,), (1399771232,), (1399771234,), (1399771241,), (1399771277,), (1399771284,), (1399771311,), (1399771312,), (1399771318,), (1399771352,), (1399771370,), (1399771377,), (1399771393,), (1399771396,), (1399771411,), (1399771412,), (1399771413,), (1399771414,), (1399771417,), (1399771443,), (1399771444,), (1399771446,), (1399771449,), (1399771452,), (1399771454,), (1399771463,), (1399771465,), (1399771466,), (1399771469,), (1399771472,), (1399771475,), (1399771478,), (1399771481,), (1399771487,), (1399771506,), (1399771509,), (1399771511,), (1399771513,), (1399771545,), (1399771536,), (1399771537,), (1399771538,), (1399771539,), (1399771542,), (1399771575,), (1399771577,), (1399771579,), (1399771581,), (1399771608,), (1399771610,), (1399771612,), (1399771616,), (1399771618,), (1399771623,), (1399771653,), (1399771655,), (1399771657,), (1399771659,), (1399771662,), (1399771664,), (1399771685,), (1399771705,), (1399771722,), (1399771730,), (1399771736,), (1399771763,), (1399771778,), (1399771779,), (1399771780,), (1399771782,), (1399771892,), (1399771895,), (1399771899,), (1399771901,), (1399771912,), (1399771928,), (1399771929,), (1399771930,), (1399771962,), (1399771972,), (1399771981,), (1399771983,), (1399772010,), (1399772011,), (1399772012,), (1399772013,), (1399772297,), (1399772298,), (1399772299,), (1399772300,), (1399772357,), (1399772365,), (1399772374,), (1399772376,), (1399772378,), (1399772390,), (1399772430,), (1399772431,), (1399772432,), (1399772435,), (1399772439,), (1399772442,), (1399772556,), (1399772588,), (1399772989,), (1399772814,), (1399772848,), (1399772884,), (1399772924,), (1399772968,), (1399773038,), (1399773069,), (1399773092,), (1399773093,), (1399773096,), (1399773116,), (1399773118,), (1399773119,), (1399773122,), (1399773125,), (1399773127,), (1399773135,), (1399773159,), (1399773164,), (1399773168,), (1399773178,), (1399773206,), (1399773208,), (1399773211,), (1399773214,), (1399773217,), (1399773230,), (1399773232,), (1399773233,), (1399773235,), (1399773238,), (1399773257,), (1399773258,), (1399773265,), (1399773299,), (1399773331,), (1399773787,), (1399773831,), (1399773868,), (1399774024,), (1399774026,), (1399774033,), (1399774036,), (1399774049,), (1399774199,), (1399774234,), (1399774265,), (1399774299,), (1399774316,), (1399774321,), (1399774439,), (1399775899,), (1399776640,), (1399776808,), (1399776894,), (1399776895,), (1399776896,), (1399776947,), (1399776948,), (1399776949,), (1399776950,), (1399776952,), (1399776971,), (1399776973,), (1399776975,), (1399776976,), (1399776979,), (1399776982,), (1399776997,), (1399776998,), (1399777000,), (1399777045,), (1399777047,), (1399777051,), (1399777056,), (1399777059,), (1399777063,), (1399777068,), (1399777069,), (1399777071,), (1399777078,), (1399777080,), (1399777084,), (1399777088,), (1399777090,), (1399777091,), (1399777105,), (1399777107,), (1399777109,), (1399777111,), (1399777114,), (1399777164,), (1399777165,), (1399777166,), (1399777169,), (1399777172,), (1399777175,), (1399777183,), (1399777184,), (1399777185,), (1399777186,), (1399777190,), (1399777191,), (1399777193,), (1399777196,), (1399777199,), (1399777222,), (1399777223,), (1399777225,), (1399777226,), (1399777270,), (1399777261,), (1399777263,), (1399777265,), (1399777267,), (1399777287,), (1399777288,), (1399777289,), (1399777290,), (1399777292,), (1399777294,), (1399777311,), (1399777314,), (1399777316,), (1399777319,), (1399777372,), (1399777373,), (1399777374,), (1399777375,), (1399777378,), (1399777380,), (1399777393,), (1399777397,), (1399777404,), (1399777407,), (1399777410,), (1399777411,), (1399777427,), (1399777430,), (1399777432,), (1399777457,), (1399777498,), (1399777499,), (1399777500,), (1399777503,), (1399777506,), (1399777509,), (1399777558,), (1399777559,), (1399777561,), (1399777563,), (1399777611,), (1399777612,), (1399777613,), (1399777614,), (1399777618,), (1399777702,), (1399777731,), (1399777740,), (1399777751,), (1399777753,), (1399777798,), (1399777799,), (1399777800,), (1399777820,), (1399777823,), (1399777824,), (1399777826,), (1399777829,), (1399777878,), (1399777887,), (1399777889,), (1399777891,), (1399777915,), (1399777916,), (1399777917,), (1399777918,), (1399777944,), (1399777945,), (1399777947,), (1399777949,), (1399777952,), (1399777969,), (1399777972,), (1399777976,), (1399777980,), (1399777985,), (1399777989,), (1399778008,), (1399778009,), (1399778011,), (1399778013,), (1399778032,), (1399778020,), (1399778021,), (1399778024,), (1399778028,), (1399778030,), (1399778074,), (1399778378,), (1399778407,), (1399778492,), (1399778494,), (1399778496,), (1399778539,), (1399778675,), (1399778680,), (1399778708,), (1399778699,), (1399778702,), (1399778705,), (1399778744,), (1399778757,), (1399778781,), (1399778783,), (1399778785,), (1399778787,), (1399778835,), (1399778836,), (1399778837,), (1399778838,), (1399778841,), (1399778856,), (1399778859,), (1399778866,), (1399778868,), (1399778871,), (1399778873,), (1399778890,), (1399778893,), (1399778896,), (1399778912,), (1399778921,), (1399778923,), (1399779035,), (1399779412,), (1399779415,), (1399779469,), (1399779768,), (1399782312,), (1399782306,), (1399782310,), (1399782372,), (1399782440,), (1399782468,), (1399782537,), (1399782543,), (1399782754,), (1399782774,), (1399782786,), (1399782791,), (1399782892,), (1399782930,), (1399782938,), (1399782951,), (1399783275,), (1399783277,), (1399783282,), (1399783285,), (1399783316,), (1399783354,), (1399783422,), (1399783424,), (1399783475,), (1399783470,), (1399783472,), (1399783573,), (1399783575,), (1399783577,), (1399783581,), (1399783605,), (1399783606,), (1399783607,), (1399783608,), (1399783611,), (1399783635,), (1399783637,), (1399783639,), (1399783641,), (1399783644,), (1399783695,), (1399783709,), (1399783711,), (1399783712,), (1399783741,), (1399783773,), (1399783844,), (1399783868,), (1399783905,), (1399784136,), (1399784196,), (1399784197,), (1399784200,), (1399784203,), (1399784207,), (1399784315,), (1399784321,), (1399784323,), (1399784331,), (1399784362,), (1399784393,), (1399784662,), (1399784664,), (1399784668,), (1399784672,), (1399784676,), (1399784679,), (1399784694,), (1399784695,), (1399784696,), (1399784698,), (1399784704,), (1399784706,), (1399784708,), (1399784711,), (1399784721,), (1399784722,), (1399784723,), (1399784724,), (1399784748,), (1399784751,), (1399784754,), (1399784757,), (1399784796,), (1399784805,), (1399784822,), (1399784824,), (1399784828,), (1399784829,), (1399784851,), (1399784841,), (1399784843,), (1399784845,), (1399784847,), (1399784910,), (1399784912,), (1399784913,), (1399785174,), (1399785186,), (1399785199,), (1399785201,), (1399785204,), (1399785229,), (1399785231,), (1399785233,), (1399785235,), (1399785238,), (1399785241,), (1399785254,), (1399785255,), (1399785256,), (1399785259,), (1399785262,), (1399785265,), (1399785280,), (1399785284,), (1399785288,), (1399785295,), (1399785303,), (1399785305,), (1399785307,), (1399785310,), (1399785323,), (1399785324,), (1399785325,), (1399785326,), (1399785486,), (1399785518,), (1399785556,), (1399785589,), (1399785986,), (1399786019,), (1399786058,), (1399786071,), (1399786104,), (1399786469,), (1399786472,), (1399786474,), (1399786484,), (1399786518,), (1399786980,), (1399786987,), (1399787010,), (1399787047,), (1399787138,), (1399787140,), (1399787141,), (1399787231,), (1399787264,), (1399787297,), (1399787329,), (1399787364,), (1399787530,), (1399787570,), (1399787602,), (1399787635,), (1399787667,), (1399787701,), (1399788280,), (1399788318,), (1399788352,), (1399788416,), (1399788485,), (1399788564,), (1399788655,), (1399788656,), (1399788661,), (1399788665,), (1399788839,), (1399788728,), (1399788762,), (1399788802,), (1399788831,), (1399788836,), (1399788915,), (1399788918,), (1399788950,), (1399788966,), (1399788970,), (1399788973,), (1399788994,), (1399788996,), (1399788999,), (1399789102,), (1399789135,), (1399789166,), (1399789199,), (1399789232,), (1399789266,), (1399789563,), (1399789564,), (1399789565,), (1399789566,), (1399789569,), (1399789729,), (1399789762,), (1399789792,), (1399789795,), (1399789798,), (1399789898,), (1399789900,), (1399789902,), (1399789904,), (1399789906,), (1399789908,), (1399790055,), (1399790090,), (1399790122,), (1399790555,), (1399790587,), (1399790622,), (1399791245,), (1399791258,), (1399791260,), (1399791264,), (1399791291,), (1399791326,), (1399791529,), (1399791533,), (1399791553,), (1399791570,), (1399791600,), (1399791602,), (1399791604,), (1399791960,), (1399791994,), (1399792026,), (1399792052,), (1399792155,), (1399792188,), (1399792222,), (1399792361,), (1399792362,), (1399792728,), (1399792659,), (1399792693,), (1399792967,), (1399792989,), (1399792991,), (1399793009,), (1399793024,), (1399793103,), (1399793104,), (1399793106,), (1399793108,), (1399793111,), (1399793137,), (1399793145,), (1399793182,), (1399793636,), (1399793667,), (1399793693,), (1399793696,), (1399793699,), (1399793704,), (1399793761,), (1399794060,), (1399794068,), (1399794070,), (1399794087,), (1399794089,), (1399794091,), (1399794135,), (1399794139,), (1399794145,), (1399794160,), (1399794285,), (1399794286,), (1399794289,), (1399794291,), (1399794370,), (1399794372,), (1399794400,), (1399794402,), (1399794614,), (1399794616,), (1399794642,), (1399794643,), (1399794645,), (1399794646,), (1399794649,), (1399794652,), (1399794680,), (1399794677,), (1399794678,), (1399794696,), (1399794697,), (1399794698,), (1399794699,), (1399794708,), (1399794715,), (1399794717,), (1399794756,), (1399794758,), (1399794760,), (1399794762,), (1399794766,), (1399794805,), (1399794845,), (1399794881,), (1399794913,), (1399794920,), (1399794935,), (1399794937,), (1399794955,), (1399794957,), (1399794959,), (1399795006,), (1399795008,), (1399795010,), (1399795024,), (1399795062,), (1399795231,), (1399795250,), (1399795270,), (1399795272,), (1399795274,), (1399795276,), (1399795346,), (1399795348,), (1399795350,), (1399795351,), (1399795353,), (1399795356,), (1399795361,), (1399795376,), (1399795379,), (1399795382,), (1399795398,), (1399796039,), (1399796037,), (1399797628,), (1399797700,), (1399797702,), (1399797719,), (1399797720,), (1399797721,), (1399797722,), (1399797753,), (1399797772,), (1399797806,), (1399797810,), (1399797829,), (1399797831,), (1399797832,), (1399797834,), (1399797837,), (1399797853,), (1399797869,), (1399797871,), (1399797874,), (1399797876,), (1399797901,), (1399797900,), (1399797916,), (1399797918,), (1399797952,), (1399797954,), (1399797975,), (1399797977,), (1399797992,), (1399797994,), (1399797996,), (1399798007,), (1399798009,), (1399798034,), (1399798036,), (1399798134,), (1399798536,), (1399798535,), (1399798725,), (1399798721,), (1399798723,), (1399798742,), (1399798743,), (1399798744,), (1399798745,), (1399798772,), (1399798774,), (1399798776,), (1399798780,), (1399798783,), (1399798785,), (1399798801,), (1399798807,), (1399798808,), (1399798809,), (1399798810,), (1399798813,), (1399798815,), (1399798832,), (1399798834,), (1399798836,), (1399798851,), (1399798852,), (1399798853,), (1399798854,), (1399798855,), (1399798858,), (1399798879,), (1399798889,), (1399798897,), (1399798899,), (1399798902,), (1399798905,), (1399799423,), (1399800514,), (1399801069,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'17122025': {'nb_upload': 37, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29503062]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1399801069] map_info['map_portfolio_photo'] : {29503062: [1399801069, 1399800514, 1399799423, 1399798905, 1399798902, 1399798899, 1399798897, 1399798889, 1399798879, 1399798858, 1399798855, 1399798854, 1399798853, 1399798852, 1399798851, 1399798836, 1399798834, 1399798832, 1399798815, 1399798813, 1399798810, 1399798809, 1399798808, 1399798807, 1399798801, 1399798785, 1399798783, 1399798780, 1399798776, 1399798774, 1399798772, 1399798745, 1399798744, 1399798743, 1399798742, 1399798723, 1399798721]} final : True mtd_id 4302 list_pids : [1399801069] Looping around the photos to save general results len do output : 1 /29503062Didn'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, '4240827') ('4302', '29503062', '1399801069', None, None, None, None, None, '4240827') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 2 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, '29503062', 'None', None, None, None, None, '4240827'), ('4302', '29503062', '1399801069', None, None, None, None, None, '4240827')] time used for this insertion : 0.014471769332885742 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.3073484897613525 time spend to save output : 0.014604330062866211 total time spend for step 5 : 3.3219528198242188 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 (4240827) 1.96user 2.46system 0:14.12elapsed 31%CPU (0avgtext+0avgdata 161696maxresident)k 136inputs+10640outputs (20major+65151minor)pagefaults 0swaps