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 : 4160928 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 (4214393) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (4214393) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29372129 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['4214393'] with mtr_portfolio_ids : ['29372129'] and first list_photo_ids : [] new path : /proc/4160928/ Name: python3 Umask: 0002 State: R (running) Tgid: 4160928 Ngid: 0 Pid: 4160928 PPid: 4160927 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 4160928 NSpid: 4160928 NSpgid: 4159447 NSsid: 4159447 VmPeak: 1113376 kB VmSize: 1113376 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 105612 kB VmRSS: 105612 kB RssAnon: 66320 kB RssFile: 39292 kB RssShmem: 0 kB VmData: 872104 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130476 kB VmPTE: 616 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63019 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 58 nonvoluntary_ctxt_switches: 89 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '4160928', 'Ngid': '0', 'Pid': '4160928', 'PPid': '4160927', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '4160928', 'NSpid': '4160928', 'NSpgid': '4159447', 'NSsid': '4159447', 'VmPeak': '1113376 kB', 'VmSize': '1113376 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '105612 kB', 'VmRSS': '105612 kB', 'RssAnon': '66320 kB', 'RssFile': '39292 kB', 'RssShmem': '0 kB', 'VmData': '872104 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130476 kB', 'VmPTE': '616 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63019', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '58', 'nonvoluntary_ctxt_switches': '89'} ('datou_batch_current', '4160928', '1113376', '0', '1113376', '872104', '105612', b'', 'marlene', '4214393') 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 (29372129) 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 (4214393 ) ) 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 (29372129) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1399048168, 'portfolio_id': 29372129}, {'photo_id': 1399048133, 'portfolio_id': 29372129}, {'photo_id': 1399048097, 'portfolio_id': 29372129}, {'photo_id': 1399048054, 'portfolio_id': 29372129}, {'photo_id': 1399048019, 'portfolio_id': 29372129}, {'photo_id': 1399047886, 'portfolio_id': 29372129}, {'photo_id': 1399047849, 'portfolio_id': 29372129}, {'photo_id': 1399047817, 'portfolio_id': 29372129}, {'photo_id': 1399047785, 'portfolio_id': 29372129}, {'photo_id': 1399047752, 'portfolio_id': 29372129}, {'photo_id': 1399047718, 'portfolio_id': 29372129}, {'photo_id': 1399047586, 'portfolio_id': 29372129}, {'photo_id': 1399047583, 'portfolio_id': 29372129}, {'photo_id': 1399047580, 'portfolio_id': 29372129}, {'photo_id': 1399047578, 'portfolio_id': 29372129}, {'photo_id': 1399047576, 'portfolio_id': 29372129}, {'photo_id': 1399047574, 'portfolio_id': 29372129}, {'photo_id': 1399047516, 'portfolio_id': 29372129}, {'photo_id': 1399047496, 'portfolio_id': 29372129}, {'photo_id': 1399047495, 'portfolio_id': 29372129}, {'photo_id': 1399047470, 'portfolio_id': 29372129}, {'photo_id': 1399047440, 'portfolio_id': 29372129}, {'photo_id': 1399047264, 'portfolio_id': 29372129}, {'photo_id': 1399047261, 'portfolio_id': 29372129}, {'photo_id': 1399047258, 'portfolio_id': 29372129}, {'photo_id': 1399047257, 'portfolio_id': 29372129}, {'photo_id': 1399047256, 'portfolio_id': 29372129}, {'photo_id': 1399047255, 'portfolio_id': 29372129}, {'photo_id': 1399046748, 'portfolio_id': 29372129}, {'photo_id': 1399046666, 'portfolio_id': 29372129}, {'photo_id': 1399046605, 'portfolio_id': 29372129}, {'photo_id': 1399046229, 'portfolio_id': 29372129}, {'photo_id': 1399046202, 'portfolio_id': 29372129}, {'photo_id': 1399046199, 'portfolio_id': 29372129}, {'photo_id': 1399046198, 'portfolio_id': 29372129}, {'photo_id': 1399046197, 'portfolio_id': 29372129}, {'photo_id': 1399046196, 'portfolio_id': 29372129}, {'photo_id': 1399045954, 'portfolio_id': 29372129}, {'photo_id': 1399045919, 'portfolio_id': 29372129}, {'photo_id': 1399045886, 'portfolio_id': 29372129}, {'photo_id': 1399045850, 'portfolio_id': 29372129}, {'photo_id': 1399045818, 'portfolio_id': 29372129}, {'photo_id': 1399045513, 'portfolio_id': 29372129}, {'photo_id': 1399045511, 'portfolio_id': 29372129}, {'photo_id': 1399045508, 'portfolio_id': 29372129}, {'photo_id': 1399045507, 'portfolio_id': 29372129}, {'photo_id': 1399045506, 'portfolio_id': 29372129}, {'photo_id': 1399045505, 'portfolio_id': 29372129}, {'photo_id': 1399045486, 'portfolio_id': 29372129}, {'photo_id': 1399045483, 'portfolio_id': 29372129}, {'photo_id': 1399045480, 'portfolio_id': 29372129}, {'photo_id': 1399045477, 'portfolio_id': 29372129}, {'photo_id': 1399045468, 'portfolio_id': 29372129}, {'photo_id': 1399045466, 'portfolio_id': 29372129}, {'photo_id': 1399045464, 'portfolio_id': 29372129}, {'photo_id': 1399045462, 'portfolio_id': 29372129}, {'photo_id': 1399045460, 'portfolio_id': 29372129}, {'photo_id': 1399045458, 'portfolio_id': 29372129}] map_portfolio_id_photo_id: {29372129: [1399048168, 1399048133, 1399048097, 1399048054, 1399048019, 1399047886, 1399047849, 1399047817, 1399047785, 1399047752, 1399047718, 1399047586, 1399047583, 1399047580, 1399047578, 1399047576, 1399047574, 1399047516, 1399047496, 1399047495, 1399047470, 1399047440, 1399047264, 1399047261, 1399047258, 1399047257, 1399047256, 1399047255, 1399046748, 1399046666, 1399046605, 1399046229, 1399046202, 1399046199, 1399046198, 1399046197, 1399046196, 1399045954, 1399045919, 1399045886, 1399045850, 1399045818, 1399045513, 1399045511, 1399045508, 1399045507, 1399045506, 1399045505, 1399045486, 1399045483, 1399045480, 1399045477, 1399045468, 1399045466, 1399045464, 1399045462, 1399045460, 1399045458]} ##### 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.018489599227905273 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Fri Dec 12 11:12:56 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29372129) 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 : 29372129 get user id for portfolio 29372129 get sub ptf for main ptf 29372129, type 3726 and hashtags ['environnement', 'mal_croppe', 'Carton_brun', 'Carton_gris', 'papier', 'metal', 'flou', 'plastique', 'cartonnette', 'kraft', 'Teint_Dans_La_Masse', '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`=29372129 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','mal_croppe','Carton_brun','Carton_gris','papier','metal','flou','plastique','cartonnette','kraft','Teint_Dans_La_Masse','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`=29372129 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','mal_croppe','Carton_brun','Carton_gris','papier','metal','flou','plastique','cartonnette','kraft','Teint_Dans_La_Masse','autre_refus')) AND mptpi.`min_score`=0.5 To do returned map {'kraft': {'main_port_id': 29372129, 'sub_port_id': 29372133, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20005751, 'last_updated_at': datetime.datetime(2025, 12, 12, 11, 10, 58), 'last_updated_at_desc': datetime.datetime(2025, 12, 12, 11, 10, 58), 'last_updated_at_asc': datetime.datetime(2025, 12, 12, 11, 4, 57)}, 'Teint_Dans_La_Masse': {'main_port_id': 29372129, 'sub_port_id': 29372134, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20005752, 'last_updated_at': datetime.datetime(2025, 12, 12, 11, 10, 58), 'last_updated_at_desc': datetime.datetime(2025, 12, 12, 11, 10, 58), 'last_updated_at_asc': datetime.datetime(2025, 12, 12, 11, 4, 57)}, 'mal_croppe': {'main_port_id': 29372129, 'sub_port_id': 29372135, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20005753, 'last_updated_at': datetime.datetime(2025, 12, 12, 11, 10, 58), 'last_updated_at_desc': datetime.datetime(2025, 12, 12, 11, 10, 58), 'last_updated_at_asc': datetime.datetime(2025, 12, 12, 11, 4, 57)}, 'papier': {'main_port_id': 29372129, 'sub_port_id': 29372136, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20005754, 'last_updated_at': datetime.datetime(2025, 12, 12, 11, 10, 58), 'last_updated_at_desc': datetime.datetime(2025, 12, 12, 11, 10, 58), 'last_updated_at_asc': datetime.datetime(2025, 12, 12, 11, 4, 57)}, 'environnement': {'main_port_id': 29372129, 'sub_port_id': 29372137, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20005755, 'last_updated_at': datetime.datetime(2025, 12, 12, 11, 10, 58), 'last_updated_at_desc': datetime.datetime(2025, 12, 12, 11, 10, 58), 'last_updated_at_asc': datetime.datetime(2025, 12, 12, 11, 4, 57)}, 'plastique': {'main_port_id': 29372129, 'sub_port_id': 29372138, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20005756, 'last_updated_at': datetime.datetime(2025, 12, 12, 11, 10, 58), 'last_updated_at_desc': datetime.datetime(2025, 12, 12, 11, 10, 58), 'last_updated_at_asc': datetime.datetime(2025, 12, 12, 11, 4, 57)}, 'cartonnette': {'main_port_id': 29372129, 'sub_port_id': 29372139, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20005757, 'last_updated_at': datetime.datetime(2025, 12, 12, 11, 10, 58), 'last_updated_at_desc': datetime.datetime(2025, 12, 12, 11, 10, 58), 'last_updated_at_asc': datetime.datetime(2025, 12, 12, 11, 4, 57)}, 'Carton_gris': {'main_port_id': 29372129, 'sub_port_id': 29372140, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20005758, 'last_updated_at': datetime.datetime(2025, 12, 12, 11, 10, 58), 'last_updated_at_desc': datetime.datetime(2025, 12, 12, 11, 10, 58), 'last_updated_at_asc': datetime.datetime(2025, 12, 12, 11, 4, 57)}, 'metal': {'main_port_id': 29372129, 'sub_port_id': 29372141, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20005759, 'last_updated_at': datetime.datetime(2025, 12, 12, 11, 10, 58), 'last_updated_at_desc': datetime.datetime(2025, 12, 12, 11, 10, 58), 'last_updated_at_asc': datetime.datetime(2025, 12, 12, 11, 4, 57)}, 'autre_refus': {'main_port_id': 29372129, 'sub_port_id': 29372142, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20005760, 'last_updated_at': datetime.datetime(2025, 12, 12, 11, 10, 58), 'last_updated_at_desc': datetime.datetime(2025, 12, 12, 11, 10, 58), 'last_updated_at_asc': datetime.datetime(2025, 12, 12, 11, 4, 57)}, 'flou': {'main_port_id': 29372129, 'sub_port_id': 29372143, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20005761, 'last_updated_at': datetime.datetime(2025, 12, 12, 11, 10, 58), 'last_updated_at_desc': datetime.datetime(2025, 12, 12, 11, 10, 58), 'last_updated_at_asc': datetime.datetime(2025, 12, 12, 11, 4, 57)}, 'Carton_brun': {'main_port_id': 29372129, 'sub_port_id': 29372144, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20005762, 'last_updated_at': datetime.datetime(2025, 12, 12, 11, 10, 58), 'last_updated_at_desc': datetime.datetime(2025, 12, 12, 11, 10, 58), 'last_updated_at_asc': datetime.datetime(2025, 12, 12, 11, 4, 57)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29372133 , 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=29372129 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 (29372133) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29372129) result : ((1399045458,), (1399045460,), (1399045462,), (1399045464,), (1399045466,), (1399045468,), (1399045477,), (1399045480,), (1399045483,), (1399045486,), (1399045505,), (1399045506,), (1399045507,), (1399045508,), (1399045511,), (1399045513,), (1399045818,), (1399045850,), (1399045886,), (1399045919,), (1399045954,), (1399046196,), (1399046197,), (1399046198,), (1399046199,), (1399046202,), (1399046229,), (1399046605,), (1399046666,), (1399046748,), (1399047255,), (1399047256,), (1399047257,), (1399047258,), (1399047261,), (1399047264,), (1399047440,), (1399047470,), (1399047495,), (1399047496,), (1399047516,), (1399047574,), (1399047576,), (1399047578,), (1399047580,), (1399047583,), (1399047586,), (1399047718,), (1399047752,), (1399047785,), (1399047817,), (1399047849,), (1399047886,), (1399048019,), (1399048054,), (1399048097,), (1399048133,), (1399048168,)) 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 29372134 , 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=29372129 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 (29372134) result : ((1399047571,), (1399047572,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29372129) result : ((1399045458,), (1399045460,), (1399045462,), (1399045464,), (1399045466,), (1399045468,), (1399045477,), (1399045480,), (1399045483,), (1399045486,), (1399045505,), (1399045506,), (1399045507,), (1399045508,), (1399045511,), (1399045513,), (1399045818,), (1399045850,), (1399045886,), (1399045919,), (1399045954,), (1399046196,), (1399046197,), (1399046198,), (1399046199,), (1399046202,), (1399046229,), (1399046605,), (1399046666,), (1399046748,), (1399047255,), (1399047256,), (1399047257,), (1399047258,), (1399047261,), (1399047264,), (1399047440,), (1399047470,), (1399047495,), (1399047496,), (1399047516,), (1399047574,), (1399047576,), (1399047578,), (1399047580,), (1399047583,), (1399047586,), (1399047718,), (1399047752,), (1399047785,), (1399047817,), (1399047849,), (1399047886,), (1399048019,), (1399048054,), (1399048097,), (1399048133,), (1399048168,)) 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 29372135 , 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=29372129 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 (29372135) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29372129) result : ((1399045458,), (1399045460,), (1399045462,), (1399045464,), (1399045466,), (1399045468,), (1399045477,), (1399045480,), (1399045483,), (1399045486,), (1399045505,), (1399045506,), (1399045507,), (1399045508,), (1399045511,), (1399045513,), (1399045818,), (1399045850,), (1399045886,), (1399045919,), (1399045954,), (1399046196,), (1399046197,), (1399046198,), (1399046199,), (1399046202,), (1399046229,), (1399046605,), (1399046666,), (1399046748,), (1399047255,), (1399047256,), (1399047257,), (1399047258,), (1399047261,), (1399047264,), (1399047440,), (1399047470,), (1399047495,), (1399047496,), (1399047516,), (1399047574,), (1399047576,), (1399047578,), (1399047580,), (1399047583,), (1399047586,), (1399047718,), (1399047752,), (1399047785,), (1399047817,), (1399047849,), (1399047886,), (1399048019,), (1399048054,), (1399048097,), (1399048133,), (1399048168,)) 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 29372136 , 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=29372129 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 (29372136) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29372129) result : ((1399045458,), (1399045460,), (1399045462,), (1399045464,), (1399045466,), (1399045468,), (1399045477,), (1399045480,), (1399045483,), (1399045486,), (1399045505,), (1399045506,), (1399045507,), (1399045508,), (1399045511,), (1399045513,), (1399045818,), (1399045850,), (1399045886,), (1399045919,), (1399045954,), (1399046196,), (1399046197,), (1399046198,), (1399046199,), (1399046202,), (1399046229,), (1399046605,), (1399046666,), (1399046748,), (1399047255,), (1399047256,), (1399047257,), (1399047258,), (1399047261,), (1399047264,), (1399047440,), (1399047470,), (1399047495,), (1399047496,), (1399047516,), (1399047574,), (1399047576,), (1399047578,), (1399047580,), (1399047583,), (1399047586,), (1399047718,), (1399047752,), (1399047785,), (1399047817,), (1399047849,), (1399047886,), (1399048019,), (1399048054,), (1399048097,), (1399048133,), (1399048168,)) 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 29372137 , 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=29372129 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 (29372137) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29372129) result : ((1399045458,), (1399045460,), (1399045462,), (1399045464,), (1399045466,), (1399045468,), (1399045477,), (1399045480,), (1399045483,), (1399045486,), (1399045505,), (1399045506,), (1399045507,), (1399045508,), (1399045511,), (1399045513,), (1399045818,), (1399045850,), (1399045886,), (1399045919,), (1399045954,), (1399046196,), (1399046197,), (1399046198,), (1399046199,), (1399046202,), (1399046229,), (1399046605,), (1399046666,), (1399046748,), (1399047255,), (1399047256,), (1399047257,), (1399047258,), (1399047261,), (1399047264,), (1399047440,), (1399047470,), (1399047495,), (1399047496,), (1399047516,), (1399047574,), (1399047576,), (1399047578,), (1399047580,), (1399047583,), (1399047586,), (1399047718,), (1399047752,), (1399047785,), (1399047817,), (1399047849,), (1399047886,), (1399048019,), (1399048054,), (1399048097,), (1399048133,), (1399048168,)) 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 29372138 , 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=29372129 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 (29372138) result : ((1399047875,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29372129) result : ((1399045458,), (1399045460,), (1399045462,), (1399045464,), (1399045466,), (1399045468,), (1399045477,), (1399045480,), (1399045483,), (1399045486,), (1399045505,), (1399045506,), (1399045507,), (1399045508,), (1399045511,), (1399045513,), (1399045818,), (1399045850,), (1399045886,), (1399045919,), (1399045954,), (1399046196,), (1399046197,), (1399046198,), (1399046199,), (1399046202,), (1399046229,), (1399046605,), (1399046666,), (1399046748,), (1399047255,), (1399047256,), (1399047257,), (1399047258,), (1399047261,), (1399047264,), (1399047440,), (1399047470,), (1399047495,), (1399047496,), (1399047516,), (1399047574,), (1399047576,), (1399047578,), (1399047580,), (1399047583,), (1399047586,), (1399047718,), (1399047752,), (1399047785,), (1399047817,), (1399047849,), (1399047886,), (1399048019,), (1399048054,), (1399048097,), (1399048133,), (1399048168,)) 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 29372139 , 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=29372129 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 (29372139) result : ((1399047865,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29372129) result : ((1399045458,), (1399045460,), (1399045462,), (1399045464,), (1399045466,), (1399045468,), (1399045477,), (1399045480,), (1399045483,), (1399045486,), (1399045505,), (1399045506,), (1399045507,), (1399045508,), (1399045511,), (1399045513,), (1399045818,), (1399045850,), (1399045886,), (1399045919,), (1399045954,), (1399046196,), (1399046197,), (1399046198,), (1399046199,), (1399046202,), (1399046229,), (1399046605,), (1399046666,), (1399046748,), (1399047255,), (1399047256,), (1399047257,), (1399047258,), (1399047261,), (1399047264,), (1399047440,), (1399047470,), (1399047495,), (1399047496,), (1399047516,), (1399047574,), (1399047576,), (1399047578,), (1399047580,), (1399047583,), (1399047586,), (1399047718,), (1399047752,), (1399047785,), (1399047817,), (1399047849,), (1399047886,), (1399048019,), (1399048054,), (1399048097,), (1399048133,), (1399048168,)) 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 29372140 , 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=29372129 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 (29372140) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29372129) result : ((1399045458,), (1399045460,), (1399045462,), (1399045464,), (1399045466,), (1399045468,), (1399045477,), (1399045480,), (1399045483,), (1399045486,), (1399045505,), (1399045506,), (1399045507,), (1399045508,), (1399045511,), (1399045513,), (1399045818,), (1399045850,), (1399045886,), (1399045919,), (1399045954,), (1399046196,), (1399046197,), (1399046198,), (1399046199,), (1399046202,), (1399046229,), (1399046605,), (1399046666,), (1399046748,), (1399047255,), (1399047256,), (1399047257,), (1399047258,), (1399047261,), (1399047264,), (1399047440,), (1399047470,), (1399047495,), (1399047496,), (1399047516,), (1399047574,), (1399047576,), (1399047578,), (1399047580,), (1399047583,), (1399047586,), (1399047718,), (1399047752,), (1399047785,), (1399047817,), (1399047849,), (1399047886,), (1399048019,), (1399048054,), (1399048097,), (1399048133,), (1399048168,)) 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 29372141 , 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=29372129 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 (29372141) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29372129) result : ((1399045458,), (1399045460,), (1399045462,), (1399045464,), (1399045466,), (1399045468,), (1399045477,), (1399045480,), (1399045483,), (1399045486,), (1399045505,), (1399045506,), (1399045507,), (1399045508,), (1399045511,), (1399045513,), (1399045818,), (1399045850,), (1399045886,), (1399045919,), (1399045954,), (1399046196,), (1399046197,), (1399046198,), (1399046199,), (1399046202,), (1399046229,), (1399046605,), (1399046666,), (1399046748,), (1399047255,), (1399047256,), (1399047257,), (1399047258,), (1399047261,), (1399047264,), (1399047440,), (1399047470,), (1399047495,), (1399047496,), (1399047516,), (1399047574,), (1399047576,), (1399047578,), (1399047580,), (1399047583,), (1399047586,), (1399047718,), (1399047752,), (1399047785,), (1399047817,), (1399047849,), (1399047886,), (1399048019,), (1399048054,), (1399048097,), (1399048133,), (1399048168,)) 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 29372142 , 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=29372129 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 (29372142) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29372129) result : ((1399045458,), (1399045460,), (1399045462,), (1399045464,), (1399045466,), (1399045468,), (1399045477,), (1399045480,), (1399045483,), (1399045486,), (1399045505,), (1399045506,), (1399045507,), (1399045508,), (1399045511,), (1399045513,), (1399045818,), (1399045850,), (1399045886,), (1399045919,), (1399045954,), (1399046196,), (1399046197,), (1399046198,), (1399046199,), (1399046202,), (1399046229,), (1399046605,), (1399046666,), (1399046748,), (1399047255,), (1399047256,), (1399047257,), (1399047258,), (1399047261,), (1399047264,), (1399047440,), (1399047470,), (1399047495,), (1399047496,), (1399047516,), (1399047574,), (1399047576,), (1399047578,), (1399047580,), (1399047583,), (1399047586,), (1399047718,), (1399047752,), (1399047785,), (1399047817,), (1399047849,), (1399047886,), (1399048019,), (1399048054,), (1399048097,), (1399048133,), (1399048168,)) 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 29372143 , 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=29372129 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 (29372143) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29372129) result : ((1399045458,), (1399045460,), (1399045462,), (1399045464,), (1399045466,), (1399045468,), (1399045477,), (1399045480,), (1399045483,), (1399045486,), (1399045505,), (1399045506,), (1399045507,), (1399045508,), (1399045511,), (1399045513,), (1399045818,), (1399045850,), (1399045886,), (1399045919,), (1399045954,), (1399046196,), (1399046197,), (1399046198,), (1399046199,), (1399046202,), (1399046229,), (1399046605,), (1399046666,), (1399046748,), (1399047255,), (1399047256,), (1399047257,), (1399047258,), (1399047261,), (1399047264,), (1399047440,), (1399047470,), (1399047495,), (1399047496,), (1399047516,), (1399047574,), (1399047576,), (1399047578,), (1399047580,), (1399047583,), (1399047586,), (1399047718,), (1399047752,), (1399047785,), (1399047817,), (1399047849,), (1399047886,), (1399048019,), (1399048054,), (1399048097,), (1399048133,), (1399048168,)) 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 29372144 , 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=29372129 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 (29372144) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29372129) result : ((1399045458,), (1399045460,), (1399045462,), (1399045464,), (1399045466,), (1399045468,), (1399045477,), (1399045480,), (1399045483,), (1399045486,), (1399045505,), (1399045506,), (1399045507,), (1399045508,), (1399045511,), (1399045513,), (1399045818,), (1399045850,), (1399045886,), (1399045919,), (1399045954,), (1399046196,), (1399046197,), (1399046198,), (1399046199,), (1399046202,), (1399046229,), (1399046605,), (1399046666,), (1399046748,), (1399047255,), (1399047256,), (1399047257,), (1399047258,), (1399047261,), (1399047264,), (1399047440,), (1399047470,), (1399047495,), (1399047496,), (1399047516,), (1399047574,), (1399047576,), (1399047578,), (1399047580,), (1399047583,), (1399047586,), (1399047718,), (1399047752,), (1399047785,), (1399047817,), (1399047849,), (1399047886,), (1399048019,), (1399048054,), (1399048097,), (1399048133,), (1399048168,)) 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`=29372129 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','mal_croppe','Carton_brun','Carton_gris','papier','metal','flou','plastique','cartonnette','kraft','Teint_Dans_La_Masse','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`=29372129 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','mal_croppe','Carton_brun','Carton_gris','papier','metal','flou','plastique','cartonnette','kraft','Teint_Dans_La_Masse','autre_refus')) AND mptpi.`min_score`=0.5 To do returned map {'kraft': {'main_port_id': 29372129, 'sub_port_id': 29372145, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20005763, 'last_updated_at': datetime.datetime(2025, 12, 12, 11, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 12, 11, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 12, 11, 4, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 29372129, 'sub_port_id': 29372146, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20005764, 'last_updated_at': datetime.datetime(2025, 12, 12, 11, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 12, 11, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 12, 11, 4, 59)}, 'mal_croppe': {'main_port_id': 29372129, 'sub_port_id': 29372147, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20005765, 'last_updated_at': datetime.datetime(2025, 12, 12, 11, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 12, 11, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 12, 11, 4, 59)}, 'papier': {'main_port_id': 29372129, 'sub_port_id': 29372148, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20005766, 'last_updated_at': datetime.datetime(2025, 12, 12, 11, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 12, 11, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 12, 11, 4, 59)}, 'environnement': {'main_port_id': 29372129, 'sub_port_id': 29372149, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20005767, 'last_updated_at': datetime.datetime(2025, 12, 12, 11, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 12, 11, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 12, 11, 4, 59)}, 'plastique': {'main_port_id': 29372129, 'sub_port_id': 29372150, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20005768, 'last_updated_at': datetime.datetime(2025, 12, 12, 11, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 12, 11, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 12, 11, 4, 59)}, 'cartonnette': {'main_port_id': 29372129, 'sub_port_id': 29372151, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20005769, 'last_updated_at': datetime.datetime(2025, 12, 12, 11, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 12, 11, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 12, 11, 4, 59)}, 'Carton_gris': {'main_port_id': 29372129, 'sub_port_id': 29372152, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20005770, 'last_updated_at': datetime.datetime(2025, 12, 12, 11, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 12, 11, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 12, 11, 4, 59)}, 'metal': {'main_port_id': 29372129, 'sub_port_id': 29372153, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20005771, 'last_updated_at': datetime.datetime(2025, 12, 12, 11, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 12, 11, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 12, 11, 4, 59)}, 'autre_refus': {'main_port_id': 29372129, 'sub_port_id': 29372154, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20005772, 'last_updated_at': datetime.datetime(2025, 12, 12, 11, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 12, 11, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 12, 11, 4, 59)}, 'flou': {'main_port_id': 29372129, 'sub_port_id': 29372155, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20005773, 'last_updated_at': datetime.datetime(2025, 12, 12, 11, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 12, 11, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 12, 11, 4, 59)}, 'Carton_brun': {'main_port_id': 29372129, 'sub_port_id': 29372156, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20005774, 'last_updated_at': datetime.datetime(2025, 12, 12, 11, 10, 58), 'last_updated_at_desc': datetime.datetime(2025, 12, 12, 11, 10, 58), 'last_updated_at_asc': datetime.datetime(2025, 12, 12, 11, 4, 59)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29372145,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29372133 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29372146,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29372134 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29372147,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29372135 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29372148,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29372136 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29372149,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29372137 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29372150,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29372138 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29372151,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29372139 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29372152,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29372140 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29372153,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29372141 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29372154,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29372142 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29372155,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29372143 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29372156,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29372144 lien utilise dans velours : https://marlene.fotonower.com/velours/29372145,29372146,29372147,29372148,29372149,29372150,29372151,29372152,29372153,29372154,29372155,29372156?tags=kraft,Teint_Dans_La_Masse,mal_croppe,papier,environnement,plastique,cartonnette,Carton_gris,metal,autre_refus,flou,Carton_brun After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29372129]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1399048168, 1399048133, 1399048097, 1399048054, 1399048019, 1399047886, 1399047849, 1399047817, 1399047785, 1399047752, 1399047718, 1399047586, 1399047583, 1399047580, 1399047578, 1399047576, 1399047574] map_info['map_portfolio_photo'] : {29372129: [1399048168, 1399048133, 1399048097, 1399048054, 1399048019, 1399047886, 1399047849, 1399047817, 1399047785, 1399047752, 1399047718, 1399047586, 1399047583, 1399047580, 1399047578, 1399047576, 1399047574, 1399047516, 1399047496, 1399047495, 1399047470, 1399047440, 1399047264, 1399047261, 1399047258, 1399047257, 1399047256, 1399047255, 1399046748, 1399046666, 1399046605, 1399046229, 1399046202, 1399046199, 1399046198, 1399046197, 1399046196, 1399045954, 1399045919, 1399045886, 1399045850, 1399045818, 1399045513, 1399045511, 1399045508, 1399045507, 1399045506, 1399045505, 1399045486, 1399045483, 1399045480, 1399045477, 1399045468, 1399045466, 1399045464, 1399045462, 1399045460, 1399045458]} final : False mtd_id 4302 list_pids : [1399048168, 1399048133, 1399048097, 1399048054, 1399048019, 1399047886, 1399047849, 1399047817, 1399047785, 1399047752, 1399047718, 1399047586, 1399047583, 1399047580, 1399047578, 1399047576, 1399047574] Looping around the photos to save general results len do output : 1 /29372129. 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, '4214393') ('4302', '29372129', '1399048168', None, None, None, None, None, '4214393') ('4302', None, None, None, None, None, None, None, '4214393') ('4302', '29372129', '1399048133', None, None, None, None, None, '4214393') ('4302', None, None, None, None, None, None, None, '4214393') ('4302', '29372129', '1399048097', None, None, None, None, None, '4214393') ('4302', None, None, None, None, None, None, None, '4214393') ('4302', '29372129', '1399048054', None, None, None, None, None, '4214393') ('4302', None, None, None, None, None, None, None, '4214393') ('4302', '29372129', '1399048019', None, None, None, None, None, '4214393') ('4302', None, None, None, None, None, None, None, '4214393') ('4302', '29372129', '1399047886', None, None, None, None, None, '4214393') ('4302', None, None, None, None, None, None, None, '4214393') ('4302', '29372129', '1399047849', None, None, None, None, None, '4214393') ('4302', None, None, None, None, None, None, None, '4214393') ('4302', '29372129', '1399047817', None, None, None, None, None, '4214393') ('4302', None, None, None, None, None, None, None, '4214393') ('4302', '29372129', '1399047785', None, None, None, None, None, '4214393') ('4302', None, None, None, None, None, None, None, '4214393') ('4302', '29372129', '1399047752', None, None, None, None, None, '4214393') ('4302', None, None, None, None, None, None, None, '4214393') ('4302', '29372129', '1399047718', None, None, None, None, None, '4214393') ('4302', None, None, None, None, None, None, None, '4214393') ('4302', '29372129', '1399047586', None, None, None, None, None, '4214393') ('4302', None, None, None, None, None, None, None, '4214393') ('4302', '29372129', '1399047583', None, None, None, None, None, '4214393') ('4302', None, None, None, None, None, None, None, '4214393') ('4302', '29372129', '1399047580', None, None, None, None, None, '4214393') ('4302', None, None, None, None, None, None, None, '4214393') ('4302', '29372129', '1399047578', None, None, None, None, None, '4214393') ('4302', None, None, None, None, None, None, None, '4214393') ('4302', '29372129', '1399047576', None, None, None, None, None, '4214393') ('4302', None, None, None, None, None, None, None, '4214393') ('4302', '29372129', '1399047574', None, None, None, None, None, '4214393') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 18 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, '29372129', "{'kraft': 29372133, 'Teint_Dans_La_Masse': 29372134, 'mal_croppe': 29372135, 'papier': 29372136, 'environnement': 29372137, 'plastique': 29372138, 'cartonnette': 29372139, 'Carton_gris': 29372140, 'metal': 29372141, 'autre_refus': 29372142, 'flou': 29372143, 'Carton_brun': 29372144}", None, None, None, None, '4214393'), ('4302', '29372129', '1399048168', None, None, None, None, None, '4214393'), ('4302', '29372129', '1399048133', None, None, None, None, None, '4214393'), ('4302', '29372129', '1399048097', None, None, None, None, None, '4214393'), ('4302', '29372129', '1399048054', None, None, None, None, None, '4214393'), ('4302', '29372129', '1399048019', None, None, None, None, None, '4214393'), ('4302', '29372129', '1399047886', None, None, None, None, None, '4214393'), ('4302', '29372129', '1399047849', None, None, None, None, None, '4214393'), ('4302', '29372129', '1399047817', None, None, None, None, None, '4214393'), ('4302', '29372129', '1399047785', None, None, None, None, None, '4214393'), ('4302', '29372129', '1399047752', None, None, None, None, None, '4214393'), ('4302', '29372129', '1399047718', None, None, None, None, None, '4214393'), ('4302', '29372129', '1399047586', None, None, None, None, None, '4214393'), ('4302', '29372129', '1399047583', None, None, None, None, None, '4214393'), ('4302', '29372129', '1399047580', None, None, None, None, None, '4214393'), ('4302', '29372129', '1399047578', None, None, None, None, None, '4214393'), ('4302', '29372129', '1399047576', None, None, None, None, None, '4214393'), ('4302', '29372129', '1399047574', None, None, None, None, None, '4214393')] time used for this insertion : 0.020308732986450195 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.8314006328582764 time spend to save output : 0.020703792572021484 total time spend for step 1 : 1.8521044254302979 step2:final Fri Dec 12 11:12:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29372129) 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 29372129 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1399045468,1399045466,1399045464,1399045462,1399045460,1399045458,1399045486,1399045483,1399045480,1399045477,1399045513,1399045511,1399045508,1399045507,1399045506,1399045505,1399045954,1399045919,1399045886,1399045850,1399045818,1399046229,1399046202,1399046199,1399046198,1399046197,1399046196,1399046748,1399046666,1399046605,1399047264,1399047261,1399047258,1399047257,1399047256,1399047255,1399047516,1399047496,1399047495,1399047470,1399047440,1399048168,1399047586,1399047583,1399048133,1399047580,1399048097,1399047578,1399048054,1399047576,1399048019,1399047886,1399047574,1399047849,1399047817,1399047785,1399047752,1399047718); 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([29372129]) Inside saveOutput : final : False verbose : True original output for save of step final : {1399048168: ('0.021306335914414845',), 1399048133: ('0.021306335914414845',), 1399048097: ('0.021306335914414845',), 1399048054: ('0.021306335914414845',), 1399048019: ('0.021306335914414845',), 1399047886: ('0.021306335914414845',), 1399047849: ('0.021306335914414845',), 1399047817: ('0.021306335914414845',), 1399047785: ('0.021306335914414845',), 1399047752: ('0.021306335914414845',), 1399047718: ('0.021306335914414845',), 1399047586: ('0.021306335914414845',), 1399047583: ('0.021306335914414845',), 1399047580: ('0.021306335914414845',), 1399047578: ('0.021306335914414845',), 1399047576: ('0.021306335914414845',), 1399047574: ('0.021306335914414845',)} new output for save of step final : {1399048168: ('0.021306335914414845',), 1399048133: ('0.021306335914414845',), 1399048097: ('0.021306335914414845',), 1399048054: ('0.021306335914414845',), 1399048019: ('0.021306335914414845',), 1399047886: ('0.021306335914414845',), 1399047849: ('0.021306335914414845',), 1399047817: ('0.021306335914414845',), 1399047785: ('0.021306335914414845',), 1399047752: ('0.021306335914414845',), 1399047718: ('0.021306335914414845',), 1399047586: ('0.021306335914414845',), 1399047583: ('0.021306335914414845',), 1399047580: ('0.021306335914414845',), 1399047578: ('0.021306335914414845',), 1399047576: ('0.021306335914414845',), 1399047574: ('0.021306335914414845',)} [1399048168, 1399048133, 1399048097, 1399048054, 1399048019, 1399047886, 1399047849, 1399047817, 1399047785, 1399047752, 1399047718, 1399047586, 1399047583, 1399047580, 1399047578, 1399047576, 1399047574] map_info['map_portfolio_photo'] : {29372129: [1399048168, 1399048133, 1399048097, 1399048054, 1399048019, 1399047886, 1399047849, 1399047817, 1399047785, 1399047752, 1399047718, 1399047586, 1399047583, 1399047580, 1399047578, 1399047576, 1399047574, 1399047516, 1399047496, 1399047495, 1399047470, 1399047440, 1399047264, 1399047261, 1399047258, 1399047257, 1399047256, 1399047255, 1399046748, 1399046666, 1399046605, 1399046229, 1399046202, 1399046199, 1399046198, 1399046197, 1399046196, 1399045954, 1399045919, 1399045886, 1399045850, 1399045818, 1399045513, 1399045511, 1399045508, 1399045507, 1399045506, 1399045505, 1399045486, 1399045483, 1399045480, 1399045477, 1399045468, 1399045466, 1399045464, 1399045462, 1399045460, 1399045458]} final : False mtd_id 4302 list_pids : [1399048168, 1399048133, 1399048097, 1399048054, 1399048019, 1399047886, 1399047849, 1399047817, 1399047785, 1399047752, 1399047718, 1399047586, 1399047583, 1399047580, 1399047578, 1399047576, 1399047574] Looping around the photos to save general results len do output : 17 /1399048168.Didn't retrieve data . /1399048133.Didn't retrieve data . /1399048097.Didn't retrieve data . /1399048054.Didn't retrieve data . /1399048019.Didn't retrieve data . /1399047886.Didn't retrieve data . /1399047849.Didn't retrieve data . /1399047817.Didn't retrieve data . /1399047785.Didn't retrieve data . /1399047752.Didn't retrieve data . /1399047718.Didn't retrieve data . /1399047586.Didn't retrieve data . /1399047583.Didn't retrieve data . /1399047580.Didn't retrieve data . /1399047578.Didn't retrieve data . /1399047576.Didn't retrieve data . /1399047574.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, '4214393') ('4302', '29372129', '1399048168', None, None, None, None, None, '4214393') ('4302', None, None, None, None, None, None, None, '4214393') ('4302', '29372129', '1399048133', None, None, None, None, None, '4214393') ('4302', None, None, None, None, None, None, None, '4214393') ('4302', '29372129', '1399048097', None, None, None, None, None, '4214393') ('4302', None, None, None, None, None, None, None, '4214393') ('4302', '29372129', '1399048054', None, None, None, None, None, '4214393') ('4302', None, None, None, None, None, None, None, '4214393') ('4302', '29372129', '1399048019', None, None, None, None, None, '4214393') ('4302', None, None, None, None, None, None, None, '4214393') ('4302', '29372129', '1399047886', None, None, None, None, None, '4214393') ('4302', None, None, None, None, None, None, None, '4214393') ('4302', '29372129', '1399047849', None, None, None, None, None, '4214393') ('4302', None, None, None, None, None, None, None, '4214393') ('4302', '29372129', '1399047817', None, None, None, None, None, '4214393') ('4302', None, None, None, None, None, None, None, '4214393') ('4302', '29372129', '1399047785', None, None, None, None, None, '4214393') ('4302', None, None, None, None, None, None, None, '4214393') ('4302', '29372129', '1399047752', None, None, None, None, None, '4214393') ('4302', None, None, None, None, None, None, None, '4214393') ('4302', '29372129', '1399047718', None, None, None, None, None, '4214393') ('4302', None, None, None, None, None, None, None, '4214393') ('4302', '29372129', '1399047586', None, None, None, None, None, '4214393') ('4302', None, None, None, None, None, None, None, '4214393') ('4302', '29372129', '1399047583', None, None, None, None, None, '4214393') ('4302', None, None, None, None, None, None, None, '4214393') ('4302', '29372129', '1399047580', None, None, None, None, None, '4214393') ('4302', None, None, None, None, None, None, None, '4214393') ('4302', '29372129', '1399047578', None, None, None, None, None, '4214393') ('4302', None, None, None, None, None, None, None, '4214393') ('4302', '29372129', '1399047576', None, None, None, None, None, '4214393') ('4302', None, None, None, None, None, None, None, '4214393') ('4302', '29372129', '1399047574', None, None, None, None, None, '4214393') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 51 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', '29372129', '1399048168', '0.021306335914414845', None, None, None, None, '4214393'), ('4302', '29372129', '1399048133', '0.021306335914414845', None, None, None, None, '4214393'), ('4302', '29372129', '1399048097', '0.021306335914414845', None, None, None, None, '4214393'), ('4302', '29372129', '1399048054', '0.021306335914414845', None, None, None, None, '4214393'), ('4302', '29372129', '1399048019', '0.021306335914414845', None, None, None, None, '4214393'), ('4302', '29372129', '1399047886', '0.021306335914414845', None, None, None, None, '4214393'), ('4302', '29372129', '1399047849', '0.021306335914414845', None, None, None, None, '4214393'), ('4302', '29372129', '1399047817', '0.021306335914414845', None, None, None, None, '4214393'), ('4302', '29372129', '1399047785', '0.021306335914414845', None, None, None, None, '4214393'), ('4302', '29372129', '1399047752', '0.021306335914414845', None, None, None, None, '4214393'), ('4302', '29372129', '1399047718', '0.021306335914414845', None, None, None, None, '4214393'), ('4302', '29372129', '1399047586', '0.021306335914414845', None, None, None, None, '4214393'), ('4302', '29372129', '1399047583', '0.021306335914414845', None, None, None, None, '4214393'), ('4302', '29372129', '1399047580', '0.021306335914414845', None, None, None, None, '4214393'), ('4302', '29372129', '1399047578', '0.021306335914414845', None, None, None, None, '4214393'), ('4302', '29372129', '1399047576', '0.021306335914414845', None, None, None, None, '4214393'), ('4302', '29372129', '1399047574', '0.021306335914414845', None, None, None, None, '4214393')] time used for this insertion : 0.0202176570892334 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.08698868751525879 time spend to save output : 0.021082639694213867 total time spend for step 2 : 0.10807132720947266 step3:velours_tree Fri Dec 12 11:12:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {29372129: [{'kraft': 29372133, 'Teint_Dans_La_Masse': 29372134, 'mal_croppe': 29372135, 'papier': 29372136, 'environnement': 29372137, 'plastique': 29372138, 'cartonnette': 29372139, 'Carton_gris': 29372140, 'metal': 29372141, 'autre_refus': 29372142, 'flou': 29372143, 'Carton_brun': 29372144}]} input_args_next_step : {29372129: ()} output_args : {29372129: [{'kraft': 29372133, 'Teint_Dans_La_Masse': 29372134, 'mal_croppe': 29372135, 'papier': 29372136, 'environnement': 29372137, 'plastique': 29372138, 'cartonnette': 29372139, 'Carton_gris': 29372140, 'metal': 29372141, 'autre_refus': 29372142, 'flou': 29372143, 'Carton_brun': 29372144}]} args : 29372129 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 : ({'kraft': 29372133, 'Teint_Dans_La_Masse': 29372134, 'mal_croppe': 29372135, 'papier': 29372136, 'environnement': 29372137, 'plastique': 29372138, 'cartonnette': 29372139, 'Carton_gris': 29372140, 'metal': 29372141, 'autre_refus': 29372142, 'flou': 29372143, 'Carton_brun': 29372144},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29372129) 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([29372129]) 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.2791922092437744 time spend to save output : 5.698204040527344e-05 total time spend for step 3 : 0.2792491912841797 step4:send_mail_cod Fri Dec 12 11:12:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1399048168: ('0.021306335914414845',), 1399048133: ('0.021306335914414845',), 1399048097: ('0.021306335914414845',), 1399048054: ('0.021306335914414845',), 1399048019: ('0.021306335914414845',), 1399047886: ('0.021306335914414845',), 1399047849: ('0.021306335914414845',), 1399047817: ('0.021306335914414845',), 1399047785: ('0.021306335914414845',), 1399047752: ('0.021306335914414845',), 1399047718: ('0.021306335914414845',), 1399047586: ('0.021306335914414845',), 1399047583: ('0.021306335914414845',), 1399047580: ('0.021306335914414845',), 1399047578: ('0.021306335914414845',), 1399047576: ('0.021306335914414845',), 1399047574: ('0.021306335914414845',)} input_args_next_step : {1399048168: ()} output_args : {1399048168: ('0.021306335914414845',), 1399048133: ('0.021306335914414845',), 1399048097: ('0.021306335914414845',), 1399048054: ('0.021306335914414845',), 1399048019: ('0.021306335914414845',), 1399047886: ('0.021306335914414845',), 1399047849: ('0.021306335914414845',), 1399047817: ('0.021306335914414845',), 1399047785: ('0.021306335914414845',), 1399047752: ('0.021306335914414845',), 1399047718: ('0.021306335914414845',), 1399047586: ('0.021306335914414845',), 1399047583: ('0.021306335914414845',), 1399047580: ('0.021306335914414845',), 1399047578: ('0.021306335914414845',), 1399047576: ('0.021306335914414845',), 1399047574: ('0.021306335914414845',)} args : 1399048168 depend.output_id : 0 input_args_next_step : {1399048168: ('0.021306335914414845',), 1399048133: ()} output_args : {1399048168: ('0.021306335914414845',), 1399048133: ('0.021306335914414845',), 1399048097: ('0.021306335914414845',), 1399048054: ('0.021306335914414845',), 1399048019: ('0.021306335914414845',), 1399047886: ('0.021306335914414845',), 1399047849: ('0.021306335914414845',), 1399047817: ('0.021306335914414845',), 1399047785: ('0.021306335914414845',), 1399047752: ('0.021306335914414845',), 1399047718: ('0.021306335914414845',), 1399047586: ('0.021306335914414845',), 1399047583: ('0.021306335914414845',), 1399047580: ('0.021306335914414845',), 1399047578: ('0.021306335914414845',), 1399047576: ('0.021306335914414845',), 1399047574: ('0.021306335914414845',)} args : 1399048133 depend.output_id : 0 input_args_next_step : {1399048168: ('0.021306335914414845',), 1399048133: ('0.021306335914414845',), 1399048097: ()} output_args : {1399048168: ('0.021306335914414845',), 1399048133: ('0.021306335914414845',), 1399048097: ('0.021306335914414845',), 1399048054: ('0.021306335914414845',), 1399048019: ('0.021306335914414845',), 1399047886: ('0.021306335914414845',), 1399047849: ('0.021306335914414845',), 1399047817: ('0.021306335914414845',), 1399047785: ('0.021306335914414845',), 1399047752: ('0.021306335914414845',), 1399047718: ('0.021306335914414845',), 1399047586: ('0.021306335914414845',), 1399047583: ('0.021306335914414845',), 1399047580: ('0.021306335914414845',), 1399047578: ('0.021306335914414845',), 1399047576: ('0.021306335914414845',), 1399047574: ('0.021306335914414845',)} args : 1399048097 depend.output_id : 0 input_args_next_step : {1399048168: ('0.021306335914414845',), 1399048133: ('0.021306335914414845',), 1399048097: ('0.021306335914414845',), 1399048054: ()} output_args : {1399048168: ('0.021306335914414845',), 1399048133: ('0.021306335914414845',), 1399048097: ('0.021306335914414845',), 1399048054: ('0.021306335914414845',), 1399048019: ('0.021306335914414845',), 1399047886: ('0.021306335914414845',), 1399047849: ('0.021306335914414845',), 1399047817: ('0.021306335914414845',), 1399047785: ('0.021306335914414845',), 1399047752: ('0.021306335914414845',), 1399047718: ('0.021306335914414845',), 1399047586: ('0.021306335914414845',), 1399047583: ('0.021306335914414845',), 1399047580: ('0.021306335914414845',), 1399047578: ('0.021306335914414845',), 1399047576: ('0.021306335914414845',), 1399047574: ('0.021306335914414845',)} args : 1399048054 depend.output_id : 0 input_args_next_step : {1399048168: ('0.021306335914414845',), 1399048133: ('0.021306335914414845',), 1399048097: ('0.021306335914414845',), 1399048054: ('0.021306335914414845',), 1399048019: ()} output_args : {1399048168: ('0.021306335914414845',), 1399048133: ('0.021306335914414845',), 1399048097: ('0.021306335914414845',), 1399048054: ('0.021306335914414845',), 1399048019: ('0.021306335914414845',), 1399047886: ('0.021306335914414845',), 1399047849: ('0.021306335914414845',), 1399047817: ('0.021306335914414845',), 1399047785: ('0.021306335914414845',), 1399047752: ('0.021306335914414845',), 1399047718: ('0.021306335914414845',), 1399047586: ('0.021306335914414845',), 1399047583: ('0.021306335914414845',), 1399047580: ('0.021306335914414845',), 1399047578: ('0.021306335914414845',), 1399047576: ('0.021306335914414845',), 1399047574: ('0.021306335914414845',)} args : 1399048019 depend.output_id : 0 input_args_next_step : {1399048168: ('0.021306335914414845',), 1399048133: ('0.021306335914414845',), 1399048097: ('0.021306335914414845',), 1399048054: ('0.021306335914414845',), 1399048019: ('0.021306335914414845',), 1399047886: ()} output_args : {1399048168: ('0.021306335914414845',), 1399048133: ('0.021306335914414845',), 1399048097: ('0.021306335914414845',), 1399048054: ('0.021306335914414845',), 1399048019: ('0.021306335914414845',), 1399047886: ('0.021306335914414845',), 1399047849: ('0.021306335914414845',), 1399047817: ('0.021306335914414845',), 1399047785: ('0.021306335914414845',), 1399047752: ('0.021306335914414845',), 1399047718: ('0.021306335914414845',), 1399047586: ('0.021306335914414845',), 1399047583: ('0.021306335914414845',), 1399047580: ('0.021306335914414845',), 1399047578: ('0.021306335914414845',), 1399047576: ('0.021306335914414845',), 1399047574: ('0.021306335914414845',)} args : 1399047886 depend.output_id : 0 input_args_next_step : {1399048168: ('0.021306335914414845',), 1399048133: ('0.021306335914414845',), 1399048097: ('0.021306335914414845',), 1399048054: ('0.021306335914414845',), 1399048019: ('0.021306335914414845',), 1399047886: ('0.021306335914414845',), 1399047849: ()} output_args : {1399048168: ('0.021306335914414845',), 1399048133: ('0.021306335914414845',), 1399048097: ('0.021306335914414845',), 1399048054: ('0.021306335914414845',), 1399048019: ('0.021306335914414845',), 1399047886: ('0.021306335914414845',), 1399047849: ('0.021306335914414845',), 1399047817: ('0.021306335914414845',), 1399047785: ('0.021306335914414845',), 1399047752: ('0.021306335914414845',), 1399047718: ('0.021306335914414845',), 1399047586: ('0.021306335914414845',), 1399047583: ('0.021306335914414845',), 1399047580: ('0.021306335914414845',), 1399047578: ('0.021306335914414845',), 1399047576: ('0.021306335914414845',), 1399047574: ('0.021306335914414845',)} args : 1399047849 depend.output_id : 0 input_args_next_step : {1399048168: ('0.021306335914414845',), 1399048133: ('0.021306335914414845',), 1399048097: ('0.021306335914414845',), 1399048054: ('0.021306335914414845',), 1399048019: ('0.021306335914414845',), 1399047886: ('0.021306335914414845',), 1399047849: ('0.021306335914414845',), 1399047817: ()} output_args : {1399048168: ('0.021306335914414845',), 1399048133: ('0.021306335914414845',), 1399048097: ('0.021306335914414845',), 1399048054: ('0.021306335914414845',), 1399048019: ('0.021306335914414845',), 1399047886: ('0.021306335914414845',), 1399047849: ('0.021306335914414845',), 1399047817: ('0.021306335914414845',), 1399047785: ('0.021306335914414845',), 1399047752: ('0.021306335914414845',), 1399047718: ('0.021306335914414845',), 1399047586: ('0.021306335914414845',), 1399047583: ('0.021306335914414845',), 1399047580: ('0.021306335914414845',), 1399047578: ('0.021306335914414845',), 1399047576: ('0.021306335914414845',), 1399047574: ('0.021306335914414845',)} args : 1399047817 depend.output_id : 0 input_args_next_step : {1399048168: ('0.021306335914414845',), 1399048133: ('0.021306335914414845',), 1399048097: ('0.021306335914414845',), 1399048054: ('0.021306335914414845',), 1399048019: ('0.021306335914414845',), 1399047886: ('0.021306335914414845',), 1399047849: ('0.021306335914414845',), 1399047817: ('0.021306335914414845',), 1399047785: ()} output_args : {1399048168: ('0.021306335914414845',), 1399048133: ('0.021306335914414845',), 1399048097: ('0.021306335914414845',), 1399048054: ('0.021306335914414845',), 1399048019: ('0.021306335914414845',), 1399047886: ('0.021306335914414845',), 1399047849: ('0.021306335914414845',), 1399047817: ('0.021306335914414845',), 1399047785: ('0.021306335914414845',), 1399047752: ('0.021306335914414845',), 1399047718: ('0.021306335914414845',), 1399047586: ('0.021306335914414845',), 1399047583: ('0.021306335914414845',), 1399047580: ('0.021306335914414845',), 1399047578: ('0.021306335914414845',), 1399047576: ('0.021306335914414845',), 1399047574: ('0.021306335914414845',)} args : 1399047785 depend.output_id : 0 input_args_next_step : {1399048168: ('0.021306335914414845',), 1399048133: ('0.021306335914414845',), 1399048097: ('0.021306335914414845',), 1399048054: ('0.021306335914414845',), 1399048019: ('0.021306335914414845',), 1399047886: ('0.021306335914414845',), 1399047849: ('0.021306335914414845',), 1399047817: ('0.021306335914414845',), 1399047785: ('0.021306335914414845',), 1399047752: ()} output_args : {1399048168: ('0.021306335914414845',), 1399048133: ('0.021306335914414845',), 1399048097: ('0.021306335914414845',), 1399048054: ('0.021306335914414845',), 1399048019: ('0.021306335914414845',), 1399047886: ('0.021306335914414845',), 1399047849: ('0.021306335914414845',), 1399047817: ('0.021306335914414845',), 1399047785: ('0.021306335914414845',), 1399047752: ('0.021306335914414845',), 1399047718: ('0.021306335914414845',), 1399047586: ('0.021306335914414845',), 1399047583: ('0.021306335914414845',), 1399047580: ('0.021306335914414845',), 1399047578: ('0.021306335914414845',), 1399047576: ('0.021306335914414845',), 1399047574: ('0.021306335914414845',)} args : 1399047752 depend.output_id : 0 input_args_next_step : {1399048168: ('0.021306335914414845',), 1399048133: ('0.021306335914414845',), 1399048097: ('0.021306335914414845',), 1399048054: ('0.021306335914414845',), 1399048019: ('0.021306335914414845',), 1399047886: ('0.021306335914414845',), 1399047849: ('0.021306335914414845',), 1399047817: ('0.021306335914414845',), 1399047785: ('0.021306335914414845',), 1399047752: ('0.021306335914414845',), 1399047718: ()} output_args : {1399048168: ('0.021306335914414845',), 1399048133: ('0.021306335914414845',), 1399048097: ('0.021306335914414845',), 1399048054: ('0.021306335914414845',), 1399048019: ('0.021306335914414845',), 1399047886: ('0.021306335914414845',), 1399047849: ('0.021306335914414845',), 1399047817: ('0.021306335914414845',), 1399047785: ('0.021306335914414845',), 1399047752: ('0.021306335914414845',), 1399047718: ('0.021306335914414845',), 1399047586: ('0.021306335914414845',), 1399047583: ('0.021306335914414845',), 1399047580: ('0.021306335914414845',), 1399047578: ('0.021306335914414845',), 1399047576: ('0.021306335914414845',), 1399047574: ('0.021306335914414845',)} args : 1399047718 depend.output_id : 0 input_args_next_step : {1399048168: ('0.021306335914414845',), 1399048133: ('0.021306335914414845',), 1399048097: ('0.021306335914414845',), 1399048054: ('0.021306335914414845',), 1399048019: ('0.021306335914414845',), 1399047886: ('0.021306335914414845',), 1399047849: ('0.021306335914414845',), 1399047817: ('0.021306335914414845',), 1399047785: ('0.021306335914414845',), 1399047752: ('0.021306335914414845',), 1399047718: ('0.021306335914414845',), 1399047586: ()} output_args : {1399048168: ('0.021306335914414845',), 1399048133: ('0.021306335914414845',), 1399048097: ('0.021306335914414845',), 1399048054: ('0.021306335914414845',), 1399048019: ('0.021306335914414845',), 1399047886: ('0.021306335914414845',), 1399047849: ('0.021306335914414845',), 1399047817: ('0.021306335914414845',), 1399047785: ('0.021306335914414845',), 1399047752: ('0.021306335914414845',), 1399047718: ('0.021306335914414845',), 1399047586: ('0.021306335914414845',), 1399047583: ('0.021306335914414845',), 1399047580: ('0.021306335914414845',), 1399047578: ('0.021306335914414845',), 1399047576: ('0.021306335914414845',), 1399047574: ('0.021306335914414845',)} args : 1399047586 depend.output_id : 0 input_args_next_step : {1399048168: ('0.021306335914414845',), 1399048133: ('0.021306335914414845',), 1399048097: ('0.021306335914414845',), 1399048054: ('0.021306335914414845',), 1399048019: ('0.021306335914414845',), 1399047886: ('0.021306335914414845',), 1399047849: ('0.021306335914414845',), 1399047817: ('0.021306335914414845',), 1399047785: ('0.021306335914414845',), 1399047752: ('0.021306335914414845',), 1399047718: ('0.021306335914414845',), 1399047586: ('0.021306335914414845',), 1399047583: ()} output_args : {1399048168: ('0.021306335914414845',), 1399048133: ('0.021306335914414845',), 1399048097: ('0.021306335914414845',), 1399048054: ('0.021306335914414845',), 1399048019: ('0.021306335914414845',), 1399047886: ('0.021306335914414845',), 1399047849: ('0.021306335914414845',), 1399047817: ('0.021306335914414845',), 1399047785: ('0.021306335914414845',), 1399047752: ('0.021306335914414845',), 1399047718: ('0.021306335914414845',), 1399047586: ('0.021306335914414845',), 1399047583: ('0.021306335914414845',), 1399047580: ('0.021306335914414845',), 1399047578: ('0.021306335914414845',), 1399047576: ('0.021306335914414845',), 1399047574: ('0.021306335914414845',)} args : 1399047583 depend.output_id : 0 input_args_next_step : {1399048168: ('0.021306335914414845',), 1399048133: ('0.021306335914414845',), 1399048097: ('0.021306335914414845',), 1399048054: ('0.021306335914414845',), 1399048019: ('0.021306335914414845',), 1399047886: ('0.021306335914414845',), 1399047849: ('0.021306335914414845',), 1399047817: ('0.021306335914414845',), 1399047785: ('0.021306335914414845',), 1399047752: ('0.021306335914414845',), 1399047718: ('0.021306335914414845',), 1399047586: ('0.021306335914414845',), 1399047583: ('0.021306335914414845',), 1399047580: ()} output_args : {1399048168: ('0.021306335914414845',), 1399048133: ('0.021306335914414845',), 1399048097: ('0.021306335914414845',), 1399048054: ('0.021306335914414845',), 1399048019: ('0.021306335914414845',), 1399047886: ('0.021306335914414845',), 1399047849: ('0.021306335914414845',), 1399047817: ('0.021306335914414845',), 1399047785: ('0.021306335914414845',), 1399047752: ('0.021306335914414845',), 1399047718: ('0.021306335914414845',), 1399047586: ('0.021306335914414845',), 1399047583: ('0.021306335914414845',), 1399047580: ('0.021306335914414845',), 1399047578: ('0.021306335914414845',), 1399047576: ('0.021306335914414845',), 1399047574: ('0.021306335914414845',)} args : 1399047580 depend.output_id : 0 input_args_next_step : {1399048168: ('0.021306335914414845',), 1399048133: ('0.021306335914414845',), 1399048097: ('0.021306335914414845',), 1399048054: ('0.021306335914414845',), 1399048019: ('0.021306335914414845',), 1399047886: ('0.021306335914414845',), 1399047849: ('0.021306335914414845',), 1399047817: ('0.021306335914414845',), 1399047785: ('0.021306335914414845',), 1399047752: ('0.021306335914414845',), 1399047718: ('0.021306335914414845',), 1399047586: ('0.021306335914414845',), 1399047583: ('0.021306335914414845',), 1399047580: ('0.021306335914414845',), 1399047578: ()} output_args : {1399048168: ('0.021306335914414845',), 1399048133: ('0.021306335914414845',), 1399048097: ('0.021306335914414845',), 1399048054: ('0.021306335914414845',), 1399048019: ('0.021306335914414845',), 1399047886: ('0.021306335914414845',), 1399047849: ('0.021306335914414845',), 1399047817: ('0.021306335914414845',), 1399047785: ('0.021306335914414845',), 1399047752: ('0.021306335914414845',), 1399047718: ('0.021306335914414845',), 1399047586: ('0.021306335914414845',), 1399047583: ('0.021306335914414845',), 1399047580: ('0.021306335914414845',), 1399047578: ('0.021306335914414845',), 1399047576: ('0.021306335914414845',), 1399047574: ('0.021306335914414845',)} args : 1399047578 depend.output_id : 0 input_args_next_step : {1399048168: ('0.021306335914414845',), 1399048133: ('0.021306335914414845',), 1399048097: ('0.021306335914414845',), 1399048054: ('0.021306335914414845',), 1399048019: ('0.021306335914414845',), 1399047886: ('0.021306335914414845',), 1399047849: ('0.021306335914414845',), 1399047817: ('0.021306335914414845',), 1399047785: ('0.021306335914414845',), 1399047752: ('0.021306335914414845',), 1399047718: ('0.021306335914414845',), 1399047586: ('0.021306335914414845',), 1399047583: ('0.021306335914414845',), 1399047580: ('0.021306335914414845',), 1399047578: ('0.021306335914414845',), 1399047576: ()} output_args : {1399048168: ('0.021306335914414845',), 1399048133: ('0.021306335914414845',), 1399048097: ('0.021306335914414845',), 1399048054: ('0.021306335914414845',), 1399048019: ('0.021306335914414845',), 1399047886: ('0.021306335914414845',), 1399047849: ('0.021306335914414845',), 1399047817: ('0.021306335914414845',), 1399047785: ('0.021306335914414845',), 1399047752: ('0.021306335914414845',), 1399047718: ('0.021306335914414845',), 1399047586: ('0.021306335914414845',), 1399047583: ('0.021306335914414845',), 1399047580: ('0.021306335914414845',), 1399047578: ('0.021306335914414845',), 1399047576: ('0.021306335914414845',), 1399047574: ('0.021306335914414845',)} args : 1399047576 depend.output_id : 0 input_args_next_step : {1399048168: ('0.021306335914414845',), 1399048133: ('0.021306335914414845',), 1399048097: ('0.021306335914414845',), 1399048054: ('0.021306335914414845',), 1399048019: ('0.021306335914414845',), 1399047886: ('0.021306335914414845',), 1399047849: ('0.021306335914414845',), 1399047817: ('0.021306335914414845',), 1399047785: ('0.021306335914414845',), 1399047752: ('0.021306335914414845',), 1399047718: ('0.021306335914414845',), 1399047586: ('0.021306335914414845',), 1399047583: ('0.021306335914414845',), 1399047580: ('0.021306335914414845',), 1399047578: ('0.021306335914414845',), 1399047576: ('0.021306335914414845',), 1399047574: ()} output_args : {1399048168: ('0.021306335914414845',), 1399048133: ('0.021306335914414845',), 1399048097: ('0.021306335914414845',), 1399048054: ('0.021306335914414845',), 1399048019: ('0.021306335914414845',), 1399047886: ('0.021306335914414845',), 1399047849: ('0.021306335914414845',), 1399047817: ('0.021306335914414845',), 1399047785: ('0.021306335914414845',), 1399047752: ('0.021306335914414845',), 1399047718: ('0.021306335914414845',), 1399047586: ('0.021306335914414845',), 1399047583: ('0.021306335914414845',), 1399047580: ('0.021306335914414845',), 1399047578: ('0.021306335914414845',), 1399047576: ('0.021306335914414845',), 1399047574: ('0.021306335914414845',)} args : 1399047574 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 : {29372129: [{'kraft': 29372133, 'Teint_Dans_La_Masse': 29372134, 'mal_croppe': 29372135, 'papier': 29372136, 'environnement': 29372137, 'plastique': 29372138, 'cartonnette': 29372139, 'Carton_gris': 29372140, 'metal': 29372141, 'autre_refus': 29372142, 'flou': 29372143, 'Carton_brun': 29372144}]} input_args_next_step : {1399048168: ('0.021306335914414845',), 1399048133: ('0.021306335914414845',), 1399048097: ('0.021306335914414845',), 1399048054: ('0.021306335914414845',), 1399048019: ('0.021306335914414845',), 1399047886: ('0.021306335914414845',), 1399047849: ('0.021306335914414845',), 1399047817: ('0.021306335914414845',), 1399047785: ('0.021306335914414845',), 1399047752: ('0.021306335914414845',), 1399047718: ('0.021306335914414845',), 1399047586: ('0.021306335914414845',), 1399047583: ('0.021306335914414845',), 1399047580: ('0.021306335914414845',), 1399047578: ('0.021306335914414845',), 1399047576: ('0.021306335914414845',), 1399047574: ('0.021306335914414845',), 29372129: ()} output_args : {29372129: [{'kraft': 29372133, 'Teint_Dans_La_Masse': 29372134, 'mal_croppe': 29372135, 'papier': 29372136, 'environnement': 29372137, 'plastique': 29372138, 'cartonnette': 29372139, 'Carton_gris': 29372140, 'metal': 29372141, 'autre_refus': 29372142, 'flou': 29372143, 'Carton_brun': 29372144}]} args : 29372129 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 :18, first value : ('0.021306335914414845',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29372129) 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 (1399048168,1399048133,1399048097,1399048054,1399048019,1399047886,1399047849,1399047817,1399047785,1399047752,1399047718,1399047586,1399047583,1399047580,1399047578,1399047576,1399047574) Found this number of photos: 17 ##### Call download_photos : nb_thread : 5 begin to download photo : 1399047574 begin to download photo : 1399047583 begin to download photo : 1399047785 begin to download photo : 1399048019 begin to download photo : 1399048168 download finish for photo 1399048168 download finish for photo 1399048019 begin to download photo : 1399048054 download finish for photo 1399047574 begin to download photo : 1399047576 download finish for photo 1399047583 begin to download photo : 1399047586 download finish for photo 1399047785 begin to download photo : 1399047817 download finish for photo 1399048054 begin to download photo : 1399048097 download finish for photo 1399047586 begin to download photo : 1399047718 download finish for photo 1399047817 begin to download photo : 1399047849 download finish for photo 1399047576 begin to download photo : 1399047578 download finish for photo 1399048097 begin to download photo : 1399048133 download finish for photo 1399047849 begin to download photo : 1399047886 download finish for photo 1399047578 begin to download photo : 1399047580 download finish for photo 1399047718 begin to download photo : 1399047752 download finish for photo 1399048133 download finish for photo 1399047752 download finish for photo 1399047580 download finish for photo 1399047886 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette293721331765534379/ imagette293721351765534379/ length of list_filenames : 17 ; length of list_pids : 17 ; length of list_args : 17 results_Auto_P29372129_12-12-2025_11_12_59.pdf 29372133 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=29372133 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette293721331765534379 29372135 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=29372135 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette293721351765534379 29372138 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=29372138 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1399047875: '1765534266_1636949_1399046666_46d3538fc9b0c9c9093ed64030f804f3_rle_crop_4067601905_0.png'} change filename to text .imagette293721381765534379/ imagette293721381765534379/1765534266_1636949_1399046666_46d3538fc9b0c9c9093ed64030f804f3_rle_crop_4067601905_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/12/88aefea73ac03be98e06789d0088c3ae_39276578.png imagette293721381765534379 29372139 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=29372139 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1399047865: '1765534266_1636949_1399046666_46d3538fc9b0c9c9093ed64030f804f3_rle_crop_4067601903_0.png'} change filename to text .imagette293721391765534379/ imagette293721391765534379/1765534266_1636949_1399046666_46d3538fc9b0c9c9093ed64030f804f3_rle_crop_4067601903_0.png.png imagette293721411765534379/ imagette293721421765534379/ imagette293721431765534379/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/12/8c081b7e7a6d76941e0a8d2beace0155_99187497.png imagette293721391765534379 29372141 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=29372141 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette293721411765534379 29372142 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=29372142 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette293721421765534379 29372143 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=29372143 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette293721431765534379 29372134 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=29372134 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1399047571: '1765534026_1629004_1399045464_2571346e006003eb984c5a26bf567415_rle_crop_4067599010_0.png', 1399047572: '1765534026_1629004_1399045462_d5d52e09ef62c790df1c0b294a12b9ce_rle_crop_4067599022_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/12/e94886c1f50c987c964a2e0e1b0ad870_50334819.png change filename to text .imagette293721341765534379/ imagette293721341765534379/1765534026_1629004_1399045462_d5d52e09ef62c790df1c0b294a12b9ce_rle_crop_4067599022_0.png.png imagette293721341765534379/1765534026_1629004_1399045464_2571346e006003eb984c5a26bf567415_rle_crop_4067599010_0.png.png imagette293721401765534379/ imagette293721441765534379/ wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/12/0afec7acb45f70a4c31605f6d42ea5c2_65407907.png imagette293721341765534379 29372140 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=29372140 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette293721401765534379 29372144 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=29372144 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette293721441765534379 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=29372129 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/29372145,29372146,29372147,29372148,29372149,29372150,29372151,29372152,29372153,29372154,29372155,29372156?tags=kraft,Teint_Dans_La_Masse,mal_croppe,papier,environnement,plastique,cartonnette,Carton_gris,metal,autre_refus,flou,Carton_brun your option no_mail is active, we will not send the real mail to your client args[1399048168] : ('0.021306335914414845',) no score found for photo 1399048168 We are sending mail with results at report@fotonower.com args[1399048133] : ('0.021306335914414845',) no score found for photo 1399048133 We are sending mail with results at report@fotonower.com args[1399048097] : ('0.021306335914414845',) no score found for photo 1399048097 We are sending mail with results at report@fotonower.com args[1399048054] : ('0.021306335914414845',) no score found for photo 1399048054 We are sending mail with results at report@fotonower.com args[1399048019] : ('0.021306335914414845',) no score found for photo 1399048019 We are sending mail with results at report@fotonower.com args[1399047886] : ('0.021306335914414845',) no score found for photo 1399047886 We are sending mail with results at report@fotonower.com args[1399047849] : ('0.021306335914414845',) no score found for photo 1399047849 We are sending mail with results at report@fotonower.com args[1399047817] : ('0.021306335914414845',) no score found for photo 1399047817 We are sending mail with results at report@fotonower.com args[1399047785] : ('0.021306335914414845',) no score found for photo 1399047785 We are sending mail with results at report@fotonower.com args[1399047752] : ('0.021306335914414845',) no score found for photo 1399047752 We are sending mail with results at report@fotonower.com args[1399047718] : ('0.021306335914414845',) no score found for photo 1399047718 We are sending mail with results at report@fotonower.com args[1399047586] : ('0.021306335914414845',) no score found for photo 1399047586 We are sending mail with results at report@fotonower.com args[1399047583] : ('0.021306335914414845',) no score found for photo 1399047583 We are sending mail with results at report@fotonower.com args[1399047580] : ('0.021306335914414845',) no score found for photo 1399047580 We are sending mail with results at report@fotonower.com args[1399047578] : ('0.021306335914414845',) no score found for photo 1399047578 We are sending mail with results at report@fotonower.com args[1399047576] : ('0.021306335914414845',) no score found for photo 1399047576 We are sending mail with results at report@fotonower.com args[1399047574] : ('0.021306335914414845',) no score found for photo 1399047574 We are sending mail with results at report@fotonower.com refus_total : 0.021306335914414845 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=29372129 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_P29372129_12-12-2025_11_12_59.pdf results_Auto_P29372129_12-12-2025_11_12_59.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29372129_12-12-2025_11_12_59.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','29372129','results_Auto_P29372129_12-12-2025_11_12_59.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29372129_12-12-2025_11_12_59.pdf','pdf','','0.17','0.021306335914414845') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29372129]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1399048168, 1399048133, 1399048097, 1399048054, 1399048019, 1399047886, 1399047849, 1399047817, 1399047785, 1399047752, 1399047718, 1399047586, 1399047583, 1399047580, 1399047578, 1399047576, 1399047574] map_info['map_portfolio_photo'] : {29372129: [1399048168, 1399048133, 1399048097, 1399048054, 1399048019, 1399047886, 1399047849, 1399047817, 1399047785, 1399047752, 1399047718, 1399047586, 1399047583, 1399047580, 1399047578, 1399047576, 1399047574, 1399047516, 1399047496, 1399047495, 1399047470, 1399047440, 1399047264, 1399047261, 1399047258, 1399047257, 1399047256, 1399047255, 1399046748, 1399046666, 1399046605, 1399046229, 1399046202, 1399046199, 1399046198, 1399046197, 1399046196, 1399045954, 1399045919, 1399045886, 1399045850, 1399045818, 1399045513, 1399045511, 1399045508, 1399045507, 1399045506, 1399045505, 1399045486, 1399045483, 1399045480, 1399045477, 1399045468, 1399045466, 1399045464, 1399045462, 1399045460, 1399045458]} final : False mtd_id 4302 list_pids : [1399048168, 1399048133, 1399048097, 1399048054, 1399048019, 1399047886, 1399047849, 1399047817, 1399047785, 1399047752, 1399047718, 1399047586, 1399047583, 1399047580, 1399047578, 1399047576, 1399047574] 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, '4214393') ('4302', '29372129', '1399048168', None, None, None, None, None, '4214393') ('4302', None, None, None, None, None, None, None, '4214393') ('4302', '29372129', '1399048133', None, None, None, None, None, '4214393') ('4302', None, None, None, None, None, None, None, '4214393') ('4302', '29372129', '1399048097', None, None, None, None, None, '4214393') ('4302', None, None, None, None, None, None, None, '4214393') ('4302', '29372129', '1399048054', None, None, None, None, None, '4214393') ('4302', None, None, None, None, None, None, None, '4214393') ('4302', '29372129', '1399048019', None, None, None, None, None, '4214393') ('4302', None, None, None, None, None, None, None, '4214393') ('4302', '29372129', '1399047886', None, None, None, None, None, '4214393') ('4302', None, None, None, None, None, None, None, '4214393') ('4302', '29372129', '1399047849', None, None, None, None, None, '4214393') ('4302', None, None, None, None, None, None, None, '4214393') ('4302', '29372129', '1399047817', None, None, None, None, None, '4214393') ('4302', None, None, None, None, None, None, None, '4214393') ('4302', '29372129', '1399047785', None, None, None, None, None, '4214393') ('4302', None, None, None, None, None, None, None, '4214393') ('4302', '29372129', '1399047752', None, None, None, None, None, '4214393') ('4302', None, None, None, None, None, None, None, '4214393') ('4302', '29372129', '1399047718', None, None, None, None, None, '4214393') ('4302', None, None, None, None, None, None, None, '4214393') ('4302', '29372129', '1399047586', None, None, None, None, None, '4214393') ('4302', None, None, None, None, None, None, None, '4214393') ('4302', '29372129', '1399047583', None, None, None, None, None, '4214393') ('4302', None, None, None, None, None, None, None, '4214393') ('4302', '29372129', '1399047580', None, None, None, None, None, '4214393') ('4302', None, None, None, None, None, None, None, '4214393') ('4302', '29372129', '1399047578', None, None, None, None, None, '4214393') ('4302', None, None, None, None, None, None, None, '4214393') ('4302', '29372129', '1399047576', None, None, None, None, None, '4214393') ('4302', None, None, None, None, None, None, None, '4214393') ('4302', '29372129', '1399047574', None, None, None, None, None, '4214393') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 17 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', '29372129', '1399048168', None, None, None, None, None, '4214393'), ('4302', '29372129', '1399048133', None, None, None, None, None, '4214393'), ('4302', '29372129', '1399048097', None, None, None, None, None, '4214393'), ('4302', '29372129', '1399048054', None, None, None, None, None, '4214393'), ('4302', '29372129', '1399048019', None, None, None, None, None, '4214393'), ('4302', '29372129', '1399047886', None, None, None, None, None, '4214393'), ('4302', '29372129', '1399047849', None, None, None, None, None, '4214393'), ('4302', '29372129', '1399047817', None, None, None, None, None, '4214393'), ('4302', '29372129', '1399047785', None, None, None, None, None, '4214393'), ('4302', '29372129', '1399047752', None, None, None, None, None, '4214393'), ('4302', '29372129', '1399047718', None, None, None, None, None, '4214393'), ('4302', '29372129', '1399047586', None, None, None, None, None, '4214393'), ('4302', '29372129', '1399047583', None, None, None, None, None, '4214393'), ('4302', '29372129', '1399047580', None, None, None, None, None, '4214393'), ('4302', '29372129', '1399047578', None, None, None, None, None, '4214393'), ('4302', '29372129', '1399047576', None, None, None, None, None, '4214393'), ('4302', '29372129', '1399047574', None, None, None, None, None, '4214393')] time used for this insertion : 0.016695261001586914 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.3964881896972656 time spend to save output : 0.016999483108520508 total time spend for step 4 : 2.413487672805786 step5:split_time_score Fri Dec 12 11:13: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 : ['29372129'] 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 : [('29372129',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29372129) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1399048168: {'path': 'temp/1765534378_4160928_1399048168_4c1aaa0bd47119ae5cc39942d0f9585e.jpg', 'extension': 'jpg'}, 1399048019: {'path': 'temp/1765534378_4160928_1399048019_89a0e1cc6d7f5b959d9475d58dce2386.jpg', 'extension': 'jpg'}, 1399048054: {'path': 'temp/1765534378_4160928_1399048054_a8d495e26edca45cf1248f7da20bfd6d.jpg', 'extension': 'jpg'}, 1399048097: {'path': 'temp/1765534378_4160928_1399048097_56c77b764eca2f5027e5a882224e3b06.jpg', 'extension': 'jpg'}, 1399048133: {'path': 'temp/1765534378_4160928_1399048133_a13e6c0ba6b0dc73c86c5bf87809cb4f.jpg', 'extension': 'jpg'}, 1399047583: {'path': 'temp/1765534378_4160928_1399047583_81619b69cefa984a839200034abe4bfc.jpg', 'extension': 'jpg'}, 1399047586: {'path': 'temp/1765534378_4160928_1399047586_9a419a966988b49e3545a9b2b84209f8.jpg', 'extension': 'jpg'}, 1399047718: {'path': 'temp/1765534378_4160928_1399047718_c1908fb5cb78ec6fada3d1475d7b57d8.jpg', 'extension': 'jpg'}, 1399047752: {'path': 'temp/1765534378_4160928_1399047752_0166a41cd198466aa1a0ae9470396328.jpg', 'extension': 'jpg'}, 1399047574: {'path': 'temp/1765534378_4160928_1399047574_87d232d0d8ea8d73f747e370c6d5a01c.jpg', 'extension': 'jpg'}, 1399047576: {'path': 'temp/1765534378_4160928_1399047576_08efaa76b92c2e21b1147b51898baf3d.jpg', 'extension': 'jpg'}, 1399047578: {'path': 'temp/1765534378_4160928_1399047578_7d9ac661c1b46e02d832ad8c17ed9fed.jpg', 'extension': 'jpg'}, 1399047580: {'path': 'temp/1765534378_4160928_1399047580_01b91556e5ca75509fb2075cc7e024f5.jpg', 'extension': 'jpg'}, 1399047785: {'path': 'temp/1765534378_4160928_1399047785_2d0dd21ba562374941071ff9346bf73a.jpg', 'extension': 'jpg'}, 1399047817: {'path': 'temp/1765534378_4160928_1399047817_d2c2be3b53d2c7b8bb426a8ac1d3577c.jpg', 'extension': 'jpg'}, 1399047849: {'path': 'temp/1765534378_4160928_1399047849_6054fd45db0e1f2c973d605ba127d8a9.jpg', 'extension': 'jpg'}, 1399047886: {'path': 'temp/1765534378_4160928_1399047886_014f0cb9900c47892f08ad93b16ed6d2.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 = 29372129; (('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 = 29372129 group by h (('11', 58),) 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=29372129 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 (29372129) 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 (29372129) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 12122025 29372129 Nombre de photos uploadées : 58 / 23040 (0%) 12122025 29372129 Nombre de photos taguées (types de déchets): 0 / 58 (0%) 12122025 29372129 Nombre de photos taguées (volume) : 0 / 58 (0%) [{'photo_id': 1399045468, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/12/047072f7b4351ab15f370a7c520c9515.jpg', 'username': None, 'uploaded_at': 1765533727, 'text': 'image_12122025_11_00_54_10132.jpg'}, {'photo_id': 1399045466, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/12/b00f7da5e9af157998a52816b59065e8.jpg', 'username': None, 'uploaded_at': 1765533727, 'text': 'image_12122025_11_01_04_10147.jpg'}, {'photo_id': 1399045464, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/12/2571346e006003eb984c5a26bf567415.jpg', 'username': None, 'uploaded_at': 1765533727, 'text': 'image_12122025_11_01_14_10134.jpg'}, {'photo_id': 1399045462, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/12/d5d52e09ef62c790df1c0b294a12b9ce.jpg', 'username': None, 'uploaded_at': 1765533727, 'text': 'image_12122025_11_01_25_10140.jpg'}] 0 [] elapsed_time : load_data_split_time_score 1.6689300537109375e-06 elapsed_time : order_list_meta_photo_and_scores 6.9141387939453125e-06 ?????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0023915767669677734 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 29372129, '2025-12-12' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); Catched exception ! Connect or reconnect ! SELECT id FROM MTRPhoto.dashboard_entry_day where dashboard_place_id = 10 and date = '2025-12-12' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2725864,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.2479383945465088 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= 2725864 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2725864, 'dashboard_run_id': 2735392, 'mtr_portfolio_id': 29353967, 'dashboard_result_id': 18300616, '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_P29353967_12-12-2025_06_10_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29353970, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29353971, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29353972, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29353973, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29353974, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29353975, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29353976, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29353977, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29353978, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29353979, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29353980, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29353981, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2735392, 'mtr_portfolio_id': 29354414, 'dashboard_result_id': 18300617, '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_P29354414_12-12-2025_06_10_41.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29354415, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29354416, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29354417, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29354418, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29354419, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29354420, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29354421, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29354422, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29354423, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29354424, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29354425, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29354426, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2735392, 'mtr_portfolio_id': 29354703, 'dashboard_result_id': 18300618, '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_P29354703_12-12-2025_06_11_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29354707, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29354708, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29354709, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29354710, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29354711, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29354712, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29354713, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29354714, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29354715, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29354716, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29354717, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29354718, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2735392, 'mtr_portfolio_id': 29355153, 'dashboard_result_id': 18300619, '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_P29355153_12-12-2025_02_16_02.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29355162, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29355163, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29355164, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29355165, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29355166, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29355167, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29355168, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29355169, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29355170, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29355171, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29355172, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29355173, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2735392, 'mtr_portfolio_id': 29356369, 'dashboard_result_id': 18300620, '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_P29356369_12-12-2025_06_11_32.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29356370, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29356371, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29356372, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29356373, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29356374, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29356375, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29356376, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29356377, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29356378, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29356379, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29356380, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29356381, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2735392, 'mtr_portfolio_id': 29356788, 'dashboard_result_id': 18300621, '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_P29356788_12-12-2025_06_12_04.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29356796, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29356797, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29356798, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29356799, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29356800, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29356801, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29356802, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29356803, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29356804, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29356805, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29356806, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29356807, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2735392, 'mtr_portfolio_id': 29357162, 'dashboard_result_id': 18300622, '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_P29357162_12-12-2025_06_12_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29357171, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29357172, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29357173, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29357174, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29357175, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29357176, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29357177, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29357178, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29357179, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29357180, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29357181, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29357182, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2735392, 'mtr_portfolio_id': 29357697, 'dashboard_result_id': 18300623, '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_P29357697_12-12-2025_06_13_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29357702, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29357703, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29357704, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29357705, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29357706, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29357707, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29357708, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29357709, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29357710, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29357711, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29357712, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29357713, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2735392, 'mtr_portfolio_id': 29358082, 'dashboard_result_id': 18300624, '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_P29358082_12-12-2025_06_14_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29358091, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29358092, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29358093, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29358094, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29358095, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29358096, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29358097, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29358098, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29358099, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29358100, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29358101, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29358102, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2735392, 'mtr_portfolio_id': 29358557, 'dashboard_result_id': 18300625, '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_P29358557_12-12-2025_06_14_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29358562, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29358563, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29358564, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29358565, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29358566, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29358567, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29358568, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29358569, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29358570, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29358571, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29358572, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29358573, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2735392, 'mtr_portfolio_id': 29358933, 'dashboard_result_id': 18300626, '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_P29358933_12-12-2025_06_15_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29358941, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29358942, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29358943, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29358944, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29358945, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29358946, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29358947, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29358948, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29358949, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29358950, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29358951, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29358952, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2735392, 'mtr_portfolio_id': 29359035, 'dashboard_result_id': 18300628, '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_P29359035_12-12-2025_06_15_40.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29359060, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29359061, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29359062, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29359063, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29359064, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29359065, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29359066, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29359067, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29359068, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29359069, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29359070, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29359071, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2735392, 'mtr_portfolio_id': 29359405, 'dashboard_result_id': 18300629, '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_P29359405_12-12-2025_06_16_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29359414, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29359415, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29359416, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29359417, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29359418, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29359419, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29359420, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29359421, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29359422, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29359423, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29359424, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29359425, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2735392, 'mtr_portfolio_id': 29359799, 'dashboard_result_id': 18300630, '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_P29359799_12-12-2025_04_03_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29359808, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29359809, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29359810, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29359811, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29359812, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29359813, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29359814, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29359815, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29359816, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29359817, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29359818, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29359819, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2735392, 'mtr_portfolio_id': 29360191, 'dashboard_result_id': 18300631, '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_P29360191_12-12-2025_06_16_33.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29360230, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29360231, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29360232, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29360233, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29360234, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29360235, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29360236, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29360237, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29360239, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29360240, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29360241, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29360242, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2735392, 'mtr_portfolio_id': 29361267, 'dashboard_result_id': 18300632, '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_P29361267_12-12-2025_06_17_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29361268, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29361269, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29361270, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29361271, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29361272, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29361273, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29361274, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29361275, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29361276, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29361277, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29361278, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29361279, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2735392, 'mtr_portfolio_id': 29361419, 'dashboard_result_id': 18300633, '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_P29361419_12-12-2025_05_40_42.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29361424, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29361425, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29361426, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29361427, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29361428, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29361429, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29361430, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29361431, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29361432, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29361433, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29361434, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29361435, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2735392, 'mtr_portfolio_id': 29361719, 'dashboard_result_id': 18300634, '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_P29361719_12-12-2025_05_48_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29361747, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29361748, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29361749, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29361750, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29361751, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29361752, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29361753, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29361754, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29361755, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29361756, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29361757, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29361758, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2735392, 'mtr_portfolio_id': 29362085, 'dashboard_result_id': 18300635, '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_P29362085_12-12-2025_06_03_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29362093, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29362094, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29362095, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29362096, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29362097, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29362098, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29362099, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29362100, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29362101, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29362102, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29362103, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29362104, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2735392, 'mtr_portfolio_id': 29362407, 'dashboard_result_id': 18300636, '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_P29362407_12-12-2025_06_17_34.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29362413, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29362414, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29362415, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29362416, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29362417, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29362418, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29362419, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29362420, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29362421, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29362422, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29362423, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29362424, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2735392, 'mtr_portfolio_id': 29362854, 'dashboard_result_id': 18300637, '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_P29362854_12-12-2025_06_32_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29362857, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29362858, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29362859, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29362860, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29362861, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29362862, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29362863, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29362864, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29362865, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29362866, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29362867, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29362868, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2735392, 'mtr_portfolio_id': 29363295, 'dashboard_result_id': 18300638, '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_P29363295_12-12-2025_06_48_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29363327, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29363328, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29363329, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29363330, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29363331, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29363332, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29363333, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29363334, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29363335, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29363336, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29363337, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29363338, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2735392, 'mtr_portfolio_id': 29363773, 'dashboard_result_id': 18300639, '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_P29363773_12-12-2025_07_03_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29363805, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29363806, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29363807, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29363808, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29363809, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29363810, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29363811, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29363812, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29363813, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29363814, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29363815, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29363816, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2735392, 'mtr_portfolio_id': 29364180, 'dashboard_result_id': 18300640, '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_P29364180_12-12-2025_07_16_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29364221, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29364222, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29364223, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29364224, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29364225, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29364226, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29364227, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29364228, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29364229, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29364230, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29364231, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29364232, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2735392, 'mtr_portfolio_id': 29364786, 'dashboard_result_id': 18300641, '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_P29364786_12-12-2025_07_34_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29364836, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29364837, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29364838, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29364839, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29364840, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29364841, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29364842, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29364843, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29364844, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29364845, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29364846, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29364847, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2735392, 'mtr_portfolio_id': 29365262, 'dashboard_result_id': 18300642, '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_P29365262_12-12-2025_07_47_28.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29365263, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29365264, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29365265, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29365266, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29365267, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29365268, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29365269, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29365270, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29365271, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29365272, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29365273, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29365274, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2735392, 'mtr_portfolio_id': 29365724, 'dashboard_result_id': 18300643, '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_P29365724_12-12-2025_08_05_29.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29365739, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29365740, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29365741, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29365742, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29365743, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29365744, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29365745, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29365746, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29365747, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29365748, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29365749, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29365750, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2735392, 'mtr_portfolio_id': 29366368, 'dashboard_result_id': 18300644, '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_P29366368_12-12-2025_09_45_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29366370, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29366371, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29366372, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29366373, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29366374, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29366375, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29366376, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29366377, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29366378, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29366379, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29366380, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29366381, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2735392, 'mtr_portfolio_id': 29366602, 'dashboard_result_id': 18300645, '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_P29366602_12-12-2025_08_34_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29366604, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29366605, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29366606, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29366607, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29366608, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29366609, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29366610, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29366611, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29366612, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29366613, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29366614, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29366615, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2735392, 'mtr_portfolio_id': 29367216, 'dashboard_result_id': 18300646, '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_P29367216_12-12-2025_10_15_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29367261, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29367262, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29367263, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29367264, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29367265, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29367266, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29367267, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29367268, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29367269, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29367270, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29367271, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29367272, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2735392, 'mtr_portfolio_id': 29367911, 'dashboard_result_id': 18300647, '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_P29367911_12-12-2025_09_05_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29367917, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29367918, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29367919, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29367920, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29367921, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29367922, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29367923, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29367924, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29367925, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29367926, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29367927, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29367928, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2735392, 'mtr_portfolio_id': 29369385, 'dashboard_result_id': 18300648, '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_P29369385_12-12-2025_09_49_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29369401, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29369402, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29369403, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29369404, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29369405, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29369406, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29369407, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29369408, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29369409, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29369410, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29369411, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29369412, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2735392, 'mtr_portfolio_id': 29369990, 'dashboard_result_id': 18300649, '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_P29369990_12-12-2025_10_02_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29369997, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29369998, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29369999, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29370000, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29370001, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29370002, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29370003, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29370004, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29370005, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29370006, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29370007, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29370008, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2735392, 'mtr_portfolio_id': 29370446, 'dashboard_result_id': 18300650, '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_P29370446_12-12-2025_10_18_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29370462, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29370463, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29370464, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29370465, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29370466, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29370467, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29370468, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29370469, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29370470, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29370471, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29370472, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29370473, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2735392, 'mtr_portfolio_id': 29370838, 'dashboard_result_id': 18300651, '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_P29370838_12-12-2025_10_19_33.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29370864, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29370865, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29370866, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29370867, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29370868, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29370869, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29370870, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29370871, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29370872, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29370873, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29370874, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29370875, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2735392, 'mtr_portfolio_id': 29371214, 'dashboard_result_id': 18300652, '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_P29371214_12-12-2025_10_48_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29371231, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29371232, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29371233, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29371234, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29371235, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29371236, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29371237, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29371238, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29371239, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29371240, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29371241, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29371242, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2735392, 'mtr_portfolio_id': 29371672, 'dashboard_result_id': 18300653, '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_P29371672_12-12-2025_11_03_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29371718, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29371719, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29371720, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29371721, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29371722, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29371723, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29371724, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29371725, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29371726, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29371727, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29371728, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29371729, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2735392, 'mtr_portfolio_id': 29372129, 'dashboard_result_id': 18300654, '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_P29372129_12-12-2025_11_10_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29372133, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29372134, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29372135, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29372136, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29372137, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29372138, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29372139, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29372140, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29372141, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29372142, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29372143, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29372144, '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 = 29353967 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': 4212498, 'mtr_portfolio_id': 29353967, 'created_at': datetime.datetime(2025, 12, 12, 6, 9, 58), 'result': '0.04597087438017942', 'result_long': None, 'result_double': None}] Qualite : 0.04597087438017942 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29353967 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29353967_12-12-2025_06_10_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29353967 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_P29353967_12-12-2025_06_10_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29353970, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29353971, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29353972, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29353973, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29353974, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29353975, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29353976, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29353977, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29353978, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29353979, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29353980, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29353981, 'pht': 3726}}" where mtr_portfolio_id = 29353967 and dashboard_run_id = 2735392 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`=29353967 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18300616, 0.04597087438017942, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29353967_12-12-2025_06_10_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29353970, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29353971, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29353972, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29353973, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29353974, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29353975, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29353976, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29353977, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29353978, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29353979, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29353980, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29353981, '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 = 29354414 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': 4212499, 'mtr_portfolio_id': 29354414, 'created_at': datetime.datetime(2025, 12, 12, 6, 10, 38), 'result': '0.05125559086969083', 'result_long': None, 'result_double': None}] Qualite : 0.05125559086969083 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29354414 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29354414_12-12-2025_06_10_41.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29354414 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_P29354414_12-12-2025_06_10_41.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29354415, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29354416, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29354417, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29354418, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29354419, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29354420, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29354421, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29354422, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29354423, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29354424, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29354425, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29354426, 'pht': 3726}}" where mtr_portfolio_id = 29354414 and dashboard_run_id = 2735392 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`=29354414 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18300617, 0.05125559086969083, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29354414_12-12-2025_06_10_41.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29354415, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29354416, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29354417, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29354418, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29354419, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29354420, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29354421, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29354422, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29354423, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29354424, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29354425, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29354426, '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 = 29354703 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': 4212500, 'mtr_portfolio_id': 29354703, 'created_at': datetime.datetime(2025, 12, 12, 6, 10, 58), 'result': '0.0506519231053191', 'result_long': None, 'result_double': None}] Qualite : 0.0506519231053191 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29354703 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29354703_12-12-2025_06_11_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29354703 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_P29354703_12-12-2025_06_11_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29354707, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29354708, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29354709, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29354710, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29354711, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29354712, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29354713, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29354714, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29354715, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29354716, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29354717, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29354718, 'pht': 3726}}" where mtr_portfolio_id = 29354703 and dashboard_run_id = 2735392 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`=29354703 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18300618, 0.0506519231053191, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29354703_12-12-2025_06_11_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29354707, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29354708, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29354709, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29354710, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29354711, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29354712, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29354713, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29354714, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29354715, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29354716, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29354717, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29354718, '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 = 29355153 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': 4212501, 'mtr_portfolio_id': 29355153, 'created_at': datetime.datetime(2025, 12, 12, 6, 11, 13), 'result': '0.055784932988337046', 'result_long': None, 'result_double': None}] Qualite : 0.055784932988337046 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29355153 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29355153_12-12-2025_02_16_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29355153 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_P29355153_12-12-2025_02_16_02.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29355162, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29355163, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29355164, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29355165, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29355166, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29355167, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29355168, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29355169, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29355170, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29355171, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29355172, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29355173, 'pht': 3726}}" where mtr_portfolio_id = 29355153 and dashboard_run_id = 2735392 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`=29355153 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18300619, 0.055784932988337046, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29355153_12-12-2025_02_16_02.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29355162, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29355163, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29355164, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29355165, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29355166, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29355167, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29355168, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29355169, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29355170, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29355171, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29355172, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29355173, '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 = 29356369 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': 4212502, 'mtr_portfolio_id': 29356369, 'created_at': datetime.datetime(2025, 12, 12, 6, 11, 30), 'result': '0.03774252289420257', 'result_long': None, 'result_double': None}] Qualite : 0.03774252289420257 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29356369 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29356369_12-12-2025_06_11_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29356369 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_P29356369_12-12-2025_06_11_32.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29356370, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29356371, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29356372, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29356373, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29356374, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29356375, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29356376, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29356377, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29356378, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29356379, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29356380, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29356381, 'pht': 3726}}" where mtr_portfolio_id = 29356369 and dashboard_run_id = 2735392 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`=29356369 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18300620, 0.03774252289420257, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29356369_12-12-2025_06_11_32.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29356370, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29356371, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29356372, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29356373, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29356374, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29356375, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29356376, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29356377, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29356378, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29356379, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29356380, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29356381, '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 = 29356788 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': 4212503, 'mtr_portfolio_id': 29356788, 'created_at': datetime.datetime(2025, 12, 12, 6, 12, 2), 'result': '0.054177068289269714', 'result_long': None, 'result_double': None}] Qualite : 0.054177068289269714 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29356788 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29356788_12-12-2025_06_12_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29356788 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_P29356788_12-12-2025_06_12_04.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29356796, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29356797, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29356798, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29356799, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29356800, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29356801, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29356802, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29356803, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29356804, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29356805, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29356806, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29356807, 'pht': 3726}}" where mtr_portfolio_id = 29356788 and dashboard_run_id = 2735392 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`=29356788 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18300621, 0.054177068289269714, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29356788_12-12-2025_06_12_04.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29356796, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29356797, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29356798, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29356799, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29356800, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29356801, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29356802, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29356803, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29356804, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29356805, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29356806, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29356807, '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 = 29357162 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': 4212504, 'mtr_portfolio_id': 29357162, 'created_at': datetime.datetime(2025, 12, 12, 6, 12, 29), 'result': '0.048368403148316676', 'result_long': None, 'result_double': None}] Qualite : 0.048368403148316676 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29357162 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29357162_12-12-2025_06_12_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29357162 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_P29357162_12-12-2025_06_12_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29357171, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29357172, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29357173, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29357174, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29357175, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29357176, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29357177, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29357178, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29357179, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29357180, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29357181, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29357182, 'pht': 3726}}" where mtr_portfolio_id = 29357162 and dashboard_run_id = 2735392 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`=29357162 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18300622, 0.048368403148316676, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29357162_12-12-2025_06_12_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29357171, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29357172, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29357173, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29357174, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29357175, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29357176, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29357177, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29357178, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29357179, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29357180, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29357181, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29357182, '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 = 29357697 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': 4212505, 'mtr_portfolio_id': 29357697, 'created_at': datetime.datetime(2025, 12, 12, 6, 13, 30), 'result': '0.05939493826901827', 'result_long': None, 'result_double': None}] Qualite : 0.05939493826901827 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29357697 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29357697_12-12-2025_06_13_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29357697 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_P29357697_12-12-2025_06_13_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29357702, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29357703, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29357704, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29357705, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29357706, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29357707, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29357708, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29357709, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29357710, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29357711, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29357712, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29357713, 'pht': 3726}}" where mtr_portfolio_id = 29357697 and dashboard_run_id = 2735392 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`=29357697 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18300623, 0.05939493826901827, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29357697_12-12-2025_06_13_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29357702, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29357703, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29357704, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29357705, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29357706, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29357707, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29357708, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29357709, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29357710, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29357711, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29357712, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29357713, '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 = 29358082 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': 4212506, 'mtr_portfolio_id': 29358082, 'created_at': datetime.datetime(2025, 12, 12, 6, 13, 57), 'result': '0.03917308618929719', 'result_long': None, 'result_double': None}] Qualite : 0.03917308618929719 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29358082 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29358082_12-12-2025_06_14_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29358082 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_P29358082_12-12-2025_06_14_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29358091, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29358092, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29358093, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29358094, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29358095, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29358096, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29358097, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29358098, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29358099, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29358100, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29358101, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29358102, 'pht': 3726}}" where mtr_portfolio_id = 29358082 and dashboard_run_id = 2735392 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`=29358082 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18300624, 0.03917308618929719, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29358082_12-12-2025_06_14_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29358091, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29358092, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29358093, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29358094, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29358095, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29358096, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29358097, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29358098, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29358099, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29358100, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29358101, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29358102, '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 = 29358557 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': 4212507, 'mtr_portfolio_id': 29358557, 'created_at': datetime.datetime(2025, 12, 12, 6, 14, 29), 'result': '0.07413136999611537', 'result_long': None, 'result_double': None}] Qualite : 0.07413136999611537 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29358557 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29358557_12-12-2025_06_14_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29358557 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_P29358557_12-12-2025_06_14_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29358562, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29358563, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29358564, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29358565, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29358566, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29358567, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29358568, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29358569, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29358570, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29358571, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29358572, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29358573, 'pht': 3726}}" where mtr_portfolio_id = 29358557 and dashboard_run_id = 2735392 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`=29358557 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18300625, 0.07413136999611537, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29358557_12-12-2025_06_14_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29358562, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29358563, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29358564, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29358565, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29358566, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29358567, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29358568, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29358569, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29358570, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29358571, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29358572, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29358573, '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 = 29358933 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': 4212508, 'mtr_portfolio_id': 29358933, 'created_at': datetime.datetime(2025, 12, 12, 6, 15, 30), 'result': '0.062389813942886216', 'result_long': None, 'result_double': None}] Qualite : 0.062389813942886216 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29358933 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29358933_12-12-2025_06_15_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29358933 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_P29358933_12-12-2025_06_15_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29358941, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29358942, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29358943, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29358944, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29358945, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29358946, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29358947, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29358948, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29358949, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29358950, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29358951, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29358952, 'pht': 3726}}" where mtr_portfolio_id = 29358933 and dashboard_run_id = 2735392 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`=29358933 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18300626, 0.062389813942886216, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29358933_12-12-2025_06_15_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29358941, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29358942, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29358943, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29358944, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29358945, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29358946, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29358947, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29358948, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29358949, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29358950, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29358951, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29358952, '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 = 29359035 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': 4212509, 'mtr_portfolio_id': 29359035, 'created_at': datetime.datetime(2025, 12, 12, 6, 15, 36), 'result': '0.07474450706546877', 'result_long': None, 'result_double': None}] Qualite : 0.07474450706546877 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29359035 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29359035_12-12-2025_06_15_40.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29359035 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_P29359035_12-12-2025_06_15_40.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29359060, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29359061, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29359062, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29359063, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29359064, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29359065, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29359066, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29359067, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29359068, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29359069, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29359070, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29359071, 'pht': 3726}}" where mtr_portfolio_id = 29359035 and dashboard_run_id = 2735392 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`=29359035 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18300628, 0.07474450706546877, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29359035_12-12-2025_06_15_40.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29359060, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29359061, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29359062, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29359063, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29359064, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29359065, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29359066, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29359067, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29359068, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29359069, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29359070, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29359071, '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 = 29359405 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': 4212510, 'mtr_portfolio_id': 29359405, 'created_at': datetime.datetime(2025, 12, 12, 6, 15, 58), 'result': '0.02671260360751556', 'result_long': None, 'result_double': None}] Qualite : 0.02671260360751556 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29359405 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29359405_12-12-2025_06_16_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29359405 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_P29359405_12-12-2025_06_16_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29359414, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29359415, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29359416, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29359417, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29359418, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29359419, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29359420, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29359421, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29359422, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29359423, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29359424, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29359425, 'pht': 3726}}" where mtr_portfolio_id = 29359405 and dashboard_run_id = 2735392 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`=29359405 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18300629, 0.02671260360751556, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29359405_12-12-2025_06_16_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29359414, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29359415, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29359416, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29359417, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29359418, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29359419, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29359420, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29359421, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29359422, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29359423, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29359424, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29359425, '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 = 29359799 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': 4212511, 'mtr_portfolio_id': 29359799, 'created_at': datetime.datetime(2025, 12, 12, 6, 16, 12), 'result': '0.03439692669008735', 'result_long': None, 'result_double': None}] Qualite : 0.03439692669008735 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29359799 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29359799_12-12-2025_04_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29359799 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_P29359799_12-12-2025_04_03_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29359808, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29359809, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29359810, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29359811, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29359812, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29359813, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29359814, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29359815, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29359816, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29359817, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29359818, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29359819, 'pht': 3726}}" where mtr_portfolio_id = 29359799 and dashboard_run_id = 2735392 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`=29359799 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18300630, 0.03439692669008735, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29359799_12-12-2025_04_03_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29359808, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29359809, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29359810, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29359811, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29359812, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29359813, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29359814, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29359815, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29359816, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29359817, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29359818, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29359819, '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 = 29360191 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': 4212512, 'mtr_portfolio_id': 29360191, 'created_at': datetime.datetime(2025, 12, 12, 6, 16, 31), 'result': '0.029805734438451352', 'result_long': None, 'result_double': None}] Qualite : 0.029805734438451352 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29360191 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29360191_12-12-2025_06_16_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29360191 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_P29360191_12-12-2025_06_16_33.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29360230, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29360231, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29360232, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29360233, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29360234, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29360235, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29360236, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29360237, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29360239, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29360240, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29360241, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29360242, 'pht': 3726}}" where mtr_portfolio_id = 29360191 and dashboard_run_id = 2735392 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`=29360191 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18300631, 0.029805734438451352, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29360191_12-12-2025_06_16_33.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29360230, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29360231, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29360232, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29360233, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29360234, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29360235, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29360236, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29360237, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29360239, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29360240, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29360241, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29360242, '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 = 29361267 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': 4212513, 'mtr_portfolio_id': 29361267, 'created_at': datetime.datetime(2025, 12, 12, 6, 17, 30), 'result': '0.017617938333941475', 'result_long': None, 'result_double': None}] Qualite : 0.017617938333941475 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29361267 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29361267_12-12-2025_06_17_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29361267 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_P29361267_12-12-2025_06_17_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29361268, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29361269, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29361270, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29361271, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29361272, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29361273, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29361274, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29361275, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29361276, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29361277, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29361278, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29361279, 'pht': 3726}}" where mtr_portfolio_id = 29361267 and dashboard_run_id = 2735392 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`=29361267 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18300632, 0.017617938333941475, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29361267_12-12-2025_06_17_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29361268, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29361269, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29361270, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29361271, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29361272, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29361273, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29361274, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29361275, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29361276, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29361277, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29361278, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29361279, '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 = 29361419 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': 4212514, 'mtr_portfolio_id': 29361419, 'created_at': datetime.datetime(2025, 12, 12, 5, 40, 39), 'result': '0.042268325842161156', 'result_long': None, 'result_double': None}] Qualite : 0.042268325842161156 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29361419 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29361419_12-12-2025_05_40_42.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29361419 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_P29361419_12-12-2025_05_40_42.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29361424, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29361425, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29361426, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29361427, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29361428, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29361429, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29361430, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29361431, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29361432, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29361433, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29361434, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29361435, 'pht': 3726}}" where mtr_portfolio_id = 29361419 and dashboard_run_id = 2735392 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`=29361419 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18300633, 0.042268325842161156, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29361419_12-12-2025_05_40_42.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29361424, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29361425, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29361426, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29361427, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29361428, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29361429, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29361430, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29361431, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29361432, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29361433, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29361434, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29361435, '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 = 29361719 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': 4212426, 'mtr_portfolio_id': 29361719, 'created_at': datetime.datetime(2025, 12, 12, 5, 48, 58), 'result': '0.03512528820820063', 'result_long': None, 'result_double': None}] Qualite : 0.03512528820820063 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29361719 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29361719_12-12-2025_05_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29361719 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_P29361719_12-12-2025_05_48_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29361747, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29361748, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29361749, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29361750, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29361751, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29361752, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29361753, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29361754, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29361755, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29361756, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29361757, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29361758, 'pht': 3726}}" where mtr_portfolio_id = 29361719 and dashboard_run_id = 2735392 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`=29361719 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18300634, 0.03512528820820063, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29361719_12-12-2025_05_48_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29361747, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29361748, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29361749, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29361750, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29361751, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29361752, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29361753, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29361754, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29361755, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29361756, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29361757, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29361758, '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 = 29362085 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': 4212622, 'mtr_portfolio_id': 29362085, 'created_at': datetime.datetime(2025, 12, 12, 6, 3, 29), 'result': '0.02489806755007265', 'result_long': None, 'result_double': None}] Qualite : 0.02489806755007265 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29362085 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29362085_12-12-2025_06_03_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29362085 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_P29362085_12-12-2025_06_03_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29362093, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29362094, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29362095, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29362096, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29362097, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29362098, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29362099, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29362100, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29362101, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29362102, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29362103, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29362104, 'pht': 3726}}" where mtr_portfolio_id = 29362085 and dashboard_run_id = 2735392 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`=29362085 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18300635, 0.02489806755007265, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29362085_12-12-2025_06_03_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29362093, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29362094, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29362095, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29362096, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29362097, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29362098, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29362099, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29362100, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29362101, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29362102, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29362103, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29362104, '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 = 29362407 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': 4212692, 'mtr_portfolio_id': 29362407, 'created_at': datetime.datetime(2025, 12, 12, 6, 17, 33), 'result': '0.03598098129173726', 'result_long': None, 'result_double': None}] Qualite : 0.03598098129173726 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29362407 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29362407_12-12-2025_06_17_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29362407 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_P29362407_12-12-2025_06_17_34.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29362413, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29362414, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29362415, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29362416, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29362417, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29362418, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29362419, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29362420, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29362421, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29362422, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29362423, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29362424, 'pht': 3726}}" where mtr_portfolio_id = 29362407 and dashboard_run_id = 2735392 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`=29362407 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18300636, 0.03598098129173726, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29362407_12-12-2025_06_17_34.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29362413, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29362414, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29362415, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29362416, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29362417, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29362418, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29362419, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29362420, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29362421, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29362422, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29362423, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29362424, '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 = 29362854 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': 4212774, 'mtr_portfolio_id': 29362854, 'created_at': datetime.datetime(2025, 12, 12, 6, 32, 57), 'result': '0.06304396315216139', 'result_long': None, 'result_double': None}] Qualite : 0.06304396315216139 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29362854 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29362854_12-12-2025_06_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29362854 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_P29362854_12-12-2025_06_32_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29362857, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29362858, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29362859, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29362860, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29362861, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29362862, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29362863, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29362864, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29362865, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29362866, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29362867, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29362868, 'pht': 3726}}" where mtr_portfolio_id = 29362854 and dashboard_run_id = 2735392 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`=29362854 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18300637, 0.06304396315216139, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29362854_12-12-2025_06_32_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29362857, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29362858, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29362859, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29362860, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29362861, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29362862, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29362863, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29362864, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29362865, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29362866, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29362867, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29362868, '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 = 29363295 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': 4212843, 'mtr_portfolio_id': 29363295, 'created_at': datetime.datetime(2025, 12, 12, 6, 48, 58), 'result': '0.04653111445326504', 'result_long': None, 'result_double': None}] Qualite : 0.04653111445326504 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29363295 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29363295_12-12-2025_06_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29363295 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_P29363295_12-12-2025_06_48_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29363327, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29363328, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29363329, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29363330, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29363331, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29363332, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29363333, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29363334, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29363335, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29363336, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29363337, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29363338, 'pht': 3726}}" where mtr_portfolio_id = 29363295 and dashboard_run_id = 2735392 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`=29363295 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18300638, 0.04653111445326504, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29363295_12-12-2025_06_48_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29363327, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29363328, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29363329, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29363330, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29363331, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29363332, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29363333, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29363334, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29363335, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29363336, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29363337, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29363338, '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 = 29363773 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': 4212927, 'mtr_portfolio_id': 29363773, 'created_at': datetime.datetime(2025, 12, 12, 7, 2, 59), 'result': '0.042970748644587525', 'result_long': None, 'result_double': None}] Qualite : 0.042970748644587525 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29363773 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29363773_12-12-2025_07_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29363773 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_P29363773_12-12-2025_07_03_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29363805, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29363806, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29363807, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29363808, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29363809, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29363810, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29363811, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29363812, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29363813, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29363814, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29363815, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29363816, 'pht': 3726}}" where mtr_portfolio_id = 29363773 and dashboard_run_id = 2735392 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`=29363773 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18300639, 0.042970748644587525, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29363773_12-12-2025_07_03_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29363805, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29363806, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29363807, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29363808, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29363809, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29363810, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29363811, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29363812, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29363813, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29363814, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29363815, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29363816, '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 = 29364180 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': 4213002, 'mtr_portfolio_id': 29364180, 'created_at': datetime.datetime(2025, 12, 12, 7, 16, 58), 'result': '0.06843666708083897', 'result_long': None, 'result_double': None}] Qualite : 0.06843666708083897 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29364180 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29364180_12-12-2025_07_16_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29364180 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_P29364180_12-12-2025_07_16_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29364221, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29364222, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29364223, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29364224, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29364225, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29364226, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29364227, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29364228, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29364229, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29364230, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29364231, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29364232, 'pht': 3726}}" where mtr_portfolio_id = 29364180 and dashboard_run_id = 2735392 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`=29364180 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18300640, 0.06843666708083897, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29364180_12-12-2025_07_16_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29364221, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29364222, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29364223, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29364224, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29364225, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29364226, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29364227, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29364228, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29364229, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29364230, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29364231, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29364232, '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 = 29364786 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': 4213081, 'mtr_portfolio_id': 29364786, 'created_at': datetime.datetime(2025, 12, 12, 7, 34), 'result': '0.03678665364407766', 'result_long': None, 'result_double': None}] Qualite : 0.03678665364407766 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29364786 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29364786_12-12-2025_07_34_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29364786 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_P29364786_12-12-2025_07_34_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29364836, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29364837, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29364838, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29364839, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29364840, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29364841, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29364842, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29364843, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29364844, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29364845, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29364846, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29364847, 'pht': 3726}}" where mtr_portfolio_id = 29364786 and dashboard_run_id = 2735392 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`=29364786 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18300641, 0.03678665364407766, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29364786_12-12-2025_07_34_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29364836, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29364837, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29364838, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29364839, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29364840, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29364841, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29364842, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29364843, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29364844, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29364845, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29364846, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29364847, '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 = 29365262 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': 4213145, 'mtr_portfolio_id': 29365262, 'created_at': datetime.datetime(2025, 12, 12, 7, 47, 28), 'result': '0.04932722121798659', 'result_long': None, 'result_double': None}] Qualite : 0.04932722121798659 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29365262 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29365262_12-12-2025_07_47_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29365262 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_P29365262_12-12-2025_07_47_28.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29365263, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29365264, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29365265, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29365266, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29365267, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29365268, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29365269, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29365270, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29365271, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29365272, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29365273, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29365274, 'pht': 3726}}" where mtr_portfolio_id = 29365262 and dashboard_run_id = 2735392 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`=29365262 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18300642, 0.04932722121798659, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29365262_12-12-2025_07_47_28.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29365263, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29365264, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29365265, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29365266, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29365267, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29365268, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29365269, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29365270, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29365271, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29365272, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29365273, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29365274, '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 = 29365724 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': 4213223, 'mtr_portfolio_id': 29365724, 'created_at': datetime.datetime(2025, 12, 12, 8, 5, 29), 'result': '0.05162450864096052', 'result_long': None, 'result_double': None}] Qualite : 0.05162450864096052 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29365724 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29365724_12-12-2025_08_05_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29365724 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_P29365724_12-12-2025_08_05_29.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29365739, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29365740, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29365741, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29365742, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29365743, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29365744, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29365745, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29365746, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29365747, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29365748, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29365749, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29365750, 'pht': 3726}}" where mtr_portfolio_id = 29365724 and dashboard_run_id = 2735392 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`=29365724 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18300643, 0.05162450864096052, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29365724_12-12-2025_08_05_29.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29365739, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29365740, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29365741, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29365742, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29365743, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29365744, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29365745, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29365746, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29365747, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29365748, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29365749, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29365750, '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 = 29366368 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': 4213341, 'mtr_portfolio_id': 29366368, 'created_at': datetime.datetime(2025, 12, 12, 9, 45, 58), 'result': '0.05825818152528428', 'result_long': None, 'result_double': None}] Qualite : 0.05825818152528428 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29366368 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29366368_12-12-2025_09_45_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29366368 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_P29366368_12-12-2025_09_45_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29366370, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29366371, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29366372, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29366373, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29366374, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29366375, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29366376, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29366377, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29366378, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29366379, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29366380, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29366381, 'pht': 3726}}" where mtr_portfolio_id = 29366368 and dashboard_run_id = 2735392 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`=29366368 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18300644, 0.05825818152528428, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29366368_12-12-2025_09_45_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29366370, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29366371, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29366372, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29366373, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29366374, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29366375, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29366376, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29366377, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29366378, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29366379, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29366380, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29366381, '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 = 29366602 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': 4213428, 'mtr_portfolio_id': 29366602, 'created_at': datetime.datetime(2025, 12, 12, 8, 34, 58), 'result': '0.037908967872370296', 'result_long': None, 'result_double': None}] Qualite : 0.037908967872370296 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29366602 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29366602_12-12-2025_08_34_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29366602 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_P29366602_12-12-2025_08_34_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29366604, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29366605, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29366606, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29366607, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29366608, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29366609, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29366610, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29366611, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29366612, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29366613, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29366614, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29366615, 'pht': 3726}}" where mtr_portfolio_id = 29366602 and dashboard_run_id = 2735392 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`=29366602 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18300645, 0.037908967872370296, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29366602_12-12-2025_08_34_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29366604, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29366605, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29366606, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29366607, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29366608, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29366609, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29366610, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29366611, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29366612, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29366613, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29366614, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29366615, '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 = 29367216 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': 4213540, 'mtr_portfolio_id': 29367216, 'created_at': datetime.datetime(2025, 12, 12, 10, 15, 58), 'result': '0.05388012724944896', 'result_long': None, 'result_double': None}] Qualite : 0.05388012724944896 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29367216 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29367216_12-12-2025_10_15_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29367216 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_P29367216_12-12-2025_10_15_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29367261, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29367262, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29367263, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29367264, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29367265, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29367266, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29367267, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29367268, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29367269, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29367270, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29367271, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29367272, 'pht': 3726}}" where mtr_portfolio_id = 29367216 and dashboard_run_id = 2735392 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`=29367216 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18300646, 0.05388012724944896, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29367216_12-12-2025_10_15_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29367261, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29367262, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29367263, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29367264, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29367265, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29367266, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29367267, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29367268, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29367269, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29367270, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29367271, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29367272, '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 = 29367911 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': 4213625, 'mtr_portfolio_id': 29367911, 'created_at': datetime.datetime(2025, 12, 12, 9, 5), 'result': '0.042402543049227796', 'result_long': None, 'result_double': None}] Qualite : 0.042402543049227796 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29367911 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29367911_12-12-2025_09_05_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29367911 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_P29367911_12-12-2025_09_05_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29367917, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29367918, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29367919, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29367920, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29367921, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29367922, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29367923, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29367924, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29367925, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29367926, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29367927, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29367928, 'pht': 3726}}" where mtr_portfolio_id = 29367911 and dashboard_run_id = 2735392 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`=29367911 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18300647, 0.042402543049227796, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29367911_12-12-2025_09_05_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29367917, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29367918, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29367919, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29367920, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29367921, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29367922, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29367923, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29367924, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29367925, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29367926, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29367927, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29367928, '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 = 29369385 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': 4213848, 'mtr_portfolio_id': 29369385, 'created_at': datetime.datetime(2025, 12, 12, 9, 49), 'result': '0.0385590613226671', 'result_long': None, 'result_double': None}] Qualite : 0.0385590613226671 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29369385 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29369385_12-12-2025_09_49_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29369385 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_P29369385_12-12-2025_09_49_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29369401, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29369402, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29369403, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29369404, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29369405, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29369406, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29369407, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29369408, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29369409, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29369410, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29369411, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29369412, 'pht': 3726}}" where mtr_portfolio_id = 29369385 and dashboard_run_id = 2735392 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`=29369385 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18300648, 0.0385590613226671, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29369385_12-12-2025_09_49_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29369401, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29369402, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29369403, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29369404, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29369405, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29369406, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29369407, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29369408, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29369409, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29369410, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29369411, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29369412, '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 = 29369990 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': 4213937, 'mtr_portfolio_id': 29369990, 'created_at': datetime.datetime(2025, 12, 12, 10, 2, 58), 'result': '0.0429118853872437', 'result_long': None, 'result_double': None}] Qualite : 0.0429118853872437 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29369990 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29369990_12-12-2025_10_02_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29369990 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_P29369990_12-12-2025_10_02_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29369997, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29369998, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29369999, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29370000, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29370001, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29370002, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29370003, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29370004, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29370005, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29370006, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29370007, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29370008, 'pht': 3726}}" where mtr_portfolio_id = 29369990 and dashboard_run_id = 2735392 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`=29369990 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18300649, 0.0429118853872437, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29369990_12-12-2025_10_02_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29369997, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29369998, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29369999, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29370000, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29370001, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29370002, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29370003, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29370004, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29370005, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29370006, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29370007, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29370008, '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 = 29370446 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': 4214023, 'mtr_portfolio_id': 29370446, 'created_at': datetime.datetime(2025, 12, 12, 10, 18, 59), 'result': '0.06737207834119728', 'result_long': None, 'result_double': None}] Qualite : 0.06737207834119728 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29370446 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29370446_12-12-2025_10_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29370446 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_P29370446_12-12-2025_10_18_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29370462, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29370463, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29370464, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29370465, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29370466, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29370467, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29370468, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29370469, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29370470, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29370471, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29370472, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29370473, 'pht': 3726}}" where mtr_portfolio_id = 29370446 and dashboard_run_id = 2735392 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`=29370446 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18300650, 0.06737207834119728, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29370446_12-12-2025_10_18_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29370462, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29370463, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29370464, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29370465, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29370466, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29370467, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29370468, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29370469, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29370470, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29370471, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29370472, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29370473, '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 = 29370838 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': 4214113, 'mtr_portfolio_id': 29370838, 'created_at': datetime.datetime(2025, 12, 12, 10, 19, 33), 'result': '0.027407267333982025', 'result_long': None, 'result_double': None}] Qualite : 0.027407267333982025 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29370838 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29370838_12-12-2025_10_19_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29370838 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_P29370838_12-12-2025_10_19_33.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29370864, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29370865, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29370866, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29370867, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29370868, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29370869, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29370870, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29370871, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29370872, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29370873, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29370874, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29370875, 'pht': 3726}}" where mtr_portfolio_id = 29370838 and dashboard_run_id = 2735396 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`=29370838 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18300651, 0.027407267333982025, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29370838_12-12-2025_10_19_33.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29370864, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29370865, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29370866, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29370867, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29370868, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29370869, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29370870, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29370871, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29370872, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29370873, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29370874, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29370875, '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 = 29371214 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': 4214180, 'mtr_portfolio_id': 29371214, 'created_at': datetime.datetime(2025, 12, 12, 10, 48, 58), 'result': '0.05434890749502305', 'result_long': None, 'result_double': None}] Qualite : 0.05434890749502305 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29371214 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29371214_12-12-2025_10_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29371214 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_P29371214_12-12-2025_10_48_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29371231, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29371232, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29371233, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29371234, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29371235, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29371236, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29371237, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29371238, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29371239, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29371240, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29371241, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29371242, 'pht': 3726}}" where mtr_portfolio_id = 29371214 and dashboard_run_id = 2735396 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`=29371214 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18300652, 0.05434890749502305, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29371214_12-12-2025_10_48_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29371231, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29371232, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29371233, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29371234, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29371235, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29371236, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29371237, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29371238, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29371239, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29371240, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29371241, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29371242, '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 = 29371672 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': 4214269, 'mtr_portfolio_id': 29371672, 'created_at': datetime.datetime(2025, 12, 12, 11, 2, 59), 'result': '0.040953628451014475', 'result_long': None, 'result_double': None}] Qualite : 0.040953628451014475 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29371672 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29371672_12-12-2025_11_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29371672 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_P29371672_12-12-2025_11_03_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29371718, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29371719, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29371720, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29371721, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29371722, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29371723, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29371724, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29371725, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29371726, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29371727, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29371728, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29371729, 'pht': 3726}}" where mtr_portfolio_id = 29371672 and dashboard_run_id = 2735396 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`=29371672 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18300653, 0.040953628451014475, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29371672_12-12-2025_11_03_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29371718, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29371719, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29371720, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29371721, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29371722, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29371723, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29371724, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29371725, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29371726, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29371727, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29371728, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29371729, '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 = 29372129 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': 4214393, 'mtr_portfolio_id': 29372129, 'created_at': datetime.datetime(2025, 12, 12, 11, 12, 58), 'result': '0.021306335914414845', 'result_long': None, 'result_double': None}] Qualite : 0.021306335914414845 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29372129 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29372129_12-12-2025_11_12_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29372129 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_P29372129_12-12-2025_11_12_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29372133, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29372134, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29372135, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29372136, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29372137, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29372138, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29372139, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29372140, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29372141, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29372142, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29372143, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29372144, 'pht': 3726}}" where mtr_portfolio_id = 29372129 and dashboard_run_id = 2735396 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`=29372129 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18300654, 0.021306335914414845, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29372129_12-12-2025_11_12_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29372133, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29372134, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29372135, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29372136, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29372137, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29372138, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29372139, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29372140, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29372141, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29372142, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29372143, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29372144, '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 (29353967,29354414,29354703,29355153,29356369,29356788,29357162,29357697,29358082,29358557,29358933,29359035,29359405,29359799,29360191,29361267,29361419,29361719,29362085,29362407,29362854,29363295,29363773,29364180,29364786,29365262,29365724,29366368,29366602,29367216,29367911,29369385,29369990,29370446,29370838,29371214,29371672,29372129) result : ((1398955948,), (1398955951,), (1398955953,), (1398955955,), (1398955958,), (1398956174,), (1398956207,), (1398956248,), (1398956287,), (1398956299,), (1398956413,), (1398956414,), (1398956417,), (1398956419,), (1398956458,), (1398956462,), (1398956499,), (1398956502,), (1398956535,), (1398956537,), (1398956569,), (1398956573,), (1398956728,), (1398956766,), (1398956802,), (1398956837,), (1398956876,), (1398957235,), (1398957280,), (1398957314,), (1398957359,), (1398957581,), (1398957616,), (1398957651,), (1398957685,), (1398958081,), (1398958115,), (1398958178,), (1398958243,), (1398959056,), (1398959095,), (1398959129,), (1398959259,), (1398959260,), (1398959262,), (1398959263,), (1398959265,), (1398959499,), (1398959536,), (1398959576,), (1398959611,), (1398959646,), (1398959782,), (1398959784,), (1398959786,), (1398959788,), (1398959791,), (1398959815,), (1398959816,), (1398959817,), (1398959827,), (1398959828,), (1398959831,), (1398959836,), (1398959839,), (1398959850,), (1398959852,), (1398959854,), (1398959861,), (1398959868,), (1398959881,), (1398959918,), (1398959934,), (1398959936,), (1398959938,), (1398959940,), (1398959977,), (1398959980,), (1398959981,), (1398959982,), (1398959985,), (1398959995,), (1398959997,), (1398959999,), (1398960001,), (1398960232,), (1398960233,), (1398960234,), (1398960235,), (1398960248,), (1398960251,), (1398960254,), (1398960294,), (1398960337,), (1398960370,), (1398960409,), (1398960553,), (1398960556,), (1398960559,), (1398960563,), (1398960567,), (1398960571,), (1398960586,), (1398960587,), (1398960588,), (1398960589,), (1398960602,), (1398960604,), (1398960606,), (1398960608,), (1398960610,), (1398960612,), (1398960633,), (1398960634,), (1398960658,), (1398960695,), (1398960731,), (1398960771,), (1398960890,), (1398960924,), (1398961059,), (1398961510,), (1398961576,), (1398961611,), (1398961646,), (1398961900,), (1398961928,), (1398961997,), (1398961999,), (1398962015,), (1398961988,), (1398961990,), (1398961992,), (1398961994,), (1398962137,), (1398962172,), (1398962214,), (1398962250,), (1398962686,), (1398962758,), (1398962830,), (1398962906,), (1398962974,), (1398963510,), (1398963549,), (1398963586,), (1398964022,), (1398964056,), (1398964088,), (1398964125,), (1398964158,), (1398964196,), (1398964464,), (1398964629,), (1398964667,), (1398964710,), (1398964773,), (1398964798,), (1398964894,), (1398964896,), (1398964899,), (1398964924,), (1398964926,), (1398964928,), (1398964935,), (1398964941,), (1398964957,), (1398964959,), (1398964962,), (1398964966,), (1398964969,), (1398965265,), (1398965301,), (1398965339,), (1398965998,), (1398966065,), (1398966129,), (1398966191,), (1398966866,), (1398966869,), (1398966871,), (1398966873,), (1398966876,), (1398966879,), (1398967116,), (1398967151,), (1398967185,), (1398967251,), (1398967556,), (1398967558,), (1398967560,), (1398967562,), (1398967656,), (1398967659,), (1398967660,), (1398967663,), (1398967666,), (1398967669,), (1398967684,), (1398967673,), (1398967675,), (1398967677,), (1398967679,), (1398967681,), (1398968022,), (1398968059,), (1398968096,), (1398968132,), (1398968424,), (1398968425,), (1398968426,), (1398968427,), (1398968612,), (1398968647,), (1398968661,), (1398968663,), (1398968686,), (1398968689,), (1398968730,), (1398968734,), (1398968736,), (1398968949,), (1398968984,), (1398969018,), (1398969066,), (1398969102,), (1398969138,), (1398969480,), (1398969516,), (1398969553,), (1398969588,), (1398969628,), (1398969666,), (1398969784,), (1398969786,), (1398969787,), (1398969987,), (1398970023,), (1398970061,), (1398970095,), (1398970108,), (1398970111,), (1398970231,), (1398970232,), (1398970234,), (1398970236,), (1398970239,), (1398970242,), (1398970252,), (1398970253,), (1398970254,), (1398970268,), (1398970270,), (1398970272,), (1398970274,), (1398970277,), (1398970281,), (1398970290,), (1398970292,), (1398970294,), (1398970296,), (1398970299,), (1398970342,), (1398970344,), (1398970346,), (1398970349,), (1398971710,), (1398975733,), (1398975742,), (1398975770,), (1398975798,), (1398975799,), (1398975800,), (1398975801,), (1398975804,), (1398975817,), (1398975819,), (1398975830,), (1398975835,), (1398975840,), (1398975842,), (1398975845,), (1398975855,), (1398975857,), (1398975858,), (1398975875,), (1398975911,), (1398976270,), (1398976306,), (1398976341,), (1398976749,), (1398976750,), (1398976751,), (1398976752,), (1398976755,), (1398976954,), (1398976962,), (1398976983,), (1398977016,), (1398977041,), (1398977080,), (1398977082,), (1398977085,), (1398977088,), (1398977106,), (1398977108,), (1398977110,), (1398977111,), (1398977113,), (1398977123,), (1398977124,), (1398977126,), (1398977128,), (1398977131,), (1398977133,), (1398977150,), (1398977153,), (1398977160,), (1398977162,), (1398977486,), (1398977521,), (1398977551,), (1398977585,), (1398977620,), (1398977856,), (1398977858,), (1398977890,), (1398977928,), (1398977965,), (1398978183,), (1398978218,), (1398978251,), (1398978290,), (1398978326,), (1398978363,), (1398978734,), (1398978671,), (1398978704,), (1398979122,), (1398979124,), (1398979126,), (1398979128,), (1398979131,), (1398979134,), (1398979311,), (1398979343,), (1398979350,), (1398979352,), (1398979376,), (1398979435,), (1398979442,), (1398979446,), (1398979468,), (1398979469,), (1398979470,), (1398979471,), (1398979473,), (1398979487,), (1398979490,), (1398979492,), (1398979494,), (1398979497,), (1398979501,), (1398979508,), (1398979514,), (1398979523,), (1398979526,), (1398979527,), (1398979534,), (1398979536,), (1398979539,), (1398979540,), (1398979541,), (1398979542,), (1398979554,), (1398979556,), (1398979557,), (1398979560,), (1398979568,), (1398979580,), (1398979582,), (1398979584,), (1398979586,), (1398979604,), (1398979605,), (1398979606,), (1398979620,), (1398979622,), (1398979624,), (1398979626,), (1398979637,), (1398979642,), (1398979644,), (1398979662,), (1398979665,), (1398979668,), (1398979671,), (1398979672,), (1398979674,), (1398979691,), (1398979684,), (1398979687,), (1398979689,), (1398979704,), (1398979705,), (1398979706,), (1398979707,), (1398979709,), (1398979712,), (1398979719,), (1398979741,), (1398979775,), (1398979808,), (1398980178,), (1398980212,), (1398980236,), (1398980237,), (1398980240,), (1398980627,), (1398980689,), (1398980723,), (1398980764,), (1398981148,), (1398981149,), (1398981150,), (1398981183,), (1398981218,), (1398981253,), (1398981573,), (1398981608,), (1398981642,), (1398981681,), (1398981749,), (1398981810,), (1398981986,), (1398981998,), (1398982000,), (1398982003,), (1398982011,), (1398982013,), (1398982015,), (1398982017,), (1398982020,), (1398982022,), (1398982030,), (1398982034,), (1398982036,), (1398982037,), (1398982039,), (1398982050,), (1398982051,), (1398982052,), (1398982053,), (1398982072,), (1398982413,), (1398982448,), (1398982481,), (1398982516,), (1398982899,), (1398982943,), (1398982978,), (1398982980,), (1398982983,), (1398982986,), (1398983007,), (1398984295,), (1398984050,), (1398984628,), (1398984717,), (1398984727,), (1398984729,), (1398984731,), (1398984747,), (1398984748,), (1398984749,), (1398984750,), (1398984766,), (1398984768,), (1398984774,), (1398984783,), (1398984799,), (1398984800,), (1398984801,), (1398984802,), (1398984837,), (1398984839,), (1398984841,), (1398984843,), (1398984846,), (1398984855,), (1398984858,), (1398984861,), (1398984865,), (1398984867,), (1398984891,), (1398984892,), (1398984893,), (1398984894,), (1398984936,), (1398984937,), (1398984940,), (1398984941,), (1398984942,), (1398984943,), (1398984959,), (1398984960,), (1398984961,), (1398984962,), (1398984963,), (1398984964,), (1398984965,), (1398984966,), (1398984926,), (1398984927,), (1398984928,), (1398984929,), (1398984930,), (1398984931,), (1398984932,), (1398984933,), (1398984934,), (1398984935,), (1398984938,), (1398984939,), (1398984948,), (1398984950,), (1398984951,), (1398984952,), (1398984953,), (1398984954,), (1398984955,), (1398984956,), (1398984957,), (1398984958,), (1398984967,), (1398984968,), (1398984969,), (1398984970,), (1398984971,), (1398984972,), (1398984973,), (1398984974,), (1398984975,), (1398984976,), (1398984977,), (1398984978,), (1398984980,), (1398984981,), (1398984982,), (1398984983,), (1398984984,), (1398984995,), (1398984996,), (1398984997,), (1398984998,), (1398984999,), (1398985000,), (1398985001,), (1398985002,), (1398985003,), (1398985004,), (1398985015,), (1398985016,), (1398985017,), (1398985018,), (1398985019,), (1398985026,), (1398985027,), (1398985028,), (1398985029,), (1398985030,), (1398985037,), (1398985456,), (1398985466,), (1398985468,), (1398985470,), (1398985476,), (1398985477,), (1398985479,), (1398985481,), (1398985484,), (1398985487,), (1398985503,), (1398985504,), (1398985507,), (1398985510,), (1398985512,), (1398985517,), (1398985519,), (1398985111,), (1398985112,), (1398985113,), (1398985114,), (1398985115,), (1398985116,), (1398985117,), (1398985118,), (1398985120,), (1398985122,), (1398985124,), (1398985126,), (1398985129,), (1398985130,), (1398985131,), (1398985133,), (1398985135,), (1398985137,), (1398985149,), (1398985181,), (1398985213,), (1398985245,), (1398985279,), (1398985312,), (1398985390,), (1398985392,), (1398985395,), (1398985399,), (1398985402,), (1398985405,), (1398985410,), (1398985412,), (1398985415,), (1398985418,), (1398985421,), (1398985424,), (1398985427,), (1398985428,), (1398985431,), (1398985434,), (1398985438,), (1398985445,), (1398985450,), (1398985451,), (1398985688,), (1398985501,), (1398985679,), (1398985681,), (1398985683,), (1398985685,), (1398985703,), (1398985705,), (1398985706,), (1398985709,), (1398985712,), (1398985715,), (1398985727,), (1398985730,), (1398985732,), (1398985734,), (1398985736,), (1398985738,), (1398985744,), (1398985747,), (1398985748,), (1398985749,), (1398985751,), (1398985753,), (1398985755,), (1398985770,), (1398985772,), (1398985773,), (1398985774,), (1398985809,), (1398985797,), (1398985799,), (1398985801,), (1398985803,), (1398985806,), (1398985817,), (1398985818,), (1398985819,), (1398985820,), (1398985823,), (1398985826,), (1398985837,), (1398985839,), (1398985841,), (1398985844,), (1398985847,), (1398985849,), (1398985855,), (1398985856,), (1398985860,), (1398985864,), (1398985865,), (1398985866,), (1398985869,), (1398985872,), (1398985882,), (1398985884,), (1398985892,), (1398985900,), (1398985907,), (1398985919,), (1398985921,), (1398985925,), (1398985929,), (1398985966,), (1398985975,), (1398985979,), (1398985981,), (1398985983,), (1398985986,), (1398986001,), (1398986002,), (1398986004,), (1398986006,), (1398986021,), (1398986022,), (1398986023,), (1398986024,), (1398986026,), (1398986038,), (1398986040,), (1398986042,), (1398986044,), (1398986048,), (1398986051,), (1398986062,), (1398986064,), (1398986066,), (1398986068,), (1398986070,), (1398986091,), (1398986093,), (1398986095,), (1398986098,), (1398986101,), (1398986104,), (1398986134,), (1398986140,), (1398986142,), (1398986144,), (1398986147,), (1398986160,), (1398986161,), (1398986162,), (1398986163,), (1398986166,), (1398986187,), (1398986188,), (1398986191,), (1398986193,), (1398986196,), (1398986200,), (1398986218,), (1398986206,), (1398986212,), (1398986239,), (1398986241,), (1398986253,), (1398986261,), (1398986263,), (1398986265,), (1398986278,), (1398986279,), (1398986280,), (1398986281,), (1398986291,), (1398986294,), (1398986297,), (1398986318,), (1398986320,), (1398986321,), (1398986322,), (1398986324,), (1398986348,), (1398986352,), (1398986354,), (1398986356,), (1398986359,), (1398986365,), (1398986367,), (1398986369,), (1398986371,), (1398986386,), (1398986387,), (1398986388,), (1398986390,), (1398986393,), (1398986396,), (1398986405,), (1398986406,), (1398986414,), (1398986418,), (1398986423,), (1398986425,), (1398986429,), (1398986432,), (1398986436,), (1398986439,), (1398986445,), (1398986446,), (1398986447,), (1398986448,), (1398986463,), (1398986464,), (1398986466,), (1398986468,), (1398986471,), (1398986503,), (1398986507,), (1398986508,), (1398986509,), (1398986512,), (1398986524,), (1398986526,), (1398986528,), (1398986544,), (1398986546,), (1398986547,), (1398986548,), (1398986551,), (1398986553,), (1398986574,), (1398986581,), (1398986582,), (1398986584,), (1398986587,), (1398986590,), (1398986620,), (1398986616,), (1398986618,), (1398986619,), (1398986636,), (1398986640,), (1398986643,), (1398986647,), (1398986650,), (1398986652,), (1398986670,), (1398986671,), (1398986672,), (1398986673,), (1398986679,), (1398986681,), (1398986693,), (1398986695,), (1398986697,), (1398986726,), (1398986728,), (1398986730,), (1398986732,), (1398986735,), (1398986736,), (1398986750,), (1398986751,), (1398986752,), (1398986753,), (1398986756,), (1398986758,), (1398986774,), (1398986775,), (1398986777,), (1398986780,), (1398986783,), (1398986785,), (1398986795,), (1398986796,), (1398986799,), (1398986802,), (1398986804,), (1398986806,), (1398986812,), (1398986813,), (1398986815,), (1398986818,), (1398986821,), (1398986822,), (1398986834,), (1398986839,), (1398986842,), (1398986846,), (1398986854,), (1398986857,), (1398986867,), (1398986869,), (1398986890,), (1398986891,), (1398986899,), (1398986901,), (1398986903,), (1398986904,), (1398986909,), (1398986912,), (1398986914,), (1398986922,), (1398986924,), (1398986927,), (1398986930,), (1398986944,), (1398986947,), (1398986949,), (1398986965,), (1398986968,), (1398986971,), (1398986974,), (1398986976,), (1398987140,), (1398986991,), (1398987027,), (1398987063,), (1398987102,), (1398987562,), (1398987596,), (1398987632,), (1398987665,), (1398987732,), (1398987796,), (1398988690,), (1398988753,), (1398988816,), (1398989359,), (1398989391,), (1398989426,), (1398989461,), (1398989820,), (1398989821,), (1398989822,), (1398989857,), (1398989862,), (1398990176,), (1398990213,), (1398990216,), (1398990217,), (1398990344,), (1398990347,), (1398990350,), (1398990377,), (1398990413,), (1398990451,), (1398990589,), (1398990593,), (1398990595,), (1398990596,), (1398990599,), (1398990916,), (1398990951,), (1398991430,), (1398991463,), (1398991517,), (1398991574,), (1398991605,), (1398991751,), (1398991795,), (1398993212,), (1398997259,), (1398998062,), (1398998097,), (1398998117,), (1398998455,), (1398998457,), (1398998476,), (1398998646,), (1398998647,), (1398998664,), (1398998666,), (1398998668,), (1398998670,), (1398998673,), (1398998676,), (1398998685,), (1398998686,), (1398998712,), (1398998710,), (1398998711,), (1398998723,), (1398998725,), (1398998727,), (1398998729,), (1398998732,), (1398998735,), (1398998746,), (1398998748,), (1398998751,), (1398998753,), (1398998756,), (1398998769,), (1398998770,), (1398998771,), (1398998772,), (1398998775,), (1398998805,), (1398998807,), (1398998809,), (1398998811,), (1398998814,), (1398998828,), (1398998830,), (1398998832,), (1398998836,), (1398998857,), (1398998859,), (1398998861,), (1398998863,), (1398998866,), (1398998869,), (1398998877,), (1398998878,), (1398998880,), (1398998914,), (1398998915,), (1398998916,), (1398998917,), (1398998919,), (1398998922,), (1398998935,), (1398998936,), (1398998937,), (1398998938,), (1398998958,), (1398998960,), (1398998962,), (1398998964,), (1398998967,), (1398998968,), (1398998979,), (1398998981,), (1398998982,), (1398998984,), (1398998987,), (1398999000,), (1398999002,), (1398999003,), (1398999020,), (1398999022,), (1398999024,), (1398999026,), (1398999029,), (1398999032,), (1398999056,), (1398999064,), (1398999066,), (1398999067,), (1398999087,), (1398999079,), (1398999081,), (1398999083,), (1398999085,), (1398999116,), (1398999117,), (1398999124,), (1398999133,), (1398999136,), (1398999139,), (1398999161,), (1398999163,), (1398999165,), (1398999167,), (1398999186,), (1398999187,), (1398999188,), (1398999189,), (1398999192,), (1398999195,), (1398999208,), (1398999210,), (1398999212,), (1398999214,), (1398999238,), (1398999239,), (1398999240,), (1398999241,), (1398999244,), (1398999246,), (1398999259,), (1398999261,), (1398999263,), (1398999265,), (1398999268,), (1398999291,), (1398999294,), (1398999295,), (1398999296,), (1398999299,), (1398999313,), (1398999315,), (1398999317,), (1398999319,), (1398999322,), (1398999325,), (1398999349,), (1398999350,), (1398999351,), (1398999352,), (1398999368,), (1398999370,), (1398999372,), (1398999374,), (1398999377,), (1398999393,), (1398999394,), (1398999395,), (1398999407,), (1398999409,), (1398999411,), (1398999413,), (1398999416,), (1398999418,), (1398999448,), (1398999451,), (1398999455,), (1398999456,), (1398999472,), (1398999475,), (1398999479,), (1398999481,), (1398999484,), (1398999515,), (1398999504,), (1398999505,), (1398999509,), (1398999512,), (1398999528,), (1398999530,), (1398999532,), (1398999534,), (1398999537,), (1398999555,), (1398999560,), (1398999561,), (1398999564,), (1398999567,), (1398999570,), (1398999578,), (1398999580,), (1398999582,), (1398999584,), (1398999587,), (1398999588,), (1398999602,), (1398999604,), (1398999605,), (1398999606,), (1398999609,), (1398999623,), (1398999625,), (1398999627,), (1398999631,), (1398999635,), (1398999638,), (1398999646,), (1398999647,), (1398999648,), (1398999658,), (1398999660,), (1398999662,), (1398999665,), (1398999667,), (1398999668,), (1398999684,), (1398999686,), (1398999688,), (1398999691,), (1398999693,), (1398999708,), (1398999709,), (1398999710,), (1398999711,), (1398999727,), (1398999729,), (1398999731,), (1398999733,), (1398999736,), (1398999738,), (1398999777,), (1398999779,), (1398999781,), (1398999783,), (1398999786,), (1398999801,), (1398999802,), (1398999803,), (1398999804,), (1398999807,), (1398999818,), (1398999821,), (1398999824,), (1398999826,), (1398999829,), (1398999853,), (1398999856,), (1398999859,), (1398999866,), (1398999879,), (1398999880,), (1398999882,), (1398999883,), (1398999884,), (1398999885,), (1398999888,), (1398999889,), (1398999892,), (1398999893,), (1398999900,), (1398999897,), (1398999898,), (1398999899,), (1398999915,), (1398999917,), (1398999919,), (1398999921,), (1398999937,), (1398999940,), (1398999942,), (1398999946,), (1398999950,), (1398999976,), (1398999979,), (1398999981,), (1398999985,), (1398999988,), (1398999997,), (1398999999,), (1399000001,), (1399000003,), (1399000006,), (1399000008,), (1399000022,), (1399000023,), (1399000024,), (1399000025,), (1399000028,), (1399000049,), (1399000051,), (1399000053,), (1399000055,), (1399000058,), (1399000061,), (1399000080,), (1399000081,), (1399000083,), (1399000085,), (1399000107,), (1399000112,), (1399000114,), (1399000116,), (1399000119,), (1399000122,), (1399000158,), (1399000160,), (1399000162,), (1399000164,), (1399000177,), (1399000179,), (1399000181,), (1399000183,), (1399000186,), (1399000189,), (1399000216,), (1399000220,), (1399000221,), (1399000222,), (1399000225,), (1399000239,), (1399000241,), (1399000243,), (1399000248,), (1399000254,), (1399000256,), (1399000266,), (1399000268,), (1399000270,), (1399000272,), (1399000303,), (1399000307,), (1399000309,), (1399000310,), (1399000313,), (1399000315,), (1399000346,), (1399000338,), (1399000342,), (1399000363,), (1399000365,), (1399000367,), (1399000371,), (1399000375,), (1399000395,), (1399000397,), (1399000399,), (1399000400,), (1399000403,), (1399000420,), (1399000422,), (1399000424,), (1399000426,), (1399000443,), (1399000444,), (1399000445,), (1399000446,), (1399000448,), (1399000450,), (1399000473,), (1399000474,), (1399000475,), (1399000476,), (1399000479,), (1399000493,), (1399000506,), (1399000514,), (1399000518,), (1399000521,), (1399000530,), (1399000533,), (1399000535,), (1399000537,), (1399000541,), (1399000570,), (1399000572,), (1399000574,), (1399000576,), (1399000578,), (1399000580,), (1399000591,), (1399000592,), (1399000593,), (1399000594,), (1399000626,), (1399000628,), (1399000637,), (1399000645,), (1399000649,), (1399000651,), (1399000692,), (1399000693,), (1399000694,), (1399000695,), (1399000716,), (1399000717,), (1399000718,), (1399000719,), (1399000722,), (1399000724,), (1399000737,), (1399000739,), (1399000741,), (1399000743,), (1399000746,), (1399000788,), (1399000790,), (1399000814,), (1399000808,), (1399000810,), (1399000812,), (1399000833,), (1399000835,), (1399000836,), (1399000837,), (1399000839,), (1399000841,), (1399000869,), (1399000870,), (1399000871,), (1399000904,), (1399000906,), (1399000908,), (1399000910,), (1399000935,), (1399000936,), (1399000937,), (1399000957,), (1399000959,), (1399000961,), (1399000963,), (1399000966,), (1399000968,), (1399000976,), (1399000979,), (1399000982,), (1399000986,), (1399001005,), (1399001007,), (1399001009,), (1399001011,), (1399001035,), (1399001040,), (1399001041,), (1399001042,), (1399001045,), (1399001064,), (1399001066,), (1399001068,), (1399001070,), (1399001073,), (1399001074,), (1399001084,), (1399001087,), (1399001089,), (1399001092,), (1399001095,), (1399001096,), (1399001112,), (1399001115,), (1399001122,), (1399001123,), (1399001124,), (1399001125,), (1399001128,), (1399001130,), (1399001149,), (1399001151,), (1399001153,), (1399001155,), (1399001158,), (1399001161,), (1399001174,), (1399001175,), (1399001176,), (1399001205,), (1399001207,), (1399001209,), (1399001211,), (1399001216,), (1399001220,), (1399001261,), (1399001262,), (1399001265,), (1399001268,), (1399001271,), (1399001274,), (1399001277,), (1399001243,), (1399001253,), (1399001256,), (1399001259,), (1399001281,), (1399001283,), (1399001285,), (1399001310,), (1399001312,), (1399001318,), (1399001327,), (1399001330,), (1399001333,), (1399001341,), (1399001343,), (1399001345,), (1399001347,), (1399001350,), (1399001363,), (1399001366,), (1399001368,), (1399001370,), (1399001420,), (1399001426,), (1399001428,), (1399001431,), (1399001434,), (1399001436,), (1399001438,), (1399001448,), (1399001450,), (1399001452,), (1399001454,), (1399001456,), (1399001459,), (1399001466,), (1399001468,), (1399001471,), (1399001474,), (1399001476,), (1399001478,), (1399001525,), (1399001526,), (1399001528,), (1399001529,), (1399001530,), (1399001531,), (1399001533,), (1399001534,), (1399001553,), (1399001554,), (1399001581,), (1399001584,), (1399001589,), (1399001593,), (1399001597,), (1399001604,), (1399001615,), (1399001617,), (1399001619,), (1399001621,), (1399001623,), (1399001625,), (1399001654,), (1399001656,), (1399001658,), (1399001662,), (1399001665,), (1399001666,), (1399001687,), (1399001689,), (1399001718,), (1399001753,), (1399001788,), (1399001824,), (1399002278,), (1399002338,), (1399002384,), (1399002420,), (1399002452,), (1399002484,), (1399002628,), (1399002630,), (1399002649,), (1399002652,), (1399002682,), (1399002718,), (1399003056,), (1399003091,), (1399003239,), (1399003284,), (1399003320,), (1399003353,), (1399003386,), (1399002854,), (1399002898,), (1399002993,), (1399003025,), (1399003525,), (1399003526,), (1399003530,), (1399003533,), (1399003536,), (1399003728,), (1399003763,), (1399003796,), (1399003827,), (1399003861,), (1399003905,), (1399004111,), (1399004171,), (1399004208,), (1399004241,), (1399004274,), (1399004316,), (1399004458,), (1399004472,), (1399004503,), (1399004542,), (1399004575,), (1399004645,), (1399004707,), (1399004829,), (1399004858,), (1399004859,), (1399004860,), (1399004934,), (1399004935,), (1399004936,), (1399004937,), (1399004940,), (1399004943,), (1399004971,), (1399005012,), (1399005022,), (1399005036,), (1399005051,), (1399005070,), (1399005071,), (1399005072,), (1399005073,), (1399005076,), (1399005119,), (1399005121,), (1399005123,), (1399005125,), (1399005127,), (1399005130,), (1399005141,), (1399005143,), (1399005437,), (1399005445,), (1399005446,), (1399005453,), (1399005456,), (1399005458,), (1399005471,), (1399005473,), (1399005475,), (1399005477,), (1399005481,), (1399005510,), (1399005512,), (1399005514,), (1399005516,), (1399005544,), (1399005548,), (1399005551,), (1399005582,), (1399005578,), (1399005580,), (1399005625,), (1399005628,), (1399005655,), (1399005669,), (1399005676,), (1399005886,), (1399005897,), (1399005901,), (1399005939,), (1399006087,), (1399006089,), (1399006091,), (1399006093,), (1399006096,), (1399006110,), (1399006111,), (1399006113,), (1399006115,), (1399006118,), (1399006120,), (1399006130,), (1399006132,), (1399006135,), (1399006139,), (1399006175,), (1399006178,), (1399006181,), (1399006188,), (1399006193,), (1399006209,), (1399006210,), (1399006211,), (1399006212,), (1399006214,), (1399006235,), (1399006236,), (1399006237,), (1399006239,), (1399006241,), (1399006268,), (1399006256,), (1399006258,), (1399006260,), (1399006262,), (1399006265,), (1399006278,), (1399006279,), (1399006280,), (1399006281,), (1399006301,), (1399006303,), (1399006305,), (1399006307,), (1399006310,), (1399006448,), (1399006450,), (1399006452,), (1399006454,), (1399006576,), (1399006582,), (1399006583,), (1399006584,), (1399006586,), (1399006595,), (1399006618,), (1399006619,), (1399006621,), (1399006623,), (1399006733,), (1399006735,), (1399006737,), (1399006739,), (1399006742,), (1399006745,), (1399006756,), (1399006758,), (1399006760,), (1399006762,), (1399007061,), (1399007102,), (1399007108,), (1399007111,), (1399007114,), (1399007116,), (1399007141,), (1399007148,), (1399007150,), (1399007152,), (1399007155,), (1399007158,), (1399007309,), (1399007311,), (1399007313,), (1399007360,), (1399007361,), (1399007362,), (1399007363,), (1399007366,), (1399007368,), (1399007506,), (1399007508,), (1399007510,), (1399007512,), (1399007564,), (1399007573,), (1399007576,), (1399007579,), (1399007582,), (1399007619,), (1399007705,), (1399007712,), (1399007761,), (1399007906,), (1399007899,), (1399007900,), (1399007901,), (1399007902,), (1399007916,), (1399007918,), (1399007920,), (1399007922,), (1399007924,), (1399007927,), (1399007951,), (1399007952,), (1399007956,), (1399007961,), (1399007964,), (1399007967,), (1399007980,), (1399007981,), (1399007982,), (1399007983,), (1399007984,), (1399007993,), (1399007996,), (1399007998,), (1399008004,), (1399008012,), (1399008016,), (1399008021,), (1399008023,), (1399008025,), (1399008027,), (1399008044,), (1399008049,), (1399008059,), (1399008069,), (1399008073,), (1399008087,), (1399008090,), (1399008097,), (1399008105,), (1399008114,), (1399008121,), (1399008136,), (1399008137,), (1399008142,), (1399008158,), (1399008204,), (1399008212,), (1399008214,), (1399008216,), (1399008241,), (1399008278,), (1399008429,), (1399008488,), (1399008523,), (1399008526,), (1399008595,), (1399008596,), (1399008597,), (1399008598,), (1399008601,), (1399008604,), (1399008615,), (1399008624,), (1399008628,), (1399008630,), (1399008633,), (1399008645,), (1399008647,), (1399008679,), (1399008711,), (1399008714,), (1399008716,), (1399008743,), (1399008748,), (1399008756,), (1399008764,), (1399008767,), (1399008772,), (1399008773,), (1399008777,), (1399008779,), (1399008781,), (1399008794,), (1399008787,), (1399008789,), (1399008791,), (1399008808,), (1399008811,), (1399008818,), (1399008819,), (1399008822,), (1399008834,), (1399008835,), (1399008836,), (1399008837,), (1399008871,), (1399008876,), (1399008881,), (1399008883,), (1399008886,), (1399008898,), (1399008921,), (1399008924,), (1399008925,), (1399008928,), (1399008941,), (1399008943,), (1399008945,), (1399008947,), (1399008950,), (1399008953,), (1399008963,), (1399008966,), (1399008968,), (1399008971,), (1399009004,), (1399009006,), (1399009007,), (1399009008,), (1399009011,), (1399009014,), (1399009028,), (1399009037,), (1399009040,), (1399009042,), (1399009059,), (1399009060,), (1399009061,), (1399009062,), (1399009186,), (1399009224,), (1399009258,), (1399009292,), (1399009326,), (1399009347,), (1399009351,), (1399009354,), (1399009387,), (1399009497,), (1399009553,), (1399009555,), (1399009557,), (1399009559,), (1399009562,), (1399009565,), (1399009575,), (1399009577,), (1399009580,), (1399009583,), (1399009587,), (1399009783,), (1399009690,), (1399009723,), (1399009752,), (1399010204,), (1399010260,), (1399010303,), (1399010337,), (1399010376,), (1399010423,), (1399010751,), (1399010787,), (1399010809,), (1399010812,), (1399010819,), (1399010833,), (1399010834,), (1399010835,), (1399010836,), (1399010837,), (1399011187,), (1399011219,), (1399011237,), (1399011238,), (1399011255,), (1399011375,), (1399011376,), (1399011377,), (1399011378,), (1399011381,), (1399011739,), (1399011772,), (1399011805,), (1399011837,), (1399012196,), (1399012311,), (1399012343,), (1399012379,), (1399012412,), (1399012445,), (1399012468,), (1399012470,), (1399012472,), (1399012474,), (1399012477,), (1399012683,), (1399012739,), (1399012810,), (1399012875,), (1399012944,), (1399012986,), (1399013349,), (1399013383,), (1399013415,), (1399013448,), (1399013482,), (1399013516,), (1399013930,), (1399013993,), (1399014058,), (1399014117,), (1399014153,), (1399014244,), (1399014246,), (1399014248,), (1399014250,), (1399014253,), (1399014256,), (1399014594,), (1399014611,), (1399014613,), (1399014622,), (1399014675,), (1399014708,), (1399014927,), (1399014949,), (1399014979,), (1399015006,), (1399015066,), (1399015051,), (1399015053,), (1399015056,), (1399015059,), (1399015062,), (1399015085,), (1399015094,), (1399015095,), (1399015129,), (1399015175,), (1399015215,), (1399015401,), (1399015421,), (1399015428,), (1399015432,), (1399015436,), (1399015438,), (1399015440,), (1399015442,), (1399015444,), (1399015448,), (1399015450,), (1399015451,), (1399015452,), (1399015455,), (1399015463,), (1399015465,), (1399015467,), (1399015469,), (1399015472,), (1399015632,), (1399015665,), (1399015693,), (1399015695,), (1399015698,), (1399015699,), (1399015795,), (1399015797,), (1399015799,), (1399015801,), (1399015846,), (1399015848,), (1399015850,), (1399015852,), (1399015855,), (1399015867,), (1399015902,), (1399015904,), (1399015907,), (1399015910,), (1399015913,), (1399015917,), (1399015981,), (1399015987,), (1399015988,), (1399016150,), (1399016152,), (1399016165,), (1399016198,), (1399016206,), (1399016209,), (1399016358,), (1399016360,), (1399016362,), (1399016374,), (1399016377,), (1399016379,), (1399016381,), (1399016384,), (1399016388,), (1399016679,), (1399016723,), (1399016777,), (1399016811,), (1399016842,), (1399016874,), (1399017170,), (1399017203,), (1399017236,), (1399017270,), (1399017495,), (1399017389,), (1399017423,), (1399017455,), (1399017471,), (1399017476,), (1399017576,), (1399017578,), (1399017586,), (1399017590,), (1399017593,), (1399017867,), (1399017897,), (1399017905,), (1399017940,), (1399017942,), (1399017944,), (1399017946,), (1399017949,), (1399017951,), (1399017958,), (1399017961,), (1399017963,), (1399017991,), (1399017999,), (1399018001,), (1399018003,), (1399018006,), (1399018008,), (1399018032,), (1399018034,), (1399018035,), (1399018037,), (1399018124,), (1399018136,), (1399018151,), (1399018161,), (1399018173,), (1399018204,), (1399018239,), (1399018252,), (1399018254,), (1399018256,), (1399018265,), (1399018322,), (1399018324,), (1399018327,), (1399018330,), (1399018354,), (1399018552,), (1399018567,), (1399018568,), (1399018592,), (1399018605,), (1399018614,), (1399018631,), (1399018633,), (1399018635,), (1399018637,), (1399018640,), (1399018655,), (1399018657,), (1399018659,), (1399018661,), (1399018664,), (1399019074,), (1399019084,), (1399019120,), (1399019155,), (1399019188,), (1399019796,), (1399032712,), (1399032847,), (1399032853,), (1399032860,), (1399032863,), (1399032866,), (1399032878,), (1399032881,), (1399032884,), (1399032895,), (1399033230,), (1399033288,), (1399033317,), (1399033347,), (1399033383,), (1399033417,), (1399033933,), (1399034020,), (1399034114,), (1399034192,), (1399034254,), (1399034832,), (1399034862,), (1399034877,), (1399034878,), (1399034881,), (1399034883,), (1399035153,), (1399035186,), (1399035220,), (1399035256,), (1399035287,), (1399035376,), (1399035406,), (1399035454,), (1399035522,), (1399035615,), (1399036063,), (1399036102,), (1399036164,), (1399036233,), (1399036300,), (1399036337,), (1399036527,), (1399036529,), (1399036531,), (1399036533,), (1399036560,), (1399036562,), (1399036564,), (1399036566,), (1399036568,), (1399036569,), (1399036584,), (1399036585,), (1399036586,), (1399036587,), (1399036602,), (1399036604,), (1399036606,), (1399036608,), (1399036612,), (1399036615,), (1399036657,), (1399036791,), (1399036792,), (1399036793,), (1399036794,), (1399036800,), (1399036816,), (1399036858,), (1399036846,), (1399036848,), (1399036850,), (1399036852,), (1399036855,), (1399036952,), (1399036987,), (1399037027,), (1399037065,), (1399037076,), (1399037095,), (1399037102,), (1399037103,), (1399037104,), (1399037106,), (1399037160,), (1399037162,), (1399037164,), (1399037166,), (1399037169,), (1399037193,), (1399037194,), (1399037200,), (1399037203,), (1399037206,), (1399037258,), (1399037291,), (1399037326,), (1399037361,), (1399037393,), (1399037424,), (1399037754,), (1399037791,), (1399037817,), (1399037819,), (1399037822,), (1399038003,), (1399038021,), (1399038044,), (1399038085,), (1399038416,), (1399038451,), (1399038485,), (1399038522,), (1399038556,), (1399038593,), (1399038684,), (1399038687,), (1399038690,), (1399038789,), (1399038791,), (1399038793,), (1399038795,), (1399038798,), (1399038809,), (1399038810,), (1399038811,), (1399038812,), (1399038815,), (1399038834,), (1399038836,), (1399038865,), (1399038921,), (1399038931,), (1399039176,), (1399039181,), (1399039190,), (1399039283,), (1399039274,), (1399039276,), (1399039278,), (1399039280,), (1399039299,), (1399039300,), (1399039302,), (1399039304,), (1399039322,), (1399039327,), (1399039329,), (1399039331,), (1399039334,), (1399039337,), (1399039455,), (1399039458,), (1399039462,), (1399039465,), (1399039468,), (1399039471,), (1399039486,), (1399039488,), (1399039490,), (1399039492,), (1399039527,), (1399039536,), (1399039551,), (1399039556,), (1399039559,), (1399039602,), (1399039774,), (1399039777,), (1399039781,), (1399039785,), (1399039788,), (1399039807,), (1399039809,), (1399039811,), (1399039813,), (1399039816,), (1399039823,), (1399039906,), (1399039907,), (1399039909,), (1399039911,), (1399039914,), (1399039922,), (1399039979,), (1399039981,), (1399039983,), (1399039985,), (1399039998,), (1399040001,), (1399040004,), (1399040007,), (1399040010,), (1399040012,), (1399040028,), (1399040029,), (1399040030,), (1399040202,), (1399040208,), (1399040212,), (1399040234,), (1399040236,), (1399040238,), (1399040411,), (1399040448,), (1399040450,), (1399040452,), (1399040475,), (1399040478,), (1399040480,), (1399040482,), (1399040486,), (1399040489,), (1399040548,), (1399040538,), (1399040541,), (1399040543,), (1399040545,), (1399040619,), (1399040652,), (1399040688,), (1399040728,), (1399040762,), (1399040783,), (1399040864,), (1399040881,), (1399040883,), (1399040885,), (1399040990,), (1399040991,), (1399040995,), (1399040997,), (1399041002,), (1399041007,), (1399041027,), (1399041030,), (1399041033,), (1399041036,), (1399041124,), (1399041133,), (1399041134,), (1399041139,), (1399041152,), (1399041155,), (1399041191,), (1399041218,), (1399041258,), (1399041292,), (1399041327,), (1399041583,), (1399041585,), (1399041587,), (1399041591,), (1399041595,), (1399041599,), (1399041616,), (1399041620,), (1399041624,), (1399041628,), (1399041632,), (1399041651,), (1399041655,), (1399041657,), (1399041659,), (1399041702,), (1399041703,), (1399041704,), (1399041705,), (1399041708,), (1399041711,), (1399041728,), (1399041730,), (1399041733,), (1399041736,), (1399041789,), (1399041794,), (1399041798,), (1399041810,), (1399041813,), (1399041829,), (1399041830,), (1399041832,), (1399041834,), (1399041837,), (1399041852,), (1399041854,), (1399041856,), (1399041864,), (1399041874,), (1399041876,), (1399041923,), (1399041918,), (1399041919,), (1399041921,), (1399041949,), (1399041950,), (1399041952,), (1399041954,), (1399041957,), (1399041960,), (1399041979,), (1399041981,), (1399041983,), (1399041985,), (1399041988,), (1399042010,), (1399042041,), (1399042075,), (1399042135,), (1399042172,), (1399042361,), (1399042383,), (1399042403,), (1399042407,), (1399042466,), (1399042468,), (1399042471,), (1399042475,), (1399042480,), (1399042482,), (1399042495,), (1399042497,), (1399042499,), (1399042501,), (1399042532,), (1399042546,), (1399042585,), (1399042623,), (1399042660,), (1399042791,), (1399042794,), (1399042796,), (1399042798,), (1399042801,), (1399042838,), (1399042840,), (1399042842,), (1399042860,), (1399042894,), (1399043060,), (1399043093,), (1399043129,), (1399043179,), (1399043193,), (1399043207,), (1399043265,), (1399043266,), (1399043268,), (1399043270,), (1399043289,), (1399043290,), (1399043291,), (1399043292,), (1399043295,), (1399043307,), (1399043310,), (1399043313,), (1399043316,), (1399043317,), (1399043359,), (1399043391,), (1399043423,), (1399043459,), (1399043494,), (1399043779,), (1399043740,), (1399043766,), (1399043771,), (1399043774,), (1399043777,), (1399043942,), (1399043943,), (1399043944,), (1399043945,), (1399044025,), (1399044058,), (1399044093,), (1399044127,), (1399044158,), (1399044396,), (1399044398,), (1399044401,), (1399044424,), (1399044461,), (1399044543,), (1399044545,), (1399044552,), (1399044592,), (1399044626,), (1399044633,), (1399044725,), (1399044727,), (1399044728,), (1399044729,), (1399044766,), (1399044768,), (1399044770,), (1399044773,), (1399044776,), (1399044777,), (1399044792,), (1399044793,), (1399044796,), (1399044799,), (1399044802,), (1399044811,), (1399044834,), (1399044835,), (1399044841,), (1399044848,), (1399044850,), (1399044853,), (1399044859,), (1399044861,), (1399044890,), (1399044927,), (1399044960,), (1399044996,), (1399045027,), (1399045050,), (1399045078,), (1399045097,), (1399045099,), (1399045101,), (1399045109,), (1399045110,), (1399045303,), (1399045307,), (1399045312,), (1399045374,), (1399045392,), (1399045394,), (1399045403,), (1399045406,), (1399045438,), (1399045458,), (1399045460,), (1399045462,), (1399045464,), (1399045466,), (1399045468,), (1399045477,), (1399045480,), (1399045483,), (1399045486,), (1399045505,), (1399045506,), (1399045507,), (1399045508,), (1399045511,), (1399045513,), (1399045818,), (1399045850,), (1399045886,), (1399045919,), (1399045954,), (1399046196,), (1399046197,), (1399046198,), (1399046199,), (1399046202,), (1399046229,), (1399046605,), (1399046666,), (1399046748,), (1399047255,), (1399047256,), (1399047257,), (1399047258,), (1399047261,), (1399047264,), (1399047440,), (1399047470,), (1399047495,), (1399047496,), (1399047516,), (1399047574,), (1399047576,), (1399047578,), (1399047580,), (1399047583,), (1399047586,), (1399047718,), (1399047752,), (1399047785,), (1399047817,), (1399047849,), (1399047886,), (1399048019,), (1399048054,), (1399048097,), (1399048133,), (1399048168,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'12122025': {'nb_upload': 58, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29372129]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1399048168, 1399048133, 1399048097, 1399048054, 1399048019, 1399047886, 1399047849, 1399047817, 1399047785, 1399047752, 1399047718, 1399047586, 1399047583, 1399047580, 1399047578, 1399047576, 1399047574] map_info['map_portfolio_photo'] : {29372129: [1399048168, 1399048133, 1399048097, 1399048054, 1399048019, 1399047886, 1399047849, 1399047817, 1399047785, 1399047752, 1399047718, 1399047586, 1399047583, 1399047580, 1399047578, 1399047576, 1399047574, 1399047516, 1399047496, 1399047495, 1399047470, 1399047440, 1399047264, 1399047261, 1399047258, 1399047257, 1399047256, 1399047255, 1399046748, 1399046666, 1399046605, 1399046229, 1399046202, 1399046199, 1399046198, 1399046197, 1399046196, 1399045954, 1399045919, 1399045886, 1399045850, 1399045818, 1399045513, 1399045511, 1399045508, 1399045507, 1399045506, 1399045505, 1399045486, 1399045483, 1399045480, 1399045477, 1399045468, 1399045466, 1399045464, 1399045462, 1399045460, 1399045458]} final : True mtd_id 4302 list_pids : [1399048168, 1399048133, 1399048097, 1399048054, 1399048019, 1399047886, 1399047849, 1399047817, 1399047785, 1399047752, 1399047718, 1399047586, 1399047583, 1399047580, 1399047578, 1399047576, 1399047574] Looping around the photos to save general results len do output : 1 /29372129Didn'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, '4214393') ('4302', '29372129', '1399048168', None, None, None, None, None, '4214393') ('4302', None, None, None, None, None, None, None, '4214393') ('4302', '29372129', '1399048133', None, None, None, None, None, '4214393') ('4302', None, None, None, None, None, None, None, '4214393') ('4302', '29372129', '1399048097', None, None, None, None, None, '4214393') ('4302', None, None, None, None, None, None, None, '4214393') ('4302', '29372129', '1399048054', None, None, None, None, None, '4214393') ('4302', None, None, None, None, None, None, None, '4214393') ('4302', '29372129', '1399048019', None, None, None, None, None, '4214393') ('4302', None, None, None, None, None, None, None, '4214393') ('4302', '29372129', '1399047886', None, None, None, None, None, '4214393') ('4302', None, None, None, None, None, None, None, '4214393') ('4302', '29372129', '1399047849', None, None, None, None, None, '4214393') ('4302', None, None, None, None, None, None, None, '4214393') ('4302', '29372129', '1399047817', None, None, None, None, None, '4214393') ('4302', None, None, None, None, None, None, None, '4214393') ('4302', '29372129', '1399047785', None, None, None, None, None, '4214393') ('4302', None, None, None, None, None, None, None, '4214393') ('4302', '29372129', '1399047752', None, None, None, None, None, '4214393') ('4302', None, None, None, None, None, None, None, '4214393') ('4302', '29372129', '1399047718', None, None, None, None, None, '4214393') ('4302', None, None, None, None, None, None, None, '4214393') ('4302', '29372129', '1399047586', None, None, None, None, None, '4214393') ('4302', None, None, None, None, None, None, None, '4214393') ('4302', '29372129', '1399047583', None, None, None, None, None, '4214393') ('4302', None, None, None, None, None, None, None, '4214393') ('4302', '29372129', '1399047580', None, None, None, None, None, '4214393') ('4302', None, None, None, None, None, None, None, '4214393') ('4302', '29372129', '1399047578', None, None, None, None, None, '4214393') ('4302', None, None, None, None, None, None, None, '4214393') ('4302', '29372129', '1399047576', None, None, None, None, None, '4214393') ('4302', None, None, None, None, None, None, None, '4214393') ('4302', '29372129', '1399047574', None, None, None, None, None, '4214393') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 18 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, '29372129', 'None', None, None, None, None, '4214393'), ('4302', '29372129', '1399048168', None, None, None, None, None, '4214393'), ('4302', '29372129', '1399048133', None, None, None, None, None, '4214393'), ('4302', '29372129', '1399048097', None, None, None, None, None, '4214393'), ('4302', '29372129', '1399048054', None, None, None, None, None, '4214393'), ('4302', '29372129', '1399048019', None, None, None, None, None, '4214393'), ('4302', '29372129', '1399047886', None, None, None, None, None, '4214393'), ('4302', '29372129', '1399047849', None, None, None, None, None, '4214393'), ('4302', '29372129', '1399047817', None, None, None, None, None, '4214393'), ('4302', '29372129', '1399047785', None, None, None, None, None, '4214393'), ('4302', '29372129', '1399047752', None, None, None, None, None, '4214393'), ('4302', '29372129', '1399047718', None, None, None, None, None, '4214393'), ('4302', '29372129', '1399047586', None, None, None, None, None, '4214393'), ('4302', '29372129', '1399047583', None, None, None, None, None, '4214393'), ('4302', '29372129', '1399047580', None, None, None, None, None, '4214393'), ('4302', '29372129', '1399047578', None, None, None, None, None, '4214393'), ('4302', '29372129', '1399047576', None, None, None, None, None, '4214393'), ('4302', '29372129', '1399047574', None, None, None, None, None, '4214393')] time used for this insertion : 0.017227888107299805 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.9543778896331787 time spend to save output : 0.017597198486328125 total time spend for step 5 : 2.971975088119507 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 (4214393) 2.32user 2.59system 0:09.87elapsed 49%CPU (0avgtext+0avgdata 168364maxresident)k 400inputs+11368outputs (4major+79704minor)pagefaults 0swaps