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 : 1753277 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 (4223496) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (4223496) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29433905 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['4223496'] with mtr_portfolio_ids : ['29433905'] and first list_photo_ids : [] new path : /proc/1753277/ Name: python3 Umask: 0002 State: R (running) Tgid: 1753277 Ngid: 0 Pid: 1753277 PPid: 1753276 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 1753277 NSpid: 1753277 NSpgid: 1751641 NSsid: 1751641 VmPeak: 1113376 kB VmSize: 1113376 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 105808 kB VmRSS: 105808 kB RssAnon: 66380 kB RssFile: 39428 kB RssShmem: 0 kB VmData: 872104 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130476 kB VmPTE: 632 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: 101 nonvoluntary_ctxt_switches: 180 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '1753277', 'Ngid': '0', 'Pid': '1753277', 'PPid': '1753276', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '1753277', 'NSpid': '1753277', 'NSpgid': '1751641', 'NSsid': '1751641', 'VmPeak': '1113376 kB', 'VmSize': '1113376 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '105808 kB', 'VmRSS': '105808 kB', 'RssAnon': '66380 kB', 'RssFile': '39428 kB', 'RssShmem': '0 kB', 'VmData': '872104 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130476 kB', 'VmPTE': '632 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': '101', 'nonvoluntary_ctxt_switches': '180'} ('datou_batch_current', '1753277', '1113376', '0', '1113376', '872104', '105808', b'', 'marlene', '4223496') 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 (29433905) 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 (4223496 ) ) 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 (29433905) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1399512131, 'portfolio_id': 29433905}, {'photo_id': 1399512124, 'portfolio_id': 29433905}, {'photo_id': 1399512122, 'portfolio_id': 29433905}, {'photo_id': 1399512119, 'portfolio_id': 29433905}, {'photo_id': 1399512087, 'portfolio_id': 29433905}, {'photo_id': 1399512086, 'portfolio_id': 29433905}, {'photo_id': 1399512085, 'portfolio_id': 29433905}, {'photo_id': 1399512084, 'portfolio_id': 29433905}, {'photo_id': 1399512059, 'portfolio_id': 29433905}, {'photo_id': 1399512055, 'portfolio_id': 29433905}, {'photo_id': 1399512053, 'portfolio_id': 29433905}, {'photo_id': 1399512051, 'portfolio_id': 29433905}, {'photo_id': 1399512044, 'portfolio_id': 29433905}, {'photo_id': 1399512026, 'portfolio_id': 29433905}, {'photo_id': 1399512018, 'portfolio_id': 29433905}, {'photo_id': 1399512014, 'portfolio_id': 29433905}, {'photo_id': 1399512012, 'portfolio_id': 29433905}, {'photo_id': 1399512010, 'portfolio_id': 29433905}, {'photo_id': 1399511883, 'portfolio_id': 29433905}, {'photo_id': 1399511881, 'portfolio_id': 29433905}, {'photo_id': 1399511879, 'portfolio_id': 29433905}] map_portfolio_id_photo_id: {29433905: [1399512131, 1399512124, 1399512122, 1399512119, 1399512087, 1399512086, 1399512085, 1399512084, 1399512059, 1399512055, 1399512053, 1399512051, 1399512044, 1399512026, 1399512018, 1399512014, 1399512012, 1399512010, 1399511883, 1399511881, 1399511879]} ##### 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.0186154842376709 #### 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 Mon Dec 15 14:20: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 After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29433905) 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 : 29433905 get user id for portfolio 29433905 get sub ptf for main ptf 29433905, type 3726 and hashtags ['flou', 'Carton_brun', 'Carton_gris', 'papier', 'Teint_Dans_La_Masse', 'environnement', 'plastique', 'mal_croppe', 'kraft', 'cartonnette', 'metal', 'autre_refus'] 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`=29433905 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','Carton_brun','Carton_gris','papier','Teint_Dans_La_Masse','environnement','plastique','mal_croppe','kraft','cartonnette','metal','autre_refus')) 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`=29433905 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','Carton_brun','Carton_gris','papier','Teint_Dans_La_Masse','environnement','plastique','mal_croppe','kraft','cartonnette','metal','autre_refus')) AND mptpi.`min_score`=0.5 To do returned map {'metal': {'main_port_id': 29433905, 'sub_port_id': 29433943, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20058862, 'last_updated_at': datetime.datetime(2025, 12, 15, 14, 18, 30), 'last_updated_at_desc': datetime.datetime(2025, 12, 15, 14, 18, 30), 'last_updated_at_asc': datetime.datetime(2025, 12, 15, 14, 17, 27)}, 'papier': {'main_port_id': 29433905, 'sub_port_id': 29433944, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20058863, 'last_updated_at': datetime.datetime(2025, 12, 15, 14, 18, 30), 'last_updated_at_desc': datetime.datetime(2025, 12, 15, 14, 18, 30), 'last_updated_at_asc': datetime.datetime(2025, 12, 15, 14, 17, 27)}, 'mal_croppe': {'main_port_id': 29433905, 'sub_port_id': 29433945, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20058864, 'last_updated_at': datetime.datetime(2025, 12, 15, 14, 18, 30), 'last_updated_at_desc': datetime.datetime(2025, 12, 15, 14, 18, 30), 'last_updated_at_asc': datetime.datetime(2025, 12, 15, 14, 17, 27)}, 'Carton_gris': {'main_port_id': 29433905, 'sub_port_id': 29433946, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20058865, 'last_updated_at': datetime.datetime(2025, 12, 15, 14, 18, 30), 'last_updated_at_desc': datetime.datetime(2025, 12, 15, 14, 18, 30), 'last_updated_at_asc': datetime.datetime(2025, 12, 15, 14, 17, 27)}, 'flou': {'main_port_id': 29433905, 'sub_port_id': 29433947, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20058866, 'last_updated_at': datetime.datetime(2025, 12, 15, 14, 18, 30), 'last_updated_at_desc': datetime.datetime(2025, 12, 15, 14, 18, 30), 'last_updated_at_asc': datetime.datetime(2025, 12, 15, 14, 17, 27)}, 'autre_refus': {'main_port_id': 29433905, 'sub_port_id': 29433948, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20058867, 'last_updated_at': datetime.datetime(2025, 12, 15, 14, 18, 30), 'last_updated_at_desc': datetime.datetime(2025, 12, 15, 14, 18, 30), 'last_updated_at_asc': datetime.datetime(2025, 12, 15, 14, 17, 27)}, 'cartonnette': {'main_port_id': 29433905, 'sub_port_id': 29433949, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20058868, 'last_updated_at': datetime.datetime(2025, 12, 15, 14, 18, 30), 'last_updated_at_desc': datetime.datetime(2025, 12, 15, 14, 18, 30), 'last_updated_at_asc': datetime.datetime(2025, 12, 15, 14, 17, 27)}, 'environnement': {'main_port_id': 29433905, 'sub_port_id': 29433950, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20058869, 'last_updated_at': datetime.datetime(2025, 12, 15, 14, 18, 30), 'last_updated_at_desc': datetime.datetime(2025, 12, 15, 14, 18, 30), 'last_updated_at_asc': datetime.datetime(2025, 12, 15, 14, 17, 27)}, 'kraft': {'main_port_id': 29433905, 'sub_port_id': 29433951, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20058870, 'last_updated_at': datetime.datetime(2025, 12, 15, 14, 18, 30), 'last_updated_at_desc': datetime.datetime(2025, 12, 15, 14, 18, 30), 'last_updated_at_asc': datetime.datetime(2025, 12, 15, 14, 17, 27)}, 'Carton_brun': {'main_port_id': 29433905, 'sub_port_id': 29433952, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20058871, 'last_updated_at': datetime.datetime(2025, 12, 15, 14, 18, 30), 'last_updated_at_desc': datetime.datetime(2025, 12, 15, 14, 18, 30), 'last_updated_at_asc': datetime.datetime(2025, 12, 15, 14, 17, 27)}, 'Teint_Dans_La_Masse': {'main_port_id': 29433905, 'sub_port_id': 29433953, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20058872, 'last_updated_at': datetime.datetime(2025, 12, 15, 14, 18, 30), 'last_updated_at_desc': datetime.datetime(2025, 12, 15, 14, 18, 30), 'last_updated_at_asc': datetime.datetime(2025, 12, 15, 14, 17, 27)}, 'plastique': {'main_port_id': 29433905, 'sub_port_id': 29433954, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20058873, 'last_updated_at': datetime.datetime(2025, 12, 15, 14, 18, 30), 'last_updated_at_desc': datetime.datetime(2025, 12, 15, 14, 18, 30), 'last_updated_at_asc': datetime.datetime(2025, 12, 15, 14, 17, 27)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29433943 , 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=29433905 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 (29433943) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29433905) result : ((1399511879,), (1399511881,), (1399511883,), (1399512010,), (1399512012,), (1399512014,), (1399512018,), (1399512026,), (1399512044,), (1399512051,), (1399512053,), (1399512055,), (1399512059,), (1399512084,), (1399512085,), (1399512086,), (1399512087,), (1399512119,), (1399512122,), (1399512124,), (1399512131,)) 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 29433944 , 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=29433905 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 (29433944) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29433905) result : ((1399511879,), (1399511881,), (1399511883,), (1399512010,), (1399512012,), (1399512014,), (1399512018,), (1399512026,), (1399512044,), (1399512051,), (1399512053,), (1399512055,), (1399512059,), (1399512084,), (1399512085,), (1399512086,), (1399512087,), (1399512119,), (1399512122,), (1399512124,), (1399512131,)) 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 29433945 , 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=29433905 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 (29433945) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29433905) result : ((1399511879,), (1399511881,), (1399511883,), (1399512010,), (1399512012,), (1399512014,), (1399512018,), (1399512026,), (1399512044,), (1399512051,), (1399512053,), (1399512055,), (1399512059,), (1399512084,), (1399512085,), (1399512086,), (1399512087,), (1399512119,), (1399512122,), (1399512124,), (1399512131,)) 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 29433946 , 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=29433905 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 (29433946) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29433905) result : ((1399511879,), (1399511881,), (1399511883,), (1399512010,), (1399512012,), (1399512014,), (1399512018,), (1399512026,), (1399512044,), (1399512051,), (1399512053,), (1399512055,), (1399512059,), (1399512084,), (1399512085,), (1399512086,), (1399512087,), (1399512119,), (1399512122,), (1399512124,), (1399512131,)) 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 29433947 , 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=29433905 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 (29433947) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29433905) result : ((1399511879,), (1399511881,), (1399511883,), (1399512010,), (1399512012,), (1399512014,), (1399512018,), (1399512026,), (1399512044,), (1399512051,), (1399512053,), (1399512055,), (1399512059,), (1399512084,), (1399512085,), (1399512086,), (1399512087,), (1399512119,), (1399512122,), (1399512124,), (1399512131,)) 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 29433948 , 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=29433905 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 (29433948) result : ((1399512111,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29433905) result : ((1399511879,), (1399511881,), (1399511883,), (1399512010,), (1399512012,), (1399512014,), (1399512018,), (1399512026,), (1399512044,), (1399512051,), (1399512053,), (1399512055,), (1399512059,), (1399512084,), (1399512085,), (1399512086,), (1399512087,), (1399512119,), (1399512122,), (1399512124,), (1399512131,)) 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 29433949 , 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=29433905 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 (29433949) result : ((1399512112,), (1399512113,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29433905) result : ((1399511879,), (1399511881,), (1399511883,), (1399512010,), (1399512012,), (1399512014,), (1399512018,), (1399512026,), (1399512044,), (1399512051,), (1399512053,), (1399512055,), (1399512059,), (1399512084,), (1399512085,), (1399512086,), (1399512087,), (1399512119,), (1399512122,), (1399512124,), (1399512131,)) 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 29433950 , 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=29433905 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 (29433950) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29433905) result : ((1399511879,), (1399511881,), (1399511883,), (1399512010,), (1399512012,), (1399512014,), (1399512018,), (1399512026,), (1399512044,), (1399512051,), (1399512053,), (1399512055,), (1399512059,), (1399512084,), (1399512085,), (1399512086,), (1399512087,), (1399512119,), (1399512122,), (1399512124,), (1399512131,)) 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 29433951 , 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=29433905 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 (29433951) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29433905) result : ((1399511879,), (1399511881,), (1399511883,), (1399512010,), (1399512012,), (1399512014,), (1399512018,), (1399512026,), (1399512044,), (1399512051,), (1399512053,), (1399512055,), (1399512059,), (1399512084,), (1399512085,), (1399512086,), (1399512087,), (1399512119,), (1399512122,), (1399512124,), (1399512131,)) 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 29433952 , 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=29433905 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 (29433952) result : ((1399512115,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29433905) result : ((1399511879,), (1399511881,), (1399511883,), (1399512010,), (1399512012,), (1399512014,), (1399512018,), (1399512026,), (1399512044,), (1399512051,), (1399512053,), (1399512055,), (1399512059,), (1399512084,), (1399512085,), (1399512086,), (1399512087,), (1399512119,), (1399512122,), (1399512124,), (1399512131,)) 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 29433953 , 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=29433905 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 (29433953) result : ((1399512107,), (1399512108,), (1399512109,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29433905) result : ((1399511879,), (1399511881,), (1399511883,), (1399512010,), (1399512012,), (1399512014,), (1399512018,), (1399512026,), (1399512044,), (1399512051,), (1399512053,), (1399512055,), (1399512059,), (1399512084,), (1399512085,), (1399512086,), (1399512087,), (1399512119,), (1399512122,), (1399512124,), (1399512131,)) 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 29433954 , 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=29433905 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 (29433954) result : ((1399512116,), (1399512117,), (1399512118,), (1399512120,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29433905) result : ((1399511879,), (1399511881,), (1399511883,), (1399512010,), (1399512012,), (1399512014,), (1399512018,), (1399512026,), (1399512044,), (1399512051,), (1399512053,), (1399512055,), (1399512059,), (1399512084,), (1399512085,), (1399512086,), (1399512087,), (1399512119,), (1399512122,), (1399512124,), (1399512131,)) 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`=29433905 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','Carton_brun','Carton_gris','papier','Teint_Dans_La_Masse','environnement','plastique','mal_croppe','kraft','cartonnette','metal','autre_refus')) 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`=29433905 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','Carton_brun','Carton_gris','papier','Teint_Dans_La_Masse','environnement','plastique','mal_croppe','kraft','cartonnette','metal','autre_refus')) AND mptpi.`min_score`=0.5 To do returned map {'metal': {'main_port_id': 29433905, 'sub_port_id': 29433955, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20058874, 'last_updated_at': datetime.datetime(2025, 12, 15, 14, 17, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 15, 14, 17, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 15, 14, 17, 29)}, 'papier': {'main_port_id': 29433905, 'sub_port_id': 29433956, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20058875, 'last_updated_at': datetime.datetime(2025, 12, 15, 14, 17, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 15, 14, 17, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 15, 14, 17, 29)}, 'mal_croppe': {'main_port_id': 29433905, 'sub_port_id': 29433957, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20058876, 'last_updated_at': datetime.datetime(2025, 12, 15, 14, 17, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 15, 14, 17, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 15, 14, 17, 29)}, 'Carton_gris': {'main_port_id': 29433905, 'sub_port_id': 29433958, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20058877, 'last_updated_at': datetime.datetime(2025, 12, 15, 14, 17, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 15, 14, 17, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 15, 14, 17, 29)}, 'flou': {'main_port_id': 29433905, 'sub_port_id': 29433959, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20058878, 'last_updated_at': datetime.datetime(2025, 12, 15, 14, 17, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 15, 14, 17, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 15, 14, 17, 29)}, 'autre_refus': {'main_port_id': 29433905, 'sub_port_id': 29433960, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20058879, 'last_updated_at': datetime.datetime(2025, 12, 15, 14, 17, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 15, 14, 17, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 15, 14, 17, 29)}, 'cartonnette': {'main_port_id': 29433905, 'sub_port_id': 29433961, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20058880, 'last_updated_at': datetime.datetime(2025, 12, 15, 14, 17, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 15, 14, 17, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 15, 14, 17, 29)}, 'environnement': {'main_port_id': 29433905, 'sub_port_id': 29433962, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20058881, 'last_updated_at': datetime.datetime(2025, 12, 15, 14, 17, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 15, 14, 17, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 15, 14, 17, 29)}, 'kraft': {'main_port_id': 29433905, 'sub_port_id': 29433963, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20058882, 'last_updated_at': datetime.datetime(2025, 12, 15, 14, 17, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 15, 14, 17, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 15, 14, 17, 29)}, 'Carton_brun': {'main_port_id': 29433905, 'sub_port_id': 29433964, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20058883, 'last_updated_at': datetime.datetime(2025, 12, 15, 14, 17, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 15, 14, 17, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 15, 14, 17, 29)}, 'Teint_Dans_La_Masse': {'main_port_id': 29433905, 'sub_port_id': 29433965, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20058884, 'last_updated_at': datetime.datetime(2025, 12, 15, 14, 17, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 15, 14, 17, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 15, 14, 17, 29)}, 'plastique': {'main_port_id': 29433905, 'sub_port_id': 29433966, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20058885, 'last_updated_at': datetime.datetime(2025, 12, 15, 14, 18, 30), 'last_updated_at_desc': datetime.datetime(2025, 12, 15, 14, 18, 30), 'last_updated_at_asc': datetime.datetime(2025, 12, 15, 14, 17, 29)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29433955,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29433943 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29433956,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29433944 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29433957,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29433945 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29433958,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29433946 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29433959,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29433947 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29433960,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29433948 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29433961,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29433949 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29433962,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29433950 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29433963,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29433951 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29433964,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29433952 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29433965,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29433953 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29433966,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29433954 lien utilise dans velours : https://marlene.fotonower.com/velours/29433955,29433956,29433957,29433958,29433959,29433960,29433961,29433962,29433963,29433964,29433965,29433966?tags=metal,papier,mal_croppe,Carton_gris,flou,autre_refus,cartonnette,environnement,kraft,Carton_brun,Teint_Dans_La_Masse,plastique After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29433905]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1399512131, 1399512124, 1399512122, 1399512119, 1399512087, 1399512086, 1399512085, 1399512084, 1399512059, 1399512055, 1399512053, 1399512051, 1399512044] map_info['map_portfolio_photo'] : {29433905: [1399512131, 1399512124, 1399512122, 1399512119, 1399512087, 1399512086, 1399512085, 1399512084, 1399512059, 1399512055, 1399512053, 1399512051, 1399512044, 1399512026, 1399512018, 1399512014, 1399512012, 1399512010, 1399511883, 1399511881, 1399511879]} final : False mtd_id 4302 list_pids : [1399512131, 1399512124, 1399512122, 1399512119, 1399512087, 1399512086, 1399512085, 1399512084, 1399512059, 1399512055, 1399512053, 1399512051, 1399512044] Looping around the photos to save general results len do output : 1 /29433905. 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, '4223496') ('4302', '29433905', '1399512131', None, None, None, None, None, '4223496') ('4302', None, None, None, None, None, None, None, '4223496') ('4302', '29433905', '1399512124', None, None, None, None, None, '4223496') ('4302', None, None, None, None, None, None, None, '4223496') ('4302', '29433905', '1399512122', None, None, None, None, None, '4223496') ('4302', None, None, None, None, None, None, None, '4223496') ('4302', '29433905', '1399512119', None, None, None, None, None, '4223496') ('4302', None, None, None, None, None, None, None, '4223496') ('4302', '29433905', '1399512087', None, None, None, None, None, '4223496') ('4302', None, None, None, None, None, None, None, '4223496') ('4302', '29433905', '1399512086', None, None, None, None, None, '4223496') ('4302', None, None, None, None, None, None, None, '4223496') ('4302', '29433905', '1399512085', None, None, None, None, None, '4223496') ('4302', None, None, None, None, None, None, None, '4223496') ('4302', '29433905', '1399512084', None, None, None, None, None, '4223496') ('4302', None, None, None, None, None, None, None, '4223496') ('4302', '29433905', '1399512059', None, None, None, None, None, '4223496') ('4302', None, None, None, None, None, None, None, '4223496') ('4302', '29433905', '1399512055', None, None, None, None, None, '4223496') ('4302', None, None, None, None, None, None, None, '4223496') ('4302', '29433905', '1399512053', None, None, None, None, None, '4223496') ('4302', None, None, None, None, None, None, None, '4223496') ('4302', '29433905', '1399512051', None, None, None, None, None, '4223496') ('4302', None, None, None, None, None, None, None, '4223496') ('4302', '29433905', '1399512044', None, None, None, None, None, '4223496') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 14 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '29433905', "{'metal': 29433943, 'papier': 29433944, 'mal_croppe': 29433945, 'Carton_gris': 29433946, 'flou': 29433947, 'autre_refus': 29433948, 'cartonnette': 29433949, 'environnement': 29433950, 'kraft': 29433951, 'Carton_brun': 29433952, 'Teint_Dans_La_Masse': 29433953, 'plastique': 29433954}", None, None, None, None, '4223496'), ('4302', '29433905', '1399512131', None, None, None, None, None, '4223496'), ('4302', '29433905', '1399512124', None, None, None, None, None, '4223496'), ('4302', '29433905', '1399512122', None, None, None, None, None, '4223496'), ('4302', '29433905', '1399512119', None, None, None, None, None, '4223496'), ('4302', '29433905', '1399512087', None, None, None, None, None, '4223496'), ('4302', '29433905', '1399512086', None, None, None, None, None, '4223496'), ('4302', '29433905', '1399512085', None, None, None, None, None, '4223496'), ('4302', '29433905', '1399512084', None, None, None, None, None, '4223496'), ('4302', '29433905', '1399512059', None, None, None, None, None, '4223496'), ('4302', '29433905', '1399512055', None, None, None, None, None, '4223496'), ('4302', '29433905', '1399512053', None, None, None, None, None, '4223496'), ('4302', '29433905', '1399512051', None, None, None, None, None, '4223496'), ('4302', '29433905', '1399512044', None, None, None, None, None, '4223496')] time used for this insertion : 0.02078986167907715 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.8605408668518066 time spend to save output : 0.021149158477783203 total time spend for step 1 : 1.8816900253295898 step2:final Mon Dec 15 14:21:01 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 (29433905) 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 29433905 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1399511883,1399511881,1399511879,1399512026,1399512018,1399512014,1399512012,1399512010,1399512059,1399512055,1399512053,1399512051,1399512044,1399512087,1399512086,1399512085,1399512084,1399512131,1399512124,1399512122,1399512119); 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([29433905]) Inside saveOutput : final : False verbose : True original output for save of step final : {1399512131: ('0.09368337155717403',), 1399512124: ('0.09368337155717403',), 1399512122: ('0.09368337155717403',), 1399512119: ('0.09368337155717403',), 1399512087: ('0.09368337155717403',), 1399512086: ('0.09368337155717403',), 1399512085: ('0.09368337155717403',), 1399512084: ('0.09368337155717403',), 1399512059: ('0.09368337155717403',), 1399512055: ('0.09368337155717403',), 1399512053: ('0.09368337155717403',), 1399512051: ('0.09368337155717403',), 1399512044: ('0.09368337155717403',)} new output for save of step final : {1399512131: ('0.09368337155717403',), 1399512124: ('0.09368337155717403',), 1399512122: ('0.09368337155717403',), 1399512119: ('0.09368337155717403',), 1399512087: ('0.09368337155717403',), 1399512086: ('0.09368337155717403',), 1399512085: ('0.09368337155717403',), 1399512084: ('0.09368337155717403',), 1399512059: ('0.09368337155717403',), 1399512055: ('0.09368337155717403',), 1399512053: ('0.09368337155717403',), 1399512051: ('0.09368337155717403',), 1399512044: ('0.09368337155717403',)} [1399512131, 1399512124, 1399512122, 1399512119, 1399512087, 1399512086, 1399512085, 1399512084, 1399512059, 1399512055, 1399512053, 1399512051, 1399512044] map_info['map_portfolio_photo'] : {29433905: [1399512131, 1399512124, 1399512122, 1399512119, 1399512087, 1399512086, 1399512085, 1399512084, 1399512059, 1399512055, 1399512053, 1399512051, 1399512044, 1399512026, 1399512018, 1399512014, 1399512012, 1399512010, 1399511883, 1399511881, 1399511879]} final : False mtd_id 4302 list_pids : [1399512131, 1399512124, 1399512122, 1399512119, 1399512087, 1399512086, 1399512085, 1399512084, 1399512059, 1399512055, 1399512053, 1399512051, 1399512044] Looping around the photos to save general results len do output : 13 /1399512131.Didn't retrieve data . /1399512124.Didn't retrieve data . /1399512122.Didn't retrieve data . /1399512119.Didn't retrieve data . /1399512087.Didn't retrieve data . /1399512086.Didn't retrieve data . /1399512085.Didn't retrieve data . /1399512084.Didn't retrieve data . /1399512059.Didn't retrieve data . /1399512055.Didn't retrieve data . /1399512053.Didn't retrieve data . /1399512051.Didn't retrieve data . /1399512044.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, '4223496') ('4302', '29433905', '1399512131', None, None, None, None, None, '4223496') ('4302', None, None, None, None, None, None, None, '4223496') ('4302', '29433905', '1399512124', None, None, None, None, None, '4223496') ('4302', None, None, None, None, None, None, None, '4223496') ('4302', '29433905', '1399512122', None, None, None, None, None, '4223496') ('4302', None, None, None, None, None, None, None, '4223496') ('4302', '29433905', '1399512119', None, None, None, None, None, '4223496') ('4302', None, None, None, None, None, None, None, '4223496') ('4302', '29433905', '1399512087', None, None, None, None, None, '4223496') ('4302', None, None, None, None, None, None, None, '4223496') ('4302', '29433905', '1399512086', None, None, None, None, None, '4223496') ('4302', None, None, None, None, None, None, None, '4223496') ('4302', '29433905', '1399512085', None, None, None, None, None, '4223496') ('4302', None, None, None, None, None, None, None, '4223496') ('4302', '29433905', '1399512084', None, None, None, None, None, '4223496') ('4302', None, None, None, None, None, None, None, '4223496') ('4302', '29433905', '1399512059', None, None, None, None, None, '4223496') ('4302', None, None, None, None, None, None, None, '4223496') ('4302', '29433905', '1399512055', None, None, None, None, None, '4223496') ('4302', None, None, None, None, None, None, None, '4223496') ('4302', '29433905', '1399512053', None, None, None, None, None, '4223496') ('4302', None, None, None, None, None, None, None, '4223496') ('4302', '29433905', '1399512051', None, None, None, None, None, '4223496') ('4302', None, None, None, None, None, None, None, '4223496') ('4302', '29433905', '1399512044', None, None, None, None, None, '4223496') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 39 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', '29433905', '1399512131', '0.09368337155717403', None, None, None, None, '4223496'), ('4302', '29433905', '1399512124', '0.09368337155717403', None, None, None, None, '4223496'), ('4302', '29433905', '1399512122', '0.09368337155717403', None, None, None, None, '4223496'), ('4302', '29433905', '1399512119', '0.09368337155717403', None, None, None, None, '4223496'), ('4302', '29433905', '1399512087', '0.09368337155717403', None, None, None, None, '4223496'), ('4302', '29433905', '1399512086', '0.09368337155717403', None, None, None, None, '4223496'), ('4302', '29433905', '1399512085', '0.09368337155717403', None, None, None, None, '4223496'), ('4302', '29433905', '1399512084', '0.09368337155717403', None, None, None, None, '4223496'), ('4302', '29433905', '1399512059', '0.09368337155717403', None, None, None, None, '4223496'), ('4302', '29433905', '1399512055', '0.09368337155717403', None, None, None, None, '4223496'), ('4302', '29433905', '1399512053', '0.09368337155717403', None, None, None, None, '4223496'), ('4302', '29433905', '1399512051', '0.09368337155717403', None, None, None, None, '4223496'), ('4302', '29433905', '1399512044', '0.09368337155717403', None, None, None, None, '4223496')] time used for this insertion : 0.018393754959106445 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.0821995735168457 time spend to save output : 0.019094228744506836 total time spend for step 2 : 0.10129380226135254 step3:velours_tree Mon Dec 15 14:21:01 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 : {29433905: [{'metal': 29433943, 'papier': 29433944, 'mal_croppe': 29433945, 'Carton_gris': 29433946, 'flou': 29433947, 'autre_refus': 29433948, 'cartonnette': 29433949, 'environnement': 29433950, 'kraft': 29433951, 'Carton_brun': 29433952, 'Teint_Dans_La_Masse': 29433953, 'plastique': 29433954}]} input_args_next_step : {29433905: ()} output_args : {29433905: [{'metal': 29433943, 'papier': 29433944, 'mal_croppe': 29433945, 'Carton_gris': 29433946, 'flou': 29433947, 'autre_refus': 29433948, 'cartonnette': 29433949, 'environnement': 29433950, 'kraft': 29433951, 'Carton_brun': 29433952, 'Teint_Dans_La_Masse': 29433953, 'plastique': 29433954}]} args : 29433905 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 : ({'metal': 29433943, 'papier': 29433944, 'mal_croppe': 29433945, 'Carton_gris': 29433946, 'flou': 29433947, 'autre_refus': 29433948, 'cartonnette': 29433949, 'environnement': 29433950, 'kraft': 29433951, 'Carton_brun': 29433952, 'Teint_Dans_La_Masse': 29433953, 'plastique': 29433954},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29433905) 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([29433905]) 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.2869095802307129 time spend to save output : 4.363059997558594e-05 total time spend for step 3 : 0.2869532108306885 step4:send_mail_cod Mon Dec 15 14:21:02 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed 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 : {1399512131: ('0.09368337155717403',), 1399512124: ('0.09368337155717403',), 1399512122: ('0.09368337155717403',), 1399512119: ('0.09368337155717403',), 1399512087: ('0.09368337155717403',), 1399512086: ('0.09368337155717403',), 1399512085: ('0.09368337155717403',), 1399512084: ('0.09368337155717403',), 1399512059: ('0.09368337155717403',), 1399512055: ('0.09368337155717403',), 1399512053: ('0.09368337155717403',), 1399512051: ('0.09368337155717403',), 1399512044: ('0.09368337155717403',)} input_args_next_step : {1399512131: ()} output_args : {1399512131: ('0.09368337155717403',), 1399512124: ('0.09368337155717403',), 1399512122: ('0.09368337155717403',), 1399512119: ('0.09368337155717403',), 1399512087: ('0.09368337155717403',), 1399512086: ('0.09368337155717403',), 1399512085: ('0.09368337155717403',), 1399512084: ('0.09368337155717403',), 1399512059: ('0.09368337155717403',), 1399512055: ('0.09368337155717403',), 1399512053: ('0.09368337155717403',), 1399512051: ('0.09368337155717403',), 1399512044: ('0.09368337155717403',)} args : 1399512131 depend.output_id : 0 input_args_next_step : {1399512131: ('0.09368337155717403',), 1399512124: ()} output_args : {1399512131: ('0.09368337155717403',), 1399512124: ('0.09368337155717403',), 1399512122: ('0.09368337155717403',), 1399512119: ('0.09368337155717403',), 1399512087: ('0.09368337155717403',), 1399512086: ('0.09368337155717403',), 1399512085: ('0.09368337155717403',), 1399512084: ('0.09368337155717403',), 1399512059: ('0.09368337155717403',), 1399512055: ('0.09368337155717403',), 1399512053: ('0.09368337155717403',), 1399512051: ('0.09368337155717403',), 1399512044: ('0.09368337155717403',)} args : 1399512124 depend.output_id : 0 input_args_next_step : {1399512131: ('0.09368337155717403',), 1399512124: ('0.09368337155717403',), 1399512122: ()} output_args : {1399512131: ('0.09368337155717403',), 1399512124: ('0.09368337155717403',), 1399512122: ('0.09368337155717403',), 1399512119: ('0.09368337155717403',), 1399512087: ('0.09368337155717403',), 1399512086: ('0.09368337155717403',), 1399512085: ('0.09368337155717403',), 1399512084: ('0.09368337155717403',), 1399512059: ('0.09368337155717403',), 1399512055: ('0.09368337155717403',), 1399512053: ('0.09368337155717403',), 1399512051: ('0.09368337155717403',), 1399512044: ('0.09368337155717403',)} args : 1399512122 depend.output_id : 0 input_args_next_step : {1399512131: ('0.09368337155717403',), 1399512124: ('0.09368337155717403',), 1399512122: ('0.09368337155717403',), 1399512119: ()} output_args : {1399512131: ('0.09368337155717403',), 1399512124: ('0.09368337155717403',), 1399512122: ('0.09368337155717403',), 1399512119: ('0.09368337155717403',), 1399512087: ('0.09368337155717403',), 1399512086: ('0.09368337155717403',), 1399512085: ('0.09368337155717403',), 1399512084: ('0.09368337155717403',), 1399512059: ('0.09368337155717403',), 1399512055: ('0.09368337155717403',), 1399512053: ('0.09368337155717403',), 1399512051: ('0.09368337155717403',), 1399512044: ('0.09368337155717403',)} args : 1399512119 depend.output_id : 0 input_args_next_step : {1399512131: ('0.09368337155717403',), 1399512124: ('0.09368337155717403',), 1399512122: ('0.09368337155717403',), 1399512119: ('0.09368337155717403',), 1399512087: ()} output_args : {1399512131: ('0.09368337155717403',), 1399512124: ('0.09368337155717403',), 1399512122: ('0.09368337155717403',), 1399512119: ('0.09368337155717403',), 1399512087: ('0.09368337155717403',), 1399512086: ('0.09368337155717403',), 1399512085: ('0.09368337155717403',), 1399512084: ('0.09368337155717403',), 1399512059: ('0.09368337155717403',), 1399512055: ('0.09368337155717403',), 1399512053: ('0.09368337155717403',), 1399512051: ('0.09368337155717403',), 1399512044: ('0.09368337155717403',)} args : 1399512087 depend.output_id : 0 input_args_next_step : {1399512131: ('0.09368337155717403',), 1399512124: ('0.09368337155717403',), 1399512122: ('0.09368337155717403',), 1399512119: ('0.09368337155717403',), 1399512087: ('0.09368337155717403',), 1399512086: ()} output_args : {1399512131: ('0.09368337155717403',), 1399512124: ('0.09368337155717403',), 1399512122: ('0.09368337155717403',), 1399512119: ('0.09368337155717403',), 1399512087: ('0.09368337155717403',), 1399512086: ('0.09368337155717403',), 1399512085: ('0.09368337155717403',), 1399512084: ('0.09368337155717403',), 1399512059: ('0.09368337155717403',), 1399512055: ('0.09368337155717403',), 1399512053: ('0.09368337155717403',), 1399512051: ('0.09368337155717403',), 1399512044: ('0.09368337155717403',)} args : 1399512086 depend.output_id : 0 input_args_next_step : {1399512131: ('0.09368337155717403',), 1399512124: ('0.09368337155717403',), 1399512122: ('0.09368337155717403',), 1399512119: ('0.09368337155717403',), 1399512087: ('0.09368337155717403',), 1399512086: ('0.09368337155717403',), 1399512085: ()} output_args : {1399512131: ('0.09368337155717403',), 1399512124: ('0.09368337155717403',), 1399512122: ('0.09368337155717403',), 1399512119: ('0.09368337155717403',), 1399512087: ('0.09368337155717403',), 1399512086: ('0.09368337155717403',), 1399512085: ('0.09368337155717403',), 1399512084: ('0.09368337155717403',), 1399512059: ('0.09368337155717403',), 1399512055: ('0.09368337155717403',), 1399512053: ('0.09368337155717403',), 1399512051: ('0.09368337155717403',), 1399512044: ('0.09368337155717403',)} args : 1399512085 depend.output_id : 0 input_args_next_step : {1399512131: ('0.09368337155717403',), 1399512124: ('0.09368337155717403',), 1399512122: ('0.09368337155717403',), 1399512119: ('0.09368337155717403',), 1399512087: ('0.09368337155717403',), 1399512086: ('0.09368337155717403',), 1399512085: ('0.09368337155717403',), 1399512084: ()} output_args : {1399512131: ('0.09368337155717403',), 1399512124: ('0.09368337155717403',), 1399512122: ('0.09368337155717403',), 1399512119: ('0.09368337155717403',), 1399512087: ('0.09368337155717403',), 1399512086: ('0.09368337155717403',), 1399512085: ('0.09368337155717403',), 1399512084: ('0.09368337155717403',), 1399512059: ('0.09368337155717403',), 1399512055: ('0.09368337155717403',), 1399512053: ('0.09368337155717403',), 1399512051: ('0.09368337155717403',), 1399512044: ('0.09368337155717403',)} args : 1399512084 depend.output_id : 0 input_args_next_step : {1399512131: ('0.09368337155717403',), 1399512124: ('0.09368337155717403',), 1399512122: ('0.09368337155717403',), 1399512119: ('0.09368337155717403',), 1399512087: ('0.09368337155717403',), 1399512086: ('0.09368337155717403',), 1399512085: ('0.09368337155717403',), 1399512084: ('0.09368337155717403',), 1399512059: ()} output_args : {1399512131: ('0.09368337155717403',), 1399512124: ('0.09368337155717403',), 1399512122: ('0.09368337155717403',), 1399512119: ('0.09368337155717403',), 1399512087: ('0.09368337155717403',), 1399512086: ('0.09368337155717403',), 1399512085: ('0.09368337155717403',), 1399512084: ('0.09368337155717403',), 1399512059: ('0.09368337155717403',), 1399512055: ('0.09368337155717403',), 1399512053: ('0.09368337155717403',), 1399512051: ('0.09368337155717403',), 1399512044: ('0.09368337155717403',)} args : 1399512059 depend.output_id : 0 input_args_next_step : {1399512131: ('0.09368337155717403',), 1399512124: ('0.09368337155717403',), 1399512122: ('0.09368337155717403',), 1399512119: ('0.09368337155717403',), 1399512087: ('0.09368337155717403',), 1399512086: ('0.09368337155717403',), 1399512085: ('0.09368337155717403',), 1399512084: ('0.09368337155717403',), 1399512059: ('0.09368337155717403',), 1399512055: ()} output_args : {1399512131: ('0.09368337155717403',), 1399512124: ('0.09368337155717403',), 1399512122: ('0.09368337155717403',), 1399512119: ('0.09368337155717403',), 1399512087: ('0.09368337155717403',), 1399512086: ('0.09368337155717403',), 1399512085: ('0.09368337155717403',), 1399512084: ('0.09368337155717403',), 1399512059: ('0.09368337155717403',), 1399512055: ('0.09368337155717403',), 1399512053: ('0.09368337155717403',), 1399512051: ('0.09368337155717403',), 1399512044: ('0.09368337155717403',)} args : 1399512055 depend.output_id : 0 input_args_next_step : {1399512131: ('0.09368337155717403',), 1399512124: ('0.09368337155717403',), 1399512122: ('0.09368337155717403',), 1399512119: ('0.09368337155717403',), 1399512087: ('0.09368337155717403',), 1399512086: ('0.09368337155717403',), 1399512085: ('0.09368337155717403',), 1399512084: ('0.09368337155717403',), 1399512059: ('0.09368337155717403',), 1399512055: ('0.09368337155717403',), 1399512053: ()} output_args : {1399512131: ('0.09368337155717403',), 1399512124: ('0.09368337155717403',), 1399512122: ('0.09368337155717403',), 1399512119: ('0.09368337155717403',), 1399512087: ('0.09368337155717403',), 1399512086: ('0.09368337155717403',), 1399512085: ('0.09368337155717403',), 1399512084: ('0.09368337155717403',), 1399512059: ('0.09368337155717403',), 1399512055: ('0.09368337155717403',), 1399512053: ('0.09368337155717403',), 1399512051: ('0.09368337155717403',), 1399512044: ('0.09368337155717403',)} args : 1399512053 depend.output_id : 0 input_args_next_step : {1399512131: ('0.09368337155717403',), 1399512124: ('0.09368337155717403',), 1399512122: ('0.09368337155717403',), 1399512119: ('0.09368337155717403',), 1399512087: ('0.09368337155717403',), 1399512086: ('0.09368337155717403',), 1399512085: ('0.09368337155717403',), 1399512084: ('0.09368337155717403',), 1399512059: ('0.09368337155717403',), 1399512055: ('0.09368337155717403',), 1399512053: ('0.09368337155717403',), 1399512051: ()} output_args : {1399512131: ('0.09368337155717403',), 1399512124: ('0.09368337155717403',), 1399512122: ('0.09368337155717403',), 1399512119: ('0.09368337155717403',), 1399512087: ('0.09368337155717403',), 1399512086: ('0.09368337155717403',), 1399512085: ('0.09368337155717403',), 1399512084: ('0.09368337155717403',), 1399512059: ('0.09368337155717403',), 1399512055: ('0.09368337155717403',), 1399512053: ('0.09368337155717403',), 1399512051: ('0.09368337155717403',), 1399512044: ('0.09368337155717403',)} args : 1399512051 depend.output_id : 0 input_args_next_step : {1399512131: ('0.09368337155717403',), 1399512124: ('0.09368337155717403',), 1399512122: ('0.09368337155717403',), 1399512119: ('0.09368337155717403',), 1399512087: ('0.09368337155717403',), 1399512086: ('0.09368337155717403',), 1399512085: ('0.09368337155717403',), 1399512084: ('0.09368337155717403',), 1399512059: ('0.09368337155717403',), 1399512055: ('0.09368337155717403',), 1399512053: ('0.09368337155717403',), 1399512051: ('0.09368337155717403',), 1399512044: ()} output_args : {1399512131: ('0.09368337155717403',), 1399512124: ('0.09368337155717403',), 1399512122: ('0.09368337155717403',), 1399512119: ('0.09368337155717403',), 1399512087: ('0.09368337155717403',), 1399512086: ('0.09368337155717403',), 1399512085: ('0.09368337155717403',), 1399512084: ('0.09368337155717403',), 1399512059: ('0.09368337155717403',), 1399512055: ('0.09368337155717403',), 1399512053: ('0.09368337155717403',), 1399512051: ('0.09368337155717403',), 1399512044: ('0.09368337155717403',)} args : 1399512044 depend.output_id : 0 Inconsistent number of input and output, step which parrallelize and manage error in input by avoiding sending an output for this data can't be used in tree dependencies of input and output complete output_args for input 3 : {29433905: [{'metal': 29433943, 'papier': 29433944, 'mal_croppe': 29433945, 'Carton_gris': 29433946, 'flou': 29433947, 'autre_refus': 29433948, 'cartonnette': 29433949, 'environnement': 29433950, 'kraft': 29433951, 'Carton_brun': 29433952, 'Teint_Dans_La_Masse': 29433953, 'plastique': 29433954}]} input_args_next_step : {1399512131: ('0.09368337155717403',), 1399512124: ('0.09368337155717403',), 1399512122: ('0.09368337155717403',), 1399512119: ('0.09368337155717403',), 1399512087: ('0.09368337155717403',), 1399512086: ('0.09368337155717403',), 1399512085: ('0.09368337155717403',), 1399512084: ('0.09368337155717403',), 1399512059: ('0.09368337155717403',), 1399512055: ('0.09368337155717403',), 1399512053: ('0.09368337155717403',), 1399512051: ('0.09368337155717403',), 1399512044: ('0.09368337155717403',), 29433905: ()} output_args : {29433905: [{'metal': 29433943, 'papier': 29433944, 'mal_croppe': 29433945, 'Carton_gris': 29433946, 'flou': 29433947, 'autre_refus': 29433948, 'cartonnette': 29433949, 'environnement': 29433950, 'kraft': 29433951, 'Carton_brun': 29433952, 'Teint_Dans_La_Masse': 29433953, 'plastique': 29433954}]} args : 29433905 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 :14, first value : ('0.09368337155717403',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29433905) 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 (1399512131,1399512124,1399512122,1399512119,1399512087,1399512086,1399512085,1399512084,1399512059,1399512055,1399512053,1399512051,1399512044) Found this number of photos: 13 ##### Call download_photos : nb_thread : 5 begin to download photo : 1399512044 begin to download photo : 1399512055 begin to download photo : 1399512085 begin to download photo : 1399512119 begin to download photo : 1399512131 download finish for photo 1399512131 download finish for photo 1399512119 begin to download photo : 1399512122 download finish for photo 1399512055 begin to download photo : 1399512059 download finish for photo 1399512044 begin to download photo : 1399512051 download finish for photo 1399512085 begin to download photo : 1399512086 download finish for photo 1399512122 begin to download photo : 1399512124 download finish for photo 1399512051 begin to download photo : 1399512053 download finish for photo 1399512086 begin to download photo : 1399512087 download finish for photo 1399512059 begin to download photo : 1399512084 download finish for photo 1399512124 download finish for photo 1399512053 download finish for photo 1399512084 download finish for photo 1399512087 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette294339431765804862/ imagette294339451765804862/ imagette294339471765804862/ length of list_filenames : 13 ; length of list_pids : 13 ; length of list_args : 13 results_Auto_P29433905_15-12-2025_14_21_02.pdf 29433943 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=29433943 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette294339431765804862 29433945 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=29433945 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette294339451765804862 29433947 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=29433947 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette294339471765804862 29433948 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=29433948 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1399512111: '1765804767_1223446_1399512053_3a29c7af29083d3ed867c61ba30ba52f_rle_crop_4070930340_0.png'} change filename to text .imagette294339481765804862/ imagette294339481765804862/1765804767_1223446_1399512053_3a29c7af29083d3ed867c61ba30ba52f_rle_crop_4070930340_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/15/1cbf1c9977c4ee00c699504de3c3889c_68803890.png imagette294339481765804862 29433949 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=29433949 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1399512112: '1765804767_1223446_1399512055_28ab497cf4b9108f12be17438cbf27f9_rle_crop_4070930322_0.png', 1399512113: '1765804767_1223446_1399512055_28ab497cf4b9108f12be17438cbf27f9_rle_crop_4070930321_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/15/20ab807e0f19f2a6d70211fdb0d650dd_90485345.png change filename to text .imagette294339491765804862/ imagette294339491765804862/1765804767_1223446_1399512055_28ab497cf4b9108f12be17438cbf27f9_rle_crop_4070930322_0.png.png imagette294339491765804862/1765804767_1223446_1399512055_28ab497cf4b9108f12be17438cbf27f9_rle_crop_4070930321_0.png.png imagette294339511765804862/ wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/15/b99a7b408a51109685c4d6372ec07831_35025643.png imagette294339491765804862 29433951 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=29433951 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette294339511765804862 29433954 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=29433954 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1399512116: '1765804767_1223446_1399512053_3a29c7af29083d3ed867c61ba30ba52f_rle_crop_4070930341_0.png', 1399512117: '1765804767_1223446_1399512051_f91e4913837e77e02d4c1c1bdbb0742c_rle_crop_4070930362_0.png', 1399512118: '1765804767_1223446_1399512051_f91e4913837e77e02d4c1c1bdbb0742c_rle_crop_4070930356_0.png', 1399512120: '1765804767_1223446_1399512044_a4312bdca8dedc2b5763ab5a9fbdcee8_rle_crop_4070930390_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/15/a66b7040d0dc53bc253a95690c9fe1c3_45210270.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/15/312b01dec9bfbb129edcf3e376e25475_90451404.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/15/85f3082e4becefb79e74869732b2b354_17993661.png change filename to text .imagette294339541765804862/ imagette294339541765804862/1765804767_1223446_1399512053_3a29c7af29083d3ed867c61ba30ba52f_rle_crop_4070930341_0.png.png imagette294339541765804862/1765804767_1223446_1399512044_a4312bdca8dedc2b5763ab5a9fbdcee8_rle_crop_4070930390_0.png.png imagette294339541765804862/1765804767_1223446_1399512051_f91e4913837e77e02d4c1c1bdbb0742c_rle_crop_4070930362_0.png.png imagette294339541765804862/1765804767_1223446_1399512051_f91e4913837e77e02d4c1c1bdbb0742c_rle_crop_4070930356_0.png.png imagette294339461765804863/ wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/15/db21813102900656c74d82dc1bf17802_83411228.png imagette294339541765804862 29433946 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=29433946 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette294339461765804863 29433952 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=29433952 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1399512115: '1765804767_1223446_1399512051_f91e4913837e77e02d4c1c1bdbb0742c_rle_crop_4070930360_0.png'} change filename to text .imagette294339521765804863/ imagette294339521765804863/1765804767_1223446_1399512051_f91e4913837e77e02d4c1c1bdbb0742c_rle_crop_4070930360_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/15/59dae97538ce148cd77603b059dfd1e7_9586668.png imagette294339521765804863 29433953 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=29433953 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1399512107: '1765804767_1223446_1399512055_28ab497cf4b9108f12be17438cbf27f9_rle_crop_4070930329_0.png', 1399512108: '1765804767_1223446_1399512053_3a29c7af29083d3ed867c61ba30ba52f_rle_crop_4070930342_0.png', 1399512109: '1765804767_1223446_1399512044_a4312bdca8dedc2b5763ab5a9fbdcee8_rle_crop_4070930384_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/15/371f394484bf6cfef114fcff9075499e_53441967.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/15/0670e7cf63172de475edca2a24a4f31a_5230344.png change filename to text .imagette294339531765804863/ imagette294339531765804863/1765804767_1223446_1399512053_3a29c7af29083d3ed867c61ba30ba52f_rle_crop_4070930342_0.png.png imagette294339531765804863/1765804767_1223446_1399512044_a4312bdca8dedc2b5763ab5a9fbdcee8_rle_crop_4070930384_0.png.png imagette294339531765804863/1765804767_1223446_1399512055_28ab497cf4b9108f12be17438cbf27f9_rle_crop_4070930329_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/15/ee89aa8fff6d13256f610e2b728d1874_76232163.png imagette294339531765804863 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=29433905 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/29433955,29433956,29433957,29433958,29433959,29433960,29433961,29433962,29433963,29433964,29433965,29433966?tags=metal,papier,mal_croppe,Carton_gris,flou,autre_refus,cartonnette,environnement,kraft,Carton_brun,Teint_Dans_La_Masse,plastique your option no_mail is active, we will not send the real mail to your client args[1399512131] : ('0.09368337155717403',) no score found for photo 1399512131 We are sending mail with results at report@fotonower.com args[1399512124] : ('0.09368337155717403',) no score found for photo 1399512124 We are sending mail with results at report@fotonower.com args[1399512122] : ('0.09368337155717403',) no score found for photo 1399512122 We are sending mail with results at report@fotonower.com args[1399512119] : ('0.09368337155717403',) no score found for photo 1399512119 We are sending mail with results at report@fotonower.com args[1399512087] : ('0.09368337155717403',) no score found for photo 1399512087 We are sending mail with results at report@fotonower.com args[1399512086] : ('0.09368337155717403',) no score found for photo 1399512086 We are sending mail with results at report@fotonower.com args[1399512085] : ('0.09368337155717403',) no score found for photo 1399512085 We are sending mail with results at report@fotonower.com args[1399512084] : ('0.09368337155717403',) no score found for photo 1399512084 We are sending mail with results at report@fotonower.com args[1399512059] : ('0.09368337155717403',) no score found for photo 1399512059 We are sending mail with results at report@fotonower.com args[1399512055] : ('0.09368337155717403',) no score found for photo 1399512055 We are sending mail with results at report@fotonower.com args[1399512053] : ('0.09368337155717403',) no score found for photo 1399512053 We are sending mail with results at report@fotonower.com args[1399512051] : ('0.09368337155717403',) no score found for photo 1399512051 We are sending mail with results at report@fotonower.com args[1399512044] : ('0.09368337155717403',) no score found for photo 1399512044 We are sending mail with results at report@fotonower.com refus_total : 0.09368337155717403 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=29433905 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_P29433905_15-12-2025_14_21_02.pdf results_Auto_P29433905_15-12-2025_14_21_02.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29433905_15-12-2025_14_21_02.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','29433905','results_Auto_P29433905_15-12-2025_14_21_02.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29433905_15-12-2025_14_21_02.pdf','pdf','','0.17','0.09368337155717403') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29433905]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1399512131, 1399512124, 1399512122, 1399512119, 1399512087, 1399512086, 1399512085, 1399512084, 1399512059, 1399512055, 1399512053, 1399512051, 1399512044] map_info['map_portfolio_photo'] : {29433905: [1399512131, 1399512124, 1399512122, 1399512119, 1399512087, 1399512086, 1399512085, 1399512084, 1399512059, 1399512055, 1399512053, 1399512051, 1399512044, 1399512026, 1399512018, 1399512014, 1399512012, 1399512010, 1399511883, 1399511881, 1399511879]} final : False mtd_id 4302 list_pids : [1399512131, 1399512124, 1399512122, 1399512119, 1399512087, 1399512086, 1399512085, 1399512084, 1399512059, 1399512055, 1399512053, 1399512051, 1399512044] 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, '4223496') ('4302', '29433905', '1399512131', None, None, None, None, None, '4223496') ('4302', None, None, None, None, None, None, None, '4223496') ('4302', '29433905', '1399512124', None, None, None, None, None, '4223496') ('4302', None, None, None, None, None, None, None, '4223496') ('4302', '29433905', '1399512122', None, None, None, None, None, '4223496') ('4302', None, None, None, None, None, None, None, '4223496') ('4302', '29433905', '1399512119', None, None, None, None, None, '4223496') ('4302', None, None, None, None, None, None, None, '4223496') ('4302', '29433905', '1399512087', None, None, None, None, None, '4223496') ('4302', None, None, None, None, None, None, None, '4223496') ('4302', '29433905', '1399512086', None, None, None, None, None, '4223496') ('4302', None, None, None, None, None, None, None, '4223496') ('4302', '29433905', '1399512085', None, None, None, None, None, '4223496') ('4302', None, None, None, None, None, None, None, '4223496') ('4302', '29433905', '1399512084', None, None, None, None, None, '4223496') ('4302', None, None, None, None, None, None, None, '4223496') ('4302', '29433905', '1399512059', None, None, None, None, None, '4223496') ('4302', None, None, None, None, None, None, None, '4223496') ('4302', '29433905', '1399512055', None, None, None, None, None, '4223496') ('4302', None, None, None, None, None, None, None, '4223496') ('4302', '29433905', '1399512053', None, None, None, None, None, '4223496') ('4302', None, None, None, None, None, None, None, '4223496') ('4302', '29433905', '1399512051', None, None, None, None, None, '4223496') ('4302', None, None, None, None, None, None, None, '4223496') ('4302', '29433905', '1399512044', None, None, None, None, None, '4223496') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 13 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', '29433905', '1399512131', None, None, None, None, None, '4223496'), ('4302', '29433905', '1399512124', None, None, None, None, None, '4223496'), ('4302', '29433905', '1399512122', None, None, None, None, None, '4223496'), ('4302', '29433905', '1399512119', None, None, None, None, None, '4223496'), ('4302', '29433905', '1399512087', None, None, None, None, None, '4223496'), ('4302', '29433905', '1399512086', None, None, None, None, None, '4223496'), ('4302', '29433905', '1399512085', None, None, None, None, None, '4223496'), ('4302', '29433905', '1399512084', None, None, None, None, None, '4223496'), ('4302', '29433905', '1399512059', None, None, None, None, None, '4223496'), ('4302', '29433905', '1399512055', None, None, None, None, None, '4223496'), ('4302', '29433905', '1399512053', None, None, None, None, None, '4223496'), ('4302', '29433905', '1399512051', None, None, None, None, None, '4223496'), ('4302', '29433905', '1399512044', None, None, None, None, None, '4223496')] time used for this insertion : 0.01693439483642578 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.7825419902801514 time spend to save output : 0.017188549041748047 total time spend for step 4 : 2.7997305393218994 step5:split_time_score Mon Dec 15 14:21:04 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 : ['29433905'] 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 : [('29433905',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29433905) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1399512131: {'path': 'temp/1765804862_1753277_1399512131_b282150283c77adb8b9ed93c43ec70c8.jpg', 'extension': 'jpg'}, 1399512119: {'path': 'temp/1765804862_1753277_1399512119_fd0198956b1ce5c2147107645c6cb08b.jpg', 'extension': 'jpg'}, 1399512122: {'path': 'temp/1765804862_1753277_1399512122_f96f93e3404833536762beae6dae9c36.jpg', 'extension': 'jpg'}, 1399512124: {'path': 'temp/1765804862_1753277_1399512124_44d87bce090d16c383b0034989715718.jpg', 'extension': 'jpg'}, 1399512044: {'path': 'temp/1765804862_1753277_1399512044_a4312bdca8dedc2b5763ab5a9fbdcee8.jpg', 'extension': 'jpg'}, 1399512051: {'path': 'temp/1765804862_1753277_1399512051_f91e4913837e77e02d4c1c1bdbb0742c.jpg', 'extension': 'jpg'}, 1399512053: {'path': 'temp/1765804862_1753277_1399512053_3a29c7af29083d3ed867c61ba30ba52f.jpg', 'extension': 'jpg'}, 1399512055: {'path': 'temp/1765804862_1753277_1399512055_28ab497cf4b9108f12be17438cbf27f9.jpg', 'extension': 'jpg'}, 1399512059: {'path': 'temp/1765804862_1753277_1399512059_774c1b3c9c758728fccb872249e73e65.jpg', 'extension': 'jpg'}, 1399512084: {'path': 'temp/1765804862_1753277_1399512084_e311974c8b52031fa6be51b0e366c5d4.jpg', 'extension': 'jpg'}, 1399512085: {'path': 'temp/1765804862_1753277_1399512085_d58ba4a5cd06122f303c35a23412d511.jpg', 'extension': 'jpg'}, 1399512086: {'path': 'temp/1765804862_1753277_1399512086_6dc90b2fd0baed300299b7eb49ce7147.jpg', 'extension': 'jpg'}, 1399512087: {'path': 'temp/1765804862_1753277_1399512087_4af6ed06cf0898455b0b1425ad17c6fd.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 = 29433905; (('arc_en_ciel_jrm_live',), ('arc_en_ciel_jrm',)) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos_view ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 29433905 group by h (('14', 21),) 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=29433905 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 (29433905) 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 (29433905) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 15122025 29433905 Nombre de photos uploadées : 21 / 23040 (0%) 15122025 29433905 Nombre de photos taguées (types de déchets): 0 / 21 (0%) 15122025 29433905 Nombre de photos taguées (volume) : 0 / 21 (0%) [{'photo_id': 1399511883, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/15/4e5a8d6f3355e35b5d8b1083fbf30f50.jpg', 'username': None, 'uploaded_at': 1765804567, 'text': 'image_15122025_14_15_24_10136.jpg'}, {'photo_id': 1399511881, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/15/9bd73aa110ed79d9c8ffa0a6071faa60.jpg', 'username': None, 'uploaded_at': 1765804567, 'text': 'image_15122025_14_15_34_10141.jpg'}, {'photo_id': 1399511879, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/15/11f59a4e53dc53b7bcff2853300f9457.jpg', 'username': None, 'uploaded_at': 1765804567, 'text': 'image_15122025_14_15_45_10137.jpg'}, {'photo_id': 1399512026, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/15/db04b9bb4a5508dde06214d90407a7bc.jpg', 'username': None, 'uploaded_at': 1765804633, 'text': 'image_15122025_14_15_54_9127.jpg'}] 0 [] elapsed_time : load_data_split_time_score 3.5762786865234375e-06 elapsed_time : order_list_meta_photo_and_scores 5.9604644775390625e-06 ????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0009660720825195312 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 29433905, '2025-12-15' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); Catched exception ! Connect or reconnect ! INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2736782,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.24169039726257324 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= 2736782 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2736782, 'dashboard_run_id': 2745886, 'mtr_portfolio_id': 29417280, 'dashboard_result_id': 18375389, '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_P29417280_15-12-2025_05_33_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29417281, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29417282, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29417283, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29417284, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29417285, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29417286, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29417287, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29417288, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29417289, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29417290, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29417291, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29417292, 'pht': 3726}}"}, {'dashboat_entry_day': 2736782, 'dashboard_run_id': 2745886, 'mtr_portfolio_id': 29417539, 'dashboard_result_id': 18375390, '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_P29417539_15-12-2025_05_48_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29417542, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29417543, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29417544, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29417545, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29417546, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29417547, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29417548, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29417549, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29417550, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29417551, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29417552, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29417553, 'pht': 3726}}"}, {'dashboat_entry_day': 2736782, 'dashboard_run_id': 2745886, 'mtr_portfolio_id': 29417857, 'dashboard_result_id': 18375391, '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_P29417857_15-12-2025_06_02_57.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29417863, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29417864, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29417865, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29417866, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29417867, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29417868, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29417869, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29417870, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29417871, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29417872, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29417873, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29417874, 'pht': 3726}}"}, {'dashboat_entry_day': 2736782, 'dashboard_run_id': 2745886, 'mtr_portfolio_id': 29418257, 'dashboard_result_id': 18375392, '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_P29418257_15-12-2025_06_16_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29418264, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29418265, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29418266, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29418267, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29418268, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29418269, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29418270, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29418271, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29418272, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29418273, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29418274, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29418275, 'pht': 3726}}"}, {'dashboat_entry_day': 2736782, 'dashboard_run_id': 2745886, 'mtr_portfolio_id': 29418780, 'dashboard_result_id': 18375393, '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_P29418780_15-12-2025_06_32_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29418785, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29418786, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29418787, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29418788, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29418789, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29418790, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29418791, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29418792, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29418793, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29418794, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29418795, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29418796, 'pht': 3726}}"}, {'dashboat_entry_day': 2736782, 'dashboard_run_id': 2745886, 'mtr_portfolio_id': 29419219, 'dashboard_result_id': 18375394, '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_P29419219_15-12-2025_06_46_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29419252, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29419253, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29419254, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29419255, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29419256, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29419257, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29419258, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29419259, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29419260, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29419261, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29419262, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29419263, 'pht': 3726}}"}, {'dashboat_entry_day': 2736782, 'dashboard_run_id': 2745886, 'mtr_portfolio_id': 29419682, 'dashboard_result_id': 18375395, '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_P29419682_15-12-2025_07_02_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29419708, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29419709, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29419710, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29419711, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29419712, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29419713, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29419714, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29419715, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29419716, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29419717, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29419718, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29419719, 'pht': 3726}}"}, {'dashboat_entry_day': 2736782, 'dashboard_run_id': 2745886, 'mtr_portfolio_id': 29420083, 'dashboard_result_id': 18375396, '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_P29420083_15-12-2025_07_16_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29420109, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29420110, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29420111, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29420112, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29420113, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29420114, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29420115, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29420116, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29420117, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29420118, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29420119, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29420120, 'pht': 3726}}"}, {'dashboat_entry_day': 2736782, 'dashboard_run_id': 2745886, 'mtr_portfolio_id': 29420617, 'dashboard_result_id': 18375397, '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_P29420617_15-12-2025_07_32_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29420626, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29420627, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29420628, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29420629, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29420630, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29420631, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29420632, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29420633, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29420634, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29420635, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29420636, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29420637, 'pht': 3726}}"}, {'dashboat_entry_day': 2736782, 'dashboard_run_id': 2745886, 'mtr_portfolio_id': 29421087, 'dashboard_result_id': 18375398, '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_P29421087_15-12-2025_07_47_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29421094, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29421095, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29421096, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29421097, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29421098, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29421099, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29421100, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29421101, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29421102, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29421103, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29421104, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29421105, 'pht': 3726}}"}, {'dashboat_entry_day': 2736782, 'dashboard_run_id': 2745886, 'mtr_portfolio_id': 29421545, 'dashboard_result_id': 18375399, '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_P29421545_15-12-2025_08_02_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29421546, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29421547, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29421548, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29421549, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29421550, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29421551, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29421552, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29421553, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29421554, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29421555, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29421556, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29421557, 'pht': 3726}}"}, {'dashboat_entry_day': 2736782, 'dashboard_run_id': 2745886, 'mtr_portfolio_id': 29422017, 'dashboard_result_id': 18375400, '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_P29422017_15-12-2025_08_18_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29422023, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29422024, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29422025, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29422026, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29422027, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29422028, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29422029, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29422030, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29422031, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29422032, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29422033, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29422034, 'pht': 3726}}"}, {'dashboat_entry_day': 2736782, 'dashboard_run_id': 2745886, 'mtr_portfolio_id': 29422537, 'dashboard_result_id': 18375401, '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_P29422537_15-12-2025_08_32_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29422542, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29422544, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29422545, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29422546, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29422548, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29422549, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29422551, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29422552, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29422553, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29422555, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29422556, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29422558, 'pht': 3726}}"}, {'dashboat_entry_day': 2736782, 'dashboard_run_id': 2745886, 'mtr_portfolio_id': 29422986, 'dashboard_result_id': 18375402, '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_P29422986_15-12-2025_08_47_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29422996, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29422997, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29422998, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29422999, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29423000, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29423001, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29423002, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29423003, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29423004, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29423005, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29423006, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29423007, 'pht': 3726}}"}, {'dashboat_entry_day': 2736782, 'dashboard_run_id': 2745886, 'mtr_portfolio_id': 29423463, 'dashboard_result_id': 18375403, '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_P29423463_15-12-2025_09_39_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29423472, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29423473, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29423474, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29423475, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29423476, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29423477, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29423478, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29423479, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29423480, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29423481, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29423482, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29423483, 'pht': 3726}}"}, {'dashboat_entry_day': 2736782, 'dashboard_run_id': 2745886, 'mtr_portfolio_id': 29424399, 'dashboard_result_id': 18375404, '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_P29424399_15-12-2025_09_49_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29424417, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29424418, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29424419, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29424420, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29424421, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29424422, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29424423, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29424424, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29424425, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29424426, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29424427, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29424428, 'pht': 3726}}"}, {'dashboat_entry_day': 2736782, 'dashboard_run_id': 2745886, 'mtr_portfolio_id': 29424626, 'dashboard_result_id': 18375405, '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_P29424626_15-12-2025_10_03_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29424631, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29424632, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29424633, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29424634, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29424635, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29424636, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29424637, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29424638, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29424639, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29424640, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29424641, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29424642, 'pht': 3726}}"}, {'dashboat_entry_day': 2736782, 'dashboard_run_id': 2745886, 'mtr_portfolio_id': 29424984, 'dashboard_result_id': 18375406, '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_P29424984_15-12-2025_10_16_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29425000, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29425001, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29425002, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29425003, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29425004, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29425005, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29425006, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29425007, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29425008, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29425009, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29425010, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29425011, 'pht': 3726}}"}, {'dashboat_entry_day': 2736782, 'dashboard_run_id': 2745886, 'mtr_portfolio_id': 29425574, 'dashboard_result_id': 18375407, '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_P29425574_15-12-2025_10_33_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29425583, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29425584, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29425585, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29425586, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29425587, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29425588, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29425589, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29425590, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29425591, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29425592, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29425593, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29425594, 'pht': 3726}}"}, {'dashboat_entry_day': 2736782, 'dashboard_run_id': 2745886, 'mtr_portfolio_id': 29426150, 'dashboard_result_id': 18375408, '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_P29426150_15-12-2025_10_49_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29426158, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29426159, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29426160, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29426161, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29426162, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29426163, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29426164, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29426165, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29426166, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29426167, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29426168, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29426169, 'pht': 3726}}"}, {'dashboat_entry_day': 2736782, 'dashboard_run_id': 2745886, 'mtr_portfolio_id': 29426847, 'dashboard_result_id': 18375409, '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_P29426847_15-12-2025_11_03_28.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29426855, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29426856, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29426857, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29426858, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29426859, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29426860, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29426861, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29426862, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29426863, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29426864, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29426865, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29426866, 'pht': 3726}}"}, {'dashboat_entry_day': 2736782, 'dashboard_run_id': 2745886, 'mtr_portfolio_id': 29427202, 'dashboard_result_id': 18375410, '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_P29427202_15-12-2025_11_18_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29427206, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29427207, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29427208, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29427209, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29427210, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29427211, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29427212, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29427213, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29427214, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29427215, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29427216, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29427217, 'pht': 3726}}"}, {'dashboat_entry_day': 2736782, 'dashboard_run_id': 2745886, 'mtr_portfolio_id': 29427865, 'dashboard_result_id': 18375411, '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_P29427865_15-12-2025_11_33_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29427874, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29427875, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29427876, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29427877, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29427878, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29427880, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29427882, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29427884, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29427887, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29427890, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29427892, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29427894, 'pht': 3726}}"}, {'dashboat_entry_day': 2736782, 'dashboard_run_id': 2745886, 'mtr_portfolio_id': 29428659, 'dashboard_result_id': 18375412, '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_P29428659_15-12-2025_11_49_29.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29428713, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29428714, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29428715, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29428716, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29428717, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29428718, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29428719, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29428720, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29428721, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29428722, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29428723, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29428724, 'pht': 3726}}"}, {'dashboat_entry_day': 2736782, 'dashboard_run_id': 2745886, 'mtr_portfolio_id': 29429470, 'dashboard_result_id': 18375413, '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_P29429470_15-12-2025_12_03_31.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29429477, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29429478, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29429479, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29429480, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29429481, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29429482, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29429483, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29429484, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29429485, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29429486, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29429487, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29429488, 'pht': 3726}}"}, {'dashboat_entry_day': 2736782, 'dashboard_run_id': 2745886, 'mtr_portfolio_id': 29430268, 'dashboard_result_id': 18375414, '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_P29430268_15-12-2025_13_59_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29430343, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29430344, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29430345, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29430346, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29430347, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29430348, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29430349, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29430350, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29430351, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29430352, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29430353, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29430354, 'pht': 3726}}"}, {'dashboat_entry_day': 2736782, 'dashboard_run_id': 2745886, 'mtr_portfolio_id': 29432821, 'dashboard_result_id': 18375415, '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_P29432821_15-12-2025_13_51_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29432822, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29432823, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29432824, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29432825, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29432826, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29432827, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29432828, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29432829, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29432830, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29432831, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29432832, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29432833, 'pht': 3726}}"}, {'dashboat_entry_day': 2736782, 'dashboard_run_id': 2745886, 'mtr_portfolio_id': 29432889, 'dashboard_result_id': 18375416, '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_P29432889_15-12-2025_13_59_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29432891, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29432892, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29432893, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29432894, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29432895, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29432896, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29432897, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29432898, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29432899, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29432900, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29432901, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29432902, 'pht': 3726}}"}, {'dashboat_entry_day': 2736782, 'dashboard_run_id': 2745886, 'mtr_portfolio_id': 29433153, 'dashboard_result_id': 18375417, '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_P29433153_15-12-2025_14_16_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29433162, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29433163, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29433164, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29433165, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29433166, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29433167, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29433168, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29433169, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29433170, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29433171, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29433172, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29433173, 'pht': 3726}}"}, {'dashboat_entry_day': 2736782, 'dashboard_run_id': 2745886, 'mtr_portfolio_id': 29433905, 'dashboard_result_id': 18375418, '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_P29433905_15-12-2025_14_17_29.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29433943, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29433944, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29433945, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29433946, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29433947, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29433948, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29433949, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29433950, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29433951, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29433952, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29433953, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29433954, '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 = 29417280 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': 4221122, 'mtr_portfolio_id': 29417280, 'created_at': datetime.datetime(2025, 12, 15, 5, 33, 1), 'result': '0.08095185877014659', 'result_long': None, 'result_double': None}] Qualite : 0.08095185877014659 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29417280 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29417280_15-12-2025_05_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29417280 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_P29417280_15-12-2025_05_33_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29417281, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29417282, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29417283, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29417284, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29417285, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29417286, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29417287, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29417288, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29417289, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29417290, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29417291, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29417292, 'pht': 3726}}" where mtr_portfolio_id = 29417280 and dashboard_run_id = 2745886 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`=29417280 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18375389, 0.08095185877014659, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29417280_15-12-2025_05_33_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29417281, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29417282, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29417283, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29417284, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29417285, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29417286, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29417287, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29417288, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29417289, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29417290, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29417291, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29417292, '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 = 29417539 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': 4221177, 'mtr_portfolio_id': 29417539, 'created_at': datetime.datetime(2025, 12, 15, 5, 48, 58), 'result': '0.059275304972668336', 'result_long': None, 'result_double': None}] Qualite : 0.059275304972668336 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29417539 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29417539_15-12-2025_05_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29417539 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_P29417539_15-12-2025_05_48_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29417542, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29417543, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29417544, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29417545, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29417546, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29417547, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29417548, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29417549, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29417550, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29417551, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29417552, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29417553, 'pht': 3726}}" where mtr_portfolio_id = 29417539 and dashboard_run_id = 2745886 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`=29417539 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18375390, 0.059275304972668336, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29417539_15-12-2025_05_48_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29417542, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29417543, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29417544, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29417545, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29417546, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29417547, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29417548, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29417549, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29417550, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29417551, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29417552, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29417553, '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 = 29417857 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': 4221221, 'mtr_portfolio_id': 29417857, 'created_at': datetime.datetime(2025, 12, 15, 6, 2, 57), 'result': '0.054923622241066304', 'result_long': None, 'result_double': None}] Qualite : 0.054923622241066304 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29417857 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29417857_15-12-2025_06_02_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29417857 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_P29417857_15-12-2025_06_02_57.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29417863, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29417864, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29417865, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29417866, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29417867, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29417868, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29417869, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29417870, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29417871, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29417872, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29417873, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29417874, 'pht': 3726}}" where mtr_portfolio_id = 29417857 and dashboard_run_id = 2745886 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`=29417857 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18375391, 0.054923622241066304, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29417857_15-12-2025_06_02_57.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29417863, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29417864, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29417865, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29417866, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29417867, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29417868, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29417869, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29417870, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29417871, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29417872, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29417873, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29417874, '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 = 29418257 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': 4221292, 'mtr_portfolio_id': 29418257, 'created_at': datetime.datetime(2025, 12, 15, 6, 16, 57), 'result': '0.035379643720681885', 'result_long': None, 'result_double': None}] Qualite : 0.035379643720681885 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29418257 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29418257_15-12-2025_06_16_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29418257 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_P29418257_15-12-2025_06_16_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29418264, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29418265, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29418266, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29418267, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29418268, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29418269, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29418270, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29418271, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29418272, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29418273, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29418274, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29418275, 'pht': 3726}}" where mtr_portfolio_id = 29418257 and dashboard_run_id = 2745886 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`=29418257 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18375392, 0.035379643720681885, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29418257_15-12-2025_06_16_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29418264, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29418265, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29418266, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29418267, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29418268, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29418269, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29418270, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29418271, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29418272, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29418273, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29418274, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29418275, '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 = 29418780 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': 4221376, 'mtr_portfolio_id': 29418780, 'created_at': datetime.datetime(2025, 12, 15, 6, 32, 59), 'result': '0.04544697938526784', 'result_long': None, 'result_double': None}] Qualite : 0.04544697938526784 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29418780 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29418780_15-12-2025_06_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29418780 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_P29418780_15-12-2025_06_32_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29418785, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29418786, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29418787, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29418788, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29418789, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29418790, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29418791, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29418792, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29418793, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29418794, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29418795, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29418796, 'pht': 3726}}" where mtr_portfolio_id = 29418780 and dashboard_run_id = 2745886 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`=29418780 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18375393, 0.04544697938526784, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29418780_15-12-2025_06_32_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29418785, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29418786, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29418787, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29418788, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29418789, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29418790, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29418791, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29418792, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29418793, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29418794, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29418795, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29418796, '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 = 29419219 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': 4221438, 'mtr_portfolio_id': 29419219, 'created_at': datetime.datetime(2025, 12, 15, 6, 46, 59), 'result': '0.0747152341677419', 'result_long': None, 'result_double': None}] Qualite : 0.0747152341677419 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29419219 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29419219_15-12-2025_06_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29419219 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_P29419219_15-12-2025_06_46_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29419252, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29419253, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29419254, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29419255, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29419256, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29419257, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29419258, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29419259, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29419260, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29419261, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29419262, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29419263, 'pht': 3726}}" where mtr_portfolio_id = 29419219 and dashboard_run_id = 2745886 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`=29419219 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18375394, 0.0747152341677419, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29419219_15-12-2025_06_46_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29419252, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29419253, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29419254, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29419255, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29419256, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29419257, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29419258, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29419259, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29419260, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29419261, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29419262, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29419263, '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 = 29419682 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': 4221506, 'mtr_portfolio_id': 29419682, 'created_at': datetime.datetime(2025, 12, 15, 7, 2, 58), 'result': '0.06600998562564021', 'result_long': None, 'result_double': None}] Qualite : 0.06600998562564021 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29419682 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29419682_15-12-2025_07_02_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29419682 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_P29419682_15-12-2025_07_02_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29419708, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29419709, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29419710, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29419711, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29419712, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29419713, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29419714, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29419715, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29419716, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29419717, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29419718, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29419719, 'pht': 3726}}" where mtr_portfolio_id = 29419682 and dashboard_run_id = 2745886 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`=29419682 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18375395, 0.06600998562564021, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29419682_15-12-2025_07_02_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29419708, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29419709, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29419710, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29419711, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29419712, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29419713, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29419714, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29419715, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29419716, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29419717, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29419718, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29419719, '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 = 29420083 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': 4221578, 'mtr_portfolio_id': 29420083, 'created_at': datetime.datetime(2025, 12, 15, 7, 16, 59), 'result': '0.05533257670567931', 'result_long': None, 'result_double': None}] Qualite : 0.05533257670567931 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29420083 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29420083_15-12-2025_07_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29420083 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_P29420083_15-12-2025_07_16_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29420109, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29420110, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29420111, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29420112, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29420113, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29420114, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29420115, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29420116, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29420117, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29420118, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29420119, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29420120, 'pht': 3726}}" where mtr_portfolio_id = 29420083 and dashboard_run_id = 2745886 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`=29420083 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18375396, 0.05533257670567931, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29420083_15-12-2025_07_16_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29420109, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29420110, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29420111, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29420112, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29420113, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29420114, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29420115, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29420116, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29420117, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29420118, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29420119, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29420120, '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 = 29420617 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': 4221640, 'mtr_portfolio_id': 29420617, 'created_at': datetime.datetime(2025, 12, 15, 7, 32, 59), 'result': '0.044055000795832806', 'result_long': None, 'result_double': None}] Qualite : 0.044055000795832806 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29420617 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29420617_15-12-2025_07_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29420617 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_P29420617_15-12-2025_07_32_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29420626, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29420627, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29420628, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29420629, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29420630, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29420631, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29420632, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29420633, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29420634, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29420635, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29420636, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29420637, 'pht': 3726}}" where mtr_portfolio_id = 29420617 and dashboard_run_id = 2745886 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`=29420617 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18375397, 0.044055000795832806, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29420617_15-12-2025_07_32_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29420626, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29420627, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29420628, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29420629, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29420630, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29420631, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29420632, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29420633, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29420634, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29420635, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29420636, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29420637, '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 = 29421087 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': 4221714, 'mtr_portfolio_id': 29421087, 'created_at': datetime.datetime(2025, 12, 15, 7, 47), 'result': '0.0482016232493782', 'result_long': None, 'result_double': None}] Qualite : 0.0482016232493782 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29421087 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29421087_15-12-2025_07_47_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29421087 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_P29421087_15-12-2025_07_47_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29421094, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29421095, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29421096, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29421097, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29421098, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29421099, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29421100, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29421101, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29421102, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29421103, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29421104, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29421105, 'pht': 3726}}" where mtr_portfolio_id = 29421087 and dashboard_run_id = 2745886 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`=29421087 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18375398, 0.0482016232493782, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29421087_15-12-2025_07_47_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29421094, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29421095, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29421096, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29421097, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29421098, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29421099, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29421100, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29421101, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29421102, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29421103, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29421104, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29421105, '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 = 29421545 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': 4221777, 'mtr_portfolio_id': 29421545, 'created_at': datetime.datetime(2025, 12, 15, 8, 2, 58), 'result': '0.04200446576288482', 'result_long': None, 'result_double': None}] Qualite : 0.04200446576288482 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29421545 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29421545_15-12-2025_08_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29421545 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_P29421545_15-12-2025_08_02_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29421546, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29421547, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29421548, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29421549, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29421550, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29421551, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29421552, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29421553, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29421554, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29421555, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29421556, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29421557, 'pht': 3726}}" where mtr_portfolio_id = 29421545 and dashboard_run_id = 2745886 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`=29421545 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18375399, 0.04200446576288482, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29421545_15-12-2025_08_02_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29421546, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29421547, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29421548, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29421549, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29421550, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29421551, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29421552, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29421553, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29421554, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29421555, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29421556, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29421557, '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 = 29422017 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': 4221848, 'mtr_portfolio_id': 29422017, 'created_at': datetime.datetime(2025, 12, 15, 8, 18, 59), 'result': '0.061341590517899613', 'result_long': None, 'result_double': None}] Qualite : 0.061341590517899613 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29422017 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29422017_15-12-2025_08_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29422017 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_P29422017_15-12-2025_08_18_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29422023, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29422024, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29422025, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29422026, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29422027, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29422028, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29422029, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29422030, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29422031, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29422032, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29422033, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29422034, 'pht': 3726}}" where mtr_portfolio_id = 29422017 and dashboard_run_id = 2745886 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`=29422017 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18375400, 0.061341590517899613, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29422017_15-12-2025_08_18_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29422023, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29422024, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29422025, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29422026, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29422027, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29422028, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29422029, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29422030, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29422031, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29422032, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29422033, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29422034, '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 = 29422537 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': 4221908, 'mtr_portfolio_id': 29422537, 'created_at': datetime.datetime(2025, 12, 15, 8, 32, 58), 'result': '0.048219534664280514', 'result_long': None, 'result_double': None}] Qualite : 0.048219534664280514 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29422537 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29422537_15-12-2025_08_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29422537 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_P29422537_15-12-2025_08_32_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29422542, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29422544, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29422545, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29422546, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29422548, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29422549, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29422551, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29422552, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29422553, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29422555, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29422556, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29422558, 'pht': 3726}}" where mtr_portfolio_id = 29422537 and dashboard_run_id = 2745886 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`=29422537 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18375401, 0.048219534664280514, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29422537_15-12-2025_08_32_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29422542, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29422544, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29422545, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29422546, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29422548, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29422549, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29422551, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29422552, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29422553, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29422555, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29422556, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29422558, '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 = 29422986 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': 4221960, 'mtr_portfolio_id': 29422986, 'created_at': datetime.datetime(2025, 12, 15, 8, 46, 59), 'result': '0.04898624944448178', 'result_long': None, 'result_double': None}] Qualite : 0.04898624944448178 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29422986 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29422986_15-12-2025_08_47_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29422986 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_P29422986_15-12-2025_08_47_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29422996, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29422997, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29422998, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29422999, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29423000, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29423001, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29423002, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29423003, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29423004, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29423005, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29423006, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29423007, 'pht': 3726}}" where mtr_portfolio_id = 29422986 and dashboard_run_id = 2745886 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`=29422986 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18375402, 0.04898624944448178, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29422986_15-12-2025_08_47_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29422996, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29422997, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29422998, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29422999, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29423000, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29423001, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29423002, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29423003, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29423004, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29423005, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29423006, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29423007, '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 = 29423463 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': 4222030, 'mtr_portfolio_id': 29423463, 'created_at': datetime.datetime(2025, 12, 15, 9, 39), 'result': '0.04124339822580909', 'result_long': None, 'result_double': None}] Qualite : 0.04124339822580909 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29423463 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29423463_15-12-2025_09_39_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29423463 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_P29423463_15-12-2025_09_39_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29423472, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29423473, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29423474, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29423475, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29423476, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29423477, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29423478, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29423479, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29423480, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29423481, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29423482, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29423483, 'pht': 3726}}" where mtr_portfolio_id = 29423463 and dashboard_run_id = 2745886 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`=29423463 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18375403, 0.04124339822580909, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29423463_15-12-2025_09_39_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29423472, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29423473, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29423474, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29423475, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29423476, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29423477, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29423478, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29423479, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29423480, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29423481, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29423482, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29423483, '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 = 29424399 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': 4222215, 'mtr_portfolio_id': 29424399, 'created_at': datetime.datetime(2025, 12, 15, 9, 48, 59), 'result': '0.023366036070767617', 'result_long': None, 'result_double': None}] Qualite : 0.023366036070767617 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29424399 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29424399_15-12-2025_09_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29424399 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_P29424399_15-12-2025_09_49_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29424417, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29424418, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29424419, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29424420, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29424421, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29424422, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29424423, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29424424, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29424425, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29424426, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29424427, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29424428, 'pht': 3726}}" where mtr_portfolio_id = 29424399 and dashboard_run_id = 2745886 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`=29424399 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18375404, 0.023366036070767617, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29424399_15-12-2025_09_49_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29424417, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29424418, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29424419, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29424420, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29424421, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29424422, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29424423, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29424424, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29424425, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29424426, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29424427, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29424428, '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 = 29424626 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': 4222240, 'mtr_portfolio_id': 29424626, 'created_at': datetime.datetime(2025, 12, 15, 10, 3), 'result': '0.050377449323845976', 'result_long': None, 'result_double': None}] Qualite : 0.050377449323845976 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29424626 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29424626_15-12-2025_10_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29424626 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_P29424626_15-12-2025_10_03_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29424631, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29424632, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29424633, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29424634, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29424635, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29424636, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29424637, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29424638, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29424639, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29424640, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29424641, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29424642, 'pht': 3726}}" where mtr_portfolio_id = 29424626 and dashboard_run_id = 2745886 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`=29424626 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18375405, 0.050377449323845976, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29424626_15-12-2025_10_03_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29424631, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29424632, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29424633, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29424634, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29424635, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29424636, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29424637, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29424638, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29424639, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29424640, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29424641, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29424642, '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 = 29424984 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': 4222310, 'mtr_portfolio_id': 29424984, 'created_at': datetime.datetime(2025, 12, 15, 10, 16, 58), 'result': '0.03910905134750454', 'result_long': None, 'result_double': None}] Qualite : 0.03910905134750454 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29424984 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29424984_15-12-2025_10_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29424984 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_P29424984_15-12-2025_10_16_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29425000, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29425001, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29425002, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29425003, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29425004, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29425005, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29425006, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29425007, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29425008, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29425009, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29425010, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29425011, 'pht': 3726}}" where mtr_portfolio_id = 29424984 and dashboard_run_id = 2745886 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`=29424984 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18375406, 0.03910905134750454, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29424984_15-12-2025_10_16_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29425000, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29425001, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29425002, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29425003, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29425004, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29425005, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29425006, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29425007, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29425008, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29425009, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29425010, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29425011, '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 = 29425574 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': 4222390, 'mtr_portfolio_id': 29425574, 'created_at': datetime.datetime(2025, 12, 15, 10, 33), 'result': '0.044997294513022486', 'result_long': None, 'result_double': None}] Qualite : 0.044997294513022486 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29425574 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29425574_15-12-2025_10_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29425574 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_P29425574_15-12-2025_10_33_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29425583, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29425584, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29425585, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29425586, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29425587, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29425588, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29425589, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29425590, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29425591, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29425592, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29425593, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29425594, 'pht': 3726}}" where mtr_portfolio_id = 29425574 and dashboard_run_id = 2745886 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`=29425574 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18375407, 0.044997294513022486, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29425574_15-12-2025_10_33_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29425583, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29425584, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29425585, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29425586, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29425587, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29425588, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29425589, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29425590, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29425591, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29425592, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29425593, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29425594, '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 = 29426150 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': 4222461, 'mtr_portfolio_id': 29426150, 'created_at': datetime.datetime(2025, 12, 15, 10, 48, 59), 'result': '0.041089215346454225', 'result_long': None, 'result_double': None}] Qualite : 0.041089215346454225 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29426150 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29426150_15-12-2025_10_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29426150 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_P29426150_15-12-2025_10_49_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29426158, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29426159, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29426160, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29426161, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29426162, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29426163, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29426164, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29426165, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29426166, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29426167, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29426168, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29426169, 'pht': 3726}}" where mtr_portfolio_id = 29426150 and dashboard_run_id = 2745886 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`=29426150 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18375408, 0.041089215346454225, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29426150_15-12-2025_10_49_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29426158, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29426159, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29426160, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29426161, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29426162, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29426163, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29426164, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29426165, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29426166, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29426167, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29426168, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29426169, '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 = 29426847 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': 4222552, 'mtr_portfolio_id': 29426847, 'created_at': datetime.datetime(2025, 12, 15, 11, 3, 27), 'result': '0.03976516800076462', 'result_long': None, 'result_double': None}] Qualite : 0.03976516800076462 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29426847 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29426847_15-12-2025_11_03_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29426847 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_P29426847_15-12-2025_11_03_28.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29426855, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29426856, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29426857, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29426858, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29426859, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29426860, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29426861, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29426862, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29426863, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29426864, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29426865, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29426866, 'pht': 3726}}" where mtr_portfolio_id = 29426847 and dashboard_run_id = 2745886 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`=29426847 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18375409, 0.03976516800076462, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29426847_15-12-2025_11_03_28.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29426855, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29426856, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29426857, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29426858, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29426859, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29426860, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29426861, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29426862, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29426863, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29426864, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29426865, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29426866, '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 = 29427202 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': 4222630, 'mtr_portfolio_id': 29427202, 'created_at': datetime.datetime(2025, 12, 15, 11, 18, 58), 'result': '0.04408849281219146', 'result_long': None, 'result_double': None}] Qualite : 0.04408849281219146 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29427202 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29427202_15-12-2025_11_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29427202 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_P29427202_15-12-2025_11_18_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29427206, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29427207, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29427208, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29427209, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29427210, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29427211, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29427212, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29427213, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29427214, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29427215, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29427216, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29427217, 'pht': 3726}}" where mtr_portfolio_id = 29427202 and dashboard_run_id = 2745886 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`=29427202 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18375410, 0.04408849281219146, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29427202_15-12-2025_11_18_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29427206, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29427207, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29427208, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29427209, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29427210, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29427211, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29427212, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29427213, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29427214, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29427215, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29427216, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29427217, '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 = 29427865 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': 4222741, 'mtr_portfolio_id': 29427865, 'created_at': datetime.datetime(2025, 12, 15, 11, 33), 'result': '0.06248692052815361', 'result_long': None, 'result_double': None}] Qualite : 0.06248692052815361 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29427865 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29427865_15-12-2025_11_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29427865 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_P29427865_15-12-2025_11_33_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29427874, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29427875, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29427876, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29427877, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29427878, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29427880, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29427882, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29427884, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29427887, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29427890, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29427892, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29427894, 'pht': 3726}}" where mtr_portfolio_id = 29427865 and dashboard_run_id = 2745886 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`=29427865 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18375411, 0.06248692052815361, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29427865_15-12-2025_11_33_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29427874, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29427875, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29427876, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29427877, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29427878, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29427880, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29427882, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29427884, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29427887, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29427890, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29427892, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29427894, '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 = 29428659 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': 4222866, 'mtr_portfolio_id': 29428659, 'created_at': datetime.datetime(2025, 12, 15, 11, 49, 28), 'result': '0.07080270824002162', 'result_long': None, 'result_double': None}] Qualite : 0.07080270824002162 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29428659 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29428659_15-12-2025_11_49_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29428659 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_P29428659_15-12-2025_11_49_29.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29428713, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29428714, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29428715, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29428716, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29428717, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29428718, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29428719, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29428720, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29428721, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29428722, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29428723, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29428724, 'pht': 3726}}" where mtr_portfolio_id = 29428659 and dashboard_run_id = 2745886 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`=29428659 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18375412, 0.07080270824002162, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29428659_15-12-2025_11_49_29.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29428713, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29428714, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29428715, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29428716, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29428717, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29428718, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29428719, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29428720, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29428721, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29428722, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29428723, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29428724, '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 = 29429470 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': 4222952, 'mtr_portfolio_id': 29429470, 'created_at': datetime.datetime(2025, 12, 15, 12, 3, 30), 'result': '0.04664622241252287', 'result_long': None, 'result_double': None}] Qualite : 0.04664622241252287 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29429470 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29429470_15-12-2025_12_03_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29429470 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_P29429470_15-12-2025_12_03_31.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29429477, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29429478, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29429479, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29429480, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29429481, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29429482, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29429483, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29429484, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29429485, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29429486, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29429487, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29429488, 'pht': 3726}}" where mtr_portfolio_id = 29429470 and dashboard_run_id = 2745886 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`=29429470 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18375413, 0.04664622241252287, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29429470_15-12-2025_12_03_31.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29429477, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29429478, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29429479, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29429480, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29429481, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29429482, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29429483, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29429484, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29429485, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29429486, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29429487, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29429488, '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 = 29430268 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': 4223072, 'mtr_portfolio_id': 29430268, 'created_at': datetime.datetime(2025, 12, 15, 13, 59, 58), 'result': '0.051451681152082505', 'result_long': None, 'result_double': None}] Qualite : 0.051451681152082505 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29430268 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29430268_15-12-2025_13_59_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29430268 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_P29430268_15-12-2025_13_59_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29430343, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29430344, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29430345, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29430346, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29430347, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29430348, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29430349, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29430350, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29430351, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29430352, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29430353, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29430354, 'pht': 3726}}" where mtr_portfolio_id = 29430268 and dashboard_run_id = 2745886 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`=29430268 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18375414, 0.051451681152082505, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29430268_15-12-2025_13_59_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29430343, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29430344, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29430345, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29430346, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29430347, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29430348, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29430349, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29430350, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29430351, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29430352, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29430353, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29430354, '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 = 29432821 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': 4223379, 'mtr_portfolio_id': 29432821, 'created_at': datetime.datetime(2025, 12, 15, 13, 51), 'result': '0.04769022023150057', 'result_long': None, 'result_double': None}] Qualite : 0.04769022023150057 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29432821 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29432821_15-12-2025_13_51_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29432821 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_P29432821_15-12-2025_13_51_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29432822, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29432823, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29432824, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29432825, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29432826, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29432827, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29432828, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29432829, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29432830, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29432831, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29432832, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29432833, 'pht': 3726}}" where mtr_portfolio_id = 29432821 and dashboard_run_id = 2745888 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`=29432821 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18375415, 0.04769022023150057, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29432821_15-12-2025_13_51_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29432822, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29432823, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29432824, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29432825, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29432826, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29432827, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29432828, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29432829, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29432830, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29432831, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29432832, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29432833, '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 = 29432889 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': 4223393, 'mtr_portfolio_id': 29432889, 'created_at': datetime.datetime(2025, 12, 15, 13, 59), 'result': '0.04786131677447256', 'result_long': None, 'result_double': None}] Qualite : 0.04786131677447256 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29432889 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29432889_15-12-2025_13_59_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29432889 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_P29432889_15-12-2025_13_59_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29432891, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29432892, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29432893, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29432894, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29432895, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29432896, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29432897, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29432898, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29432899, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29432900, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29432901, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29432902, 'pht': 3726}}" where mtr_portfolio_id = 29432889 and dashboard_run_id = 2745888 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`=29432889 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18375416, 0.04786131677447256, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29432889_15-12-2025_13_59_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29432891, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29432892, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29432893, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29432894, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29432895, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29432896, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29432897, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29432898, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29432899, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29432900, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29432901, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29432902, '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 = 29433153 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': 4223435, 'mtr_portfolio_id': 29433153, 'created_at': datetime.datetime(2025, 12, 15, 14, 16, 59), 'result': '0.05549547159519192', 'result_long': None, 'result_double': None}] Qualite : 0.05549547159519192 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29433153 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29433153_15-12-2025_14_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29433153 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_P29433153_15-12-2025_14_16_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29433162, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29433163, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29433164, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29433165, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29433166, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29433167, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29433168, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29433169, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29433170, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29433171, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29433172, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29433173, 'pht': 3726}}" where mtr_portfolio_id = 29433153 and dashboard_run_id = 2745888 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`=29433153 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18375417, 0.05549547159519192, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29433153_15-12-2025_14_16_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29433162, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29433163, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29433164, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29433165, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29433166, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29433167, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29433168, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29433169, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29433170, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29433171, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29433172, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29433173, '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 = 29433905 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': 4223496, 'mtr_portfolio_id': 29433905, 'created_at': datetime.datetime(2025, 12, 15, 14, 21, 1), 'result': '0.09368337155717403', 'result_long': None, 'result_double': None}] Qualite : 0.09368337155717403 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29433905 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29433905_15-12-2025_14_21_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29433905 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_P29433905_15-12-2025_14_21_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29433943, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29433944, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29433945, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29433946, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29433947, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29433948, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29433949, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29433950, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29433951, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29433952, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29433953, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29433954, 'pht': 3726}}" where mtr_portfolio_id = 29433905 and dashboard_run_id = 2745888 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`=29433905 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18375418, 0.09368337155717403, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29433905_15-12-2025_14_21_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29433943, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29433944, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29433945, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29433946, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29433947, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29433948, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29433949, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29433950, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29433951, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29433952, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29433953, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29433954, '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 (29417280,29417539,29417857,29418257,29418780,29419219,29419682,29420083,29420617,29421087,29421545,29422017,29422537,29422986,29423463,29424399,29424626,29424984,29425574,29426150,29426847,29427202,29427865,29428659,29429470,29430268,29432821,29432889,29433153,29433905) result : ((1399431985,), (1399432443,), (1399432911,), (1399432913,), (1399432950,), (1399432963,), (1399432964,), (1399432965,), (1399432976,), (1399433319,), (1399433313,), (1399433324,), (1399433326,), (1399433328,), (1399433339,), (1399433340,), (1399433341,), (1399433342,), (1399433344,), (1399433358,), (1399433360,), (1399433362,), (1399433373,), (1399433374,), (1399433375,), (1399433376,), (1399433395,), (1399433397,), (1399433399,), (1399433401,), (1399433418,), (1399433419,), (1399433420,), (1399433422,), (1399433424,), (1399433427,), (1399433434,), (1399433436,), (1399433438,), (1399433446,), (1399433451,), (1399433452,), (1399433454,), (1399433456,), (1399433465,), (1399433467,), (1399433469,), (1399433471,), (1399433473,), (1399433503,), (1399433505,), (1399433506,), (1399433507,), (1399433519,), (1399433521,), (1399433523,), (1399433526,), (1399433529,), (1399433550,), (1399433552,), (1399433554,), (1399433557,), (1399433567,), (1399433569,), (1399433570,), (1399433572,), (1399433574,), (1399433599,), (1399433601,), (1399433603,), (1399433605,), (1399433607,), (1399433609,), (1399433616,), (1399433617,), (1399433619,), (1399433620,), (1399433653,), (1399433688,), (1399433643,), (1399433645,), (1399433647,), (1399433649,), (1399433651,), (1399433662,), (1399433663,), (1399433664,), (1399433665,), (1399433666,), (1399433667,), (1399433675,), (1399433683,), (1399433686,), (1399433694,), (1399433696,), (1399433698,), (1399433699,), (1399433700,), (1399433701,), (1399433715,), (1399433717,), (1399433718,), (1399433719,), (1399433721,), (1399433723,), (1399433742,), (1399433744,), (1399433746,), (1399433748,), (1399433759,), (1399433760,), (1399433761,), (1399433762,), (1399433764,), (1399433766,), (1399433787,), (1399433789,), (1399433791,), (1399433793,), (1399433795,), (1399433803,), (1399433804,), (1399433805,), (1399433806,), (1399433830,), (1399433832,), (1399433834,), (1399433836,), (1399433838,), (1399433847,), (1399433849,), (1399433851,), (1399433854,), (1399433857,), (1399433860,), (1399433874,), (1399433875,), (1399433881,), (1399433887,), (1399433903,), (1399433904,), (1399433905,), (1399433906,), (1399433907,), (1399433928,), (1399433929,), (1399433930,), (1399433931,), (1399433933,), (1399433934,), (1399434155,), (1399434167,), (1399434200,), (1399434339,), (1399434376,), (1399434413,), (1399434445,), (1399434481,), (1399434723,), (1399434651,), (1399434690,), (1399434957,), (1399435741,), (1399435759,), (1399435761,), (1399435762,), (1399435763,), (1399435795,), (1399435800,), (1399435802,), (1399435804,), (1399435807,), (1399435823,), (1399435824,), (1399435825,), (1399435828,), (1399435831,), (1399435833,), (1399435854,), (1399435857,), (1399435858,), (1399435859,), (1399435860,), (1399435864,), (1399435866,), (1399435882,), (1399435883,), (1399435884,), (1399435885,), (1399435888,), (1399435891,), (1399435912,), (1399435914,), (1399435916,), (1399435918,), (1399435921,), (1399435924,), (1399435935,), (1399435937,), (1399435938,), (1399435941,), (1399435944,), (1399435947,), (1399435964,), (1399435968,), (1399435975,), (1399435984,), (1399435987,), (1399435988,), (1399436006,), (1399436008,), (1399436010,), (1399436014,), (1399436018,), (1399436032,), (1399436034,), (1399436036,), (1399436039,), (1399436053,), (1399436055,), (1399436058,), (1399436062,), (1399436067,), (1399436069,), (1399436097,), (1399436090,), (1399436112,), (1399436114,), (1399436115,), (1399436116,), (1399436118,), (1399436121,), (1399436142,), (1399436143,), (1399436144,), (1399436145,), (1399436147,), (1399436150,), (1399436165,), (1399436167,), (1399436168,), (1399436169,), (1399436199,), (1399436200,), (1399436201,), (1399436214,), (1399436216,), (1399436218,), (1399436237,), (1399436238,), (1399436239,), (1399436240,), (1399436243,), (1399436261,), (1399436263,), (1399436265,), (1399436267,), (1399436293,), (1399436295,), (1399436296,), (1399436297,), (1399436299,), (1399436313,), (1399436314,), (1399436315,), (1399436316,), (1399436318,), (1399436321,), (1399436348,), (1399436351,), (1399436353,), (1399436355,), (1399436358,), (1399436376,), (1399436378,), (1399436381,), (1399436384,), (1399436387,), (1399436393,), (1399436402,), (1399436404,), (1399436406,), (1399436416,), (1399436417,), (1399436419,), (1399436422,), (1399436425,), (1399436428,), (1399436438,), (1399436444,), (1399436446,), (1399436448,), (1399436470,), (1399436471,), (1399436473,), (1399436501,), (1399436489,), (1399436491,), (1399436493,), (1399436495,), (1399436498,), (1399436521,), (1399436528,), (1399436529,), (1399436530,), (1399436533,), (1399436536,), (1399436553,), (1399436561,), (1399436563,), (1399436565,), (1399436568,), (1399436570,), (1399436590,), (1399436592,), (1399436594,), (1399436596,), (1399436598,), (1399436622,), (1399436623,), (1399436624,), (1399436625,), (1399436627,), (1399436656,), (1399436661,), (1399436663,), (1399436665,), (1399436668,), (1399436671,), (1399436684,), (1399436685,), (1399436686,), (1399436689,), (1399436692,), (1399436695,), (1399436714,), (1399436716,), (1399436724,), (1399436729,), (1399436732,), (1399436734,), (1399436736,), (1399436738,), (1399436741,), (1399436749,), (1399436750,), (1399436757,), (1399436762,), (1399436765,), (1399436768,), (1399436794,), (1399436796,), (1399436812,), (1399436815,), (1399436817,), (1399436821,), (1399436824,), (1399436831,), (1399436840,), (1399436842,), (1399436844,), (1399436893,), (1399436898,), (1399436899,), (1399436900,), (1399436935,), (1399436947,), (1399436951,), (1399436967,), (1399436969,), (1399436971,), (1399436973,), (1399436976,), (1399437024,), (1399437013,), (1399437022,), (1399437044,), (1399437046,), (1399437048,), (1399437051,), (1399437078,), (1399437079,), (1399437080,), (1399437081,), (1399437084,), (1399437086,), (1399437099,), (1399437101,), (1399437103,), (1399437134,), (1399437135,), (1399437136,), (1399437137,), (1399437139,), (1399437142,), (1399437165,), (1399437166,), (1399437168,), (1399437170,), (1399437172,), (1399437173,), (1399437182,), (1399437184,), (1399437187,), (1399437190,), (1399437199,), (1399437201,), (1399437204,), (1399437219,), (1399437221,), (1399437222,), (1399437224,), (1399437227,), (1399437230,), (1399437257,), (1399437258,), (1399437259,), (1399437260,), (1399437263,), (1399437265,), (1399437281,), (1399437284,), (1399437286,), (1399437325,), (1399437326,), (1399437327,), (1399437328,), (1399437331,), (1399437333,), (1399437347,), (1399437350,), (1399437353,), (1399437358,), (1399437361,), (1399437364,), (1399437372,), (1399437374,), (1399437375,), (1399437377,), (1399437379,), (1399437436,), (1399437472,), (1399437506,), (1399437543,), (1399437625,), (1399437629,), (1399437633,), (1399437636,), (1399437639,), (1399437643,), (1399437872,), (1399437743,), (1399437776,), (1399437807,), (1399437840,), (1399438224,), (1399438247,), (1399438249,), (1399438421,), (1399438430,), (1399438451,), (1399438452,), (1399438455,), (1399438486,), (1399438815,), (1399438845,), (1399438877,), (1399439303,), (1399439336,), (1399439342,), (1399439344,), (1399439347,), (1399439350,), (1399439379,), (1399439413,), (1399439444,), (1399439476,), (1399439737,), (1399439743,), (1399439745,), (1399439761,), (1399439794,), (1399439838,), (1399439842,), (1399439843,), (1399439870,), (1399439872,), (1399439874,), (1399439898,), (1399439922,), (1399439924,), (1399439926,), (1399439961,), (1399439963,), (1399439965,), (1399439967,), (1399439985,), (1399439986,), (1399439987,), (1399439988,), (1399440009,), (1399440011,), (1399440013,), (1399440015,), (1399440040,), (1399440044,), (1399440046,), (1399440047,), (1399440050,), (1399440054,), (1399440084,), (1399440078,), (1399440080,), (1399440082,), (1399440102,), (1399440103,), (1399440104,), (1399440105,), (1399440108,), (1399440111,), (1399440124,), (1399440125,), (1399440127,), (1399440129,), (1399440132,), (1399440135,), (1399440149,), (1399440151,), (1399440153,), (1399440180,), (1399440182,), (1399440184,), (1399440186,), (1399440189,), (1399440191,), (1399440201,), (1399440203,), (1399440205,), (1399440207,), (1399440226,), (1399440227,), (1399440228,), (1399440229,), (1399440253,), (1399440259,), (1399440261,), (1399440263,), (1399440266,), (1399440271,), (1399440288,), (1399440290,), (1399440292,), (1399440294,), (1399440297,), (1399440300,), (1399440311,), (1399440312,), (1399440313,), (1399440314,), (1399440341,), (1399440344,), (1399440346,), (1399440369,), (1399440371,), (1399440373,), (1399440377,), (1399440397,), (1399440399,), (1399440401,), (1399440403,), (1399440420,), (1399440421,), (1399440441,), (1399440443,), (1399440445,), (1399440447,), (1399440450,), (1399440482,), (1399440479,), (1399440480,), (1399440520,), (1399440521,), (1399440522,), (1399440536,), (1399440538,), (1399440540,), (1399440542,), (1399440545,), (1399440546,), (1399440572,), (1399440573,), (1399440574,), (1399440575,), (1399440578,), (1399440581,), (1399440596,), (1399440598,), (1399440600,), (1399440626,), (1399440628,), (1399440630,), (1399440632,), (1399440635,), (1399440638,), (1399440649,), (1399440651,), (1399440655,), (1399440659,), (1399440667,), (1399440671,), (1399440676,), (1399440677,), (1399440678,), (1399440685,), (1399440688,), (1399440692,), (1399440694,), (1399440697,), (1399440710,), (1399440711,), (1399440713,), (1399440714,), (1399440717,), (1399440749,), (1399440751,), (1399440753,), (1399440755,), (1399440758,), (1399440773,), (1399440775,), (1399440777,), (1399440798,), (1399440799,), (1399440800,), (1399440809,), (1399440847,), (1399440855,), (1399440857,), (1399440859,), (1399440891,), (1399440894,), (1399440895,), (1399440914,), (1399440916,), (1399440918,), (1399440922,), (1399440926,), (1399440963,), (1399440983,), (1399440984,), (1399440986,), (1399440988,), (1399441012,), (1399441014,), (1399441016,), (1399441018,), (1399441021,), (1399441041,), (1399441042,), (1399441043,), (1399441044,), (1399441066,), (1399441068,), (1399441070,), (1399441072,), (1399441090,), (1399441091,), (1399441092,), (1399441118,), (1399441122,), (1399441124,), (1399441146,), (1399441148,), (1399441150,), (1399441155,), (1399441159,), (1399441163,), (1399441177,), (1399441179,), (1399441181,), (1399441183,), (1399441186,), (1399441202,), (1399441205,), (1399441210,), (1399441214,), (1399441221,), (1399441227,), (1399441234,), (1399441237,), (1399441240,), (1399441242,), (1399441247,), (1399441249,), (1399441251,), (1399441274,), (1399441275,), (1399441278,), (1399441283,), (1399441288,), (1399441293,), (1399441297,), (1399441299,), (1399441300,), (1399441304,), (1399441306,), (1399441309,), (1399441312,), (1399441337,), (1399441339,), (1399441342,), (1399441344,), (1399441704,), (1399441572,), (1399441605,), (1399441637,), (1399441668,), (1399442096,), (1399442124,), (1399442171,), (1399442225,), (1399442286,), (1399442825,), (1399442858,), (1399442890,), (1399443000,), (1399443002,), (1399443004,), (1399443006,), (1399443375,), (1399443381,), (1399443389,), (1399443390,), (1399443415,), (1399443573,), (1399443579,), (1399443580,), (1399443596,), (1399443598,), (1399443599,), (1399443601,), (1399443621,), (1399443622,), (1399443623,), (1399443646,), (1399443670,), (1399443691,), (1399443696,), (1399443954,), (1399443969,), (1399444076,), (1399444074,), (1399444075,), (1399444295,), (1399444329,), (1399444335,), (1399444337,), (1399444355,), (1399444470,), (1399444473,), (1399444475,), (1399444477,), (1399444480,), (1399444497,), (1399444500,), (1399444503,), (1399444506,), (1399444510,), (1399444528,), (1399444541,), (1399444629,), (1399444649,), (1399444652,), (1399444654,), (1399444665,), (1399444667,), (1399444670,), (1399444841,), (1399444842,), (1399444843,), (1399444844,), (1399444858,), (1399444860,), (1399444862,), (1399444898,), (1399444899,), (1399444900,), (1399444914,), (1399444916,), (1399444919,), (1399444921,), (1399444924,), (1399444951,), (1399444953,), (1399444955,), (1399444957,), (1399444972,), (1399444973,), (1399444974,), (1399444975,), (1399444996,), (1399444999,), (1399445001,), (1399445003,), (1399445006,), (1399445031,), (1399445023,), (1399445024,), (1399445026,), (1399445028,), (1399445056,), (1399445058,), (1399445060,), (1399445076,), (1399445078,), (1399445079,), (1399445080,), (1399445102,), (1399445103,), (1399445104,), (1399445105,), (1399445108,), (1399445111,), (1399445122,), (1399445124,), (1399445126,), (1399445128,), (1399445131,), (1399445153,), (1399445154,), (1399445155,), (1399445182,), (1399445184,), (1399445186,), (1399445188,), (1399445228,), (1399445247,), (1399445251,), (1399445254,), (1399445264,), (1399445267,), (1399445320,), (1399445323,), (1399445327,), (1399445332,), (1399445336,), (1399445343,), (1399445370,), (1399445374,), (1399445375,), (1399445602,), (1399445628,), (1399445664,), (1399445697,), (1399445731,), (1399445739,), (1399445759,), (1399445760,), (1399445761,), (1399445762,), (1399445765,), (1399445788,), (1399445789,), (1399445790,), (1399445791,), (1399445794,), (1399445797,), (1399445844,), (1399445853,), (1399445855,), (1399446035,), (1399446038,), (1399446040,), (1399446065,), (1399446252,), (1399446229,), (1399446248,), (1399446250,), (1399446278,), (1399446289,), (1399446329,), (1399446356,), (1399446359,), (1399446363,), (1399446379,), (1399446381,), (1399446383,), (1399446385,), (1399446388,), (1399446406,), (1399446408,), (1399446410,), (1399446414,), (1399446418,), (1399446421,), (1399446644,), (1399446680,), (1399446713,), (1399446747,), (1399446776,), (1399446787,), (1399446790,), (1399446793,), (1399446797,), (1399446801,), (1399446827,), (1399446829,), (1399446831,), (1399446833,), (1399446836,), (1399446838,), (1399446876,), (1399446884,), (1399446885,), (1399446886,), (1399446944,), (1399446951,), (1399446953,), (1399446955,), (1399446975,), (1399446977,), (1399446979,), (1399446981,), (1399446984,), (1399446987,), (1399447007,), (1399447008,), (1399447009,), (1399447012,), (1399447015,), (1399447018,), (1399447035,), (1399447037,), (1399447039,), (1399447042,), (1399447048,), (1399447050,), (1399447064,), (1399447065,), (1399447067,), (1399447069,), (1399447070,), (1399447071,), (1399447078,), (1399447079,), (1399447081,), (1399447082,), (1399447085,), (1399447086,), (1399447089,), (1399447090,), (1399447093,), (1399447094,), (1399452528,), (1399452527,), (1399452545,), (1399452546,), (1399452548,), (1399452550,), (1399452695,), (1399452697,), (1399452699,), (1399452701,), (1399452704,), (1399452743,), (1399452746,), (1399452757,), (1399452766,), (1399452774,), (1399452778,), (1399452881,), (1399452945,), (1399453013,), (1399453110,), (1399453396,), (1399453429,), (1399453440,), (1399453783,), (1399453824,), (1399453772,), (1399453774,), (1399453777,), (1399453780,), (1399453798,), (1399453799,), (1399453800,), (1399453803,), (1399453806,), (1399453809,), (1399453817,), (1399453819,), (1399453821,), (1399453829,), (1399453831,), (1399453834,), (1399453836,), (1399453857,), (1399453859,), (1399453861,), (1399454199,), (1399454203,), (1399454208,), (1399454224,), (1399454226,), (1399454228,), (1399454232,), (1399454236,), (1399454259,), (1399454261,), (1399454263,), (1399454265,), (1399454268,), (1399454282,), (1399454284,), (1399454285,), (1399454287,), (1399454326,), (1399454328,), (1399454329,), (1399454330,), (1399454352,), (1399454353,), (1399454354,), (1399454355,), (1399454372,), (1399454374,), (1399454381,), (1399454458,), (1399454459,), (1399454460,), (1399454461,), (1399454464,), (1399454465,), (1399454561,), (1399454595,), (1399454633,), (1399454929,), (1399454934,), (1399454939,), (1399454943,), (1399455355,), (1399455327,), (1399455349,), (1399455352,), (1399455523,), (1399455547,), (1399455571,), (1399455604,), (1399455934,), (1399455937,), (1399455941,), (1399455945,), (1399455949,), (1399455954,), (1399455971,), (1399455972,), (1399456006,), (1399456040,), (1399456077,), (1399456114,), (1399456212,), (1399456214,), (1399456216,), (1399456270,), (1399456272,), (1399456273,), (1399456274,), (1399456442,), (1399456443,), (1399456444,), (1399456445,), (1399456447,), (1399456449,), (1399456481,), (1399456483,), (1399456485,), (1399456487,), (1399456490,), (1399456504,), (1399456505,), (1399456507,), (1399456514,), (1399456519,), (1399456522,), (1399456591,), (1399456613,), (1399456615,), (1399456617,), (1399456620,), (1399456858,), (1399456859,), (1399456860,), (1399457001,), (1399457003,), (1399457010,), (1399457012,), (1399457015,), (1399457018,), (1399457109,), (1399457110,), (1399457113,), (1399457203,), (1399457287,), (1399457378,), (1399457458,), (1399457462,), (1399457472,), (1399457496,), (1399457498,), (1399457499,), (1399457500,), (1399457502,), (1399457504,), (1399457543,), (1399457538,), (1399457541,), (1399457586,), (1399457587,), (1399457610,), (1399457650,), (1399457693,), (1399457728,), (1399458077,), (1399458100,), (1399458102,), (1399458104,), (1399458107,), (1399458194,), (1399458214,), (1399458262,), (1399458285,), (1399458316,), (1399458330,), (1399458339,), (1399458340,), (1399458343,), (1399458356,), (1399458366,), (1399458399,), (1399458430,), (1399458462,), (1399458495,), (1399458764,), (1399458807,), (1399458816,), (1399458822,), (1399459076,), (1399459077,), (1399459078,), (1399459079,), (1399459082,), (1399459085,), (1399459109,), (1399459110,), (1399459111,), (1399459112,), (1399459156,), (1399459157,), (1399459159,), (1399459192,), (1399459193,), (1399459194,), (1399459195,), (1399459215,), (1399459217,), (1399459219,), (1399459221,), (1399459223,), (1399459266,), (1399459267,), (1399459282,), (1399459284,), (1399459286,), (1399459288,), (1399459347,), (1399459357,), (1399459360,), (1399459362,), (1399459365,), (1399459368,), (1399459396,), (1399459387,), (1399459389,), (1399459391,), (1399459394,), (1399459412,), (1399459414,), (1399459416,), (1399459417,), (1399459435,), (1399459437,), (1399459439,), (1399459441,), (1399459444,), (1399459447,), (1399459467,), (1399459468,), (1399459469,), (1399459470,), (1399459472,), (1399459488,), (1399459535,), (1399459536,), (1399459537,), (1399459538,), (1399459540,), (1399459561,), (1399459563,), (1399459564,), (1399459566,), (1399459569,), (1399459572,), (1399459587,), (1399459589,), (1399459594,), (1399459597,), (1399459600,), (1399459603,), (1399459612,), (1399459613,), (1399459614,), (1399459615,), (1399459693,), (1399459725,), (1399459755,), (1399459769,), (1399459783,), (1399459789,), (1399459830,), (1399459832,), (1399459834,), (1399459838,), (1399459841,), (1399459845,), (1399459877,), (1399459879,), (1399459881,), (1399459883,), (1399459986,), (1399459992,), (1399460001,), (1399460002,), (1399460005,), (1399460008,), (1399460020,), (1399460022,), (1399460024,), (1399460026,), (1399460028,), (1399460031,), (1399460103,), (1399460104,), (1399460105,), (1399460213,), (1399460218,), (1399460239,), (1399460242,), (1399460251,), (1399460258,), (1399460277,), (1399460278,), (1399460280,), (1399460282,), (1399460285,), (1399460383,), (1399460736,), (1399460372,), (1399460374,), (1399460376,), (1399460378,), (1399460381,), (1399460396,), (1399460397,), (1399460398,), (1399460401,), (1399460404,), (1399460407,), (1399460455,), (1399460545,), (1399460636,), (1399460729,), (1399460733,), (1399460808,), (1399460810,), (1399460863,), (1399460867,), (1399460936,), (1399460937,), (1399460938,), (1399460973,), (1399460975,), (1399460977,), (1399460979,), (1399460982,), (1399460996,), (1399461001,), (1399461009,), (1399461012,), (1399461049,), (1399461050,), (1399461070,), (1399461072,), (1399461074,), (1399461076,), (1399461079,), (1399461098,), (1399461099,), (1399461100,), (1399461101,), (1399461102,), (1399461105,), (1399461123,), (1399461125,), (1399461127,), (1399461129,), (1399461132,), (1399461151,), (1399461152,), (1399461154,), (1399461170,), (1399461171,), (1399461172,), (1399461173,), (1399461176,), (1399461179,), (1399461193,), (1399461195,), (1399461197,), (1399461199,), (1399461202,), (1399461545,), (1399461579,), (1399461613,), (1399461646,), (1399461680,), (1399461831,), (1399461832,), (1399461838,), (1399461996,), (1399461851,), (1399461887,), (1399461919,), (1399461955,), (1399462595,), (1399462665,), (1399462725,), (1399462789,), (1399462858,), (1399463633,), (1399463696,), (1399463758,), (1399463831,), (1399464668,), (1399464867,), (1399464917,), (1399464933,), (1399464943,), (1399464976,), (1399465186,), (1399465246,), (1399465309,), (1399465368,), (1399465752,), (1399465765,), (1399465780,), (1399465788,), (1399465792,), (1399465812,), (1399465834,), (1399465837,), (1399465838,), (1399465841,), (1399465844,), (1399465847,), (1399465856,), (1399465857,), (1399465860,), (1399465864,), (1399466011,), (1399466074,), (1399466302,), (1399466304,), (1399466306,), (1399466307,), (1399466310,), (1399466341,), (1399466342,), (1399466343,), (1399466411,), (1399466444,), (1399466499,), (1399466551,), (1399466553,), (1399466571,), (1399466626,), (1399466738,), (1399466742,), (1399466744,), (1399466871,), (1399466890,), (1399466898,), (1399466900,), (1399466902,), (1399466967,), (1399466984,), (1399466986,), (1399466987,), (1399466990,), (1399467027,), (1399467089,), (1399467018,), (1399467020,), (1399467022,), (1399467024,), (1399467041,), (1399467043,), (1399467046,), (1399467053,), (1399467058,), (1399467059,), (1399467067,), (1399467070,), (1399467085,), (1399467096,), (1399467136,), (1399467176,), (1399467240,), (1399467304,), (1399467695,), (1399467758,), (1399467829,), (1399467916,), (1399468028,), (1399469020,), (1399469114,), (1399469209,), (1399470213,), (1399470289,), (1399470344,), (1399470363,), (1399470367,), (1399470370,), (1399470428,), (1399470476,), (1399470514,), (1399470552,), (1399470588,), (1399470654,), (1399471445,), (1399471506,), (1399471599,), (1399472193,), (1399472273,), (1399472331,), (1399472371,), (1399472408,), (1399472441,), (1399472772,), (1399472805,), (1399472837,), (1399472872,), (1399472905,), (1399472942,), (1399473257,), (1399473291,), (1399473332,), (1399473342,), (1399473422,), (1399473458,), (1399473491,), (1399473572,), (1399473661,), (1399473783,), (1399474092,), (1399474162,), (1399474246,), (1399474315,), (1399474403,), (1399474816,), (1399474844,), (1399474863,), (1399474899,), (1399474903,), (1399474913,), (1399474953,), (1399474987,), (1399475025,), (1399475437,), (1399475318,), (1399475353,), (1399475394,), (1399475412,), (1399475451,), (1399475452,), (1399475453,), (1399475454,), (1399475471,), (1399475472,), (1399475474,), (1399475476,), (1399475516,), (1399475622,), (1399476381,), (1399476434,), (1399476435,), (1399476436,), (1399476438,), (1399476743,), (1399476789,), (1399476820,), (1399477634,), (1399477689,), (1399477847,), (1399477931,), (1399477967,), (1399478002,), (1399478427,), (1399478459,), (1399478473,), (1399478476,), (1399478487,), (1399478537,), (1399478760,), (1399478821,), (1399478874,), (1399479006,), (1399479129,), (1399479568,), (1399479569,), (1399479678,), (1399479693,), (1399479795,), (1399479804,), (1399479901,), (1399479917,), (1399480352,), (1399480390,), (1399480426,), (1399480456,), (1399480491,), (1399480922,), (1399481062,), (1399481172,), (1399481294,), (1399481350,), (1399481613,), (1399481614,), (1399481615,), (1399481616,), (1399481650,), (1399481651,), (1399481652,), (1399481653,), (1399481655,), (1399482532,), (1399482548,), (1399482551,), (1399482553,), (1399482555,), (1399482575,), (1399482580,), (1399482585,), (1399482644,), (1399482741,), (1399482828,), (1399482970,), (1399483008,), (1399483076,), (1399483287,), (1399483322,), (1399483360,), (1399483399,), (1399483435,), (1399483848,), (1399483736,), (1399483773,), (1399483809,), (1399483989,), (1399483991,), (1399483993,), (1399484089,), (1399484131,), (1399484173,), (1399484222,), (1399484256,), (1399484655,), (1399484695,), (1399484729,), (1399484791,), (1399484827,), (1399485331,), (1399485369,), (1399485401,), (1399485435,), (1399485468,), (1399486466,), (1399486611,), (1399486764,), (1399486917,), (1399487035,), (1399487810,), (1399487857,), (1399487892,), (1399487915,), (1399487917,), (1399487919,), (1399487941,), (1399487943,), (1399487971,), (1399488024,), (1399488091,), (1399489224,), (1399489352,), (1399489500,), (1399490144,), (1399490146,), (1399490148,), (1399490285,), (1399490379,), (1399490406,), (1399490439,), (1399490441,), (1399490443,), (1399490445,), (1399490448,), (1399490450,), (1399490459,), (1399490461,), (1399490463,), (1399490466,), (1399490469,), (1399490473,), (1399490481,), (1399490482,), (1399490484,), (1399490488,), (1399490543,), (1399490579,), (1399491791,), (1399491826,), (1399491861,), (1399491896,), (1399491931,), (1399492282,), (1399492370,), (1399492439,), (1399492527,), (1399492659,), (1399492648,), (1399492656,), (1399492736,), (1399492739,), (1399492746,), (1399492756,), (1399492764,), (1399492768,), (1399492772,), (1399492776,), (1399492784,), (1399492846,), (1399492882,), (1399492923,), (1399492956,), (1399492992,), (1399493324,), (1399493327,), (1399493329,), (1399493555,), (1399493573,), (1399493577,), (1399493590,), (1399493593,), (1399494769,), (1399494820,), (1399494852,), (1399495589,), (1399495618,), (1399496411,), (1399496432,), (1399496435,), (1399506887,), (1399506886,), (1399507057,), (1399507322,), (1399507486,), (1399507524,), (1399507526,), (1399507527,), (1399507528,), (1399507544,), (1399507545,), (1399507547,), (1399507549,), (1399507552,), (1399507555,), (1399507569,), (1399507570,), (1399507571,), (1399507572,), (1399507593,), (1399507594,), (1399507595,), (1399507596,), (1399507599,), (1399507602,), (1399507614,), (1399507616,), (1399507618,), (1399507620,), (1399507622,), (1399507640,), (1399507642,), (1399507644,), (1399507646,), (1399507667,), (1399507687,), (1399507720,), (1399507755,), (1399507788,), (1399507815,), (1399507817,), (1399507821,), (1399507856,), (1399507896,), (1399508332,), (1399508337,), (1399508342,), (1399508345,), (1399508348,), (1399508354,), (1399508355,), (1399508359,), (1399508362,), (1399508666,), (1399508495,), (1399508530,), (1399508563,), (1399508596,), (1399508631,), (1399508968,), (1399509057,), (1399509352,), (1399509354,), (1399509356,), (1399509358,), (1399509361,), (1399509457,), (1399509488,), (1399509518,), (1399509551,), (1399509586,), (1399509620,), (1399509963,), (1399509983,), (1399509985,), (1399510100,), (1399510134,), (1399510164,), (1399510195,), (1399510227,), (1399510366,), (1399510367,), (1399510369,), (1399510372,), (1399510375,), (1399510377,), (1399510388,), (1399510397,), (1399510401,), (1399510405,), (1399510532,), (1399510591,), (1399510664,), (1399510722,), (1399510903,), (1399510939,), (1399510978,), (1399511194,), (1399511196,), (1399511198,), (1399511293,), (1399511313,), (1399511315,), (1399511366,), (1399511368,), (1399511384,), (1399511421,), (1399511425,), (1399511518,), (1399511617,), (1399511658,), (1399511857,), (1399511859,), (1399511885,), (1399511879,), (1399511881,), (1399511883,), (1399512010,), (1399512012,), (1399512014,), (1399512018,), (1399512026,), (1399512044,), (1399512051,), (1399512053,), (1399512055,), (1399512059,), (1399512084,), (1399512085,), (1399512086,), (1399512087,), (1399512119,), (1399512122,), (1399512124,), (1399512131,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'15122025': {'nb_upload': 21, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29433905]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1399512131, 1399512124, 1399512122, 1399512119, 1399512087, 1399512086, 1399512085, 1399512084, 1399512059, 1399512055, 1399512053, 1399512051, 1399512044] map_info['map_portfolio_photo'] : {29433905: [1399512131, 1399512124, 1399512122, 1399512119, 1399512087, 1399512086, 1399512085, 1399512084, 1399512059, 1399512055, 1399512053, 1399512051, 1399512044, 1399512026, 1399512018, 1399512014, 1399512012, 1399512010, 1399511883, 1399511881, 1399511879]} final : True mtd_id 4302 list_pids : [1399512131, 1399512124, 1399512122, 1399512119, 1399512087, 1399512086, 1399512085, 1399512084, 1399512059, 1399512055, 1399512053, 1399512051, 1399512044] Looping around the photos to save general results len do output : 1 /29433905Didn'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, '4223496') ('4302', '29433905', '1399512131', None, None, None, None, None, '4223496') ('4302', None, None, None, None, None, None, None, '4223496') ('4302', '29433905', '1399512124', None, None, None, None, None, '4223496') ('4302', None, None, None, None, None, None, None, '4223496') ('4302', '29433905', '1399512122', None, None, None, None, None, '4223496') ('4302', None, None, None, None, None, None, None, '4223496') ('4302', '29433905', '1399512119', None, None, None, None, None, '4223496') ('4302', None, None, None, None, None, None, None, '4223496') ('4302', '29433905', '1399512087', None, None, None, None, None, '4223496') ('4302', None, None, None, None, None, None, None, '4223496') ('4302', '29433905', '1399512086', None, None, None, None, None, '4223496') ('4302', None, None, None, None, None, None, None, '4223496') ('4302', '29433905', '1399512085', None, None, None, None, None, '4223496') ('4302', None, None, None, None, None, None, None, '4223496') ('4302', '29433905', '1399512084', None, None, None, None, None, '4223496') ('4302', None, None, None, None, None, None, None, '4223496') ('4302', '29433905', '1399512059', None, None, None, None, None, '4223496') ('4302', None, None, None, None, None, None, None, '4223496') ('4302', '29433905', '1399512055', None, None, None, None, None, '4223496') ('4302', None, None, None, None, None, None, None, '4223496') ('4302', '29433905', '1399512053', None, None, None, None, None, '4223496') ('4302', None, None, None, None, None, None, None, '4223496') ('4302', '29433905', '1399512051', None, None, None, None, None, '4223496') ('4302', None, None, None, None, None, None, None, '4223496') ('4302', '29433905', '1399512044', None, None, None, None, None, '4223496') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 14 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '29433905', 'None', None, None, None, None, '4223496'), ('4302', '29433905', '1399512131', None, None, None, None, None, '4223496'), ('4302', '29433905', '1399512124', None, None, None, None, None, '4223496'), ('4302', '29433905', '1399512122', None, None, None, None, None, '4223496'), ('4302', '29433905', '1399512119', None, None, None, None, None, '4223496'), ('4302', '29433905', '1399512087', None, None, None, None, None, '4223496'), ('4302', '29433905', '1399512086', None, None, None, None, None, '4223496'), ('4302', '29433905', '1399512085', None, None, None, None, None, '4223496'), ('4302', '29433905', '1399512084', None, None, None, None, None, '4223496'), ('4302', '29433905', '1399512059', None, None, None, None, None, '4223496'), ('4302', '29433905', '1399512055', None, None, None, None, None, '4223496'), ('4302', '29433905', '1399512053', None, None, None, None, None, '4223496'), ('4302', '29433905', '1399512051', None, None, None, None, None, '4223496'), ('4302', '29433905', '1399512044', None, None, None, None, None, '4223496')] time used for this insertion : 0.016485214233398438 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.4316623210906982 time spend to save output : 0.016727447509765625 total time spend for step 5 : 2.448389768600464 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 (4223496) 2.30user 1.81system 0:11.29elapsed 36%CPU (0avgtext+0avgdata 168200maxresident)k 1496inputs+10616outputs (43major+83035minor)pagefaults 0swaps