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 : 3869445 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 (4247650) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (4247650) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29554585 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['4247650'] with mtr_portfolio_ids : ['29554585'] and first list_photo_ids : [] new path : /proc/3869445/ Name: python3 Umask: 0002 State: R (running) Tgid: 3869445 Ngid: 0 Pid: 3869445 PPid: 3869444 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 3869445 NSpid: 3869445 NSpgid: 3868451 NSsid: 3868451 VmPeak: 1113364 kB VmSize: 1113364 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 104332 kB VmRSS: 104332 kB RssAnon: 66300 kB RssFile: 38032 kB RssShmem: 0 kB VmData: 872092 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: 51 nonvoluntary_ctxt_switches: 98 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '3869445', 'Ngid': '0', 'Pid': '3869445', 'PPid': '3869444', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '3869445', 'NSpid': '3869445', 'NSpgid': '3868451', 'NSsid': '3868451', 'VmPeak': '1113364 kB', 'VmSize': '1113364 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '104332 kB', 'VmRSS': '104332 kB', 'RssAnon': '66300 kB', 'RssFile': '38032 kB', 'RssShmem': '0 kB', 'VmData': '872092 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': '51', 'nonvoluntary_ctxt_switches': '98'} ('datou_batch_current', '3869445', '1113364', '0', '1113364', '872092', '104332', b'', 'marlene', '4247650') 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 (29554585) 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 (4247650 ) ) 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 (29554585) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1400009869, 'portfolio_id': 29554585}, {'photo_id': 1400009868, 'portfolio_id': 29554585}, {'photo_id': 1400009867, 'portfolio_id': 29554585}, {'photo_id': 1400009866, 'portfolio_id': 29554585}, {'photo_id': 1400009773, 'portfolio_id': 29554585}, {'photo_id': 1400009767, 'portfolio_id': 29554585}, {'photo_id': 1400009765, 'portfolio_id': 29554585}, {'photo_id': 1400009764, 'portfolio_id': 29554585}, {'photo_id': 1400009762, 'portfolio_id': 29554585}, {'photo_id': 1400009749, 'portfolio_id': 29554585}, {'photo_id': 1400009515, 'portfolio_id': 29554585}, {'photo_id': 1400009496, 'portfolio_id': 29554585}, {'photo_id': 1400009495, 'portfolio_id': 29554585}, {'photo_id': 1400009494, 'portfolio_id': 29554585}, {'photo_id': 1400009492, 'portfolio_id': 29554585}, {'photo_id': 1400009468, 'portfolio_id': 29554585}, {'photo_id': 1400009467, 'portfolio_id': 29554585}, {'photo_id': 1400009465, 'portfolio_id': 29554585}, {'photo_id': 1400009462, 'portfolio_id': 29554585}, {'photo_id': 1400009461, 'portfolio_id': 29554585}, {'photo_id': 1400009460, 'portfolio_id': 29554585}, {'photo_id': 1400009456, 'portfolio_id': 29554585}, {'photo_id': 1400009454, 'portfolio_id': 29554585}, {'photo_id': 1400009427, 'portfolio_id': 29554585}, {'photo_id': 1400009416, 'portfolio_id': 29554585}, {'photo_id': 1400009413, 'portfolio_id': 29554585}, {'photo_id': 1400009411, 'portfolio_id': 29554585}, {'photo_id': 1400009410, 'portfolio_id': 29554585}, {'photo_id': 1400009409, 'portfolio_id': 29554585}, {'photo_id': 1400009395, 'portfolio_id': 29554585}, {'photo_id': 1400009392, 'portfolio_id': 29554585}, {'photo_id': 1400009391, 'portfolio_id': 29554585}, {'photo_id': 1400009390, 'portfolio_id': 29554585}, {'photo_id': 1400009389, 'portfolio_id': 29554585}, {'photo_id': 1400009374, 'portfolio_id': 29554585}, {'photo_id': 1400009372, 'portfolio_id': 29554585}, {'photo_id': 1400009369, 'portfolio_id': 29554585}, {'photo_id': 1400009368, 'portfolio_id': 29554585}, {'photo_id': 1400009367, 'portfolio_id': 29554585}, {'photo_id': 1400009366, 'portfolio_id': 29554585}, {'photo_id': 1400009350, 'portfolio_id': 29554585}, {'photo_id': 1400009347, 'portfolio_id': 29554585}, {'photo_id': 1400009345, 'portfolio_id': 29554585}, {'photo_id': 1400009343, 'portfolio_id': 29554585}, {'photo_id': 1400009329, 'portfolio_id': 29554585}, {'photo_id': 1400009328, 'portfolio_id': 29554585}, {'photo_id': 1400009326, 'portfolio_id': 29554585}, {'photo_id': 1400009325, 'portfolio_id': 29554585}, {'photo_id': 1400009324, 'portfolio_id': 29554585}, {'photo_id': 1400009323, 'portfolio_id': 29554585}, {'photo_id': 1400009309, 'portfolio_id': 29554585}, {'photo_id': 1400009308, 'portfolio_id': 29554585}, {'photo_id': 1400009307, 'portfolio_id': 29554585}, {'photo_id': 1400009145, 'portfolio_id': 29554585}, {'photo_id': 1400009140, 'portfolio_id': 29554585}, {'photo_id': 1400009108, 'portfolio_id': 29554585}, {'photo_id': 1400008803, 'portfolio_id': 29554585}, {'photo_id': 1400008802, 'portfolio_id': 29554585}, {'photo_id': 1400008801, 'portfolio_id': 29554585}, {'photo_id': 1400008797, 'portfolio_id': 29554585}, {'photo_id': 1400008543, 'portfolio_id': 29554585}, {'photo_id': 1400008483, 'portfolio_id': 29554585}, {'photo_id': 1400008420, 'portfolio_id': 29554585}, {'photo_id': 1400007929, 'portfolio_id': 29554585}, {'photo_id': 1400007702, 'portfolio_id': 29554585}] map_portfolio_id_photo_id: {29554585: [1400009869, 1400009868, 1400009867, 1400009866, 1400009773, 1400009767, 1400009765, 1400009764, 1400009762, 1400009749, 1400009515, 1400009496, 1400009495, 1400009494, 1400009492, 1400009468, 1400009467, 1400009465, 1400009462, 1400009461, 1400009460, 1400009456, 1400009454, 1400009427, 1400009416, 1400009413, 1400009411, 1400009410, 1400009409, 1400009395, 1400009392, 1400009391, 1400009390, 1400009389, 1400009374, 1400009372, 1400009369, 1400009368, 1400009367, 1400009366, 1400009350, 1400009347, 1400009345, 1400009343, 1400009329, 1400009328, 1400009326, 1400009325, 1400009324, 1400009323, 1400009309, 1400009308, 1400009307, 1400009145, 1400009140, 1400009108, 1400008803, 1400008802, 1400008801, 1400008797, 1400008543, 1400008483, 1400008420, 1400007929, 1400007702]} ##### 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.018566608428955078 #### 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 Thu Dec 18 19:14:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29554585) 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 : 29554585 get user id for portfolio 29554585 get sub ptf for main ptf 29554585, type 3726 and hashtags ['cartonnette', 'kraft', 'mal_croppe', 'plastique', 'metal', 'Teint_Dans_La_Masse', 'flou', 'papier', 'Carton_gris', 'environnement', 'Carton_brun', '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`=29554585 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','kraft','mal_croppe','plastique','metal','Teint_Dans_La_Masse','flou','papier','Carton_gris','environnement','Carton_brun','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`=29554585 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','kraft','mal_croppe','plastique','metal','Teint_Dans_La_Masse','flou','papier','Carton_gris','environnement','Carton_brun','autre_refus')) AND mptpi.`min_score`=0.5 To do returned map {'cartonnette': {'main_port_id': 29554585, 'sub_port_id': 29554625, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20164375, 'last_updated_at': datetime.datetime(2025, 12, 18, 19, 12, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 18, 19, 12, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 18, 19, 3, 30)}, 'mal_croppe': {'main_port_id': 29554585, 'sub_port_id': 29554626, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20164376, 'last_updated_at': datetime.datetime(2025, 12, 18, 19, 12, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 18, 19, 12, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 18, 19, 3, 30)}, 'Carton_brun': {'main_port_id': 29554585, 'sub_port_id': 29554627, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20164377, 'last_updated_at': datetime.datetime(2025, 12, 18, 19, 12, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 18, 19, 12, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 18, 19, 3, 30)}, 'Carton_gris': {'main_port_id': 29554585, 'sub_port_id': 29554628, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20164378, 'last_updated_at': datetime.datetime(2025, 12, 18, 19, 12, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 18, 19, 12, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 18, 19, 3, 30)}, 'kraft': {'main_port_id': 29554585, 'sub_port_id': 29554629, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20164379, 'last_updated_at': datetime.datetime(2025, 12, 18, 19, 12, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 18, 19, 12, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 18, 19, 3, 30)}, 'Teint_Dans_La_Masse': {'main_port_id': 29554585, 'sub_port_id': 29554630, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20164380, 'last_updated_at': datetime.datetime(2025, 12, 18, 19, 12, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 18, 19, 12, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 18, 19, 3, 30)}, 'papier': {'main_port_id': 29554585, 'sub_port_id': 29554631, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20164381, 'last_updated_at': datetime.datetime(2025, 12, 18, 19, 12, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 18, 19, 12, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 18, 19, 3, 30)}, 'metal': {'main_port_id': 29554585, 'sub_port_id': 29554632, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20164382, 'last_updated_at': datetime.datetime(2025, 12, 18, 19, 12, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 18, 19, 12, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 18, 19, 3, 30)}, 'autre_refus': {'main_port_id': 29554585, 'sub_port_id': 29554633, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20164383, 'last_updated_at': datetime.datetime(2025, 12, 18, 19, 12, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 18, 19, 12, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 18, 19, 3, 30)}, 'flou': {'main_port_id': 29554585, 'sub_port_id': 29554634, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20164384, 'last_updated_at': datetime.datetime(2025, 12, 18, 19, 12, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 18, 19, 12, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 18, 19, 3, 30)}, 'plastique': {'main_port_id': 29554585, 'sub_port_id': 29554635, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20164385, 'last_updated_at': datetime.datetime(2025, 12, 18, 19, 12, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 18, 19, 12, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 18, 19, 3, 30)}, 'environnement': {'main_port_id': 29554585, 'sub_port_id': 29554636, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20164386, 'last_updated_at': datetime.datetime(2025, 12, 18, 19, 12, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 18, 19, 12, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 18, 19, 3, 30)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29554625 , 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=29554585 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 (29554625) result : ((1400009321,), (1400009322,), (1400009384,), (1400009483,), (1400009484,), (1400009485,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29554585) result : ((1400007702,), (1400007929,), (1400008420,), (1400008483,), (1400008543,), (1400008797,), (1400008801,), (1400008802,), (1400008803,), (1400009108,), (1400009140,), (1400009145,), (1400009307,), (1400009308,), (1400009309,), (1400009323,), (1400009324,), (1400009325,), (1400009326,), (1400009328,), (1400009329,), (1400009343,), (1400009345,), (1400009347,), (1400009350,), (1400009366,), (1400009367,), (1400009368,), (1400009369,), (1400009372,), (1400009374,), (1400009389,), (1400009390,), (1400009391,), (1400009392,), (1400009395,), (1400009409,), (1400009410,), (1400009411,), (1400009413,), (1400009416,), (1400009427,), (1400009454,), (1400009456,), (1400009460,), (1400009461,), (1400009462,), (1400009465,), (1400009467,), (1400009468,), (1400009492,), (1400009494,), (1400009495,), (1400009496,), (1400009515,), (1400009749,), (1400009762,), (1400009764,), (1400009765,), (1400009767,), (1400009773,), (1400009866,), (1400009867,), (1400009868,), (1400009869,)) 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 29554626 , 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=29554585 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 (29554626) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29554585) result : ((1400007702,), (1400007929,), (1400008420,), (1400008483,), (1400008543,), (1400008797,), (1400008801,), (1400008802,), (1400008803,), (1400009108,), (1400009140,), (1400009145,), (1400009307,), (1400009308,), (1400009309,), (1400009323,), (1400009324,), (1400009325,), (1400009326,), (1400009328,), (1400009329,), (1400009343,), (1400009345,), (1400009347,), (1400009350,), (1400009366,), (1400009367,), (1400009368,), (1400009369,), (1400009372,), (1400009374,), (1400009389,), (1400009390,), (1400009391,), (1400009392,), (1400009395,), (1400009409,), (1400009410,), (1400009411,), (1400009413,), (1400009416,), (1400009427,), (1400009454,), (1400009456,), (1400009460,), (1400009461,), (1400009462,), (1400009465,), (1400009467,), (1400009468,), (1400009492,), (1400009494,), (1400009495,), (1400009496,), (1400009515,), (1400009749,), (1400009762,), (1400009764,), (1400009765,), (1400009767,), (1400009773,), (1400009866,), (1400009867,), (1400009868,), (1400009869,)) 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 29554627 , 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=29554585 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 (29554627) result : ((1400009364,), (1400009385,), (1400009386,), (1400009487,), (1400009488,), (1400009489,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29554585) result : ((1400007702,), (1400007929,), (1400008420,), (1400008483,), (1400008543,), (1400008797,), (1400008801,), (1400008802,), (1400008803,), (1400009108,), (1400009140,), (1400009145,), (1400009307,), (1400009308,), (1400009309,), (1400009323,), (1400009324,), (1400009325,), (1400009326,), (1400009328,), (1400009329,), (1400009343,), (1400009345,), (1400009347,), (1400009350,), (1400009366,), (1400009367,), (1400009368,), (1400009369,), (1400009372,), (1400009374,), (1400009389,), (1400009390,), (1400009391,), (1400009392,), (1400009395,), (1400009409,), (1400009410,), (1400009411,), (1400009413,), (1400009416,), (1400009427,), (1400009454,), (1400009456,), (1400009460,), (1400009461,), (1400009462,), (1400009465,), (1400009467,), (1400009468,), (1400009492,), (1400009494,), (1400009495,), (1400009496,), (1400009515,), (1400009749,), (1400009762,), (1400009764,), (1400009765,), (1400009767,), (1400009773,), (1400009866,), (1400009867,), (1400009868,), (1400009869,)) 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 29554628 , 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=29554585 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 (29554628) result : ((1400009313,), (1400009381,), (1400009382,), (1400009383,), (1400009451,), (1400009477,), (1400009478,), (1400009479,), (1400009480,), (1400009481,), (1400009482,), (1400009878,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29554585) result : ((1400007702,), (1400007929,), (1400008420,), (1400008483,), (1400008543,), (1400008797,), (1400008801,), (1400008802,), (1400008803,), (1400009108,), (1400009140,), (1400009145,), (1400009307,), (1400009308,), (1400009309,), (1400009323,), (1400009324,), (1400009325,), (1400009326,), (1400009328,), (1400009329,), (1400009343,), (1400009345,), (1400009347,), (1400009350,), (1400009366,), (1400009367,), (1400009368,), (1400009369,), (1400009372,), (1400009374,), (1400009389,), (1400009390,), (1400009391,), (1400009392,), (1400009395,), (1400009409,), (1400009410,), (1400009411,), (1400009413,), (1400009416,), (1400009427,), (1400009454,), (1400009456,), (1400009460,), (1400009461,), (1400009462,), (1400009465,), (1400009467,), (1400009468,), (1400009492,), (1400009494,), (1400009495,), (1400009496,), (1400009515,), (1400009749,), (1400009762,), (1400009764,), (1400009765,), (1400009767,), (1400009773,), (1400009866,), (1400009867,), (1400009868,), (1400009869,)) 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 29554629 , 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=29554585 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 (29554629) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29554585) result : ((1400007702,), (1400007929,), (1400008420,), (1400008483,), (1400008543,), (1400008797,), (1400008801,), (1400008802,), (1400008803,), (1400009108,), (1400009140,), (1400009145,), (1400009307,), (1400009308,), (1400009309,), (1400009323,), (1400009324,), (1400009325,), (1400009326,), (1400009328,), (1400009329,), (1400009343,), (1400009345,), (1400009347,), (1400009350,), (1400009366,), (1400009367,), (1400009368,), (1400009369,), (1400009372,), (1400009374,), (1400009389,), (1400009390,), (1400009391,), (1400009392,), (1400009395,), (1400009409,), (1400009410,), (1400009411,), (1400009413,), (1400009416,), (1400009427,), (1400009454,), (1400009456,), (1400009460,), (1400009461,), (1400009462,), (1400009465,), (1400009467,), (1400009468,), (1400009492,), (1400009494,), (1400009495,), (1400009496,), (1400009515,), (1400009749,), (1400009762,), (1400009764,), (1400009765,), (1400009767,), (1400009773,), (1400009866,), (1400009867,), (1400009868,), (1400009869,)) 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 29554630 , 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=29554585 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 (29554630) result : ((1400009359,), (1400009360,), (1400009361,), (1400009362,), (1400009363,), (1400009471,), (1400009877,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29554585) result : ((1400007702,), (1400007929,), (1400008420,), (1400008483,), (1400008543,), (1400008797,), (1400008801,), (1400008802,), (1400008803,), (1400009108,), (1400009140,), (1400009145,), (1400009307,), (1400009308,), (1400009309,), (1400009323,), (1400009324,), (1400009325,), (1400009326,), (1400009328,), (1400009329,), (1400009343,), (1400009345,), (1400009347,), (1400009350,), (1400009366,), (1400009367,), (1400009368,), (1400009369,), (1400009372,), (1400009374,), (1400009389,), (1400009390,), (1400009391,), (1400009392,), (1400009395,), (1400009409,), (1400009410,), (1400009411,), (1400009413,), (1400009416,), (1400009427,), (1400009454,), (1400009456,), (1400009460,), (1400009461,), (1400009462,), (1400009465,), (1400009467,), (1400009468,), (1400009492,), (1400009494,), (1400009495,), (1400009496,), (1400009515,), (1400009749,), (1400009762,), (1400009764,), (1400009765,), (1400009767,), (1400009773,), (1400009866,), (1400009867,), (1400009868,), (1400009869,)) 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 29554631 , 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=29554585 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 (29554631) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29554585) result : ((1400007702,), (1400007929,), (1400008420,), (1400008483,), (1400008543,), (1400008797,), (1400008801,), (1400008802,), (1400008803,), (1400009108,), (1400009140,), (1400009145,), (1400009307,), (1400009308,), (1400009309,), (1400009323,), (1400009324,), (1400009325,), (1400009326,), (1400009328,), (1400009329,), (1400009343,), (1400009345,), (1400009347,), (1400009350,), (1400009366,), (1400009367,), (1400009368,), (1400009369,), (1400009372,), (1400009374,), (1400009389,), (1400009390,), (1400009391,), (1400009392,), (1400009395,), (1400009409,), (1400009410,), (1400009411,), (1400009413,), (1400009416,), (1400009427,), (1400009454,), (1400009456,), (1400009460,), (1400009461,), (1400009462,), (1400009465,), (1400009467,), (1400009468,), (1400009492,), (1400009494,), (1400009495,), (1400009496,), (1400009515,), (1400009749,), (1400009762,), (1400009764,), (1400009765,), (1400009767,), (1400009773,), (1400009866,), (1400009867,), (1400009868,), (1400009869,)) 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 29554632 , 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=29554585 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 (29554632) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29554585) result : ((1400007702,), (1400007929,), (1400008420,), (1400008483,), (1400008543,), (1400008797,), (1400008801,), (1400008802,), (1400008803,), (1400009108,), (1400009140,), (1400009145,), (1400009307,), (1400009308,), (1400009309,), (1400009323,), (1400009324,), (1400009325,), (1400009326,), (1400009328,), (1400009329,), (1400009343,), (1400009345,), (1400009347,), (1400009350,), (1400009366,), (1400009367,), (1400009368,), (1400009369,), (1400009372,), (1400009374,), (1400009389,), (1400009390,), (1400009391,), (1400009392,), (1400009395,), (1400009409,), (1400009410,), (1400009411,), (1400009413,), (1400009416,), (1400009427,), (1400009454,), (1400009456,), (1400009460,), (1400009461,), (1400009462,), (1400009465,), (1400009467,), (1400009468,), (1400009492,), (1400009494,), (1400009495,), (1400009496,), (1400009515,), (1400009749,), (1400009762,), (1400009764,), (1400009765,), (1400009767,), (1400009773,), (1400009866,), (1400009867,), (1400009868,), (1400009869,)) 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 29554633 , 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=29554585 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 (29554633) result : ((1400009319,), (1400009320,), (1400009474,), (1400009475,), (1400009476,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29554585) result : ((1400007702,), (1400007929,), (1400008420,), (1400008483,), (1400008543,), (1400008797,), (1400008801,), (1400008802,), (1400008803,), (1400009108,), (1400009140,), (1400009145,), (1400009307,), (1400009308,), (1400009309,), (1400009323,), (1400009324,), (1400009325,), (1400009326,), (1400009328,), (1400009329,), (1400009343,), (1400009345,), (1400009347,), (1400009350,), (1400009366,), (1400009367,), (1400009368,), (1400009369,), (1400009372,), (1400009374,), (1400009389,), (1400009390,), (1400009391,), (1400009392,), (1400009395,), (1400009409,), (1400009410,), (1400009411,), (1400009413,), (1400009416,), (1400009427,), (1400009454,), (1400009456,), (1400009460,), (1400009461,), (1400009462,), (1400009465,), (1400009467,), (1400009468,), (1400009492,), (1400009494,), (1400009495,), (1400009496,), (1400009515,), (1400009749,), (1400009762,), (1400009764,), (1400009765,), (1400009767,), (1400009773,), (1400009866,), (1400009867,), (1400009868,), (1400009869,)) 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 29554634 , 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=29554585 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 (29554634) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29554585) result : ((1400007702,), (1400007929,), (1400008420,), (1400008483,), (1400008543,), (1400008797,), (1400008801,), (1400008802,), (1400008803,), (1400009108,), (1400009140,), (1400009145,), (1400009307,), (1400009308,), (1400009309,), (1400009323,), (1400009324,), (1400009325,), (1400009326,), (1400009328,), (1400009329,), (1400009343,), (1400009345,), (1400009347,), (1400009350,), (1400009366,), (1400009367,), (1400009368,), (1400009369,), (1400009372,), (1400009374,), (1400009389,), (1400009390,), (1400009391,), (1400009392,), (1400009395,), (1400009409,), (1400009410,), (1400009411,), (1400009413,), (1400009416,), (1400009427,), (1400009454,), (1400009456,), (1400009460,), (1400009461,), (1400009462,), (1400009465,), (1400009467,), (1400009468,), (1400009492,), (1400009494,), (1400009495,), (1400009496,), (1400009515,), (1400009749,), (1400009762,), (1400009764,), (1400009765,), (1400009767,), (1400009773,), (1400009866,), (1400009867,), (1400009868,), (1400009869,)) 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 29554635 , 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=29554585 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 (29554635) result : ((1400009352,), (1400009353,), (1400009365,), (1400009387,), (1400009388,), (1400009490,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29554585) result : ((1400007702,), (1400007929,), (1400008420,), (1400008483,), (1400008543,), (1400008797,), (1400008801,), (1400008802,), (1400008803,), (1400009108,), (1400009140,), (1400009145,), (1400009307,), (1400009308,), (1400009309,), (1400009323,), (1400009324,), (1400009325,), (1400009326,), (1400009328,), (1400009329,), (1400009343,), (1400009345,), (1400009347,), (1400009350,), (1400009366,), (1400009367,), (1400009368,), (1400009369,), (1400009372,), (1400009374,), (1400009389,), (1400009390,), (1400009391,), (1400009392,), (1400009395,), (1400009409,), (1400009410,), (1400009411,), (1400009413,), (1400009416,), (1400009427,), (1400009454,), (1400009456,), (1400009460,), (1400009461,), (1400009462,), (1400009465,), (1400009467,), (1400009468,), (1400009492,), (1400009494,), (1400009495,), (1400009496,), (1400009515,), (1400009749,), (1400009762,), (1400009764,), (1400009765,), (1400009767,), (1400009773,), (1400009866,), (1400009867,), (1400009868,), (1400009869,)) 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 29554636 , 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=29554585 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 (29554636) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29554585) result : ((1400007702,), (1400007929,), (1400008420,), (1400008483,), (1400008543,), (1400008797,), (1400008801,), (1400008802,), (1400008803,), (1400009108,), (1400009140,), (1400009145,), (1400009307,), (1400009308,), (1400009309,), (1400009323,), (1400009324,), (1400009325,), (1400009326,), (1400009328,), (1400009329,), (1400009343,), (1400009345,), (1400009347,), (1400009350,), (1400009366,), (1400009367,), (1400009368,), (1400009369,), (1400009372,), (1400009374,), (1400009389,), (1400009390,), (1400009391,), (1400009392,), (1400009395,), (1400009409,), (1400009410,), (1400009411,), (1400009413,), (1400009416,), (1400009427,), (1400009454,), (1400009456,), (1400009460,), (1400009461,), (1400009462,), (1400009465,), (1400009467,), (1400009468,), (1400009492,), (1400009494,), (1400009495,), (1400009496,), (1400009515,), (1400009749,), (1400009762,), (1400009764,), (1400009765,), (1400009767,), (1400009773,), (1400009866,), (1400009867,), (1400009868,), (1400009869,)) 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`=29554585 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','kraft','mal_croppe','plastique','metal','Teint_Dans_La_Masse','flou','papier','Carton_gris','environnement','Carton_brun','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`=29554585 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','kraft','mal_croppe','plastique','metal','Teint_Dans_La_Masse','flou','papier','Carton_gris','environnement','Carton_brun','autre_refus')) AND mptpi.`min_score`=0.5 To do returned map {'cartonnette': {'main_port_id': 29554585, 'sub_port_id': 29554646, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20164387, 'last_updated_at': datetime.datetime(2025, 12, 18, 19, 3, 32), 'last_updated_at_desc': datetime.datetime(2025, 12, 18, 19, 3, 32), 'last_updated_at_asc': datetime.datetime(2025, 12, 18, 19, 3, 32)}, 'mal_croppe': {'main_port_id': 29554585, 'sub_port_id': 29554647, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20164388, 'last_updated_at': datetime.datetime(2025, 12, 18, 19, 3, 32), 'last_updated_at_desc': datetime.datetime(2025, 12, 18, 19, 3, 32), 'last_updated_at_asc': datetime.datetime(2025, 12, 18, 19, 3, 32)}, 'Carton_brun': {'main_port_id': 29554585, 'sub_port_id': 29554649, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20164389, 'last_updated_at': datetime.datetime(2025, 12, 18, 19, 3, 32), 'last_updated_at_desc': datetime.datetime(2025, 12, 18, 19, 3, 32), 'last_updated_at_asc': datetime.datetime(2025, 12, 18, 19, 3, 32)}, 'Carton_gris': {'main_port_id': 29554585, 'sub_port_id': 29554650, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20164390, 'last_updated_at': datetime.datetime(2025, 12, 18, 19, 3, 32), 'last_updated_at_desc': datetime.datetime(2025, 12, 18, 19, 3, 32), 'last_updated_at_asc': datetime.datetime(2025, 12, 18, 19, 3, 32)}, 'kraft': {'main_port_id': 29554585, 'sub_port_id': 29554651, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20164391, 'last_updated_at': datetime.datetime(2025, 12, 18, 19, 3, 32), 'last_updated_at_desc': datetime.datetime(2025, 12, 18, 19, 3, 32), 'last_updated_at_asc': datetime.datetime(2025, 12, 18, 19, 3, 32)}, 'Teint_Dans_La_Masse': {'main_port_id': 29554585, 'sub_port_id': 29554653, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20164392, 'last_updated_at': datetime.datetime(2025, 12, 18, 19, 3, 32), 'last_updated_at_desc': datetime.datetime(2025, 12, 18, 19, 3, 32), 'last_updated_at_asc': datetime.datetime(2025, 12, 18, 19, 3, 32)}, 'papier': {'main_port_id': 29554585, 'sub_port_id': 29554654, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20164393, 'last_updated_at': datetime.datetime(2025, 12, 18, 19, 3, 32), 'last_updated_at_desc': datetime.datetime(2025, 12, 18, 19, 3, 32), 'last_updated_at_asc': datetime.datetime(2025, 12, 18, 19, 3, 32)}, 'metal': {'main_port_id': 29554585, 'sub_port_id': 29554655, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20164394, 'last_updated_at': datetime.datetime(2025, 12, 18, 19, 3, 32), 'last_updated_at_desc': datetime.datetime(2025, 12, 18, 19, 3, 32), 'last_updated_at_asc': datetime.datetime(2025, 12, 18, 19, 3, 32)}, 'autre_refus': {'main_port_id': 29554585, 'sub_port_id': 29554656, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20164395, 'last_updated_at': datetime.datetime(2025, 12, 18, 19, 3, 32), 'last_updated_at_desc': datetime.datetime(2025, 12, 18, 19, 3, 32), 'last_updated_at_asc': datetime.datetime(2025, 12, 18, 19, 3, 32)}, 'flou': {'main_port_id': 29554585, 'sub_port_id': 29554658, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20164396, 'last_updated_at': datetime.datetime(2025, 12, 18, 19, 3, 32), 'last_updated_at_desc': datetime.datetime(2025, 12, 18, 19, 3, 32), 'last_updated_at_asc': datetime.datetime(2025, 12, 18, 19, 3, 32)}, 'plastique': {'main_port_id': 29554585, 'sub_port_id': 29554659, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20164397, 'last_updated_at': datetime.datetime(2025, 12, 18, 19, 3, 32), 'last_updated_at_desc': datetime.datetime(2025, 12, 18, 19, 3, 32), 'last_updated_at_asc': datetime.datetime(2025, 12, 18, 19, 3, 32)}, 'environnement': {'main_port_id': 29554585, 'sub_port_id': 29554660, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20164398, 'last_updated_at': datetime.datetime(2025, 12, 18, 19, 12, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 18, 19, 12, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 18, 19, 3, 32)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29554646,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29554625 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29554647,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29554626 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29554649,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29554627 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29554650,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29554628 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29554651,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29554629 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29554653,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29554630 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29554654,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29554631 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29554655,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29554632 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29554656,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29554633 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29554658,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29554634 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29554659,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29554635 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29554660,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29554636 lien utilise dans velours : https://marlene.fotonower.com/velours/29554646,29554647,29554649,29554650,29554651,29554653,29554654,29554655,29554656,29554658,29554659,29554660?tags=cartonnette,mal_croppe,Carton_brun,Carton_gris,kraft,Teint_Dans_La_Masse,papier,metal,autre_refus,flou,plastique,environnement After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29554585]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1400009869, 1400009868, 1400009867, 1400009866, 1400009773, 1400009767, 1400009765, 1400009764, 1400009762, 1400009749, 1400009515, 1400009496, 1400009495, 1400009494, 1400009492] map_info['map_portfolio_photo'] : {29554585: [1400009869, 1400009868, 1400009867, 1400009866, 1400009773, 1400009767, 1400009765, 1400009764, 1400009762, 1400009749, 1400009515, 1400009496, 1400009495, 1400009494, 1400009492, 1400009468, 1400009467, 1400009465, 1400009462, 1400009461, 1400009460, 1400009456, 1400009454, 1400009427, 1400009416, 1400009413, 1400009411, 1400009410, 1400009409, 1400009395, 1400009392, 1400009391, 1400009390, 1400009389, 1400009374, 1400009372, 1400009369, 1400009368, 1400009367, 1400009366, 1400009350, 1400009347, 1400009345, 1400009343, 1400009329, 1400009328, 1400009326, 1400009325, 1400009324, 1400009323, 1400009309, 1400009308, 1400009307, 1400009145, 1400009140, 1400009108, 1400008803, 1400008802, 1400008801, 1400008797, 1400008543, 1400008483, 1400008420, 1400007929, 1400007702]} final : False mtd_id 4302 list_pids : [1400009869, 1400009868, 1400009867, 1400009866, 1400009773, 1400009767, 1400009765, 1400009764, 1400009762, 1400009749, 1400009515, 1400009496, 1400009495, 1400009494, 1400009492] Looping around the photos to save general results len do output : 1 /29554585. 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, '4247650') ('4302', '29554585', '1400009869', None, None, None, None, None, '4247650') ('4302', None, None, None, None, None, None, None, '4247650') ('4302', '29554585', '1400009868', None, None, None, None, None, '4247650') ('4302', None, None, None, None, None, None, None, '4247650') ('4302', '29554585', '1400009867', None, None, None, None, None, '4247650') ('4302', None, None, None, None, None, None, None, '4247650') ('4302', '29554585', '1400009866', None, None, None, None, None, '4247650') ('4302', None, None, None, None, None, None, None, '4247650') ('4302', '29554585', '1400009773', None, None, None, None, None, '4247650') ('4302', None, None, None, None, None, None, None, '4247650') ('4302', '29554585', '1400009767', None, None, None, None, None, '4247650') ('4302', None, None, None, None, None, None, None, '4247650') ('4302', '29554585', '1400009765', None, None, None, None, None, '4247650') ('4302', None, None, None, None, None, None, None, '4247650') ('4302', '29554585', '1400009764', None, None, None, None, None, '4247650') ('4302', None, None, None, None, None, None, None, '4247650') ('4302', '29554585', '1400009762', None, None, None, None, None, '4247650') ('4302', None, None, None, None, None, None, None, '4247650') ('4302', '29554585', '1400009749', None, None, None, None, None, '4247650') ('4302', None, None, None, None, None, None, None, '4247650') ('4302', '29554585', '1400009515', None, None, None, None, None, '4247650') ('4302', None, None, None, None, None, None, None, '4247650') ('4302', '29554585', '1400009496', None, None, None, None, None, '4247650') ('4302', None, None, None, None, None, None, None, '4247650') ('4302', '29554585', '1400009495', None, None, None, None, None, '4247650') ('4302', None, None, None, None, None, None, None, '4247650') ('4302', '29554585', '1400009494', None, None, None, None, None, '4247650') ('4302', None, None, None, None, None, None, None, '4247650') ('4302', '29554585', '1400009492', None, None, None, None, None, '4247650') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 16 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, '29554585', "{'cartonnette': 29554625, 'mal_croppe': 29554626, 'Carton_brun': 29554627, 'Carton_gris': 29554628, 'kraft': 29554629, 'Teint_Dans_La_Masse': 29554630, 'papier': 29554631, 'metal': 29554632, 'autre_refus': 29554633, 'flou': 29554634, 'plastique': 29554635, 'environnement': 29554636}", None, None, None, None, '4247650'), ('4302', '29554585', '1400009869', None, None, None, None, None, '4247650'), ('4302', '29554585', '1400009868', None, None, None, None, None, '4247650'), ('4302', '29554585', '1400009867', None, None, None, None, None, '4247650'), ('4302', '29554585', '1400009866', None, None, None, None, None, '4247650'), ('4302', '29554585', '1400009773', None, None, None, None, None, '4247650'), ('4302', '29554585', '1400009767', None, None, None, None, None, '4247650'), ('4302', '29554585', '1400009765', None, None, None, None, None, '4247650'), ('4302', '29554585', '1400009764', None, None, None, None, None, '4247650'), ('4302', '29554585', '1400009762', None, None, None, None, None, '4247650'), ('4302', '29554585', '1400009749', None, None, None, None, None, '4247650'), ('4302', '29554585', '1400009515', None, None, None, None, None, '4247650'), ('4302', '29554585', '1400009496', None, None, None, None, None, '4247650'), ('4302', '29554585', '1400009495', None, None, None, None, None, '4247650'), ('4302', '29554585', '1400009494', None, None, None, None, None, '4247650'), ('4302', '29554585', '1400009492', None, None, None, None, None, '4247650')] time used for this insertion : 0.019501209259033203 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.8689484596252441 time spend to save output : 0.01983475685119629 total time spend for step 1 : 1.8887832164764404 step2:final Thu Dec 18 19:15:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! 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 (29554585) 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 29554585 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1400007929,1400008543,1400007702,1400008483,1400008420,1400008803,1400008802,1400008801,1400008797,1400009145,1400009140,1400009108,1400009309,1400009308,1400009307,1400009329,1400009328,1400009326,1400009325,1400009324,1400009323,1400009350,1400009347,1400009345,1400009343,1400009374,1400009372,1400009369,1400009368,1400009367,1400009366,1400009456,1400009395,1400009392,1400009454,1400009391,1400009427,1400009390,1400009416,1400009389,1400009413,1400009411,1400009410,1400009409,1400009468,1400009467,1400009465,1400009462,1400009461,1400009460,1400009515,1400009496,1400009495,1400009494,1400009492,1400009773,1400009767,1400009765,1400009764,1400009762,1400009749,1400009869,1400009868,1400009867,1400009866); 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([29554585]) Inside saveOutput : final : False verbose : True original output for save of step final : {1400009869: ('0.027274101887959055',), 1400009868: ('0.027274101887959055',), 1400009867: ('0.027274101887959055',), 1400009866: ('0.027274101887959055',), 1400009773: ('0.027274101887959055',), 1400009767: ('0.027274101887959055',), 1400009765: ('0.027274101887959055',), 1400009764: ('0.027274101887959055',), 1400009762: ('0.027274101887959055',), 1400009749: ('0.027274101887959055',), 1400009515: ('0.027274101887959055',), 1400009496: ('0.027274101887959055',), 1400009495: ('0.027274101887959055',), 1400009494: ('0.027274101887959055',), 1400009492: ('0.027274101887959055',)} new output for save of step final : {1400009869: ('0.027274101887959055',), 1400009868: ('0.027274101887959055',), 1400009867: ('0.027274101887959055',), 1400009866: ('0.027274101887959055',), 1400009773: ('0.027274101887959055',), 1400009767: ('0.027274101887959055',), 1400009765: ('0.027274101887959055',), 1400009764: ('0.027274101887959055',), 1400009762: ('0.027274101887959055',), 1400009749: ('0.027274101887959055',), 1400009515: ('0.027274101887959055',), 1400009496: ('0.027274101887959055',), 1400009495: ('0.027274101887959055',), 1400009494: ('0.027274101887959055',), 1400009492: ('0.027274101887959055',)} [1400009869, 1400009868, 1400009867, 1400009866, 1400009773, 1400009767, 1400009765, 1400009764, 1400009762, 1400009749, 1400009515, 1400009496, 1400009495, 1400009494, 1400009492] map_info['map_portfolio_photo'] : {29554585: [1400009869, 1400009868, 1400009867, 1400009866, 1400009773, 1400009767, 1400009765, 1400009764, 1400009762, 1400009749, 1400009515, 1400009496, 1400009495, 1400009494, 1400009492, 1400009468, 1400009467, 1400009465, 1400009462, 1400009461, 1400009460, 1400009456, 1400009454, 1400009427, 1400009416, 1400009413, 1400009411, 1400009410, 1400009409, 1400009395, 1400009392, 1400009391, 1400009390, 1400009389, 1400009374, 1400009372, 1400009369, 1400009368, 1400009367, 1400009366, 1400009350, 1400009347, 1400009345, 1400009343, 1400009329, 1400009328, 1400009326, 1400009325, 1400009324, 1400009323, 1400009309, 1400009308, 1400009307, 1400009145, 1400009140, 1400009108, 1400008803, 1400008802, 1400008801, 1400008797, 1400008543, 1400008483, 1400008420, 1400007929, 1400007702]} final : False mtd_id 4302 list_pids : [1400009869, 1400009868, 1400009867, 1400009866, 1400009773, 1400009767, 1400009765, 1400009764, 1400009762, 1400009749, 1400009515, 1400009496, 1400009495, 1400009494, 1400009492] Looping around the photos to save general results len do output : 15 /1400009869.Didn't retrieve data . /1400009868.Didn't retrieve data . /1400009867.Didn't retrieve data . /1400009866.Didn't retrieve data . /1400009773.Didn't retrieve data . /1400009767.Didn't retrieve data . /1400009765.Didn't retrieve data . /1400009764.Didn't retrieve data . /1400009762.Didn't retrieve data . /1400009749.Didn't retrieve data . /1400009515.Didn't retrieve data . /1400009496.Didn't retrieve data . /1400009495.Didn't retrieve data . /1400009494.Didn't retrieve data . /1400009492.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, '4247650') ('4302', '29554585', '1400009869', None, None, None, None, None, '4247650') ('4302', None, None, None, None, None, None, None, '4247650') ('4302', '29554585', '1400009868', None, None, None, None, None, '4247650') ('4302', None, None, None, None, None, None, None, '4247650') ('4302', '29554585', '1400009867', None, None, None, None, None, '4247650') ('4302', None, None, None, None, None, None, None, '4247650') ('4302', '29554585', '1400009866', None, None, None, None, None, '4247650') ('4302', None, None, None, None, None, None, None, '4247650') ('4302', '29554585', '1400009773', None, None, None, None, None, '4247650') ('4302', None, None, None, None, None, None, None, '4247650') ('4302', '29554585', '1400009767', None, None, None, None, None, '4247650') ('4302', None, None, None, None, None, None, None, '4247650') ('4302', '29554585', '1400009765', None, None, None, None, None, '4247650') ('4302', None, None, None, None, None, None, None, '4247650') ('4302', '29554585', '1400009764', None, None, None, None, None, '4247650') ('4302', None, None, None, None, None, None, None, '4247650') ('4302', '29554585', '1400009762', None, None, None, None, None, '4247650') ('4302', None, None, None, None, None, None, None, '4247650') ('4302', '29554585', '1400009749', None, None, None, None, None, '4247650') ('4302', None, None, None, None, None, None, None, '4247650') ('4302', '29554585', '1400009515', None, None, None, None, None, '4247650') ('4302', None, None, None, None, None, None, None, '4247650') ('4302', '29554585', '1400009496', None, None, None, None, None, '4247650') ('4302', None, None, None, None, None, None, None, '4247650') ('4302', '29554585', '1400009495', None, None, None, None, None, '4247650') ('4302', None, None, None, None, None, None, None, '4247650') ('4302', '29554585', '1400009494', None, None, None, None, None, '4247650') ('4302', None, None, None, None, None, None, None, '4247650') ('4302', '29554585', '1400009492', None, None, None, None, None, '4247650') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 45 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', '29554585', '1400009869', '0.027274101887959055', None, None, None, None, '4247650'), ('4302', '29554585', '1400009868', '0.027274101887959055', None, None, None, None, '4247650'), ('4302', '29554585', '1400009867', '0.027274101887959055', None, None, None, None, '4247650'), ('4302', '29554585', '1400009866', '0.027274101887959055', None, None, None, None, '4247650'), ('4302', '29554585', '1400009773', '0.027274101887959055', None, None, None, None, '4247650'), ('4302', '29554585', '1400009767', '0.027274101887959055', None, None, None, None, '4247650'), ('4302', '29554585', '1400009765', '0.027274101887959055', None, None, None, None, '4247650'), ('4302', '29554585', '1400009764', '0.027274101887959055', None, None, None, None, '4247650'), ('4302', '29554585', '1400009762', '0.027274101887959055', None, None, None, None, '4247650'), ('4302', '29554585', '1400009749', '0.027274101887959055', None, None, None, None, '4247650'), ('4302', '29554585', '1400009515', '0.027274101887959055', None, None, None, None, '4247650'), ('4302', '29554585', '1400009496', '0.027274101887959055', None, None, None, None, '4247650'), ('4302', '29554585', '1400009495', '0.027274101887959055', None, None, None, None, '4247650'), ('4302', '29554585', '1400009494', '0.027274101887959055', None, None, None, None, '4247650'), ('4302', '29554585', '1400009492', '0.027274101887959055', None, None, None, None, '4247650')] time used for this insertion : 0.019852399826049805 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.0843353271484375 time spend to save output : 0.02050471305847168 total time spend for step 2 : 0.10484004020690918 step3:velours_tree Thu Dec 18 19:15:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {29554585: [{'cartonnette': 29554625, 'mal_croppe': 29554626, 'Carton_brun': 29554627, 'Carton_gris': 29554628, 'kraft': 29554629, 'Teint_Dans_La_Masse': 29554630, 'papier': 29554631, 'metal': 29554632, 'autre_refus': 29554633, 'flou': 29554634, 'plastique': 29554635, 'environnement': 29554636}]} input_args_next_step : {29554585: ()} output_args : {29554585: [{'cartonnette': 29554625, 'mal_croppe': 29554626, 'Carton_brun': 29554627, 'Carton_gris': 29554628, 'kraft': 29554629, 'Teint_Dans_La_Masse': 29554630, 'papier': 29554631, 'metal': 29554632, 'autre_refus': 29554633, 'flou': 29554634, 'plastique': 29554635, 'environnement': 29554636}]} args : 29554585 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 : ({'cartonnette': 29554625, 'mal_croppe': 29554626, 'Carton_brun': 29554627, 'Carton_gris': 29554628, 'kraft': 29554629, 'Teint_Dans_La_Masse': 29554630, 'papier': 29554631, 'metal': 29554632, 'autre_refus': 29554633, 'flou': 29554634, 'plastique': 29554635, 'environnement': 29554636},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29554585) 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([29554585]) 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.24995946884155273 time spend to save output : 4.744529724121094e-05 total time spend for step 3 : 0.25000691413879395 step4:send_mail_cod Thu Dec 18 19:15:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1400009869: ('0.027274101887959055',), 1400009868: ('0.027274101887959055',), 1400009867: ('0.027274101887959055',), 1400009866: ('0.027274101887959055',), 1400009773: ('0.027274101887959055',), 1400009767: ('0.027274101887959055',), 1400009765: ('0.027274101887959055',), 1400009764: ('0.027274101887959055',), 1400009762: ('0.027274101887959055',), 1400009749: ('0.027274101887959055',), 1400009515: ('0.027274101887959055',), 1400009496: ('0.027274101887959055',), 1400009495: ('0.027274101887959055',), 1400009494: ('0.027274101887959055',), 1400009492: ('0.027274101887959055',)} input_args_next_step : {1400009869: ()} output_args : {1400009869: ('0.027274101887959055',), 1400009868: ('0.027274101887959055',), 1400009867: ('0.027274101887959055',), 1400009866: ('0.027274101887959055',), 1400009773: ('0.027274101887959055',), 1400009767: ('0.027274101887959055',), 1400009765: ('0.027274101887959055',), 1400009764: ('0.027274101887959055',), 1400009762: ('0.027274101887959055',), 1400009749: ('0.027274101887959055',), 1400009515: ('0.027274101887959055',), 1400009496: ('0.027274101887959055',), 1400009495: ('0.027274101887959055',), 1400009494: ('0.027274101887959055',), 1400009492: ('0.027274101887959055',)} args : 1400009869 depend.output_id : 0 input_args_next_step : {1400009869: ('0.027274101887959055',), 1400009868: ()} output_args : {1400009869: ('0.027274101887959055',), 1400009868: ('0.027274101887959055',), 1400009867: ('0.027274101887959055',), 1400009866: ('0.027274101887959055',), 1400009773: ('0.027274101887959055',), 1400009767: ('0.027274101887959055',), 1400009765: ('0.027274101887959055',), 1400009764: ('0.027274101887959055',), 1400009762: ('0.027274101887959055',), 1400009749: ('0.027274101887959055',), 1400009515: ('0.027274101887959055',), 1400009496: ('0.027274101887959055',), 1400009495: ('0.027274101887959055',), 1400009494: ('0.027274101887959055',), 1400009492: ('0.027274101887959055',)} args : 1400009868 depend.output_id : 0 input_args_next_step : {1400009869: ('0.027274101887959055',), 1400009868: ('0.027274101887959055',), 1400009867: ()} output_args : {1400009869: ('0.027274101887959055',), 1400009868: ('0.027274101887959055',), 1400009867: ('0.027274101887959055',), 1400009866: ('0.027274101887959055',), 1400009773: ('0.027274101887959055',), 1400009767: ('0.027274101887959055',), 1400009765: ('0.027274101887959055',), 1400009764: ('0.027274101887959055',), 1400009762: ('0.027274101887959055',), 1400009749: ('0.027274101887959055',), 1400009515: ('0.027274101887959055',), 1400009496: ('0.027274101887959055',), 1400009495: ('0.027274101887959055',), 1400009494: ('0.027274101887959055',), 1400009492: ('0.027274101887959055',)} args : 1400009867 depend.output_id : 0 input_args_next_step : {1400009869: ('0.027274101887959055',), 1400009868: ('0.027274101887959055',), 1400009867: ('0.027274101887959055',), 1400009866: ()} output_args : {1400009869: ('0.027274101887959055',), 1400009868: ('0.027274101887959055',), 1400009867: ('0.027274101887959055',), 1400009866: ('0.027274101887959055',), 1400009773: ('0.027274101887959055',), 1400009767: ('0.027274101887959055',), 1400009765: ('0.027274101887959055',), 1400009764: ('0.027274101887959055',), 1400009762: ('0.027274101887959055',), 1400009749: ('0.027274101887959055',), 1400009515: ('0.027274101887959055',), 1400009496: ('0.027274101887959055',), 1400009495: ('0.027274101887959055',), 1400009494: ('0.027274101887959055',), 1400009492: ('0.027274101887959055',)} args : 1400009866 depend.output_id : 0 input_args_next_step : {1400009869: ('0.027274101887959055',), 1400009868: ('0.027274101887959055',), 1400009867: ('0.027274101887959055',), 1400009866: ('0.027274101887959055',), 1400009773: ()} output_args : {1400009869: ('0.027274101887959055',), 1400009868: ('0.027274101887959055',), 1400009867: ('0.027274101887959055',), 1400009866: ('0.027274101887959055',), 1400009773: ('0.027274101887959055',), 1400009767: ('0.027274101887959055',), 1400009765: ('0.027274101887959055',), 1400009764: ('0.027274101887959055',), 1400009762: ('0.027274101887959055',), 1400009749: ('0.027274101887959055',), 1400009515: ('0.027274101887959055',), 1400009496: ('0.027274101887959055',), 1400009495: ('0.027274101887959055',), 1400009494: ('0.027274101887959055',), 1400009492: ('0.027274101887959055',)} args : 1400009773 depend.output_id : 0 input_args_next_step : {1400009869: ('0.027274101887959055',), 1400009868: ('0.027274101887959055',), 1400009867: ('0.027274101887959055',), 1400009866: ('0.027274101887959055',), 1400009773: ('0.027274101887959055',), 1400009767: ()} output_args : {1400009869: ('0.027274101887959055',), 1400009868: ('0.027274101887959055',), 1400009867: ('0.027274101887959055',), 1400009866: ('0.027274101887959055',), 1400009773: ('0.027274101887959055',), 1400009767: ('0.027274101887959055',), 1400009765: ('0.027274101887959055',), 1400009764: ('0.027274101887959055',), 1400009762: ('0.027274101887959055',), 1400009749: ('0.027274101887959055',), 1400009515: ('0.027274101887959055',), 1400009496: ('0.027274101887959055',), 1400009495: ('0.027274101887959055',), 1400009494: ('0.027274101887959055',), 1400009492: ('0.027274101887959055',)} args : 1400009767 depend.output_id : 0 input_args_next_step : {1400009869: ('0.027274101887959055',), 1400009868: ('0.027274101887959055',), 1400009867: ('0.027274101887959055',), 1400009866: ('0.027274101887959055',), 1400009773: ('0.027274101887959055',), 1400009767: ('0.027274101887959055',), 1400009765: ()} output_args : {1400009869: ('0.027274101887959055',), 1400009868: ('0.027274101887959055',), 1400009867: ('0.027274101887959055',), 1400009866: ('0.027274101887959055',), 1400009773: ('0.027274101887959055',), 1400009767: ('0.027274101887959055',), 1400009765: ('0.027274101887959055',), 1400009764: ('0.027274101887959055',), 1400009762: ('0.027274101887959055',), 1400009749: ('0.027274101887959055',), 1400009515: ('0.027274101887959055',), 1400009496: ('0.027274101887959055',), 1400009495: ('0.027274101887959055',), 1400009494: ('0.027274101887959055',), 1400009492: ('0.027274101887959055',)} args : 1400009765 depend.output_id : 0 input_args_next_step : {1400009869: ('0.027274101887959055',), 1400009868: ('0.027274101887959055',), 1400009867: ('0.027274101887959055',), 1400009866: ('0.027274101887959055',), 1400009773: ('0.027274101887959055',), 1400009767: ('0.027274101887959055',), 1400009765: ('0.027274101887959055',), 1400009764: ()} output_args : {1400009869: ('0.027274101887959055',), 1400009868: ('0.027274101887959055',), 1400009867: ('0.027274101887959055',), 1400009866: ('0.027274101887959055',), 1400009773: ('0.027274101887959055',), 1400009767: ('0.027274101887959055',), 1400009765: ('0.027274101887959055',), 1400009764: ('0.027274101887959055',), 1400009762: ('0.027274101887959055',), 1400009749: ('0.027274101887959055',), 1400009515: ('0.027274101887959055',), 1400009496: ('0.027274101887959055',), 1400009495: ('0.027274101887959055',), 1400009494: ('0.027274101887959055',), 1400009492: ('0.027274101887959055',)} args : 1400009764 depend.output_id : 0 input_args_next_step : {1400009869: ('0.027274101887959055',), 1400009868: ('0.027274101887959055',), 1400009867: ('0.027274101887959055',), 1400009866: ('0.027274101887959055',), 1400009773: ('0.027274101887959055',), 1400009767: ('0.027274101887959055',), 1400009765: ('0.027274101887959055',), 1400009764: ('0.027274101887959055',), 1400009762: ()} output_args : {1400009869: ('0.027274101887959055',), 1400009868: ('0.027274101887959055',), 1400009867: ('0.027274101887959055',), 1400009866: ('0.027274101887959055',), 1400009773: ('0.027274101887959055',), 1400009767: ('0.027274101887959055',), 1400009765: ('0.027274101887959055',), 1400009764: ('0.027274101887959055',), 1400009762: ('0.027274101887959055',), 1400009749: ('0.027274101887959055',), 1400009515: ('0.027274101887959055',), 1400009496: ('0.027274101887959055',), 1400009495: ('0.027274101887959055',), 1400009494: ('0.027274101887959055',), 1400009492: ('0.027274101887959055',)} args : 1400009762 depend.output_id : 0 input_args_next_step : {1400009869: ('0.027274101887959055',), 1400009868: ('0.027274101887959055',), 1400009867: ('0.027274101887959055',), 1400009866: ('0.027274101887959055',), 1400009773: ('0.027274101887959055',), 1400009767: ('0.027274101887959055',), 1400009765: ('0.027274101887959055',), 1400009764: ('0.027274101887959055',), 1400009762: ('0.027274101887959055',), 1400009749: ()} output_args : {1400009869: ('0.027274101887959055',), 1400009868: ('0.027274101887959055',), 1400009867: ('0.027274101887959055',), 1400009866: ('0.027274101887959055',), 1400009773: ('0.027274101887959055',), 1400009767: ('0.027274101887959055',), 1400009765: ('0.027274101887959055',), 1400009764: ('0.027274101887959055',), 1400009762: ('0.027274101887959055',), 1400009749: ('0.027274101887959055',), 1400009515: ('0.027274101887959055',), 1400009496: ('0.027274101887959055',), 1400009495: ('0.027274101887959055',), 1400009494: ('0.027274101887959055',), 1400009492: ('0.027274101887959055',)} args : 1400009749 depend.output_id : 0 input_args_next_step : {1400009869: ('0.027274101887959055',), 1400009868: ('0.027274101887959055',), 1400009867: ('0.027274101887959055',), 1400009866: ('0.027274101887959055',), 1400009773: ('0.027274101887959055',), 1400009767: ('0.027274101887959055',), 1400009765: ('0.027274101887959055',), 1400009764: ('0.027274101887959055',), 1400009762: ('0.027274101887959055',), 1400009749: ('0.027274101887959055',), 1400009515: ()} output_args : {1400009869: ('0.027274101887959055',), 1400009868: ('0.027274101887959055',), 1400009867: ('0.027274101887959055',), 1400009866: ('0.027274101887959055',), 1400009773: ('0.027274101887959055',), 1400009767: ('0.027274101887959055',), 1400009765: ('0.027274101887959055',), 1400009764: ('0.027274101887959055',), 1400009762: ('0.027274101887959055',), 1400009749: ('0.027274101887959055',), 1400009515: ('0.027274101887959055',), 1400009496: ('0.027274101887959055',), 1400009495: ('0.027274101887959055',), 1400009494: ('0.027274101887959055',), 1400009492: ('0.027274101887959055',)} args : 1400009515 depend.output_id : 0 input_args_next_step : {1400009869: ('0.027274101887959055',), 1400009868: ('0.027274101887959055',), 1400009867: ('0.027274101887959055',), 1400009866: ('0.027274101887959055',), 1400009773: ('0.027274101887959055',), 1400009767: ('0.027274101887959055',), 1400009765: ('0.027274101887959055',), 1400009764: ('0.027274101887959055',), 1400009762: ('0.027274101887959055',), 1400009749: ('0.027274101887959055',), 1400009515: ('0.027274101887959055',), 1400009496: ()} output_args : {1400009869: ('0.027274101887959055',), 1400009868: ('0.027274101887959055',), 1400009867: ('0.027274101887959055',), 1400009866: ('0.027274101887959055',), 1400009773: ('0.027274101887959055',), 1400009767: ('0.027274101887959055',), 1400009765: ('0.027274101887959055',), 1400009764: ('0.027274101887959055',), 1400009762: ('0.027274101887959055',), 1400009749: ('0.027274101887959055',), 1400009515: ('0.027274101887959055',), 1400009496: ('0.027274101887959055',), 1400009495: ('0.027274101887959055',), 1400009494: ('0.027274101887959055',), 1400009492: ('0.027274101887959055',)} args : 1400009496 depend.output_id : 0 input_args_next_step : {1400009869: ('0.027274101887959055',), 1400009868: ('0.027274101887959055',), 1400009867: ('0.027274101887959055',), 1400009866: ('0.027274101887959055',), 1400009773: ('0.027274101887959055',), 1400009767: ('0.027274101887959055',), 1400009765: ('0.027274101887959055',), 1400009764: ('0.027274101887959055',), 1400009762: ('0.027274101887959055',), 1400009749: ('0.027274101887959055',), 1400009515: ('0.027274101887959055',), 1400009496: ('0.027274101887959055',), 1400009495: ()} output_args : {1400009869: ('0.027274101887959055',), 1400009868: ('0.027274101887959055',), 1400009867: ('0.027274101887959055',), 1400009866: ('0.027274101887959055',), 1400009773: ('0.027274101887959055',), 1400009767: ('0.027274101887959055',), 1400009765: ('0.027274101887959055',), 1400009764: ('0.027274101887959055',), 1400009762: ('0.027274101887959055',), 1400009749: ('0.027274101887959055',), 1400009515: ('0.027274101887959055',), 1400009496: ('0.027274101887959055',), 1400009495: ('0.027274101887959055',), 1400009494: ('0.027274101887959055',), 1400009492: ('0.027274101887959055',)} args : 1400009495 depend.output_id : 0 input_args_next_step : {1400009869: ('0.027274101887959055',), 1400009868: ('0.027274101887959055',), 1400009867: ('0.027274101887959055',), 1400009866: ('0.027274101887959055',), 1400009773: ('0.027274101887959055',), 1400009767: ('0.027274101887959055',), 1400009765: ('0.027274101887959055',), 1400009764: ('0.027274101887959055',), 1400009762: ('0.027274101887959055',), 1400009749: ('0.027274101887959055',), 1400009515: ('0.027274101887959055',), 1400009496: ('0.027274101887959055',), 1400009495: ('0.027274101887959055',), 1400009494: ()} output_args : {1400009869: ('0.027274101887959055',), 1400009868: ('0.027274101887959055',), 1400009867: ('0.027274101887959055',), 1400009866: ('0.027274101887959055',), 1400009773: ('0.027274101887959055',), 1400009767: ('0.027274101887959055',), 1400009765: ('0.027274101887959055',), 1400009764: ('0.027274101887959055',), 1400009762: ('0.027274101887959055',), 1400009749: ('0.027274101887959055',), 1400009515: ('0.027274101887959055',), 1400009496: ('0.027274101887959055',), 1400009495: ('0.027274101887959055',), 1400009494: ('0.027274101887959055',), 1400009492: ('0.027274101887959055',)} args : 1400009494 depend.output_id : 0 input_args_next_step : {1400009869: ('0.027274101887959055',), 1400009868: ('0.027274101887959055',), 1400009867: ('0.027274101887959055',), 1400009866: ('0.027274101887959055',), 1400009773: ('0.027274101887959055',), 1400009767: ('0.027274101887959055',), 1400009765: ('0.027274101887959055',), 1400009764: ('0.027274101887959055',), 1400009762: ('0.027274101887959055',), 1400009749: ('0.027274101887959055',), 1400009515: ('0.027274101887959055',), 1400009496: ('0.027274101887959055',), 1400009495: ('0.027274101887959055',), 1400009494: ('0.027274101887959055',), 1400009492: ()} output_args : {1400009869: ('0.027274101887959055',), 1400009868: ('0.027274101887959055',), 1400009867: ('0.027274101887959055',), 1400009866: ('0.027274101887959055',), 1400009773: ('0.027274101887959055',), 1400009767: ('0.027274101887959055',), 1400009765: ('0.027274101887959055',), 1400009764: ('0.027274101887959055',), 1400009762: ('0.027274101887959055',), 1400009749: ('0.027274101887959055',), 1400009515: ('0.027274101887959055',), 1400009496: ('0.027274101887959055',), 1400009495: ('0.027274101887959055',), 1400009494: ('0.027274101887959055',), 1400009492: ('0.027274101887959055',)} args : 1400009492 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 : {29554585: [{'cartonnette': 29554625, 'mal_croppe': 29554626, 'Carton_brun': 29554627, 'Carton_gris': 29554628, 'kraft': 29554629, 'Teint_Dans_La_Masse': 29554630, 'papier': 29554631, 'metal': 29554632, 'autre_refus': 29554633, 'flou': 29554634, 'plastique': 29554635, 'environnement': 29554636}]} input_args_next_step : {1400009869: ('0.027274101887959055',), 1400009868: ('0.027274101887959055',), 1400009867: ('0.027274101887959055',), 1400009866: ('0.027274101887959055',), 1400009773: ('0.027274101887959055',), 1400009767: ('0.027274101887959055',), 1400009765: ('0.027274101887959055',), 1400009764: ('0.027274101887959055',), 1400009762: ('0.027274101887959055',), 1400009749: ('0.027274101887959055',), 1400009515: ('0.027274101887959055',), 1400009496: ('0.027274101887959055',), 1400009495: ('0.027274101887959055',), 1400009494: ('0.027274101887959055',), 1400009492: ('0.027274101887959055',), 29554585: ()} output_args : {29554585: [{'cartonnette': 29554625, 'mal_croppe': 29554626, 'Carton_brun': 29554627, 'Carton_gris': 29554628, 'kraft': 29554629, 'Teint_Dans_La_Masse': 29554630, 'papier': 29554631, 'metal': 29554632, 'autre_refus': 29554633, 'flou': 29554634, 'plastique': 29554635, 'environnement': 29554636}]} args : 29554585 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 :16, first value : ('0.027274101887959055',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29554585) 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 (1400009869,1400009868,1400009867,1400009866,1400009773,1400009767,1400009765,1400009764,1400009762,1400009749,1400009515,1400009496,1400009495,1400009494,1400009492) Found this number of photos: 15 ##### Call download_photos : nb_thread : 5 begin to download photo : 1400009492 begin to download photo : 1400009515 begin to download photo : 1400009765 begin to download photo : 1400009867 download finish for photo 1400009867 begin to download photo : 1400009868 download finish for photo 1400009492 begin to download photo : 1400009494 download finish for photo 1400009515 begin to download photo : 1400009749 download finish for photo 1400009765 begin to download photo : 1400009767 download finish for photo 1400009494 begin to download photo : 1400009495 download finish for photo 1400009868 begin to download photo : 1400009869 download finish for photo 1400009749 begin to download photo : 1400009762 download finish for photo 1400009767 begin to download photo : 1400009773 download finish for photo 1400009495 begin to download photo : 1400009496 download finish for photo 1400009762 begin to download photo : 1400009764 download finish for photo 1400009869 download finish for photo 1400009773 begin to download photo : 1400009866 download finish for photo 1400009496 download finish for photo 1400009764 download finish for photo 1400009866 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 15 ; length of list_pids : 15 ; length of list_args : 15 results_Auto_P29554585_18-12-2025_19_15_00.pdf 29554625 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=29554625 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1400009321: '1766081125_1635834_1400008543_5e02940847ee3663198145191dd5c801_rle_crop_4074450085_0.png', 1400009322: '1766081125_1635834_1400007702_e54f2149dca3ed164bf31cc4d6088788_rle_crop_4074450104_0.png', 1400009384: '1766081308_1646668_1400009308_e74d891927c3029372f873179c72a818_rle_crop_4074450613_0.png', 1400009483: '1766081485_1658702_1400009329_42d9bfc948dd5281bbc3bff9ef8e13fc_rle_crop_4074451291_0.png', 1400009484: '1766081466_1656197_1400009325_008562d27e412657ad81d38fc0047ccf_rle_crop_4074451253_0.png', 1400009485: '1766081466_1656197_1400009325_008562d27e412657ad81d38fc0047ccf_rle_crop_4074451252_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/0de6846c96d84f3d20f2d81051cc4fea_39842195.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/e499b15d0808e3c987d2e6eb488994d2_68508026.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/d2d9153beaaf4a18c793ad9401918b00_37014662.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/49e4ba3a13c0d24510fa70e45112665c_84744188.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/cb03704749701b946b4c8ba6d0d418ad_79588383.png change filename to text .imagette295546251766081700/ imagette295546251766081700/1766081308_1646668_1400009308_e74d891927c3029372f873179c72a818_rle_crop_4074450613_0.png.png imagette295546251766081700/1766081125_1635834_1400008543_5e02940847ee3663198145191dd5c801_rle_crop_4074450085_0.png.png imagette295546251766081700/1766081485_1658702_1400009329_42d9bfc948dd5281bbc3bff9ef8e13fc_rle_crop_4074451291_0.png.png imagette295546251766081700/1766081466_1656197_1400009325_008562d27e412657ad81d38fc0047ccf_rle_crop_4074451253_0.png.png imagette295546251766081700/1766081466_1656197_1400009325_008562d27e412657ad81d38fc0047ccf_rle_crop_4074451252_0.png.png imagette295546251766081700/1766081125_1635834_1400007702_e54f2149dca3ed164bf31cc4d6088788_rle_crop_4074450104_0.png.png imagette295546261766081701/ imagette295546291766081701/ imagette295546321766081701/ wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/f130970c6bb3bac7798208be30b9f180_8155885.png imagette295546251766081700 29554626 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=29554626 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette295546261766081701 29554629 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=29554629 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette295546291766081701 29554632 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=29554632 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette295546321766081701 29554633 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=29554633 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1400009319: '1766081125_1635834_1400008543_5e02940847ee3663198145191dd5c801_rle_crop_4074450088_0.png', 1400009320: '1766081125_1635834_1400007702_e54f2149dca3ed164bf31cc4d6088788_rle_crop_4074450107_0.png', 1400009474: '1766081466_1656197_1400009326_01f0d9ef0211cf6c1e8418bc75e5bb2a_rle_crop_4074451227_0.png', 1400009475: '1766081466_1656197_1400009325_008562d27e412657ad81d38fc0047ccf_rle_crop_4074451256_0.png', 1400009476: '1766081466_1656197_1400009324_1300ed618a89bd46f588f4006414c32b_rle_crop_4074451271_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/62daf9559196439526f0a7c9b8fe5f16_41070157.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/e037b5d0f49cbbf169231eef9e244945_89644973.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/89dbfffd9a939107e25e26e371de2aa1_73054258.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/0666f96522216b0cf61cfd63ef1c949b_14629261.png change filename to text .imagette295546331766081701/ imagette295546331766081701/1766081466_1656197_1400009325_008562d27e412657ad81d38fc0047ccf_rle_crop_4074451256_0.png.png imagette295546331766081701/1766081466_1656197_1400009324_1300ed618a89bd46f588f4006414c32b_rle_crop_4074451271_0.png.png imagette295546331766081701/1766081125_1635834_1400008543_5e02940847ee3663198145191dd5c801_rle_crop_4074450088_0.png.png imagette295546331766081701/1766081125_1635834_1400007702_e54f2149dca3ed164bf31cc4d6088788_rle_crop_4074450107_0.png.png imagette295546331766081701/1766081466_1656197_1400009326_01f0d9ef0211cf6c1e8418bc75e5bb2a_rle_crop_4074451227_0.png.png imagette295546341766081701/ wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/b71ab5be04bb77d807970bebaaaf108a_78936174.png imagette295546331766081701 29554634 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=29554634 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette295546341766081701 29554635 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=29554635 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1400009352: '1766081226_1642230_1400009108_2c23222bdfe7a45bb19c6298029a9dab_rle_crop_4074450383_0.png', 1400009353: '1766081226_1642230_1400009108_2c23222bdfe7a45bb19c6298029a9dab_rle_crop_4074450381_0.png', 1400009365: '1766081247_1644055_1400008801_eafdaa312824dc579373c01c0a135d9e_rle_crop_4074450476_0.png', 1400009387: '1766081308_1646668_1400009308_e74d891927c3029372f873179c72a818_rle_crop_4074450623_0.png', 1400009388: '1766081308_1646668_1400009307_0956135e46767392e1483b24cb2acb63_rle_crop_4074450638_0.png', 1400009490: '1766081466_1656197_1400009323_f8679a9ee46b28abdce0e96e985ce475_rle_crop_4074451285_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/2e9a5f7170812166d14ac4969abf007f_77696378.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/334f17bd4a2073f6b955061955058f21_92512326.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/9037f48c4881dd24b55b32d5fa3ea907_15668078.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/2258553ac0c017b1942ecfc95f78d976_43609162.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/bac5f41b18de58e10435023b53515ba5_38015710.png change filename to text .imagette295546351766081701/ imagette295546351766081701/1766081247_1644055_1400008801_eafdaa312824dc579373c01c0a135d9e_rle_crop_4074450476_0.png.png imagette295546351766081701/1766081226_1642230_1400009108_2c23222bdfe7a45bb19c6298029a9dab_rle_crop_4074450383_0.png.png imagette295546351766081701/1766081308_1646668_1400009308_e74d891927c3029372f873179c72a818_rle_crop_4074450623_0.png.png imagette295546351766081701/1766081466_1656197_1400009323_f8679a9ee46b28abdce0e96e985ce475_rle_crop_4074451285_0.png.png imagette295546351766081701/1766081308_1646668_1400009307_0956135e46767392e1483b24cb2acb63_rle_crop_4074450638_0.png.png imagette295546351766081701/1766081226_1642230_1400009108_2c23222bdfe7a45bb19c6298029a9dab_rle_crop_4074450381_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/c1a27e7b9c3bac0ba8237d0f3c98c14c_61104122.png imagette295546351766081701 29554627 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=29554627 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1400009364: '1766081247_1644055_1400008802_05b6a1962b86fa2fc04601a6bd1f9b3a_rle_crop_4074450463_0.png', 1400009385: '1766081308_1646668_1400009308_e74d891927c3029372f873179c72a818_rle_crop_4074450617_0.png', 1400009386: '1766081308_1646668_1400009307_0956135e46767392e1483b24cb2acb63_rle_crop_4074450641_0.png', 1400009487: '1766081466_1656197_1400009350_f6561fbbe601ecebf2691bc10beb1922_rle_crop_4074451208_0.png', 1400009488: '1766081466_1656197_1400009326_01f0d9ef0211cf6c1e8418bc75e5bb2a_rle_crop_4074451229_0.png', 1400009489: '1766081466_1656197_1400009325_008562d27e412657ad81d38fc0047ccf_rle_crop_4074451259_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/92c36b849a4a24289dd50cca5b84253a_41773876.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/a6d79d0e45a4ddd966890f4daefe8cac_30944073.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/8392949cc33bfe29e0dcac6cba4b754d_32885311.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/6073f985c5e995b4cee5939ed91c1fa6_82650058.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/0962d99ce856785dc9daef44334359fb_53860783.png change filename to text .imagette295546271766081702/ imagette295546271766081702/1766081466_1656197_1400009326_01f0d9ef0211cf6c1e8418bc75e5bb2a_rle_crop_4074451229_0.png.png imagette295546271766081702/1766081466_1656197_1400009350_f6561fbbe601ecebf2691bc10beb1922_rle_crop_4074451208_0.png.png imagette295546271766081702/1766081308_1646668_1400009307_0956135e46767392e1483b24cb2acb63_rle_crop_4074450641_0.png.png imagette295546271766081702/1766081466_1656197_1400009325_008562d27e412657ad81d38fc0047ccf_rle_crop_4074451259_0.png.png imagette295546271766081702/1766081247_1644055_1400008802_05b6a1962b86fa2fc04601a6bd1f9b3a_rle_crop_4074450463_0.png.png imagette295546271766081702/1766081308_1646668_1400009308_e74d891927c3029372f873179c72a818_rle_crop_4074450617_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/f5d76422609fa0d4921e6766fcd826c1_61308064.png imagette295546271766081702 29554628 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=29554628 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1400009313: '1766081105_1633472_1400008420_c6a2f4498074387423da0ce947f20ed0_rle_crop_4074449990_0.png', 1400009381: '1766081308_1646668_1400009308_e74d891927c3029372f873179c72a818_rle_crop_4074450621_0.png', 1400009382: '1766081308_1646668_1400009307_0956135e46767392e1483b24cb2acb63_rle_crop_4074450634_0.png', 1400009383: '1766081308_1646668_1400009307_0956135e46767392e1483b24cb2acb63_rle_crop_4074450632_0.png', 1400009451: '1766081425_1654171_1400009347_bb845c93759bd561213c26ffaab995c2_rle_crop_4074451056_0.png', 1400009477: '1766081466_1656197_1400009350_f6561fbbe601ecebf2691bc10beb1922_rle_crop_4074451203_0.png', 1400009478: '1766081466_1656197_1400009350_f6561fbbe601ecebf2691bc10beb1922_rle_crop_4074451210_0.png', 1400009479: '1766081466_1656197_1400009350_f6561fbbe601ecebf2691bc10beb1922_rle_crop_4074451205_0.png', 1400009480: '1766081466_1656197_1400009328_d43971a1541be6d569f0458af01c0924_rle_crop_4074451218_0.png', 1400009481: '1766081466_1656197_1400009326_01f0d9ef0211cf6c1e8418bc75e5bb2a_rle_crop_4074451225_0.png', 1400009482: '1766081466_1656197_1400009324_1300ed618a89bd46f588f4006414c32b_rle_crop_4074451266_0.png', 1400009878: '1766081667_1668946_1400009494_2c4deb702c799a7dbee4841330dd455e_rle_crop_4074451615_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/ca64fdd59cc5a7b322562d11c048f9ce_46145571.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/f6c5426c344d3390c66a82113a7f3e99_38942219.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/56d8ac1d017e075caf25f2c011105f30_84364118.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/e11284d837469cb4416ac4a78ef9ebac_51993453.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/8e5fc766aecb4b53b9d123fd7e31b2ca_7695338.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/ad4c6f1a5835aa42201c0635014c3b5f_69611786.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/cf0c6f9adbaaa7ae8d242de73f82c0c4_36147240.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/070762b8e5f0943373fe3ff7b86d942a_34819855.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/de884109c09eb553b5108aa71bda07db_62308301.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/cb97d5a443016fe4c1c36b037be09526_95502033.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/f083abf7d1ca0baf0d17d3e95a3aa93f_9018812.png change filename to text .imagette295546281766081702/ imagette295546281766081702/1766081308_1646668_1400009308_e74d891927c3029372f873179c72a818_rle_crop_4074450621_0.png.png imagette295546281766081702/1766081466_1656197_1400009350_f6561fbbe601ecebf2691bc10beb1922_rle_crop_4074451203_0.png.png imagette295546281766081702/1766081308_1646668_1400009307_0956135e46767392e1483b24cb2acb63_rle_crop_4074450632_0.png.png imagette295546281766081702/1766081308_1646668_1400009307_0956135e46767392e1483b24cb2acb63_rle_crop_4074450634_0.png.png imagette295546281766081702/1766081466_1656197_1400009324_1300ed618a89bd46f588f4006414c32b_rle_crop_4074451266_0.png.png imagette295546281766081702/1766081466_1656197_1400009326_01f0d9ef0211cf6c1e8418bc75e5bb2a_rle_crop_4074451225_0.png.png imagette295546281766081702/1766081105_1633472_1400008420_c6a2f4498074387423da0ce947f20ed0_rle_crop_4074449990_0.png.png imagette295546281766081702/1766081425_1654171_1400009347_bb845c93759bd561213c26ffaab995c2_rle_crop_4074451056_0.png.png imagette295546281766081702/1766081466_1656197_1400009350_f6561fbbe601ecebf2691bc10beb1922_rle_crop_4074451205_0.png.png imagette295546281766081702/1766081466_1656197_1400009350_f6561fbbe601ecebf2691bc10beb1922_rle_crop_4074451210_0.png.png imagette295546281766081702/1766081667_1668946_1400009494_2c4deb702c799a7dbee4841330dd455e_rle_crop_4074451615_0.png.png imagette295546281766081702/1766081466_1656197_1400009328_d43971a1541be6d569f0458af01c0924_rle_crop_4074451218_0.png.png wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/e6eef6d2c920e6c53db82e24586af5a2_57219066.png imagette295546281766081702 29554630 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=29554630 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1400009359: '1766081247_1644055_1400008802_05b6a1962b86fa2fc04601a6bd1f9b3a_rle_crop_4074450465_0.png', 1400009360: '1766081247_1644055_1400008802_05b6a1962b86fa2fc04601a6bd1f9b3a_rle_crop_4074450466_0.png', 1400009361: '1766081247_1644055_1400008801_eafdaa312824dc579373c01c0a135d9e_rle_crop_4074450475_0.png', 1400009362: '1766081247_1644055_1400008797_37047b48467f917ff9da5a257457e70c_rle_crop_4074450482_0.png', 1400009363: '1766081247_1644055_1400008797_37047b48467f917ff9da5a257457e70c_rle_crop_4074450484_0.png', 1400009471: '1766081466_1656197_1400009324_1300ed618a89bd46f588f4006414c32b_rle_crop_4074451267_0.png', 1400009877: '1766081667_1668946_1400009494_2c4deb702c799a7dbee4841330dd455e_rle_crop_4074451618_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/830199477f02259d35c34d1fb29c3ad1_77292224.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/62b475cd67eef031bda8a24aa3ed5c17_61946581.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/ba7a5827ae9aae13ce58666cee10c7c6_94001927.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/e5aa13828ab5e7f23375aef8a233f115_33645832.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/144c8403eafe9837f718ded6d34020cc_80779367.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/65bcc8744f9f822cbee9e7ab6acacadf_87385408.png change filename to text .imagette295546301766081703/ imagette295546301766081703/1766081247_1644055_1400008802_05b6a1962b86fa2fc04601a6bd1f9b3a_rle_crop_4074450466_0.png.png imagette295546301766081703/1766081247_1644055_1400008797_37047b48467f917ff9da5a257457e70c_rle_crop_4074450484_0.png.png imagette295546301766081703/1766081247_1644055_1400008802_05b6a1962b86fa2fc04601a6bd1f9b3a_rle_crop_4074450465_0.png.png imagette295546301766081703/1766081667_1668946_1400009494_2c4deb702c799a7dbee4841330dd455e_rle_crop_4074451618_0.png.png imagette295546301766081703/1766081247_1644055_1400008797_37047b48467f917ff9da5a257457e70c_rle_crop_4074450482_0.png.png imagette295546301766081703/1766081247_1644055_1400008801_eafdaa312824dc579373c01c0a135d9e_rle_crop_4074450475_0.png.png imagette295546301766081703/1766081466_1656197_1400009324_1300ed618a89bd46f588f4006414c32b_rle_crop_4074451267_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/d3f4d038c71dc092a7d465121fd3f406_7929880.png imagette295546301766081703 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=29554585 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/29554646,29554647,29554649,29554650,29554651,29554653,29554654,29554655,29554656,29554658,29554659,29554660?tags=cartonnette,mal_croppe,Carton_brun,Carton_gris,kraft,Teint_Dans_La_Masse,papier,metal,autre_refus,flou,plastique,environnement your option no_mail is active, we will not send the real mail to your client args[1400009869] : ('0.027274101887959055',) no score found for photo 1400009869 We are sending mail with results at report@fotonower.com args[1400009868] : ('0.027274101887959055',) no score found for photo 1400009868 We are sending mail with results at report@fotonower.com args[1400009867] : ('0.027274101887959055',) no score found for photo 1400009867 We are sending mail with results at report@fotonower.com args[1400009866] : ('0.027274101887959055',) no score found for photo 1400009866 We are sending mail with results at report@fotonower.com args[1400009773] : ('0.027274101887959055',) no score found for photo 1400009773 We are sending mail with results at report@fotonower.com args[1400009767] : ('0.027274101887959055',) no score found for photo 1400009767 We are sending mail with results at report@fotonower.com args[1400009765] : ('0.027274101887959055',) no score found for photo 1400009765 We are sending mail with results at report@fotonower.com args[1400009764] : ('0.027274101887959055',) no score found for photo 1400009764 We are sending mail with results at report@fotonower.com args[1400009762] : ('0.027274101887959055',) no score found for photo 1400009762 We are sending mail with results at report@fotonower.com args[1400009749] : ('0.027274101887959055',) no score found for photo 1400009749 We are sending mail with results at report@fotonower.com args[1400009515] : ('0.027274101887959055',) no score found for photo 1400009515 We are sending mail with results at report@fotonower.com args[1400009496] : ('0.027274101887959055',) no score found for photo 1400009496 We are sending mail with results at report@fotonower.com args[1400009495] : ('0.027274101887959055',) no score found for photo 1400009495 We are sending mail with results at report@fotonower.com args[1400009494] : ('0.027274101887959055',) no score found for photo 1400009494 We are sending mail with results at report@fotonower.com args[1400009492] : ('0.027274101887959055',) no score found for photo 1400009492 We are sending mail with results at report@fotonower.com refus_total : 0.027274101887959055 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=29554585 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_P29554585_18-12-2025_19_15_00.pdf results_Auto_P29554585_18-12-2025_19_15_00.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29554585_18-12-2025_19_15_00.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','29554585','results_Auto_P29554585_18-12-2025_19_15_00.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29554585_18-12-2025_19_15_00.pdf','pdf','','0.23','0.027274101887959055') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29554585]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1400009869, 1400009868, 1400009867, 1400009866, 1400009773, 1400009767, 1400009765, 1400009764, 1400009762, 1400009749, 1400009515, 1400009496, 1400009495, 1400009494, 1400009492] map_info['map_portfolio_photo'] : {29554585: [1400009869, 1400009868, 1400009867, 1400009866, 1400009773, 1400009767, 1400009765, 1400009764, 1400009762, 1400009749, 1400009515, 1400009496, 1400009495, 1400009494, 1400009492, 1400009468, 1400009467, 1400009465, 1400009462, 1400009461, 1400009460, 1400009456, 1400009454, 1400009427, 1400009416, 1400009413, 1400009411, 1400009410, 1400009409, 1400009395, 1400009392, 1400009391, 1400009390, 1400009389, 1400009374, 1400009372, 1400009369, 1400009368, 1400009367, 1400009366, 1400009350, 1400009347, 1400009345, 1400009343, 1400009329, 1400009328, 1400009326, 1400009325, 1400009324, 1400009323, 1400009309, 1400009308, 1400009307, 1400009145, 1400009140, 1400009108, 1400008803, 1400008802, 1400008801, 1400008797, 1400008543, 1400008483, 1400008420, 1400007929, 1400007702]} final : False mtd_id 4302 list_pids : [1400009869, 1400009868, 1400009867, 1400009866, 1400009773, 1400009767, 1400009765, 1400009764, 1400009762, 1400009749, 1400009515, 1400009496, 1400009495, 1400009494, 1400009492] 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, '4247650') ('4302', '29554585', '1400009869', None, None, None, None, None, '4247650') ('4302', None, None, None, None, None, None, None, '4247650') ('4302', '29554585', '1400009868', None, None, None, None, None, '4247650') ('4302', None, None, None, None, None, None, None, '4247650') ('4302', '29554585', '1400009867', None, None, None, None, None, '4247650') ('4302', None, None, None, None, None, None, None, '4247650') ('4302', '29554585', '1400009866', None, None, None, None, None, '4247650') ('4302', None, None, None, None, None, None, None, '4247650') ('4302', '29554585', '1400009773', None, None, None, None, None, '4247650') ('4302', None, None, None, None, None, None, None, '4247650') ('4302', '29554585', '1400009767', None, None, None, None, None, '4247650') ('4302', None, None, None, None, None, None, None, '4247650') ('4302', '29554585', '1400009765', None, None, None, None, None, '4247650') ('4302', None, None, None, None, None, None, None, '4247650') ('4302', '29554585', '1400009764', None, None, None, None, None, '4247650') ('4302', None, None, None, None, None, None, None, '4247650') ('4302', '29554585', '1400009762', None, None, None, None, None, '4247650') ('4302', None, None, None, None, None, None, None, '4247650') ('4302', '29554585', '1400009749', None, None, None, None, None, '4247650') ('4302', None, None, None, None, None, None, None, '4247650') ('4302', '29554585', '1400009515', None, None, None, None, None, '4247650') ('4302', None, None, None, None, None, None, None, '4247650') ('4302', '29554585', '1400009496', None, None, None, None, None, '4247650') ('4302', None, None, None, None, None, None, None, '4247650') ('4302', '29554585', '1400009495', None, None, None, None, None, '4247650') ('4302', None, None, None, None, None, None, None, '4247650') ('4302', '29554585', '1400009494', None, None, None, None, None, '4247650') ('4302', None, None, None, None, None, None, None, '4247650') ('4302', '29554585', '1400009492', None, None, None, None, None, '4247650') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 15 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', '29554585', '1400009869', None, None, None, None, None, '4247650'), ('4302', '29554585', '1400009868', None, None, None, None, None, '4247650'), ('4302', '29554585', '1400009867', None, None, None, None, None, '4247650'), ('4302', '29554585', '1400009866', None, None, None, None, None, '4247650'), ('4302', '29554585', '1400009773', None, None, None, None, None, '4247650'), ('4302', '29554585', '1400009767', None, None, None, None, None, '4247650'), ('4302', '29554585', '1400009765', None, None, None, None, None, '4247650'), ('4302', '29554585', '1400009764', None, None, None, None, None, '4247650'), ('4302', '29554585', '1400009762', None, None, None, None, None, '4247650'), ('4302', '29554585', '1400009749', None, None, None, None, None, '4247650'), ('4302', '29554585', '1400009515', None, None, None, None, None, '4247650'), ('4302', '29554585', '1400009496', None, None, None, None, None, '4247650'), ('4302', '29554585', '1400009495', None, None, None, None, None, '4247650'), ('4302', '29554585', '1400009494', None, None, None, None, None, '4247650'), ('4302', '29554585', '1400009492', None, None, None, None, None, '4247650')] time used for this insertion : 0.019874095916748047 save_final save missing photos in datou_result : time spend for datou_step_exec : 5.041571140289307 time spend to save output : 0.02023005485534668 total time spend for step 4 : 5.061801195144653 step5:split_time_score Thu Dec 18 19:15:05 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['29554585'] 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 : [('29554585',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29554585) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1400009867: {'path': 'temp/1766081700_3869445_1400009867_50f57d4a41a730dc6e3238f563560daf.jpg', 'extension': 'jpg'}, 1400009868: {'path': 'temp/1766081700_3869445_1400009868_e0d116efa80523d4307363884fc26d0a.jpg', 'extension': 'jpg'}, 1400009869: {'path': 'temp/1766081700_3869445_1400009869_c39a8f623c380f6cbebc15389d676b9c.jpg', 'extension': 'jpg'}, 1400009492: {'path': 'temp/1766081700_3869445_1400009492_5ea7dba310935fab449cebb940bcbb58.jpg', 'extension': 'jpg'}, 1400009494: {'path': 'temp/1766081700_3869445_1400009494_2c4deb702c799a7dbee4841330dd455e.jpg', 'extension': 'jpg'}, 1400009495: {'path': 'temp/1766081700_3869445_1400009495_bfdace0cc6f0ca414be0e04097a15972.jpg', 'extension': 'jpg'}, 1400009496: {'path': 'temp/1766081700_3869445_1400009496_f90ba57d259b4600fef13fb0121e8c36.jpg', 'extension': 'jpg'}, 1400009515: {'path': 'temp/1766081700_3869445_1400009515_a29ce2bdc3586f635a298e016447c1b1.jpg', 'extension': 'jpg'}, 1400009749: {'path': 'temp/1766081700_3869445_1400009749_b47c2dfcd4574d39eab30a1b88214aba.jpg', 'extension': 'jpg'}, 1400009762: {'path': 'temp/1766081700_3869445_1400009762_ed6e4d5cd06014bb85fe8322c3b4d255.jpg', 'extension': 'jpg'}, 1400009764: {'path': 'temp/1766081700_3869445_1400009764_914911c3527bb0c2b7289f7f9e76cd81.jpg', 'extension': 'jpg'}, 1400009765: {'path': 'temp/1766081700_3869445_1400009765_b14ba9003d3235c960cca3fea4a44a43.jpg', 'extension': 'jpg'}, 1400009767: {'path': 'temp/1766081700_3869445_1400009767_d44cb4bd179c3a9555cd0eec05a7918d.jpg', 'extension': 'jpg'}, 1400009773: {'path': 'temp/1766081700_3869445_1400009773_74e9a788e0f1d38896abc54665315775.jpg', 'extension': 'jpg'}, 1400009866: {'path': 'temp/1766081700_3869445_1400009866_32a41982c398aa5d7a7a1735b19cf6d4.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 = 29554585; (('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 = 29554585 group by h (('19', 65),) 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=29554585 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 (29554585) 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 (29554585) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 18122025 29554585 Nombre de photos uploadées : 65 / 23040 (0%) 18122025 29554585 Nombre de photos taguées (types de déchets): 0 / 65 (0%) 18122025 29554585 Nombre de photos taguées (volume) : 0 / 65 (0%) [{'photo_id': 1400007929, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/5bd6399a5fae022e36fb8045130e47cd.jpg', 'username': None, 'uploaded_at': 1766080877, 'text': 'image_18122025_19_00_14_010206m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1400008543, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/5e02940847ee3663198145191dd5c801.jpg', 'username': None, 'uploaded_at': 1766080928, 'text': 'image_18122025_19_00_44_010139m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1400007702, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/e54f2149dca3ed164bf31cc4d6088788.jpg', 'username': None, 'uploaded_at': 1766080863, 'text': 'image_18122025_19_00_55_010139m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1400008483, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/f1219b311ceb3c15377bad408f7fb709.jpg', 'username': None, 'uploaded_at': 1766080928, 'text': 'image_18122025_19_01_24_10137.jpg'}] 0 [] elapsed_time : load_data_split_time_score 1.9073486328125e-06 elapsed_time : order_list_meta_photo_and_scores 6.198883056640625e-06 ????????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0027093887329101562 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 29554585, '2025-12-18' ) 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-18' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2754916,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.2593424320220947 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= 2754916 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2754916, 'dashboard_run_id': 2767043, 'mtr_portfolio_id': 29518047, 'dashboard_result_id': 18536669, '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_P29518047_18-12-2025_06_08_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29518048, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29518049, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29518050, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29518051, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29518052, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29518053, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29518054, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29518055, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29518056, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29518057, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29518058, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29518059, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2767043, 'mtr_portfolio_id': 29518739, 'dashboard_result_id': 18536670, '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_P29518739_18-12-2025_06_09_03.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29518743, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29518744, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29518745, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29518746, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29518747, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29518748, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29518749, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29518750, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29518751, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29518752, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29518753, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29518754, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2767043, 'mtr_portfolio_id': 29519140, 'dashboard_result_id': 18536671, '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_P29519140_18-12-2025_06_09_34.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29519145, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29519146, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29519147, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29519148, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29519149, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29519150, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29519151, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29519152, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29519153, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29519154, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29519155, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29519156, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2767043, 'mtr_portfolio_id': 29519795, 'dashboard_result_id': 18536672, '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_P29519795_18-12-2025_06_10_04.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29519800, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29519801, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29519802, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29519803, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29519804, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29519805, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29519806, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29519807, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29519808, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29519809, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29519810, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29519811, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2767043, 'mtr_portfolio_id': 29520859, 'dashboard_result_id': 18536673, '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_P29520859_18-12-2025_06_10_34.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29520862, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29520863, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29520864, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29520865, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29520866, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29520867, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29520868, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29520869, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29520870, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29520871, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29520872, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29520873, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2767043, 'mtr_portfolio_id': 29521041, 'dashboard_result_id': 18536674, '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_P29521041_18-12-2025_02_01_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29521046, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29521047, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29521048, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29521049, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29521050, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29521051, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29521052, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29521053, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29521054, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29521055, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29521056, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29521057, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2767043, 'mtr_portfolio_id': 29521390, 'dashboard_result_id': 18536675, '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_P29521390_18-12-2025_06_11_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29521402, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29521403, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29521404, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29521405, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29521406, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29521407, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29521408, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29521409, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29521410, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29521411, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29521412, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29521413, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2767043, 'mtr_portfolio_id': 29521664, 'dashboard_result_id': 18536676, '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_P29521664_18-12-2025_06_11_11.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29521670, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29521671, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29521672, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29521673, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29521674, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29521675, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29521676, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29521677, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29521678, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29521679, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29521680, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29521681, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2767043, 'mtr_portfolio_id': 29522214, 'dashboard_result_id': 18536677, '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_P29522214_18-12-2025_06_11_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29522222, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29522223, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29522224, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29522225, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29522226, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29522227, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29522228, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29522229, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29522230, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29522231, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29522232, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29522233, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2767043, 'mtr_portfolio_id': 29522701, 'dashboard_result_id': 18536678, '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_P29522701_18-12-2025_06_12_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29522709, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29522710, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29522711, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29522712, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29522713, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29522714, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29522715, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29522716, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29522717, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29522718, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29522719, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29522720, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2767043, 'mtr_portfolio_id': 29523037, 'dashboard_result_id': 18536679, '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_P29523037_18-12-2025_06_12_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29523065, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29523066, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29523067, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29523068, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29523069, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29523070, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29523071, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29523072, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29523073, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29523074, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29523075, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29523076, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2767043, 'mtr_portfolio_id': 29523671, 'dashboard_result_id': 18536680, '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_P29523671_18-12-2025_06_13_33.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29523679, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29523680, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29523681, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29523682, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29523683, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29523684, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29523685, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29523686, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29523687, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29523688, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29523689, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29523690, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2767043, 'mtr_portfolio_id': 29524171, 'dashboard_result_id': 18536681, '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_P29524171_18-12-2025_06_14_04.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29524175, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29524176, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29524177, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29524178, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29524179, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29524180, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29524181, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29524182, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29524183, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29524184, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29524185, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29524186, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2767043, 'mtr_portfolio_id': 29524599, 'dashboard_result_id': 18536682, '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_P29524599_18-12-2025_06_14_34.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29524607, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29524608, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29524609, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29524610, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29524611, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29524612, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29524613, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29524614, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29524615, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29524616, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29524617, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29524618, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2767043, 'mtr_portfolio_id': 29525105, 'dashboard_result_id': 18536683, '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_P29525105_18-12-2025_06_15_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29525110, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29525111, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29525112, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29525113, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29525114, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29525115, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29525116, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29525117, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29525118, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29525119, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29525120, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29525121, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2767043, 'mtr_portfolio_id': 29525978, 'dashboard_result_id': 18536684, '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_P29525978_18-12-2025_06_15_34.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29525982, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29525983, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29525984, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29525985, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29525986, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29525987, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29525988, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29525989, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29525990, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29525991, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29525992, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29525993, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2767043, 'mtr_portfolio_id': 29526227, 'dashboard_result_id': 18536685, '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_P29526227_18-12-2025_05_40_42.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29526232, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29526233, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29526234, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29526235, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29526236, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29526237, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29526238, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29526239, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29526240, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29526241, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29526242, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29526243, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2767043, 'mtr_portfolio_id': 29526571, 'dashboard_result_id': 18536686, '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_P29526571_18-12-2025_05_47_02.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29526577, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29526578, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29526579, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29526580, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29526581, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29526582, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29526583, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29526584, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29526585, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29526586, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29526587, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29526588, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2767043, 'mtr_portfolio_id': 29526944, 'dashboard_result_id': 18536687, '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_P29526944_18-12-2025_06_03_33.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29526953, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29526954, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29526955, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29526956, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29526957, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29526958, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29526959, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29526960, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29526961, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29526962, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29526963, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29526964, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2767043, 'mtr_portfolio_id': 29527309, 'dashboard_result_id': 18536688, '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_P29527309_18-12-2025_06_17_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29527313, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29527314, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29527315, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29527316, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29527317, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29527318, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29527319, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29527320, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29527321, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29527322, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29527323, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29527324, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2767043, 'mtr_portfolio_id': 29527635, 'dashboard_result_id': 18536689, '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_P29527635_18-12-2025_06_33_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29527638, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29527639, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29527640, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29527641, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29527642, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29527643, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29527644, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29527646, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29527647, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29527648, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29527649, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29527650, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2767043, 'mtr_portfolio_id': 29528012, 'dashboard_result_id': 18536690, '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_P29528012_18-12-2025_08_16_03.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29528017, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29528018, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29528019, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29528020, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29528021, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29528022, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29528023, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29528024, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29528025, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29528026, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29528027, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29528028, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2767043, 'mtr_portfolio_id': 29528449, 'dashboard_result_id': 18536691, '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_P29528449_18-12-2025_07_02_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29528462, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29528463, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29528464, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29528465, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29528466, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29528467, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29528468, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29528469, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29528470, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29528471, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29528472, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29528473, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2767043, 'mtr_portfolio_id': 29528882, 'dashboard_result_id': 18536692, '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_P29528882_18-12-2025_07_18_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29528899, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29528900, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29528901, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29528902, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29528903, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29528904, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29528905, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29528906, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29528907, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29528908, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29528909, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29528910, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2767043, 'mtr_portfolio_id': 29529672, 'dashboard_result_id': 18536693, '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_P29529672_18-12-2025_07_33_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29529680, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29529681, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29529682, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29529683, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29529684, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29529685, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29529686, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29529687, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29529688, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29529689, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29529690, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29529691, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2767043, 'mtr_portfolio_id': 29530097, 'dashboard_result_id': 18536694, '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_P29530097_18-12-2025_07_49_02.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29530105, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29530106, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29530107, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29530108, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29530109, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29530110, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29530111, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29530112, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29530113, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29530114, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29530115, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29530116, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2767043, 'mtr_portfolio_id': 29530582, 'dashboard_result_id': 18536695, '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_P29530582_18-12-2025_08_03_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29530607, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29530608, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29530609, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29530610, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29530611, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29530612, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29530613, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29530614, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29530615, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29530616, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29530617, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29530618, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2767043, 'mtr_portfolio_id': 29531020, 'dashboard_result_id': 18536696, '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_P29531020_18-12-2025_08_18_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29531035, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29531036, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29531037, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29531038, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29531039, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29531040, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29531041, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29531042, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29531043, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29531044, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29531045, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29531046, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2767043, 'mtr_portfolio_id': 29531694, 'dashboard_result_id': 18536697, '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_P29531694_18-12-2025_08_33_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29531726, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29531727, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29531728, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29531729, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29531730, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29531731, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29531732, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29531733, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29531734, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29531735, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29531736, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29531737, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2767043, 'mtr_portfolio_id': 29532246, 'dashboard_result_id': 18536698, '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_P29532246_18-12-2025_08_46_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29532258, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29532259, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29532260, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29532261, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29532262, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29532263, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29532264, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29532265, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29532266, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29532267, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29532268, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29532269, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2767043, 'mtr_portfolio_id': 29532732, 'dashboard_result_id': 18536699, '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_P29532732_18-12-2025_09_02_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29532740, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29532741, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29532742, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29532743, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29532744, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29532745, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29532746, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29532747, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29532748, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29532749, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29532752, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29532753, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2767043, 'mtr_portfolio_id': 29534702, 'dashboard_result_id': 18536700, '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_P29534702_18-12-2025_09_49_02.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29534735, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29534736, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29534737, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29534738, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29534739, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29534740, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29534741, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29534742, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29534743, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29534744, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29534745, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29534746, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2767043, 'mtr_portfolio_id': 29535436, 'dashboard_result_id': 18536701, '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_P29535436_18-12-2025_10_03_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29535496, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29535497, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29535498, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29535499, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29535500, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29535501, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29535502, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29535503, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29535504, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29535505, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29535506, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29535507, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2767043, 'mtr_portfolio_id': 29536076, 'dashboard_result_id': 18536702, '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_P29536076_18-12-2025_10_19_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29536092, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29536093, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29536094, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29536095, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29536096, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29536097, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29536098, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29536099, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29536100, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29536101, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29536102, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29536103, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2767043, 'mtr_portfolio_id': 29536806, 'dashboard_result_id': 18536703, '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_P29536806_18-12-2025_10_32_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29536814, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29536815, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29536816, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29536817, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29536818, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29536819, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29536820, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29536821, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29536822, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29536823, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29536824, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29536825, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2767043, 'mtr_portfolio_id': 29537598, 'dashboard_result_id': 18536704, '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_P29537598_18-12-2025_10_48_56.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29537644, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29537645, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29537646, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29537647, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29537648, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29537649, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29537650, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29537651, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29537653, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29537656, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29537658, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29537660, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2767043, 'mtr_portfolio_id': 29538418, 'dashboard_result_id': 18536705, '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_P29538418_18-12-2025_11_03_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29538443, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29538444, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29538445, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29538446, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29538447, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29538448, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29538449, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29538450, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29538451, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29538452, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29538453, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29538454, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2767043, 'mtr_portfolio_id': 29539090, 'dashboard_result_id': 18536706, '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_P29539090_18-12-2025_11_18_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29539197, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29539198, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29539199, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29539200, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29539201, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29539202, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29539203, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29539204, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29539205, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29539206, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29539207, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29539208, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2767043, 'mtr_portfolio_id': 29540060, 'dashboard_result_id': 18536708, '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_P29540060_18-12-2025_11_33_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29540068, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29540069, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29540070, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29540071, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29540072, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29540073, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29540074, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29540075, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29540076, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29540077, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29540078, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29540079, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2767043, 'mtr_portfolio_id': 29540604, 'dashboard_result_id': 18536709, '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_P29540604_18-12-2025_11_48_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29540618, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29540619, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29540620, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29540621, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29540622, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29540623, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29540624, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29540625, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29540626, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29540627, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29540628, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29540629, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2767043, 'mtr_portfolio_id': 29541128, 'dashboard_result_id': 18536710, '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_P29541128_18-12-2025_12_02_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29541161, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29541162, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29541163, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29541164, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29541165, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29541166, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29541167, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29541168, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29541169, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29541170, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29541171, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29541172, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2767043, 'mtr_portfolio_id': 29541476, 'dashboard_result_id': 18536712, '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_P29541476_18-12-2025_12_33_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29541511, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29541512, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29541513, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29541514, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29541515, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29541516, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29541517, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29541518, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29541519, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29541520, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29541521, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29541522, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2767043, 'mtr_portfolio_id': 29542319, 'dashboard_result_id': 18536713, '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_P29542319_18-12-2025_14_00_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29542330, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29542331, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29542332, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29542333, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29542334, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29542335, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29542336, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29542337, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29542338, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29542339, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29542340, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29542341, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2767043, 'mtr_portfolio_id': 29543553, 'dashboard_result_id': 18536714, '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_P29543553_18-12-2025_13_46_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29543554, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29543555, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29543556, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29543557, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29543558, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29543559, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29543560, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29543561, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29543562, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29543563, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29543564, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29543565, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2767043, 'mtr_portfolio_id': 29543827, 'dashboard_result_id': 18536715, '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_P29543827_18-12-2025_14_03_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29543831, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29543832, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29543833, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29543834, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29543835, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29543836, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29543837, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29543838, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29543839, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29543840, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29543841, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29543842, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2767043, 'mtr_portfolio_id': 29544201, 'dashboard_result_id': 18536717, '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_P29544201_18-12-2025_14_19_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29544228, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29544229, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29544230, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29544231, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29544232, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29544233, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29544234, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29544235, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29544236, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29544237, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29544238, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29544239, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2767043, 'mtr_portfolio_id': 29544927, 'dashboard_result_id': 18536718, '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_P29544927_18-12-2025_14_33_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29544931, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29544932, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29544933, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29544934, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29544935, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29544936, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29544937, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29544938, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29544939, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29544940, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29544941, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29544942, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2767043, 'mtr_portfolio_id': 29545385, 'dashboard_result_id': 18536719, '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_P29545385_18-12-2025_14_46_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29545420, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29545421, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29545422, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29545423, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29545424, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29545425, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29545426, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29545427, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29545428, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29545429, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29545430, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29545431, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2767043, 'mtr_portfolio_id': 29546011, 'dashboard_result_id': 18536720, '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_P29546011_18-12-2025_15_02_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29546036, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29546037, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29546038, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29546039, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29546040, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29546041, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29546042, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29546043, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29546044, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29546045, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29546046, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29546047, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2767043, 'mtr_portfolio_id': 29546661, 'dashboard_result_id': 18536722, '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_P29546661_18-12-2025_15_19_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29546715, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29546716, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29546717, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29546718, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29546719, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29546720, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29546721, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29546722, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29546724, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29546725, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29546726, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29546727, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2767043, 'mtr_portfolio_id': 29547189, 'dashboard_result_id': 18536723, '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_P29547189_18-12-2025_15_33_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29547215, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29547216, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29547217, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29547218, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29547219, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29547220, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29547221, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29547222, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29547223, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29547224, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29547225, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29547226, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2767043, 'mtr_portfolio_id': 29547628, 'dashboard_result_id': 18536724, '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_P29547628_18-12-2025_15_48_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29547645, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29547646, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29547647, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29547648, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29547649, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29547650, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29547651, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29547652, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29547653, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29547654, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29547655, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29547656, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2767043, 'mtr_portfolio_id': 29548271, 'dashboard_result_id': 18536725, '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_P29548271_18-12-2025_16_02_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29548296, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29548297, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29548298, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29548299, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29548300, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29548301, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29548302, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29548303, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29548304, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29548305, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29548306, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29548307, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2767043, 'mtr_portfolio_id': 29548588, 'dashboard_result_id': 18536726, '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_P29548588_18-12-2025_16_18_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29548623, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29548624, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29548625, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29548626, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29548627, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29548628, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29548629, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29548630, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29548631, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29548632, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29548633, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29548634, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2767043, 'mtr_portfolio_id': 29549416, 'dashboard_result_id': 18536727, '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_P29549416_18-12-2025_16_33_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29549471, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29549472, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29549473, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29549474, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29549475, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29549476, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29549477, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29549478, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29549479, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29549480, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29549481, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29549482, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2767043, 'mtr_portfolio_id': 29550106, 'dashboard_result_id': 18536728, '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_P29550106_18-12-2025_16_48_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29550159, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29550160, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29550161, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29550162, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29550163, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29550165, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29550166, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29550167, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29550168, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29550169, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29550170, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29550171, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2767043, 'mtr_portfolio_id': 29550700, 'dashboard_result_id': 18536729, '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_P29550700_18-12-2025_17_03_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29550708, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29550709, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29550710, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29550711, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29550712, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29550713, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29550714, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29550715, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29550716, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29550717, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29550718, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29550719, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2767043, 'mtr_portfolio_id': 29551055, 'dashboard_result_id': 18536730, '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_P29551055_18-12-2025_17_19_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29551093, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29551094, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29551095, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29551096, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29551097, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29551098, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29551099, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29551100, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29551101, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29551102, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29551103, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29551104, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2767043, 'mtr_portfolio_id': 29551776, 'dashboard_result_id': 18536731, '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_P29551776_18-12-2025_18_02_57.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29551801, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29551802, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29551803, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29551804, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29551805, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29551806, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29551807, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29551808, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29551809, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29551810, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29551811, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29551812, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2767043, 'mtr_portfolio_id': 29552770, 'dashboard_result_id': 18536732, '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_P29552770_18-12-2025_18_20_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29552791, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29552792, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29552793, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29552794, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29552795, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29552796, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29552797, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29552798, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29552799, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29552800, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29552801, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29552802, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2767043, 'mtr_portfolio_id': 29553263, 'dashboard_result_id': 18536733, '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_P29553263_18-12-2025_18_32_57.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29553267, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29553268, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29553269, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29553270, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29553271, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29553272, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29553273, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29553274, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29553275, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29553276, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29553277, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29553278, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2767043, 'mtr_portfolio_id': 29553657, 'dashboard_result_id': 18536734, '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_P29553657_18-12-2025_18_49_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29553671, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29553672, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29553673, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29553674, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29553675, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29553677, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29553678, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29553679, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29553680, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29553681, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29553682, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29553683, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2767043, 'mtr_portfolio_id': 29554219, 'dashboard_result_id': 18536735, '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_P29554219_18-12-2025_19_02_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29554244, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29554245, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29554246, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29554247, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29554248, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29554249, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29554250, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29554251, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29554252, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29554253, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29554254, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29554255, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2767043, 'mtr_portfolio_id': 29554585, 'dashboard_result_id': 18536736, '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_P29554585_18-12-2025_19_13_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29554625, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29554626, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29554627, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29554628, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29554629, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29554630, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29554631, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29554632, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29554633, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29554634, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29554635, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29554636, '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 = 29518047 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': 4244016, 'mtr_portfolio_id': 29518047, 'created_at': datetime.datetime(2025, 12, 18, 6, 8, 30), 'result': '0.03160039577318933', 'result_long': None, 'result_double': None}] Qualite : 0.03160039577318933 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29518047 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29518047_18-12-2025_06_08_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29518047 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_P29518047_18-12-2025_06_08_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29518048, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29518049, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29518050, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29518051, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29518052, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29518053, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29518054, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29518055, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29518056, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29518057, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29518058, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29518059, 'pht': 3726}}" where mtr_portfolio_id = 29518047 and dashboard_run_id = 2767043 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`=29518047 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18536669, 0.03160039577318933, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29518047_18-12-2025_06_08_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29518048, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29518049, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29518050, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29518051, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29518052, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29518053, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29518054, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29518055, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29518056, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29518057, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29518058, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29518059, '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 = 29518739 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': 4244017, 'mtr_portfolio_id': 29518739, 'created_at': datetime.datetime(2025, 12, 18, 6, 9), 'result': '0.06084823724062575', 'result_long': None, 'result_double': None}] Qualite : 0.06084823724062575 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29518739 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29518739_18-12-2025_06_09_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29518739 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_P29518739_18-12-2025_06_09_03.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29518743, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29518744, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29518745, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29518746, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29518747, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29518748, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29518749, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29518750, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29518751, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29518752, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29518753, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29518754, 'pht': 3726}}" where mtr_portfolio_id = 29518739 and dashboard_run_id = 2767043 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`=29518739 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18536670, 0.06084823724062575, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29518739_18-12-2025_06_09_03.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29518743, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29518744, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29518745, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29518746, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29518747, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29518748, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29518749, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29518750, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29518751, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29518752, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29518753, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29518754, '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 = 29519140 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': 4244018, 'mtr_portfolio_id': 29519140, 'created_at': datetime.datetime(2025, 12, 18, 6, 9, 30), 'result': '0.05106015840957442', 'result_long': None, 'result_double': None}] Qualite : 0.05106015840957442 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29519140 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29519140_18-12-2025_06_09_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29519140 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_P29519140_18-12-2025_06_09_34.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29519145, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29519146, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29519147, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29519148, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29519149, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29519150, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29519151, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29519152, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29519153, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29519154, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29519155, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29519156, 'pht': 3726}}" where mtr_portfolio_id = 29519140 and dashboard_run_id = 2767043 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`=29519140 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18536671, 0.05106015840957442, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29519140_18-12-2025_06_09_34.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29519145, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29519146, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29519147, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29519148, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29519149, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29519150, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29519151, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29519152, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29519153, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29519154, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29519155, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29519156, '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 = 29519795 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': 4244019, 'mtr_portfolio_id': 29519795, 'created_at': datetime.datetime(2025, 12, 18, 6, 10), 'result': '0.054834556193236', 'result_long': None, 'result_double': None}] Qualite : 0.054834556193236 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29519795 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29519795_18-12-2025_06_10_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29519795 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_P29519795_18-12-2025_06_10_04.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29519800, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29519801, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29519802, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29519803, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29519804, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29519805, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29519806, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29519807, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29519808, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29519809, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29519810, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29519811, 'pht': 3726}}" where mtr_portfolio_id = 29519795 and dashboard_run_id = 2767043 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`=29519795 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18536672, 0.054834556193236, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29519795_18-12-2025_06_10_04.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29519800, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29519801, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29519802, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29519803, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29519804, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29519805, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29519806, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29519807, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29519808, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29519809, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29519810, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29519811, '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 = 29520859 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': 4244020, 'mtr_portfolio_id': 29520859, 'created_at': datetime.datetime(2025, 12, 18, 6, 10, 32), 'result': '0.0755093911554323', 'result_long': None, 'result_double': None}] Qualite : 0.0755093911554323 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29520859 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29520859_18-12-2025_06_10_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29520859 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_P29520859_18-12-2025_06_10_34.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29520862, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29520863, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29520864, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29520865, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29520866, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29520867, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29520868, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29520869, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29520870, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29520871, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29520872, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29520873, 'pht': 3726}}" where mtr_portfolio_id = 29520859 and dashboard_run_id = 2767043 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`=29520859 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18536673, 0.0755093911554323, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29520859_18-12-2025_06_10_34.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29520862, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29520863, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29520864, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29520865, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29520866, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29520867, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29520868, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29520869, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29520870, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29520871, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29520872, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29520873, '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 = 29521041 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': 4244021, 'mtr_portfolio_id': 29521041, 'created_at': datetime.datetime(2025, 12, 18, 6, 10, 38), 'result': '0.0626906800236694', 'result_long': None, 'result_double': None}] Qualite : 0.0626906800236694 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29521041 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29521041_18-12-2025_02_01_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29521041 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_P29521041_18-12-2025_02_01_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29521046, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29521047, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29521048, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29521049, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29521050, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29521051, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29521052, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29521053, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29521054, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29521055, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29521056, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29521057, 'pht': 3726}}" where mtr_portfolio_id = 29521041 and dashboard_run_id = 2767043 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`=29521041 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18536674, 0.0626906800236694, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29521041_18-12-2025_02_01_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29521046, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29521047, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29521048, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29521049, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29521050, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29521051, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29521052, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29521053, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29521054, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29521055, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29521056, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29521057, '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 = 29521390 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': 4244022, 'mtr_portfolio_id': 29521390, 'created_at': datetime.datetime(2025, 12, 18, 6, 10, 59), 'result': '0.03601307954338611', 'result_long': None, 'result_double': None}] Qualite : 0.03601307954338611 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29521390 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29521390_18-12-2025_06_11_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29521390 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_P29521390_18-12-2025_06_11_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29521402, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29521403, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29521404, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29521405, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29521406, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29521407, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29521408, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29521409, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29521410, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29521411, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29521412, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29521413, 'pht': 3726}}" where mtr_portfolio_id = 29521390 and dashboard_run_id = 2767043 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`=29521390 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18536675, 0.03601307954338611, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29521390_18-12-2025_06_11_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29521402, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29521403, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29521404, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29521405, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29521406, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29521407, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29521408, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29521409, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29521410, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29521411, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29521412, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29521413, '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 = 29521664 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': 4244023, 'mtr_portfolio_id': 29521664, 'created_at': datetime.datetime(2025, 12, 18, 6, 11, 7), 'result': '0.05224710201661981', 'result_long': None, 'result_double': None}] Qualite : 0.05224710201661981 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29521664 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29521664_18-12-2025_06_11_11.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29521664 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_P29521664_18-12-2025_06_11_11.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29521670, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29521671, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29521672, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29521673, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29521674, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29521675, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29521676, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29521677, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29521678, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29521679, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29521680, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29521681, 'pht': 3726}}" where mtr_portfolio_id = 29521664 and dashboard_run_id = 2767043 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`=29521664 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18536676, 0.05224710201661981, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29521664_18-12-2025_06_11_11.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29521670, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29521671, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29521672, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29521673, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29521674, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29521675, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29521676, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29521677, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29521678, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29521679, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29521680, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29521681, '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 = 29522214 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': 4244024, 'mtr_portfolio_id': 29522214, 'created_at': datetime.datetime(2025, 12, 18, 6, 11, 27), 'result': '0.04940413964377284', 'result_long': None, 'result_double': None}] Qualite : 0.04940413964377284 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29522214 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29522214_18-12-2025_06_11_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29522214 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_P29522214_18-12-2025_06_11_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29522222, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29522223, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29522224, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29522225, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29522226, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29522227, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29522228, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29522229, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29522230, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29522231, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29522232, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29522233, 'pht': 3726}}" where mtr_portfolio_id = 29522214 and dashboard_run_id = 2767043 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`=29522214 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18536677, 0.04940413964377284, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29522214_18-12-2025_06_11_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29522222, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29522223, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29522224, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29522225, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29522226, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29522227, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29522228, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29522229, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29522230, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29522231, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29522232, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29522233, '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 = 29522701 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': 4244025, 'mtr_portfolio_id': 29522701, 'created_at': datetime.datetime(2025, 12, 18, 6, 11, 57), 'result': '0.05754232575898655', 'result_long': None, 'result_double': None}] Qualite : 0.05754232575898655 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29522701 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29522701_18-12-2025_06_12_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29522701 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_P29522701_18-12-2025_06_12_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29522709, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29522710, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29522711, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29522712, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29522713, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29522714, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29522715, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29522716, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29522717, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29522718, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29522719, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29522720, 'pht': 3726}}" where mtr_portfolio_id = 29522701 and dashboard_run_id = 2767043 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`=29522701 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18536678, 0.05754232575898655, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29522701_18-12-2025_06_12_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29522709, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29522710, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29522711, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29522712, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29522713, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29522714, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29522715, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29522716, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29522717, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29522718, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29522719, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29522720, '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 = 29523037 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': 4244026, 'mtr_portfolio_id': 29523037, 'created_at': datetime.datetime(2025, 12, 18, 6, 12, 27), 'result': '0.04587231639916059', 'result_long': None, 'result_double': None}] Qualite : 0.04587231639916059 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29523037 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29523037_18-12-2025_06_12_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29523037 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_P29523037_18-12-2025_06_12_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29523065, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29523066, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29523067, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29523068, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29523069, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29523070, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29523071, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29523072, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29523073, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29523074, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29523075, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29523076, 'pht': 3726}}" where mtr_portfolio_id = 29523037 and dashboard_run_id = 2767043 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`=29523037 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18536679, 0.04587231639916059, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29523037_18-12-2025_06_12_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29523065, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29523066, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29523067, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29523068, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29523069, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29523070, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29523071, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29523072, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29523073, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29523074, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29523075, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29523076, '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 = 29523671 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': 4244027, 'mtr_portfolio_id': 29523671, 'created_at': datetime.datetime(2025, 12, 18, 6, 13, 29), 'result': '0.0382293432947963', 'result_long': None, 'result_double': None}] Qualite : 0.0382293432947963 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29523671 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29523671_18-12-2025_06_13_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29523671 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_P29523671_18-12-2025_06_13_33.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29523679, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29523680, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29523681, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29523682, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29523683, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29523684, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29523685, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29523686, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29523687, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29523688, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29523689, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29523690, 'pht': 3726}}" where mtr_portfolio_id = 29523671 and dashboard_run_id = 2767043 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`=29523671 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18536680, 0.0382293432947963, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29523671_18-12-2025_06_13_33.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29523679, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29523680, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29523681, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29523682, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29523683, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29523684, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29523685, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29523686, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29523687, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29523688, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29523689, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29523690, '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 = 29524171 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': 4244028, 'mtr_portfolio_id': 29524171, 'created_at': datetime.datetime(2025, 12, 18, 6, 14, 1), 'result': '0.04929941874328893', 'result_long': None, 'result_double': None}] Qualite : 0.04929941874328893 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29524171 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29524171_18-12-2025_06_14_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29524171 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_P29524171_18-12-2025_06_14_04.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29524175, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29524176, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29524177, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29524178, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29524179, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29524180, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29524181, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29524182, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29524183, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29524184, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29524185, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29524186, 'pht': 3726}}" where mtr_portfolio_id = 29524171 and dashboard_run_id = 2767043 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`=29524171 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18536681, 0.04929941874328893, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29524171_18-12-2025_06_14_04.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29524175, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29524176, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29524177, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29524178, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29524179, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29524180, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29524181, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29524182, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29524183, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29524184, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29524185, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29524186, '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 = 29524599 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': 4244029, 'mtr_portfolio_id': 29524599, 'created_at': datetime.datetime(2025, 12, 18, 6, 14, 32), 'result': '0.03584565775001134', 'result_long': None, 'result_double': None}] Qualite : 0.03584565775001134 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29524599 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29524599_18-12-2025_06_14_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29524599 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_P29524599_18-12-2025_06_14_34.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29524607, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29524608, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29524609, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29524610, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29524611, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29524612, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29524613, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29524614, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29524615, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29524616, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29524617, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29524618, 'pht': 3726}}" where mtr_portfolio_id = 29524599 and dashboard_run_id = 2767043 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`=29524599 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18536682, 0.03584565775001134, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29524599_18-12-2025_06_14_34.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29524607, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29524608, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29524609, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29524610, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29524611, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29524612, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29524613, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29524614, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29524615, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29524616, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29524617, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29524618, '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 = 29525105 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': 4244030, 'mtr_portfolio_id': 29525105, 'created_at': datetime.datetime(2025, 12, 18, 6, 15), 'result': '0.052551474443826615', 'result_long': None, 'result_double': None}] Qualite : 0.052551474443826615 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29525105 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29525105_18-12-2025_06_15_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29525105 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_P29525105_18-12-2025_06_15_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29525110, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29525111, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29525112, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29525113, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29525114, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29525115, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29525116, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29525117, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29525118, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29525119, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29525120, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29525121, 'pht': 3726}}" where mtr_portfolio_id = 29525105 and dashboard_run_id = 2767043 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`=29525105 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18536683, 0.052551474443826615, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29525105_18-12-2025_06_15_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29525110, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29525111, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29525112, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29525113, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29525114, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29525115, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29525116, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29525117, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29525118, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29525119, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29525120, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29525121, '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 = 29525978 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': 4244031, 'mtr_portfolio_id': 29525978, 'created_at': datetime.datetime(2025, 12, 18, 6, 15, 31), 'result': '0.07086307058103226', 'result_long': None, 'result_double': None}] Qualite : 0.07086307058103226 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29525978 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29525978_18-12-2025_06_15_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29525978 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_P29525978_18-12-2025_06_15_34.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29525982, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29525983, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29525984, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29525985, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29525986, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29525987, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29525988, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29525989, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29525990, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29525991, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29525992, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29525993, 'pht': 3726}}" where mtr_portfolio_id = 29525978 and dashboard_run_id = 2767043 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`=29525978 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18536684, 0.07086307058103226, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29525978_18-12-2025_06_15_34.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29525982, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29525983, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29525984, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29525985, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29525986, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29525987, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29525988, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29525989, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29525990, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29525991, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29525992, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29525993, '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 = 29526227 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': 4244032, 'mtr_portfolio_id': 29526227, 'created_at': datetime.datetime(2025, 12, 18, 5, 40, 38), 'result': '0.05295123788686618', 'result_long': None, 'result_double': None}] Qualite : 0.05295123788686618 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29526227 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29526227_18-12-2025_05_40_42.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29526227 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_P29526227_18-12-2025_05_40_42.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29526232, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29526233, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29526234, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29526235, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29526236, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29526237, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29526238, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29526239, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29526240, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29526241, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29526242, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29526243, 'pht': 3726}}" where mtr_portfolio_id = 29526227 and dashboard_run_id = 2767043 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`=29526227 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18536685, 0.05295123788686618, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29526227_18-12-2025_05_40_42.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29526232, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29526233, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29526234, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29526235, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29526236, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29526237, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29526238, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29526239, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29526240, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29526241, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29526242, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29526243, '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 = 29526571 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': 4243940, 'mtr_portfolio_id': 29526571, 'created_at': datetime.datetime(2025, 12, 18, 5, 47, 2), 'result': '0.062067327390015706', 'result_long': None, 'result_double': None}] Qualite : 0.062067327390015706 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29526571 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29526571_18-12-2025_05_47_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29526571 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_P29526571_18-12-2025_05_47_02.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29526577, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29526578, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29526579, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29526580, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29526581, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29526582, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29526583, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29526584, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29526585, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29526586, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29526587, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29526588, 'pht': 3726}}" where mtr_portfolio_id = 29526571 and dashboard_run_id = 2767043 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`=29526571 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18536686, 0.062067327390015706, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29526571_18-12-2025_05_47_02.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29526577, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29526578, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29526579, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29526580, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29526581, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29526582, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29526583, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29526584, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29526585, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29526586, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29526587, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29526588, '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 = 29526944 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': 4244144, 'mtr_portfolio_id': 29526944, 'created_at': datetime.datetime(2025, 12, 18, 6, 3, 33), 'result': '0.04189129800959036', 'result_long': None, 'result_double': None}] Qualite : 0.04189129800959036 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29526944 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29526944_18-12-2025_06_03_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29526944 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_P29526944_18-12-2025_06_03_33.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29526953, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29526954, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29526955, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29526956, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29526957, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29526958, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29526959, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29526960, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29526961, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29526962, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29526963, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29526964, 'pht': 3726}}" where mtr_portfolio_id = 29526944 and dashboard_run_id = 2767043 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`=29526944 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18536687, 0.04189129800959036, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29526944_18-12-2025_06_03_33.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29526953, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29526954, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29526955, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29526956, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29526957, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29526958, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29526959, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29526960, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29526961, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29526962, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29526963, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29526964, '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 = 29527309 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': 4244213, 'mtr_portfolio_id': 29527309, 'created_at': datetime.datetime(2025, 12, 18, 6, 17), 'result': '0.061390788419819', 'result_long': None, 'result_double': None}] Qualite : 0.061390788419819 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29527309 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29527309_18-12-2025_06_17_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29527309 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_P29527309_18-12-2025_06_17_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29527313, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29527314, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29527315, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29527316, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29527317, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29527318, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29527319, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29527320, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29527321, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29527322, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29527323, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29527324, 'pht': 3726}}" where mtr_portfolio_id = 29527309 and dashboard_run_id = 2767043 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`=29527309 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18536688, 0.061390788419819, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29527309_18-12-2025_06_17_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29527313, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29527314, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29527315, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29527316, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29527317, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29527318, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29527319, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29527320, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29527321, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29527322, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29527323, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29527324, '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 = 29527635 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': 4244258, 'mtr_portfolio_id': 29527635, 'created_at': datetime.datetime(2025, 12, 18, 6, 33, 2), 'result': '0.03759320880475477', 'result_long': None, 'result_double': None}] Qualite : 0.03759320880475477 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29527635 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29527635_18-12-2025_06_33_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29527635 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_P29527635_18-12-2025_06_33_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29527638, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29527639, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29527640, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29527641, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29527642, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29527643, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29527644, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29527646, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29527647, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29527648, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29527649, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29527650, 'pht': 3726}}" where mtr_portfolio_id = 29527635 and dashboard_run_id = 2767043 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`=29527635 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18536689, 0.03759320880475477, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29527635_18-12-2025_06_33_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29527638, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29527639, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29527640, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29527641, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29527642, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29527643, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29527644, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29527646, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29527647, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29527648, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29527649, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29527650, '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 = 29528012 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': 4244312, 'mtr_portfolio_id': 29528012, 'created_at': datetime.datetime(2025, 12, 18, 8, 16, 1), 'result': '0.03786383384521478', 'result_long': None, 'result_double': None}] Qualite : 0.03786383384521478 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29528012 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29528012_18-12-2025_08_16_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29528012 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_P29528012_18-12-2025_08_16_03.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29528017, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29528018, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29528019, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29528020, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29528021, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29528022, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29528023, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29528024, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29528025, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29528026, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29528027, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29528028, 'pht': 3726}}" where mtr_portfolio_id = 29528012 and dashboard_run_id = 2767043 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`=29528012 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18536690, 0.03786383384521478, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29528012_18-12-2025_08_16_03.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29528017, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29528018, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29528019, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29528020, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29528021, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29528022, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29528023, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29528024, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29528025, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29528026, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29528027, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29528028, '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 = 29528449 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': 4244382, 'mtr_portfolio_id': 29528449, 'created_at': datetime.datetime(2025, 12, 18, 7, 2, 58), 'result': '0.054285139060117615', 'result_long': None, 'result_double': None}] Qualite : 0.054285139060117615 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29528449 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29528449_18-12-2025_07_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29528449 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_P29528449_18-12-2025_07_02_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29528462, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29528463, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29528464, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29528465, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29528466, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29528467, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29528468, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29528469, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29528470, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29528471, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29528472, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29528473, 'pht': 3726}}" where mtr_portfolio_id = 29528449 and dashboard_run_id = 2767043 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`=29528449 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18536691, 0.054285139060117615, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29528449_18-12-2025_07_02_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29528462, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29528463, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29528464, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29528465, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29528466, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29528467, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29528468, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29528469, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29528470, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29528471, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29528472, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29528473, '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 = 29528882 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': 4244448, 'mtr_portfolio_id': 29528882, 'created_at': datetime.datetime(2025, 12, 18, 7, 18, 59), 'result': '0.03658198401281332', 'result_long': None, 'result_double': None}] Qualite : 0.03658198401281332 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29528882 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29528882_18-12-2025_07_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29528882 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_P29528882_18-12-2025_07_18_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29528899, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29528900, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29528901, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29528902, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29528903, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29528904, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29528905, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29528906, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29528907, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29528908, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29528909, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29528910, 'pht': 3726}}" where mtr_portfolio_id = 29528882 and dashboard_run_id = 2767043 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`=29528882 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18536692, 0.03658198401281332, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29528882_18-12-2025_07_18_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29528899, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29528900, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29528901, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29528902, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29528903, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29528904, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29528905, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29528906, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29528907, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29528908, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29528909, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29528910, '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 = 29529672 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': 4244524, 'mtr_portfolio_id': 29529672, 'created_at': datetime.datetime(2025, 12, 18, 7, 32, 59), 'result': '0.05840643824752703', 'result_long': None, 'result_double': None}] Qualite : 0.05840643824752703 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29529672 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29529672_18-12-2025_07_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29529672 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_P29529672_18-12-2025_07_33_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29529680, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29529681, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29529682, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29529683, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29529684, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29529685, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29529686, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29529687, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29529688, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29529689, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29529690, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29529691, 'pht': 3726}}" where mtr_portfolio_id = 29529672 and dashboard_run_id = 2767043 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`=29529672 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18536693, 0.05840643824752703, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29529672_18-12-2025_07_33_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29529680, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29529681, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29529682, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29529683, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29529684, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29529685, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29529686, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29529687, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29529688, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29529689, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29529690, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29529691, '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 = 29530097 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': 4244580, 'mtr_portfolio_id': 29530097, 'created_at': datetime.datetime(2025, 12, 18, 7, 49, 1), 'result': '0.05377956909572141', 'result_long': None, 'result_double': None}] Qualite : 0.05377956909572141 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29530097 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29530097_18-12-2025_07_49_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29530097 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_P29530097_18-12-2025_07_49_02.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29530105, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29530106, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29530107, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29530108, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29530109, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29530110, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29530111, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29530112, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29530113, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29530114, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29530115, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29530116, 'pht': 3726}}" where mtr_portfolio_id = 29530097 and dashboard_run_id = 2767043 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`=29530097 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18536694, 0.05377956909572141, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29530097_18-12-2025_07_49_02.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29530105, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29530106, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29530107, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29530108, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29530109, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29530110, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29530111, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29530112, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29530113, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29530114, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29530115, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29530116, '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 = 29530582 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': 4244649, 'mtr_portfolio_id': 29530582, 'created_at': datetime.datetime(2025, 12, 18, 8, 2, 59), 'result': '0.03928558192464546', 'result_long': None, 'result_double': None}] Qualite : 0.03928558192464546 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29530582 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29530582_18-12-2025_08_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29530582 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_P29530582_18-12-2025_08_03_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29530607, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29530608, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29530609, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29530610, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29530611, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29530612, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29530613, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29530614, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29530615, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29530616, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29530617, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29530618, 'pht': 3726}}" where mtr_portfolio_id = 29530582 and dashboard_run_id = 2767043 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`=29530582 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18536695, 0.03928558192464546, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29530582_18-12-2025_08_03_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29530607, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29530608, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29530609, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29530610, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29530611, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29530612, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29530613, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29530614, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29530615, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29530616, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29530617, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29530618, '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 = 29531020 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': 4244712, 'mtr_portfolio_id': 29531020, 'created_at': datetime.datetime(2025, 12, 18, 8, 18, 59), 'result': '0.04236134745840149', 'result_long': None, 'result_double': None}] Qualite : 0.04236134745840149 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29531020 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29531020_18-12-2025_08_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29531020 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_P29531020_18-12-2025_08_18_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29531035, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29531036, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29531037, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29531038, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29531039, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29531040, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29531041, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29531042, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29531043, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29531044, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29531045, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29531046, 'pht': 3726}}" where mtr_portfolio_id = 29531020 and dashboard_run_id = 2767043 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`=29531020 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18536696, 0.04236134745840149, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29531020_18-12-2025_08_18_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29531035, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29531036, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29531037, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29531038, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29531039, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29531040, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29531041, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29531042, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29531043, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29531044, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29531045, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29531046, '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 = 29531694 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': 4244802, 'mtr_portfolio_id': 29531694, 'created_at': datetime.datetime(2025, 12, 18, 8, 33), 'result': '0.08133664011743781', 'result_long': None, 'result_double': None}] Qualite : 0.08133664011743781 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29531694 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29531694_18-12-2025_08_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29531694 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_P29531694_18-12-2025_08_33_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29531726, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29531727, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29531728, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29531729, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29531730, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29531731, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29531732, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29531733, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29531734, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29531735, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29531736, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29531737, 'pht': 3726}}" where mtr_portfolio_id = 29531694 and dashboard_run_id = 2767043 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`=29531694 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18536697, 0.08133664011743781, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29531694_18-12-2025_08_33_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29531726, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29531727, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29531728, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29531729, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29531730, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29531731, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29531732, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29531733, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29531734, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29531735, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29531736, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29531737, '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 = 29532246 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': 4244870, 'mtr_portfolio_id': 29532246, 'created_at': datetime.datetime(2025, 12, 18, 8, 46, 57), 'result': '0.05542506373220876', 'result_long': None, 'result_double': None}] Qualite : 0.05542506373220876 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29532246 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29532246_18-12-2025_08_46_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29532246 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_P29532246_18-12-2025_08_46_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29532258, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29532259, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29532260, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29532261, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29532262, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29532263, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29532264, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29532265, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29532266, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29532267, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29532268, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29532269, 'pht': 3726}}" where mtr_portfolio_id = 29532246 and dashboard_run_id = 2767043 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`=29532246 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18536698, 0.05542506373220876, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29532246_18-12-2025_08_46_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29532258, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29532259, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29532260, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29532261, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29532262, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29532263, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29532264, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29532265, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29532266, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29532267, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29532268, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29532269, '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 = 29532732 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': 4244936, 'mtr_portfolio_id': 29532732, 'created_at': datetime.datetime(2025, 12, 18, 9, 2, 59), 'result': '0.047884727407653836', 'result_long': None, 'result_double': None}] Qualite : 0.047884727407653836 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29532732 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29532732_18-12-2025_09_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29532732 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_P29532732_18-12-2025_09_02_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29532740, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29532741, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29532742, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29532743, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29532744, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29532745, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29532746, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29532747, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29532748, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29532749, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29532752, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29532753, 'pht': 3726}}" where mtr_portfolio_id = 29532732 and dashboard_run_id = 2767043 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`=29532732 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18536699, 0.047884727407653836, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29532732_18-12-2025_09_02_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29532740, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29532741, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29532742, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29532743, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29532744, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29532745, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29532746, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29532747, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29532748, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29532749, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29532752, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29532753, '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 = 29534702 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': 4245160, 'mtr_portfolio_id': 29534702, 'created_at': datetime.datetime(2025, 12, 18, 9, 49, 1), 'result': '0.06325621807706587', 'result_long': None, 'result_double': None}] Qualite : 0.06325621807706587 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29534702 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29534702_18-12-2025_09_49_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29534702 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_P29534702_18-12-2025_09_49_02.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29534735, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29534736, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29534737, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29534738, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29534739, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29534740, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29534741, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29534742, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29534743, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29534744, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29534745, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29534746, 'pht': 3726}}" where mtr_portfolio_id = 29534702 and dashboard_run_id = 2767043 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`=29534702 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18536700, 0.06325621807706587, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29534702_18-12-2025_09_49_02.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29534735, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29534736, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29534737, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29534738, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29534739, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29534740, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29534741, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29534742, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29534743, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29534744, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29534745, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29534746, '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 = 29535436 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': 4245218, 'mtr_portfolio_id': 29535436, 'created_at': datetime.datetime(2025, 12, 18, 10, 3), 'result': '0.042799872508664114', 'result_long': None, 'result_double': None}] Qualite : 0.042799872508664114 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29535436 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29535436_18-12-2025_10_03_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29535436 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_P29535436_18-12-2025_10_03_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29535496, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29535497, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29535498, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29535499, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29535500, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29535501, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29535502, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29535503, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29535504, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29535505, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29535506, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29535507, 'pht': 3726}}" where mtr_portfolio_id = 29535436 and dashboard_run_id = 2767043 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`=29535436 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18536701, 0.042799872508664114, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29535436_18-12-2025_10_03_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29535496, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29535497, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29535498, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29535499, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29535500, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29535501, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29535502, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29535503, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29535504, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29535505, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29535506, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29535507, '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 = 29536076 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': 4245297, 'mtr_portfolio_id': 29536076, 'created_at': datetime.datetime(2025, 12, 18, 10, 19), 'result': '0.05470350695505103', 'result_long': None, 'result_double': None}] Qualite : 0.05470350695505103 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29536076 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29536076_18-12-2025_10_19_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29536076 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_P29536076_18-12-2025_10_19_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29536092, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29536093, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29536094, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29536095, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29536096, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29536097, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29536098, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29536099, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29536100, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29536101, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29536102, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29536103, 'pht': 3726}}" where mtr_portfolio_id = 29536076 and dashboard_run_id = 2767043 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`=29536076 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18536702, 0.05470350695505103, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29536076_18-12-2025_10_19_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29536092, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29536093, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29536094, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29536095, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29536096, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29536097, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29536098, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29536099, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29536100, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29536101, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29536102, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29536103, '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 = 29536806 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': 4245371, 'mtr_portfolio_id': 29536806, 'created_at': datetime.datetime(2025, 12, 18, 10, 32, 58), 'result': '0.04716405841383832', 'result_long': None, 'result_double': None}] Qualite : 0.04716405841383832 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29536806 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29536806_18-12-2025_10_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29536806 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_P29536806_18-12-2025_10_32_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29536814, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29536815, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29536816, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29536817, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29536818, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29536819, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29536820, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29536821, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29536822, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29536823, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29536824, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29536825, 'pht': 3726}}" where mtr_portfolio_id = 29536806 and dashboard_run_id = 2767043 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`=29536806 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18536703, 0.04716405841383832, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29536806_18-12-2025_10_32_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29536814, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29536815, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29536816, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29536817, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29536818, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29536819, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29536820, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29536821, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29536822, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29536823, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29536824, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29536825, '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 = 29537598 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': 4245451, 'mtr_portfolio_id': 29537598, 'created_at': datetime.datetime(2025, 12, 18, 10, 48, 56), 'result': '0.04849076799267783', 'result_long': None, 'result_double': None}] Qualite : 0.04849076799267783 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29537598 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29537598_18-12-2025_10_48_56.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29537598 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_P29537598_18-12-2025_10_48_56.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29537644, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29537645, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29537646, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29537647, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29537648, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29537649, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29537650, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29537651, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29537653, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29537656, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29537658, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29537660, 'pht': 3726}}" where mtr_portfolio_id = 29537598 and dashboard_run_id = 2767043 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`=29537598 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18536704, 0.04849076799267783, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29537598_18-12-2025_10_48_56.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29537644, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29537645, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29537646, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29537647, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29537648, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29537649, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29537650, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29537651, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29537653, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29537656, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29537658, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29537660, '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 = 29538418 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': 4245550, 'mtr_portfolio_id': 29538418, 'created_at': datetime.datetime(2025, 12, 18, 11, 3), 'result': '0.06064088875154784', 'result_long': None, 'result_double': None}] Qualite : 0.06064088875154784 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29538418 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29538418_18-12-2025_11_03_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29538418 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_P29538418_18-12-2025_11_03_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29538443, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29538444, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29538445, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29538446, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29538447, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29538448, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29538449, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29538450, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29538451, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29538452, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29538453, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29538454, 'pht': 3726}}" where mtr_portfolio_id = 29538418 and dashboard_run_id = 2767043 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`=29538418 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18536705, 0.06064088875154784, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29538418_18-12-2025_11_03_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29538443, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29538444, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29538445, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29538446, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29538447, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29538448, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29538449, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29538450, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29538451, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29538452, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29538453, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29538454, '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 = 29539090 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': 4245620, 'mtr_portfolio_id': 29539090, 'created_at': datetime.datetime(2025, 12, 18, 11, 18, 59), 'result': '0.03947901485097099', 'result_long': None, 'result_double': None}] Qualite : 0.03947901485097099 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29539090 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29539090_18-12-2025_11_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29539090 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_P29539090_18-12-2025_11_18_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29539197, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29539198, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29539199, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29539200, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29539201, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29539202, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29539203, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29539204, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29539205, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29539206, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29539207, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29539208, 'pht': 3726}}" where mtr_portfolio_id = 29539090 and dashboard_run_id = 2767043 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`=29539090 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18536706, 0.03947901485097099, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29539090_18-12-2025_11_18_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29539197, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29539198, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29539199, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29539200, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29539201, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29539202, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29539203, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29539204, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29539205, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29539206, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29539207, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29539208, '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 = 29540060 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': 4245688, 'mtr_portfolio_id': 29540060, 'created_at': datetime.datetime(2025, 12, 18, 11, 33), 'result': '0.043750455768051665', 'result_long': None, 'result_double': None}] Qualite : 0.043750455768051665 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29540060 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29540060_18-12-2025_11_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29540060 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_P29540060_18-12-2025_11_33_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29540068, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29540069, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29540070, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29540071, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29540072, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29540073, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29540074, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29540075, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29540076, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29540077, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29540078, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29540079, 'pht': 3726}}" where mtr_portfolio_id = 29540060 and dashboard_run_id = 2767043 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`=29540060 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18536708, 0.043750455768051665, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29540060_18-12-2025_11_33_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29540068, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29540069, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29540070, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29540071, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29540072, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29540073, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29540074, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29540075, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29540076, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29540077, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29540078, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29540079, '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 = 29540604 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': 4245777, 'mtr_portfolio_id': 29540604, 'created_at': datetime.datetime(2025, 12, 18, 11, 48, 58), 'result': '0.07513198831648656', 'result_long': None, 'result_double': None}] Qualite : 0.07513198831648656 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29540604 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29540604_18-12-2025_11_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29540604 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_P29540604_18-12-2025_11_48_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29540618, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29540619, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29540620, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29540621, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29540622, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29540623, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29540624, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29540625, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29540626, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29540627, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29540628, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29540629, 'pht': 3726}}" where mtr_portfolio_id = 29540604 and dashboard_run_id = 2767043 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`=29540604 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18536709, 0.07513198831648656, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29540604_18-12-2025_11_48_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29540618, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29540619, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29540620, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29540621, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29540622, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29540623, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29540624, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29540625, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29540626, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29540627, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29540628, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29540629, '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 = 29541128 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': 4245850, 'mtr_portfolio_id': 29541128, 'created_at': datetime.datetime(2025, 12, 18, 12, 2, 59), 'result': '0.042059493124240004', 'result_long': None, 'result_double': None}] Qualite : 0.042059493124240004 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29541128 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29541128_18-12-2025_12_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29541128 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_P29541128_18-12-2025_12_02_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29541161, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29541162, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29541163, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29541164, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29541165, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29541166, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29541167, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29541168, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29541169, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29541170, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29541171, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29541172, 'pht': 3726}}" where mtr_portfolio_id = 29541128 and dashboard_run_id = 2767043 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`=29541128 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18536710, 0.042059493124240004, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29541128_18-12-2025_12_02_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29541161, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29541162, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29541163, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29541164, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29541165, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29541166, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29541167, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29541168, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29541169, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29541170, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29541171, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29541172, '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 = 29541476 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': 4245914, 'mtr_portfolio_id': 29541476, 'created_at': datetime.datetime(2025, 12, 18, 12, 33), 'result': '0.043502423146565265', 'result_long': None, 'result_double': None}] Qualite : 0.043502423146565265 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29541476 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29541476_18-12-2025_12_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29541476 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_P29541476_18-12-2025_12_33_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29541511, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29541512, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29541513, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29541514, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29541515, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29541516, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29541517, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29541518, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29541519, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29541520, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29541521, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29541522, 'pht': 3726}}" where mtr_portfolio_id = 29541476 and dashboard_run_id = 2767043 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`=29541476 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18536712, 0.043502423146565265, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29541476_18-12-2025_12_33_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29541511, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29541512, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29541513, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29541514, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29541515, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29541516, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29541517, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29541518, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29541519, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29541520, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29541521, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29541522, '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 = 29542319 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': 4246020, 'mtr_portfolio_id': 29542319, 'created_at': datetime.datetime(2025, 12, 18, 14, 0, 58), 'result': '0.05136734799353996', 'result_long': None, 'result_double': None}] Qualite : 0.05136734799353996 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29542319 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29542319_18-12-2025_14_00_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29542319 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_P29542319_18-12-2025_14_00_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29542330, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29542331, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29542332, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29542333, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29542334, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29542335, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29542336, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29542337, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29542338, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29542339, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29542340, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29542341, 'pht': 3726}}" where mtr_portfolio_id = 29542319 and dashboard_run_id = 2767043 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`=29542319 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18536713, 0.05136734799353996, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29542319_18-12-2025_14_00_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29542330, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29542331, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29542332, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29542333, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29542334, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29542335, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29542336, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29542337, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29542338, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29542339, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29542340, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29542341, '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 = 29543553 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': 4246180, 'mtr_portfolio_id': 29543553, 'created_at': datetime.datetime(2025, 12, 18, 13, 46, 59), 'result': '0.047113267037903', 'result_long': None, 'result_double': None}] Qualite : 0.047113267037903 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29543553 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29543553_18-12-2025_13_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29543553 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_P29543553_18-12-2025_13_46_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29543554, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29543555, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29543556, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29543557, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29543558, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29543559, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29543560, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29543561, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29543562, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29543563, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29543564, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29543565, 'pht': 3726}}" where mtr_portfolio_id = 29543553 and dashboard_run_id = 2767043 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`=29543553 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18536714, 0.047113267037903, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29543553_18-12-2025_13_46_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29543554, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29543555, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29543556, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29543557, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29543558, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29543559, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29543560, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29543561, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29543562, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29543563, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29543564, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29543565, '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 = 29543827 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': 4246194, 'mtr_portfolio_id': 29543827, 'created_at': datetime.datetime(2025, 12, 18, 14, 2, 59), 'result': '0.050112884805389786', 'result_long': None, 'result_double': None}] Qualite : 0.050112884805389786 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29543827 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29543827_18-12-2025_14_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29543827 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_P29543827_18-12-2025_14_03_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29543831, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29543832, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29543833, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29543834, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29543835, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29543836, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29543837, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29543838, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29543839, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29543840, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29543841, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29543842, 'pht': 3726}}" where mtr_portfolio_id = 29543827 and dashboard_run_id = 2767043 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`=29543827 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18536715, 0.050112884805389786, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29543827_18-12-2025_14_03_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29543831, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29543832, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29543833, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29543834, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29543835, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29543836, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29543837, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29543838, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29543839, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29543840, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29543841, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29543842, '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 = 29544201 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': 4246264, 'mtr_portfolio_id': 29544201, 'created_at': datetime.datetime(2025, 12, 18, 14, 19, 29), 'result': '0.05239283104800608', 'result_long': None, 'result_double': None}] Qualite : 0.05239283104800608 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29544201 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29544201_18-12-2025_14_19_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29544201 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_P29544201_18-12-2025_14_19_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29544228, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29544229, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29544230, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29544231, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29544232, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29544233, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29544234, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29544235, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29544236, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29544237, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29544238, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29544239, 'pht': 3726}}" where mtr_portfolio_id = 29544201 and dashboard_run_id = 2767043 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`=29544201 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18536717, 0.05239283104800608, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29544201_18-12-2025_14_19_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29544228, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29544229, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29544230, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29544231, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29544232, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29544233, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29544234, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29544235, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29544236, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29544237, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29544238, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29544239, '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 = 29544927 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': 4246352, 'mtr_portfolio_id': 29544927, 'created_at': datetime.datetime(2025, 12, 18, 14, 32, 59), 'result': '0.0587115220298215', 'result_long': None, 'result_double': None}] Qualite : 0.0587115220298215 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29544927 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29544927_18-12-2025_14_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29544927 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_P29544927_18-12-2025_14_33_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29544931, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29544932, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29544933, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29544934, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29544935, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29544936, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29544937, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29544938, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29544939, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29544940, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29544941, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29544942, 'pht': 3726}}" where mtr_portfolio_id = 29544927 and dashboard_run_id = 2767043 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`=29544927 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18536718, 0.0587115220298215, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29544927_18-12-2025_14_33_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29544931, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29544932, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29544933, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29544934, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29544935, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29544936, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29544937, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29544938, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29544939, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29544940, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29544941, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29544942, '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 = 29545385 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': 4246422, 'mtr_portfolio_id': 29545385, 'created_at': datetime.datetime(2025, 12, 18, 14, 46, 59), 'result': '0.04955462792337958', 'result_long': None, 'result_double': None}] Qualite : 0.04955462792337958 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29545385 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29545385_18-12-2025_14_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29545385 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_P29545385_18-12-2025_14_46_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29545420, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29545421, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29545422, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29545423, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29545424, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29545425, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29545426, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29545427, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29545428, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29545429, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29545430, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29545431, 'pht': 3726}}" where mtr_portfolio_id = 29545385 and dashboard_run_id = 2767043 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`=29545385 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18536719, 0.04955462792337958, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29545385_18-12-2025_14_46_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29545420, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29545421, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29545422, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29545423, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29545424, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29545425, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29545426, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29545427, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29545428, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29545429, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29545430, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29545431, '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 = 29546011 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': 4246498, 'mtr_portfolio_id': 29546011, 'created_at': datetime.datetime(2025, 12, 18, 15, 2, 58), 'result': '0.059863441031454405', 'result_long': None, 'result_double': None}] Qualite : 0.059863441031454405 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29546011 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29546011_18-12-2025_15_02_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29546011 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_P29546011_18-12-2025_15_02_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29546036, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29546037, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29546038, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29546039, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29546040, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29546041, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29546042, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29546043, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29546044, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29546045, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29546046, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29546047, 'pht': 3726}}" where mtr_portfolio_id = 29546011 and dashboard_run_id = 2767043 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`=29546011 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18536720, 0.059863441031454405, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29546011_18-12-2025_15_02_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29546036, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29546037, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29546038, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29546039, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29546040, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29546041, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29546042, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29546043, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29546044, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29546045, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29546046, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29546047, '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 = 29546661 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': 4246579, 'mtr_portfolio_id': 29546661, 'created_at': datetime.datetime(2025, 12, 18, 15, 18, 59), 'result': '0.03220466852364411', 'result_long': None, 'result_double': None}] Qualite : 0.03220466852364411 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29546661 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29546661_18-12-2025_15_19_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29546661 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_P29546661_18-12-2025_15_19_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29546715, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29546716, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29546717, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29546718, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29546719, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29546720, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29546721, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29546722, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29546724, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29546725, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29546726, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29546727, 'pht': 3726}}" where mtr_portfolio_id = 29546661 and dashboard_run_id = 2767043 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`=29546661 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18536722, 0.03220466852364411, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29546661_18-12-2025_15_19_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29546715, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29546716, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29546717, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29546718, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29546719, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29546720, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29546721, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29546722, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29546724, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29546725, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29546726, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29546727, '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 = 29547189 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': 4246648, 'mtr_portfolio_id': 29547189, 'created_at': datetime.datetime(2025, 12, 18, 15, 32, 59), 'result': '0.04616619188712364', 'result_long': None, 'result_double': None}] Qualite : 0.04616619188712364 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29547189 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29547189_18-12-2025_15_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29547189 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_P29547189_18-12-2025_15_33_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29547215, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29547216, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29547217, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29547218, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29547219, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29547220, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29547221, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29547222, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29547223, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29547224, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29547225, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29547226, 'pht': 3726}}" where mtr_portfolio_id = 29547189 and dashboard_run_id = 2767043 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`=29547189 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18536723, 0.04616619188712364, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29547189_18-12-2025_15_33_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29547215, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29547216, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29547217, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29547218, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29547219, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29547220, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29547221, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29547222, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29547223, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29547224, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29547225, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29547226, '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 = 29547628 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': 4246701, 'mtr_portfolio_id': 29547628, 'created_at': datetime.datetime(2025, 12, 18, 15, 48, 58), 'result': '0.046820911183930995', 'result_long': None, 'result_double': None}] Qualite : 0.046820911183930995 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29547628 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29547628_18-12-2025_15_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29547628 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_P29547628_18-12-2025_15_48_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29547645, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29547646, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29547647, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29547648, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29547649, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29547650, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29547651, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29547652, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29547653, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29547654, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29547655, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29547656, 'pht': 3726}}" where mtr_portfolio_id = 29547628 and dashboard_run_id = 2767043 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`=29547628 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18536724, 0.046820911183930995, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29547628_18-12-2025_15_48_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29547645, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29547646, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29547647, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29547648, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29547649, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29547650, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29547651, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29547652, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29547653, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29547654, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29547655, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29547656, '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 = 29548271 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': 4246780, 'mtr_portfolio_id': 29548271, 'created_at': datetime.datetime(2025, 12, 18, 16, 2, 59), 'result': '0.06047893937273799', 'result_long': None, 'result_double': None}] Qualite : 0.06047893937273799 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29548271 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29548271_18-12-2025_16_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29548271 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_P29548271_18-12-2025_16_02_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29548296, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29548297, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29548298, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29548299, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29548300, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29548301, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29548302, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29548303, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29548304, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29548305, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29548306, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29548307, 'pht': 3726}}" where mtr_portfolio_id = 29548271 and dashboard_run_id = 2767043 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`=29548271 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18536725, 0.06047893937273799, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29548271_18-12-2025_16_02_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29548296, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29548297, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29548298, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29548299, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29548300, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29548301, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29548302, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29548303, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29548304, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29548305, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29548306, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29548307, '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 = 29548588 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': 4246842, 'mtr_portfolio_id': 29548588, 'created_at': datetime.datetime(2025, 12, 18, 16, 18, 58), 'result': '0.02943340729912802', 'result_long': None, 'result_double': None}] Qualite : 0.02943340729912802 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29548588 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29548588_18-12-2025_16_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29548588 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_P29548588_18-12-2025_16_18_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29548623, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29548624, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29548625, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29548626, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29548627, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29548628, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29548629, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29548630, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29548631, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29548632, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29548633, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29548634, 'pht': 3726}}" where mtr_portfolio_id = 29548588 and dashboard_run_id = 2767043 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`=29548588 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18536726, 0.02943340729912802, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29548588_18-12-2025_16_18_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29548623, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29548624, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29548625, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29548626, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29548627, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29548628, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29548629, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29548630, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29548631, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29548632, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29548633, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29548634, '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 = 29549416 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': 4246922, 'mtr_portfolio_id': 29549416, 'created_at': datetime.datetime(2025, 12, 18, 16, 33), 'result': '0.05961326307555654', 'result_long': None, 'result_double': None}] Qualite : 0.05961326307555654 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29549416 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29549416_18-12-2025_16_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29549416 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_P29549416_18-12-2025_16_33_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29549471, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29549472, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29549473, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29549474, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29549475, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29549476, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29549477, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29549478, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29549479, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29549480, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29549481, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29549482, 'pht': 3726}}" where mtr_portfolio_id = 29549416 and dashboard_run_id = 2767043 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`=29549416 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18536727, 0.05961326307555654, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29549416_18-12-2025_16_33_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29549471, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29549472, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29549473, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29549474, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29549475, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29549476, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29549477, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29549478, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29549479, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29549480, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29549481, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29549482, '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 = 29550106 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': 4246974, 'mtr_portfolio_id': 29550106, 'created_at': datetime.datetime(2025, 12, 18, 16, 48, 58), 'result': '0.04080693210453312', 'result_long': None, 'result_double': None}] Qualite : 0.04080693210453312 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29550106 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29550106_18-12-2025_16_48_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29550106 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_P29550106_18-12-2025_16_48_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29550159, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29550160, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29550161, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29550162, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29550163, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29550165, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29550166, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29550167, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29550168, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29550169, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29550170, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29550171, 'pht': 3726}}" where mtr_portfolio_id = 29550106 and dashboard_run_id = 2767043 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`=29550106 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18536728, 0.04080693210453312, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29550106_18-12-2025_16_48_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29550159, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29550160, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29550161, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29550162, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29550163, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29550165, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29550166, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29550167, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29550168, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29550169, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29550170, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29550171, '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 = 29550700 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': 4247039, 'mtr_portfolio_id': 29550700, 'created_at': datetime.datetime(2025, 12, 18, 17, 3), 'result': '0.038641059637440786', 'result_long': None, 'result_double': None}] Qualite : 0.038641059637440786 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29550700 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29550700_18-12-2025_17_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29550700 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_P29550700_18-12-2025_17_03_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29550708, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29550709, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29550710, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29550711, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29550712, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29550713, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29550714, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29550715, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29550716, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29550717, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29550718, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29550719, 'pht': 3726}}" where mtr_portfolio_id = 29550700 and dashboard_run_id = 2767043 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`=29550700 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18536729, 0.038641059637440786, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29550700_18-12-2025_17_03_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29550708, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29550709, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29550710, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29550711, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29550712, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29550713, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29550714, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29550715, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29550716, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29550717, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29550718, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29550719, '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 = 29551055 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': 4247125, 'mtr_portfolio_id': 29551055, 'created_at': datetime.datetime(2025, 12, 18, 17, 19), 'result': '0.04648907238852509', 'result_long': None, 'result_double': None}] Qualite : 0.04648907238852509 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29551055 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29551055_18-12-2025_17_19_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29551055 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_P29551055_18-12-2025_17_19_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29551093, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29551094, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29551095, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29551096, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29551097, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29551098, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29551099, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29551100, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29551101, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29551102, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29551103, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29551104, 'pht': 3726}}" where mtr_portfolio_id = 29551055 and dashboard_run_id = 2767043 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`=29551055 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18536730, 0.04648907238852509, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29551055_18-12-2025_17_19_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29551093, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29551094, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29551095, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29551096, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29551097, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29551098, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29551099, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29551100, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29551101, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29551102, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29551103, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29551104, '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 = 29551776 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': 4247215, 'mtr_portfolio_id': 29551776, 'created_at': datetime.datetime(2025, 12, 18, 18, 2, 56), 'result': '0.050524095178605094', 'result_long': None, 'result_double': None}] Qualite : 0.050524095178605094 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29551776 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29551776_18-12-2025_18_02_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29551776 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_P29551776_18-12-2025_18_02_57.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29551801, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29551802, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29551803, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29551804, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29551805, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29551806, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29551807, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29551808, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29551809, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29551810, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29551811, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29551812, 'pht': 3726}}" where mtr_portfolio_id = 29551776 and dashboard_run_id = 2767043 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`=29551776 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18536731, 0.050524095178605094, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29551776_18-12-2025_18_02_57.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29551801, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29551802, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29551803, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29551804, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29551805, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29551806, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29551807, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29551808, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29551809, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29551810, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29551811, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29551812, '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 = 29552770 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': 4247359, 'mtr_portfolio_id': 29552770, 'created_at': datetime.datetime(2025, 12, 18, 18, 19, 59), 'result': '0.039528458364110286', 'result_long': None, 'result_double': None}] Qualite : 0.039528458364110286 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29552770 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29552770_18-12-2025_18_20_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29552770 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_P29552770_18-12-2025_18_20_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29552791, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29552792, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29552793, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29552794, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29552795, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29552796, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29552797, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29552798, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29552799, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29552800, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29552801, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29552802, 'pht': 3726}}" where mtr_portfolio_id = 29552770 and dashboard_run_id = 2767043 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`=29552770 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18536732, 0.039528458364110286, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29552770_18-12-2025_18_20_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29552791, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29552792, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29552793, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29552794, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29552795, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29552796, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29552797, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29552798, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29552799, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29552800, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29552801, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29552802, '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 = 29553263 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': 4247424, 'mtr_portfolio_id': 29553263, 'created_at': datetime.datetime(2025, 12, 18, 18, 32, 56), 'result': '0.044824082322684526', 'result_long': None, 'result_double': None}] Qualite : 0.044824082322684526 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29553263 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29553263_18-12-2025_18_32_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29553263 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_P29553263_18-12-2025_18_32_57.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29553267, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29553268, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29553269, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29553270, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29553271, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29553272, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29553273, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29553274, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29553275, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29553276, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29553277, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29553278, 'pht': 3726}}" where mtr_portfolio_id = 29553263 and dashboard_run_id = 2767043 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`=29553263 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18536733, 0.044824082322684526, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29553263_18-12-2025_18_32_57.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29553267, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29553268, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29553269, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29553270, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29553271, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29553272, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29553273, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29553274, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29553275, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29553276, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29553277, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29553278, '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 = 29553657 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': 4247487, 'mtr_portfolio_id': 29553657, 'created_at': datetime.datetime(2025, 12, 18, 18, 48, 59), 'result': '0.04239232158609177', 'result_long': None, 'result_double': None}] Qualite : 0.04239232158609177 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29553657 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29553657_18-12-2025_18_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29553657 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_P29553657_18-12-2025_18_49_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29553671, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29553672, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29553673, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29553674, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29553675, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29553677, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29553678, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29553679, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29553680, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29553681, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29553682, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29553683, 'pht': 3726}}" where mtr_portfolio_id = 29553657 and dashboard_run_id = 2767043 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`=29553657 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18536734, 0.04239232158609177, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29553657_18-12-2025_18_49_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29553671, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29553672, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29553673, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29553674, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29553675, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29553677, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29553678, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29553679, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29553680, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29553681, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29553682, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29553683, '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 = 29554219 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': 4247574, 'mtr_portfolio_id': 29554219, 'created_at': datetime.datetime(2025, 12, 18, 19, 2, 58), 'result': '0.0496061999447244', 'result_long': None, 'result_double': None}] Qualite : 0.0496061999447244 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29554219 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29554219_18-12-2025_19_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29554219 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_P29554219_18-12-2025_19_02_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29554244, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29554245, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29554246, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29554247, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29554248, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29554249, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29554250, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29554251, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29554252, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29554253, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29554254, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29554255, 'pht': 3726}}" where mtr_portfolio_id = 29554219 and dashboard_run_id = 2767043 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`=29554219 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18536735, 0.0496061999447244, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29554219_18-12-2025_19_02_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29554244, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29554245, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29554246, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29554247, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29554248, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29554249, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29554250, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29554251, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29554252, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29554253, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29554254, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29554255, '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 = 29554585 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': 4247650, 'mtr_portfolio_id': 29554585, 'created_at': datetime.datetime(2025, 12, 18, 19, 15), 'result': '0.027274101887959055', 'result_long': None, 'result_double': None}] Qualite : 0.027274101887959055 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29554585 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29554585_18-12-2025_19_15_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29554585 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_P29554585_18-12-2025_19_15_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29554625, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29554626, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29554627, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29554628, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29554629, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29554630, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29554631, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29554632, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29554633, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29554634, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29554635, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29554636, 'pht': 3726}}" where mtr_portfolio_id = 29554585 and dashboard_run_id = 2767043 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`=29554585 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18536736, 0.027274101887959055, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29554585_18-12-2025_19_15_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29554625, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29554626, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29554627, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29554628, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29554629, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29554630, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29554631, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29554632, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29554633, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29554634, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29554635, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29554636, '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 (29518047,29518739,29519140,29519795,29520859,29521041,29521390,29521664,29522214,29522701,29523037,29523671,29524171,29524599,29525105,29525978,29526227,29526571,29526944,29527309,29527635,29528012,29528449,29528882,29529672,29530097,29530582,29531020,29531694,29532246,29532732,29534702,29535436,29536076,29536806,29537598,29538418,29539090,29540060,29540604,29541128,29541476,29542319,29543553,29543827,29544201,29544927,29545385,29546011,29546661,29547189,29547628,29548271,29548588,29549416,29550106,29550700,29551055,29551776,29552770,29553263,29553657,29554219,29554585) result : ((1399862066,), (1399862100,), (1399862137,), (1399862172,), (1399862203,), (1399862461,), (1399862509,), (1399862581,), (1399862647,), (1399862712,), (1399862777,), (1399863346,), (1399863401,), (1399864109,), (1399864190,), (1399864229,), (1399864263,), (1399864298,), (1399864481,), (1399864513,), (1399864546,), (1399864578,), (1399864601,), (1399864602,), (1399864716,), (1399865151,), (1399865152,), (1399865985,), (1399866386,), (1399866332,), (1399866335,), (1399866356,), (1399866621,), (1399866661,), (1399866695,), (1399866729,), (1399866764,), (1399867132,), (1399867134,), (1399867136,), (1399867140,), (1399867144,), (1399867171,), (1399867203,), (1399867238,), (1399867275,), (1399867312,), (1399867506,), (1399867537,), (1399867555,), (1399867571,), (1399867575,), (1399867577,), (1399867600,), (1399867603,), (1399867606,), (1399867609,), (1399867617,), (1399867619,), (1399867622,), (1399867624,), (1399867626,), (1399867633,), (1399867639,), (1399867648,), (1399867655,), (1399867658,), (1399867661,), (1399867664,), (1399867666,), (1399867671,), (1399867673,), (1399867700,), (1399867702,), (1399867710,), (1399867712,), (1399867715,), (1399867718,), (1399867723,), (1399867724,), (1399867726,), (1399867729,), (1399867732,), (1399867735,), (1399867802,), (1399867815,), (1399867816,), (1399867817,), (1399867818,), (1399867820,), (1399868158,), (1399868194,), (1399868226,), (1399868256,), (1399868289,), (1399868321,), (1399868616,), (1399868919,), (1399869017,), (1399869018,), (1399868446,), (1399868482,), (1399868516,), (1399868548,), (1399868583,), (1399868743,), (1399868778,), (1399868811,), (1399868848,), (1399868884,), (1399869019,), (1399869020,), (1399869021,), (1399869022,), (1399869025,), (1399869289,), (1399869297,), (1399869301,), (1399869302,), (1399869305,), (1399869339,), (1399869426,), (1399869430,), (1399869432,), (1399869436,), (1399869444,), (1399869449,), (1399869455,), (1399869459,), (1399869460,), (1399869461,), (1399869463,), (1399869466,), (1399869469,), (1399869472,), (1399869476,), (1399869483,), (1399869484,), (1399869485,), (1399869486,), (1399869499,), (1399869536,), (1399869858,), (1399869895,), (1399869931,), (1399869967,), (1399870008,), (1399870248,), (1399870272,), (1399870305,), (1399870343,), (1399870357,), (1399870360,), (1399870405,), (1399870432,), (1399870443,), (1399870444,), (1399870445,), (1399870446,), (1399870449,), (1399870462,), (1399870464,), (1399870466,), (1399870470,), (1399870483,), (1399870484,), (1399870485,), (1399870486,), (1399870489,), (1399870492,), (1399870495,), (1399870498,), (1399870500,), (1399870501,), (1399870502,), (1399870505,), (1399870507,), (1399870509,), (1399870534,), (1399870542,), (1399870544,), (1399870545,), (1399870548,), (1399870551,), (1399870559,), (1399870561,), (1399870562,), (1399870605,), (1399870767,), (1399870584,), (1399870586,), (1399870589,), (1399870591,), (1399870594,), (1399870595,), (1399870598,), (1399870600,), (1399870602,), (1399870603,), (1399870619,), (1399870625,), (1399870629,), (1399870632,), (1399870635,), (1399870636,), (1399870640,), (1399870643,), (1399870646,), (1399870649,), (1399870651,), (1399870652,), (1399870665,), (1399870668,), (1399870672,), (1399870675,), (1399870677,), (1399870680,), (1399870684,), (1399870687,), (1399870690,), (1399870692,), (1399870694,), (1399870697,), (1399870702,), (1399870704,), (1399870705,), (1399870707,), (1399870709,), (1399870711,), (1399870722,), (1399870726,), (1399870727,), (1399870728,), (1399870729,), (1399870730,), (1399870756,), (1399870758,), (1399870760,), (1399870762,), (1399870765,), (1399870773,), (1399870774,), (1399870777,), (1399870780,), (1399870783,), (1399870788,), (1399870909,), (1399870943,), (1399870976,), (1399871010,), (1399871042,), (1399871379,), (1399871415,), (1399871445,), (1399871477,), (1399871509,), (1399871543,), (1399871858,), (1399871872,), (1399871873,), (1399871874,), (1399871876,), (1399871878,), (1399871987,), (1399872024,), (1399872056,), (1399872114,), (1399872322,), (1399872323,), (1399872326,), (1399872329,), (1399872332,), (1399872353,), (1399872355,), (1399872358,), (1399872362,), (1399872363,), (1399872365,), (1399872370,), (1399872371,), (1399872374,), (1399872377,), (1399872380,), (1399872383,), (1399872400,), (1399872407,), (1399872412,), (1399872413,), (1399872414,), (1399872415,), (1399872461,), (1399872464,), (1399876930,), (1399876926,), (1399876928,), (1399876948,), (1399876950,), (1399876952,), (1399876954,), (1399876957,), (1399876970,), (1399876971,), (1399876972,), (1399876976,), (1399876980,), (1399876982,), (1399876989,), (1399876991,), (1399877005,), (1399877033,), (1399877034,), (1399877049,), (1399877051,), (1399877070,), (1399877071,), (1399877072,), (1399877073,), (1399877076,), (1399877085,), (1399877088,), (1399877090,), (1399877094,), (1399877101,), (1399877117,), (1399877112,), (1399877113,), (1399877114,), (1399877146,), (1399877147,), (1399877148,), (1399877161,), (1399877162,), (1399877163,), (1399877164,), (1399877167,), (1399877170,), (1399877181,), (1399877182,), (1399877183,), (1399877184,), (1399877193,), (1399877195,), (1399877197,), (1399877217,), (1399877219,), (1399877221,), (1399877225,), (1399877229,), (1399877236,), (1399877237,), (1399877238,), (1399877239,), (1399877241,), (1399877242,), (1399877271,), (1399877272,), (1399877273,), (1399877274,), (1399877277,), (1399877287,), (1399877288,), (1399877289,), (1399877290,), (1399877316,), (1399877317,), (1399877318,), (1399877319,), (1399877325,), (1399877327,), (1399877329,), (1399877333,), (1399877337,), (1399877348,), (1399877349,), (1399877350,), (1399877376,), (1399877378,), (1399877382,), (1399877385,), (1399877387,), (1399877389,), (1399877393,), (1399877396,), (1399877400,), (1399877403,), (1399877405,), (1399877418,), (1399877410,), (1399877411,), (1399877412,), (1399877413,), (1399877416,), (1399877423,), (1399878139,), (1399878158,), (1399878159,), (1399878161,), (1399878165,), (1399878166,), (1399878169,), (1399878172,), (1399878280,), (1399878329,), (1399878366,), (1399878482,), (1399878532,), (1399878626,), (1399878813,), (1399878958,), (1399879037,), (1399879119,), (1399879206,), (1399879276,), (1399879460,), (1399879515,), (1399879550,), (1399879590,), (1399879630,), (1399879668,), (1399879769,), (1399879771,), (1399879772,), (1399879774,), (1399879776,), (1399879911,), (1399879958,), (1399879997,), (1399880036,), (1399880098,), (1399880176,), (1399880404,), (1399880450,), (1399880474,), (1399880683,), (1399880689,), (1399880786,), (1399881612,), (1399881613,), (1399881615,), (1399881616,), (1399881619,), (1399881623,), (1399881640,), (1399881636,), (1399881638,), (1399882198,), (1399882208,), (1399882210,), (1399882214,), (1399882218,), (1399882238,), (1399882240,), (1399882242,), (1399882246,), (1399882249,), (1399882261,), (1399882263,), (1399882267,), (1399882271,), (1399882275,), (1399882281,), (1399882290,), (1399882292,), (1399882294,), (1399882297,), (1399882300,), (1399882303,), (1399882307,), (1399882314,), (1399882315,), (1399882316,), (1399882385,), (1399882391,), (1399882399,), (1399882408,), (1399882424,), (1399882425,), (1399882426,), (1399882427,), (1399882430,), (1399882447,), (1399882448,), (1399882449,), (1399882461,), (1399882462,), (1399882463,), (1399882484,), (1399882485,), (1399882486,), (1399882487,), (1399882488,), (1399882500,), (1399882501,), (1399882502,), (1399882503,), (1399882506,), (1399882521,), (1399882522,), (1399882523,), (1399882524,), (1399882538,), (1399882539,), (1399882540,), (1399882543,), (1399882546,), (1399882553,), (1399882555,), (1399882556,), (1399882557,), (1399882558,), (1399882560,), (1399882561,), (1399882564,), (1399882568,), (1399882583,), (1399882632,), (1399882577,), (1399882578,), (1399882579,), (1399882580,), (1399882610,), (1399882611,), (1399882612,), (1399882615,), (1399882617,), (1399882619,), (1399882624,), (1399882626,), (1399882628,), (1399882630,), (1399882634,), (1399882637,), (1399882640,), (1399882653,), (1399882654,), (1399882655,), (1399882656,), (1399882659,), (1399882662,), (1399882668,), (1399882669,), (1399882670,), (1399882671,), (1399882674,), (1399882695,), (1399882696,), (1399882697,), (1399882722,), (1399882728,), (1399882729,), (1399882730,), (1399882733,), (1399882745,), (1399882746,), (1399882747,), (1399882761,), (1399882773,), (1399882794,), (1399882795,), (1399882796,), (1399882799,), (1399882802,), (1399882805,), (1399882815,), (1399882816,), (1399882820,), (1399882827,), (1399882828,), (1399882829,), (1399882832,), (1399882835,), (1399882858,), (1399882860,), (1399882864,), (1399882868,), (1399882877,), (1399882882,), (1399882884,), (1399882885,), (1399882886,), (1399882887,), (1399882892,), (1399882893,), (1399882896,), (1399882897,), (1399882899,), (1399882900,), (1399882903,), (1399882904,), (1399882907,), (1399882908,), (1399882919,), (1399882920,), (1399882921,), (1399882922,), (1399882947,), (1399882954,), (1399882955,), (1399882967,), (1399882968,), (1399882969,), (1399882970,), (1399882974,), (1399882975,), (1399883005,), (1399882995,), (1399883000,), (1399883001,), (1399883002,), (1399883013,), (1399883014,), (1399883015,), (1399883033,), (1399883034,), (1399883040,), (1399883049,), (1399883051,), (1399883068,), (1399883069,), (1399883070,), (1399883073,), (1399883076,), (1399883077,), (1399883095,), (1399883103,), (1399883104,), (1399883105,), (1399883108,), (1399883109,), (1399883112,), (1399883115,), (1399883124,), (1399883126,), (1399883128,), (1399883132,), (1399883136,), (1399883143,), (1399883159,), (1399883160,), (1399883161,), (1399883162,), (1399883165,), (1399883168,), (1399883174,), (1399883175,), (1399883204,), (1399883205,), (1399883206,), (1399883207,), (1399883209,), (1399883231,), (1399883233,), (1399883235,), (1399883237,), (1399883240,), (1399883263,), (1399883264,), (1399883265,), (1399883276,), (1399883277,), (1399883278,), (1399883302,), (1399883303,), (1399883304,), (1399883305,), (1399883308,), (1399883311,), (1399883614,), (1399883652,), (1399883731,), (1399883802,), (1399883851,), (1399883889,), (1399884027,), (1399884062,), (1399884097,), (1399884155,), (1399884230,), (1399884302,), (1399884656,), (1399884509,), (1399884572,), (1399884613,), (1399884705,), (1399884736,), (1399884768,), (1399885423,), (1399885488,), (1399885535,), (1399885566,), (1399885611,), (1399885656,), (1399886533,), (1399886535,), (1399886536,), (1399886917,), (1399886918,), (1399886919,), (1399886920,), (1399886923,), (1399886951,), (1399886952,), (1399886953,), (1399886954,), (1399886957,), (1399886960,), (1399886975,), (1399886977,), (1399886978,), (1399886979,), (1399887000,), (1399887001,), (1399887002,), (1399887015,), (1399887016,), (1399887017,), (1399887018,), (1399887021,), (1399887046,), (1399887047,), (1399887048,), (1399887049,), (1399887052,), (1399887067,), (1399887069,), (1399887092,), (1399887094,), (1399887096,), (1399887100,), (1399887104,), (1399887118,), (1399887119,), (1399887120,), (1399887121,), (1399887144,), (1399887149,), (1399887150,), (1399887151,), (1399887154,), (1399887157,), (1399887178,), (1399887179,), (1399887181,), (1399887214,), (1399887205,), (1399887207,), (1399887209,), (1399887211,), (1399887226,), (1399887227,), (1399887228,), (1399887229,), (1399887245,), (1399887249,), (1399887251,), (1399887253,), (1399887255,), (1399887257,), (1399887269,), (1399887272,), (1399887275,), (1399887280,), (1399887283,), (1399887287,), (1399887302,), (1399887304,), (1399887305,), (1399887307,), (1399887310,), (1399887326,), (1399887362,), (1399887364,), (1399887365,), (1399887366,), (1399887369,), (1399887380,), (1399887382,), (1399887386,), (1399887388,), (1399887410,), (1399887411,), (1399887412,), (1399887413,), (1399887428,), (1399887431,), (1399887434,), (1399887438,), (1399887463,), (1399887470,), (1399887484,), (1399887490,), (1399887491,), (1399887494,), (1399887496,), (1399887523,), (1399887524,), (1399887525,), (1399887526,), (1399887528,), (1399887531,), (1399887548,), (1399887550,), (1399887552,), (1399887555,), (1399887558,), (1399887560,), (1399887568,), (1399887569,), (1399887571,), (1399887573,), (1399887575,), (1399887577,), (1399887585,), (1399887586,), (1399887590,), (1399887591,), (1399887594,), (1399887595,), (1399887610,), (1399887604,), (1399887605,), (1399887606,), (1399887607,), (1399887622,), (1399887624,), (1399887626,), (1399887628,), (1399887631,), (1399887634,), (1399887643,), (1399887644,), (1399887645,), (1399887648,), (1399887653,), (1399887656,), (1399887663,), (1399887670,), (1399887672,), (1399887674,), (1399887676,), (1399887679,), (1399887692,), (1399887693,), (1399887694,), (1399887695,), (1399887717,), (1399887719,), (1399887721,), (1399887723,), (1399887738,), (1399887739,), (1399887740,), (1399887741,), (1399887774,), (1399887782,), (1399887784,), (1399887786,), (1399887808,), (1399887809,), (1399887810,), (1399887813,), (1399887816,), (1399887821,), (1399887827,), (1399887829,), (1399887831,), (1399887839,), (1399887840,), (1399887841,), (1399887844,), (1399887856,), (1399887858,), (1399887860,), (1399887862,), (1399887910,), (1399887913,), (1399887914,), (1399887929,), (1399887930,), (1399887933,), (1399887935,), (1399887937,), (1399887940,), (1399887966,), (1399887967,), (1399887968,), (1399887969,), (1399887972,), (1399887988,), (1399887990,), (1399887993,), (1399887995,), (1399887997,), (1399887998,), (1399888026,), (1399888024,), (1399888025,), (1399888040,), (1399888042,), (1399888044,), (1399888046,), (1399888067,), (1399888068,), (1399888069,), (1399888083,), (1399888085,), (1399888087,), (1399888089,), (1399888092,), (1399888116,), (1399888117,), (1399888118,), (1399888121,), (1399888124,), (1399888126,), (1399888133,), (1399888135,), (1399888136,), (1399888149,), (1399888166,), (1399888168,), (1399888170,), (1399888186,), (1399888187,), (1399888188,), (1399888189,), (1399888220,), (1399888221,), (1399888223,), (1399888225,), (1399888238,), (1399888239,), (1399888240,), (1399888241,), (1399888242,), (1399888270,), (1399888272,), (1399888337,), (1399888338,), (1399888355,), (1399888357,), (1399888360,), (1399888392,), (1399888386,), (1399888388,), (1399888390,), (1399888418,), (1399888420,), (1399888422,), (1399888516,), (1399888548,), (1399888579,), (1399888612,), (1399889047,), (1399889080,), (1399889113,), (1399889148,), (1399889187,), (1399889219,), (1399889331,), (1399889368,), (1399889409,), (1399889443,), (1399889445,), (1399889447,), (1399889450,), (1399889452,), (1399889456,), (1399889482,), (1399889515,), (1399889550,), (1399889582,), (1399889807,), (1399889840,), (1399889872,), (1399889896,), (1399890035,), (1399890037,), (1399890064,), (1399890066,), (1399890068,), (1399890072,), (1399890088,), (1399890093,), (1399890103,), (1399890106,), (1399890124,), (1399890125,), (1399890126,), (1399890147,), (1399890165,), (1399892241,), (1399892237,), (1399894026,), (1399894063,), (1399894513,), (1399894514,), (1399894516,), (1399894518,), (1399894521,), (1399894524,), (1399894649,), (1399894683,), (1399894713,), (1399894743,), (1399894758,), (1399894851,), (1399894853,), (1399894854,), (1399894856,), (1399894858,), (1399894860,), (1399894868,), (1399894870,), (1399894872,), (1399894874,), (1399894879,), (1399894883,), (1399894887,), (1399894893,), (1399894898,), (1399894904,), (1399894906,), (1399894908,), (1399894909,), (1399894911,), (1399894925,), (1399894926,), (1399894927,), (1399894928,), (1399894959,), (1399894960,), (1399894961,), (1399894962,), (1399894965,), (1399894968,), (1399894978,), (1399894980,), (1399894982,), (1399895012,), (1399895004,), (1399895005,), (1399895006,), (1399895007,), (1399895010,), (1399895021,), (1399895022,), (1399895023,), (1399895047,), (1399895056,), (1399895058,), (1399895059,), (1399895062,), (1399895079,), (1399895081,), (1399895082,), (1399895083,), (1399895085,), (1399895087,), (1399895121,), (1399895122,), (1399895123,), (1399895126,), (1399895129,), (1399895132,), (1399895139,), (1399895141,), (1399895143,), (1399895145,), (1399895149,), (1399895152,), (1399895154,), (1399895157,), (1399895173,), (1399895202,), (1399895208,), (1399895211,), (1399895217,), (1399895222,), (1399895290,), (1399895293,), (1399895296,), (1399895299,), (1399895304,), (1399895319,), (1399895320,), (1399895321,), (1399895322,), (1399895324,), (1399895351,), (1399895353,), (1399895354,), (1399895357,), (1399895360,), (1399895371,), (1399895372,), (1399895373,), (1399895374,), (1399895377,), (1399895392,), (1399895393,), (1399895394,), (1399895395,), (1399895399,), (1399895410,), (1399895412,), (1399895414,), (1399895418,), (1399895422,), (1399895426,), (1399895449,), (1399895453,), (1399895457,), (1399895460,), (1399895462,), (1399895464,), (1399895477,), (1399895512,), (1399895513,), (1399895514,), (1399895515,), (1399895465,), (1399895466,), (1399895468,), (1399895473,), (1399895475,), (1399895522,), (1399895525,), (1399895528,), (1399895532,), (1399895534,), (1399895537,), (1399895538,), (1399895539,), (1399895540,), (1399895543,), (1399895564,), (1399895565,), (1399895566,), (1399895567,), (1399895569,), (1399895589,), (1399895591,), (1399895592,), (1399895594,), (1399895618,), (1399895620,), (1399895621,), (1399895622,), (1399895625,), (1399895628,), (1399895641,), (1399895642,), (1399895643,), (1399895667,), (1399895669,), (1399895671,), (1399895673,), (1399895676,), (1399895678,), (1399895689,), (1399895690,), (1399895691,), (1399895692,), (1399895717,), (1399895719,), (1399895721,), (1399895724,), (1399895727,), (1399895729,), (1399895735,), (1399895736,), (1399895737,), (1399895739,), (1399895744,), (1399895746,), (1399895748,), (1399895754,), (1399895757,), (1399895771,), (1399895774,), (1399895775,), (1399895796,), (1399895797,), (1399895798,), (1399895799,), (1399895802,), (1399895803,), (1399895831,), (1399895832,), (1399895833,), (1399895834,), (1399895837,), (1399895849,), (1399895850,), (1399895852,), (1399895853,), (1399895856,), (1399895883,), (1399895877,), (1399895878,), (1399895879,), (1399895880,), (1399895893,), (1399895895,), (1399895897,), (1399895901,), (1399895905,), (1399895922,), (1399895924,), (1399895926,), (1399895930,), (1399895934,), (1399895938,), (1399895951,), (1399895952,), (1399895953,), (1399895954,), (1399895957,), (1399895981,), (1399895982,), (1399895983,), (1399895986,), (1399895989,), (1399895990,), (1399895999,), (1399896002,), (1399896004,), (1399896006,), (1399896008,), (1399896055,), (1399896238,), (1399896229,), (1399896232,), (1399896235,), (1399896258,), (1399896260,), (1399896262,), (1399896456,), (1399896489,), (1399896957,), (1399896991,), (1399897024,), (1399897335,), (1399897819,), (1399897864,), (1399897865,), (1399897867,), (1399897868,), (1399897894,), (1399897892,), (1399897893,), (1399897906,), (1399897907,), (1399897925,), (1399897926,), (1399897927,), (1399897928,), (1399897930,), (1399897932,), (1399897950,), (1399897951,), (1399897952,), (1399897953,), (1399897955,), (1399897976,), (1399897978,), (1399897980,), (1399897982,), (1399897984,), (1399897985,), (1399897990,), (1399897993,), (1399897995,), (1399897997,), (1399897999,), (1399898002,), (1399898004,), (1399898009,), (1399898013,), (1399898024,), (1399898025,), (1399898026,), (1399898027,), (1399898043,), (1399898045,), (1399898046,), (1399898047,), (1399898050,), (1399898052,), (1399898075,), (1399898076,), (1399898077,), (1399898078,), (1399898090,), (1399898092,), (1399898094,), (1399898098,), (1399898102,), (1399898116,), (1399898117,), (1399898118,), (1399898119,), (1399898122,), (1399898125,), (1399898135,), (1399898136,), (1399898137,), (1399898138,), (1399898172,), (1399898181,), (1399898183,), (1399898184,), (1399898187,), (1399898189,), (1399898205,), (1399898206,), (1399898207,), (1399898208,), (1399898229,), (1399898231,), (1399898233,), (1399898235,), (1399898238,), (1399898240,), (1399898247,), (1399898249,), (1399898251,), (1399898253,), (1399898263,), (1399898256,), (1399898257,), (1399898260,), (1399898283,), (1399898284,), (1399898285,), (1399898286,), (1399898289,), (1399898304,), (1399898305,), (1399898306,), (1399898307,), (1399898322,), (1399898323,), (1399898324,), (1399898325,), (1399898342,), (1399898344,), (1399898346,), (1399898350,), (1399898354,), (1399898378,), (1399898386,), (1399898387,), (1399898388,), (1399898391,), (1399898405,), (1399898406,), (1399898407,), (1399898434,), (1399898436,), (1399898437,), (1399898438,), (1399898441,), (1399898443,), (1399898460,), (1399898461,), (1399898462,), (1399898463,), (1399898466,), (1399898469,), (1399898485,), (1399898486,), (1399898487,), (1399898490,), (1399898492,), (1399898494,), (1399898503,), (1399898506,), (1399898507,), (1399898508,), (1399898509,), (1399898510,), (1399898513,), (1399898516,), (1399898521,), (1399898534,), (1399898535,), (1399898536,), (1399898537,), (1399898540,), (1399898543,), (1399898561,), (1399898565,), (1399898566,), (1399898567,), (1399898585,), (1399898593,), (1399898601,), (1399898602,), (1399898605,), (1399898607,), (1399898620,), (1399898621,), (1399898622,), (1399898643,), (1399898637,), (1399898638,), (1399898639,), (1399898640,), (1399898654,), (1399898655,), (1399898656,), (1399898657,), (1399898673,), (1399898674,), (1399898675,), (1399898676,), (1399898677,), (1399898680,), (1399898693,), (1399898694,), (1399898695,), (1399898696,), (1399898699,), (1399898722,), (1399898723,), (1399898724,), (1399898726,), (1399898728,), (1399898731,), (1399898740,), (1399898743,), (1399898745,), (1399898751,), (1399898753,), (1399898756,), (1399898758,), (1399898760,), (1399898762,), (1399898783,), (1399898784,), (1399898785,), (1399898786,), (1399898809,), (1399898811,), (1399898813,), (1399898817,), (1399898821,), (1399898823,), (1399898845,), (1399898846,), (1399898847,), (1399898848,), (1399898851,), (1399898871,), (1399898872,), (1399898873,), (1399898874,), (1399898877,), (1399898880,), (1399898904,), (1399898905,), (1399898906,), (1399898907,), (1399898920,), (1399898922,), (1399898923,), (1399898949,), (1399899300,), (1399899302,), (1399899308,), (1399899310,), (1399899313,), (1399899314,), (1399899315,), (1399899660,), (1399899482,), (1399899519,), (1399899553,), (1399899593,), (1399900177,), (1399900218,), (1399900250,), (1399900284,), (1399900342,), (1399900673,), (1399900676,), (1399900677,), (1399900681,), (1399900716,), (1399900961,), (1399900972,), (1399900992,), (1399900997,), (1399901000,), (1399901002,), (1399901192,), (1399901221,), (1399901254,), (1399901285,), (1399901323,), (1399901713,), (1399901737,), (1399901738,), (1399901739,), (1399901742,), (1399901760,), (1399902076,), (1399902271,), (1399902321,), (1399902357,), (1399902768,), (1399902784,), (1399902785,), (1399903389,), (1399903411,), (1399903415,), (1399903416,), (1399903428,), (1399903445,), (1399903475,), (1399903513,), (1399903580,), (1399903622,), (1399903819,), (1399903838,), (1399903860,), (1399903867,), (1399903870,), (1399903880,), (1399903881,), (1399903883,), (1399903884,), (1399903887,), (1399903890,), (1399903925,), (1399903913,), (1399903914,), (1399903915,), (1399903916,), (1399903957,), (1399903958,), (1399903959,), (1399903960,), (1399903963,), (1399903965,), (1399903995,), (1399903996,), (1399903997,), (1399903998,), (1399904001,), (1399904012,), (1399904013,), (1399904014,), (1399904015,), (1399904017,), (1399904019,), (1399904326,), (1399904327,), (1399904331,), (1399904333,), (1399904365,), (1399904404,), (1399904477,), (1399904478,), (1399904482,), (1399904491,), (1399904492,), (1399904494,), (1399904496,), (1399904498,), (1399904504,), (1399904506,), (1399904510,), (1399904529,), (1399904531,), (1399904532,), (1399904534,), (1399904549,), (1399904550,), (1399904551,), (1399904552,), (1399904555,), (1399904560,), (1399904574,), (1399904577,), (1399904578,), (1399904579,), (1399904582,), (1399904608,), (1399904609,), (1399904613,), (1399904620,), (1399904652,), (1399904783,), (1399904784,), (1399904785,), (1399904790,), (1399904800,), (1399904821,), (1399904901,), (1399904912,), (1399904916,), (1399904917,), (1399904919,), (1399904979,), (1399904980,), (1399904981,), (1399904982,), (1399904985,), (1399904988,), (1399905000,), (1399905002,), (1399905004,), (1399905005,), (1399905030,), (1399905032,), (1399905033,), (1399905036,), (1399905039,), (1399905040,), (1399905048,), (1399905049,), (1399905050,), (1399905063,), (1399905051,), (1399905052,), (1399905055,), (1399905060,), (1399905077,), (1399905081,), (1399905082,), (1399905096,), (1399905097,), (1399905098,), (1399905099,), (1399905102,), (1399905105,), (1399905119,), (1399905121,), (1399905129,), (1399905138,), (1399905161,), (1399905163,), (1399905184,), (1399905222,), (1399905268,), (1399905369,), (1399905371,), (1399905372,), (1399905513,), (1399905514,), (1399905515,), (1399905516,), (1399905519,), (1399905547,), (1399905548,), (1399905549,), (1399905550,), (1399905569,), (1399905570,), (1399905601,), (1399905602,), (1399905603,), (1399905605,), (1399905607,), (1399905632,), (1399905633,), (1399905662,), (1399905664,), (1399905666,), (1399905670,), (1399905673,), (1399905684,), (1399905685,), (1399905686,), (1399905689,), (1399905692,), (1399905695,), (1399905703,), (1399905704,), (1399905705,), (1399905706,), (1399905707,), (1399905710,), (1399905712,), (1399905714,), (1399905726,), (1399905728,), (1399905730,), (1399905734,), (1399905753,), (1399905747,), (1399905748,), (1399905749,), (1399905750,), (1399905779,), (1399905780,), (1399905781,), (1399905782,), (1399905785,), (1399905815,), (1399905850,), (1399905852,), (1399905872,), (1399905873,), (1399905874,), (1399905877,), (1399905880,), (1399905889,), (1399905890,), (1399905893,), (1399905896,), (1399905899,), (1399905906,), (1399905915,), (1399905916,), (1399905941,), (1399905944,), (1399905959,), (1399905967,), (1399906017,), (1399906018,), (1399906019,), (1399906020,), (1399906023,), (1399906332,), (1399906582,), (1399906584,), (1399906586,), (1399906715,), (1399906716,), (1399906718,), (1399906734,), (1399906745,), (1399906757,), (1399906768,), (1399906770,), (1399906772,), (1399906777,), (1399906781,), (1399906784,), (1399906804,), (1399906805,), (1399906806,), (1399906807,), (1399906824,), (1399906828,), (1399906830,), (1399906831,), (1399906834,), (1399906836,), (1399906854,), (1399906897,), (1399906939,), (1399906995,), (1399906845,), (1399906848,), (1399906850,), (1399906852,), (1399906853,), (1399907270,), (1399907335,), (1399907404,), (1399907467,), (1399907530,), (1399907597,), (1399908130,), (1399908192,), (1399908624,), (1399908656,), (1399908691,), (1399908728,), (1399908962,), (1399908994,), (1399909026,), (1399909058,), (1399909093,), (1399909309,), (1399909349,), (1399909356,), (1399909375,), (1399909400,), (1399909462,), (1399909464,), (1399909466,), (1399909486,), (1399909487,), (1399909488,), (1399909489,), (1399909491,), (1399909493,), (1399909520,), (1399909527,), (1399909529,), (1399909534,), (1399909536,), (1399909538,), (1399909564,), (1399909565,), (1399909566,), (1399909567,), (1399909569,), (1399909588,), (1399909593,), (1399909597,), (1399909600,), (1399909633,), (1399909667,), (1399909697,), (1399909713,), (1399909714,), (1399909743,), (1399909746,), (1399909748,), (1399909749,), (1399909752,), (1399909754,), (1399909770,), (1399909772,), (1399909773,), (1399909774,), (1399909814,), (1399909843,), (1399909871,), (1399909886,), (1399909983,), (1399909991,), (1399909993,), (1399909996,), (1399910000,), (1399910004,), (1399910028,), (1399910022,), (1399910023,), (1399910024,), (1399910025,), (1399910046,), (1399910047,), (1399910059,), (1399910060,), (1399910063,), (1399910066,), (1399910412,), (1399910446,), (1399910472,), (1399910474,), (1399910477,), (1399910480,), (1399910555,), (1399910589,), (1399910628,), (1399910815,), (1399910817,), (1399910818,), (1399910820,), (1399910822,), (1399910823,), (1399910831,), (1399910840,), (1399910847,), (1399910906,), (1399910907,), (1399910910,), (1399910922,), (1399910943,), (1399910985,), (1399910993,), (1399910994,), (1399910995,), (1399911007,), (1399911009,), (1399911010,), (1399911011,), (1399911013,), (1399911015,), (1399911036,), (1399911037,), (1399911038,), (1399911053,), (1399911054,), (1399911055,), (1399911056,), (1399911059,), (1399911061,), (1399911084,), (1399911086,), (1399911088,), (1399911090,), (1399911093,), (1399911094,), (1399911110,), (1399911113,), (1399911115,), (1399911143,), (1399911144,), (1399911145,), (1399911146,), (1399911149,), (1399911152,), (1399911164,), (1399911166,), (1399911168,), (1399911170,), (1399911199,), (1399911201,), (1399911202,), (1399911205,), (1399911208,), (1399911210,), (1399911223,), (1399911224,), (1399911227,), (1399911230,), (1399911266,), (1399911249,), (1399911252,), (1399911254,), (1399911256,), (1399911262,), (1399911271,), (1399911273,), (1399911274,), (1399911275,), (1399911285,), (1399911287,), (1399911289,), (1399911291,), (1399911294,), (1399911320,), (1399911322,), (1399911323,), (1399911324,), (1399911326,), (1399911328,), (1399911347,), (1399911348,), (1399911349,), (1399911391,), (1399911394,), (1399911395,), (1399911396,), (1399911399,), (1399911402,), (1399911423,), (1399911425,), (1399911427,), (1399911429,), (1399911484,), (1399911495,), (1399911505,), (1399911507,), (1399911510,), (1399911513,), (1399911535,), (1399911537,), (1399911539,), (1399911543,), (1399911547,), (1399911777,), (1399911780,), (1399911784,), (1399911824,), (1399911827,), (1399911832,), (1399911857,), (1399911867,), (1399911925,), (1399911928,), (1399911948,), (1399911949,), (1399911966,), (1399911968,), (1399911970,), (1399911972,), (1399911975,), (1399911977,), (1399912000,), (1399912003,), (1399912004,), (1399912005,), (1399912020,), (1399912021,), (1399912022,), (1399912024,), (1399912112,), (1399912103,), (1399912105,), (1399912107,), (1399912109,), (1399912135,), (1399912138,), (1399912140,), (1399912238,), (1399912240,), (1399912291,), (1399912292,), (1399912293,), (1399912294,), (1399912296,), (1399912315,), (1399912316,), (1399912317,), (1399912318,), (1399912321,), (1399912347,), (1399912349,), (1399912351,), (1399912353,), (1399912378,), (1399912379,), (1399912380,), (1399912381,), (1399912396,), (1399912397,), (1399912398,), (1399912401,), (1399912404,), (1399912406,), (1399912451,), (1399912487,), (1399912518,), (1399912551,), (1399912617,), (1399912642,), (1399912676,), (1399912685,), (1399912813,), (1399912815,), (1399912817,), (1399912819,), (1399912822,), (1399912825,), (1399912976,), (1399912981,), (1399912984,), (1399912989,), (1399913019,), (1399918101,), (1399918159,), (1399918323,), (1399918359,), (1399918372,), (1399918471,), (1399918472,), (1399918473,), (1399918474,), (1399918477,), (1399918480,), (1399918517,), (1399918519,), (1399918521,), (1399918523,), (1399918526,), (1399918613,), (1399918643,), (1399918656,), (1399918664,), (1399918686,), (1399918750,), (1399918752,), (1399918754,), (1399918756,), (1399918759,), (1399918850,), (1399918933,), (1399918972,), (1399918979,), (1399919004,), (1399919146,), (1399919147,), (1399919148,), (1399919151,), (1399919159,), (1399919166,), (1399919177,), (1399919178,), (1399919181,), (1399919183,), (1399919220,), (1399919221,), (1399919222,), (1399919225,), (1399919228,), (1399919231,), (1399919265,), (1399919270,), (1399919281,), (1399919323,), (1399919488,), (1399919524,), (1399919557,), (1399919591,), (1399919970,), (1399920163,), (1399920196,), (1399920232,), (1399920244,), (1399920246,), (1399920559,), (1399920654,), (1399920729,), (1399920788,), (1399921197,), (1399921235,), (1399921252,), (1399921259,), (1399921262,), (1399921622,), (1399921666,), (1399921751,), (1399921818,), (1399921891,), (1399922160,), (1399922178,), (1399922213,), (1399922391,), (1399922392,), (1399922395,), (1399922149,), (1399922155,), (1399922157,), (1399922643,), (1399922679,), (1399922713,), (1399922748,), (1399922815,), (1399922865,), (1399922977,), (1399922978,), (1399922979,), (1399922980,), (1399923039,), (1399923040,), (1399923041,), (1399923042,), (1399923045,), (1399923048,), (1399923178,), (1399923189,), (1399923190,), (1399923214,), (1399923230,), (1399923237,), (1399923273,), (1399923275,), (1399923277,), (1399923279,), (1399923306,), (1399923449,), (1399923485,), (1399923517,), (1399923556,), (1399923573,), (1399923576,), (1399923579,), (1399923580,), (1399923582,), (1399923584,), (1399923903,), (1399923907,), (1399923908,), (1399923909,), (1399923919,), (1399924310,), (1399924322,), (1399924324,), (1399924326,), (1399924329,), (1399924344,), (1399924492,), (1399924497,), (1399924531,), (1399924569,), (1399924699,), (1399924727,), (1399924777,), (1399924779,), (1399924780,), (1399924781,), (1399924782,), (1399924784,), (1399924786,), (1399924789,), (1399924790,), (1399924794,), (1399924810,), (1399924811,), (1399924812,), (1399924816,), (1399924825,), (1399924828,), (1399924829,), (1399924830,), (1399924831,), (1399925317,), (1399925321,), (1399925341,), (1399925380,), (1399925415,), (1399925454,), (1399925732,), (1399925768,), (1399925801,), (1399926031,), (1399925854,), (1399925934,), (1399926025,), (1399926449,), (1399926450,), (1399926452,), (1399926454,), (1399926458,), (1399926462,), (1399926476,), (1399926479,), (1399926481,), (1399926484,), (1399926951,), (1399927064,), (1399927122,), (1399927155,), (1399927189,), (1399927226,), (1399927665,), (1399927667,), (1399927670,), (1399927707,), (1399927801,), (1399928261,), (1399928285,), (1399928327,), (1399928361,), (1399928373,), (1399928395,), (1399928531,), (1399928532,), (1399928569,), (1399928572,), (1399928607,), (1399928615,), (1399928618,), (1399928620,), (1399928622,), (1399928624,), (1399928635,), (1399928636,), (1399928642,), (1399928643,), (1399928645,), (1399928669,), (1399928671,), (1399928673,), (1399928675,), (1399928678,), (1399928701,), (1399928703,), (1399928705,), (1399928708,), (1399928711,), (1399928714,), (1399928811,), (1399928845,), (1399928877,), (1399928909,), (1399929047,), (1399929078,), (1399929112,), (1399929146,), (1399929175,), (1399929213,), (1399929394,), (1399929427,), (1399929434,), (1399929435,), (1399929439,), (1399929486,), (1399929492,), (1399929525,), (1399929564,), (1399929620,), (1399929892,), (1399929895,), (1399929925,), (1399929945,), (1399929961,), (1399929993,), (1399930349,), (1399930386,), (1399930457,), (1399930587,), (1399931503,), (1399931626,), (1399931639,), (1399931697,), (1399931731,), (1399931360,), (1399931451,), (1399931486,), (1399931499,), (1399931501,), (1399932088,), (1399932122,), (1399932175,), (1399932227,), (1399932881,), (1399933029,), (1399933126,), (1399933187,), (1399933257,), (1399933325,), (1399933736,), (1399933792,), (1399933824,), (1399933856,), (1399934104,), (1399934107,), (1399934148,), (1399934196,), (1399934235,), (1399934299,), (1399934377,), (1399934412,), (1399934421,), (1399934424,), (1399934477,), (1399934479,), (1399934481,), (1399934687,), (1399934688,), (1399934689,), (1399934690,), (1399934693,), (1399934785,), (1399934803,), (1399934805,), (1399934832,), (1399934838,), (1399934898,), (1399934900,), (1399934902,), (1399934904,), (1399934907,), (1399934928,), (1399934929,), (1399934931,), (1399934932,), (1399934936,), (1399934962,), (1399934963,), (1399934964,), (1399934967,), (1399934970,), (1399934973,), (1399935087,), (1399935114,), (1399935117,), (1399935123,), (1399935154,), (1399935312,), (1399935350,), (1399935384,), (1399935418,), (1399935539,), (1399935610,), (1399935646,), (1399935666,), (1399935669,), (1399935672,), (1399935775,), (1399935777,), (1399935779,), (1399935781,), (1399936175,), (1399936180,), (1399936215,), (1399936224,), (1399936227,), (1399936231,), (1399936308,), (1399936309,), (1399936310,), (1399936312,), (1399936409,), (1399936317,), (1399936320,), (1399936322,), (1399936332,), (1399936585,), (1399936588,), (1399936611,), (1399936621,), (1399936700,), (1399936702,), (1399936704,), (1399936706,), (1399936709,), (1399936730,), (1399936731,), (1399936732,), (1399936733,), (1399936759,), (1399936772,), (1399936775,), (1399936778,), (1399936781,), (1399936783,), (1399936803,), (1399936804,), (1399936805,), (1399936808,), (1399936811,), (1399936814,), (1399936835,), (1399936836,), (1399936837,), (1399936845,), (1399936978,), (1399937034,), (1399937036,), (1399937038,), (1399937059,), (1399937113,), (1399937410,), (1399937452,), (1399937488,), (1399937524,), (1399937813,), (1399937815,), (1399937820,), (1399937853,), (1399937887,), (1399938120,), (1399938121,), (1399938122,), (1399938126,), (1399938164,), (1399938198,), (1399938321,), (1399938335,), (1399938336,), (1399938378,), (1399938411,), (1399938648,), (1399938649,), (1399939173,), (1399939287,), (1399939305,), (1399939563,), (1399939653,), (1399939727,), (1399939755,), (1399939759,), (1399939768,), (1399940075,), (1399940107,), (1399940162,), (1399940166,), (1399940440,), (1399940333,), (1399940334,), (1399940335,), (1399940336,), (1399940364,), (1399940539,), (1399940542,), (1399940544,), (1399940584,), (1399940585,), (1399940586,), (1399940588,), (1399940627,), (1399940666,), (1399940924,), (1399940926,), (1399940931,), (1399940933,), (1399941236,), (1399941257,), (1399941285,), (1399941288,), (1399941305,), (1399941323,), (1399941458,), (1399941459,), (1399941460,), (1399941462,), (1399941533,), (1399941608,), (1399941675,), (1399941720,), (1399941752,), (1399941976,), (1399941978,), (1399941980,), (1399942014,), (1399942017,), (1399942027,), (1399942057,), (1399942058,), (1399942059,), (1399942060,), (1399942232,), (1399942239,), (1399942241,), (1399942243,), (1399942246,), (1399942248,), (1399942543,), (1399942576,), (1399942612,), (1399942645,), (1399943017,), (1399943030,), (1399943067,), (1399943111,), (1399943133,), (1399943150,), (1399943272,), (1399943303,), (1399943326,), (1399943328,), (1399943331,), (1399943340,), (1399943378,), (1399943411,), (1399943444,), (1399943510,), (1399943512,), (1399943514,), (1399943516,), (1399943520,), (1399943522,), (1399943712,), (1399943715,), (1399943718,), (1399943744,), (1399943741,), (1399943743,), (1399944271,), (1399944329,), (1399944404,), (1399944466,), (1399944548,), (1399944600,), (1399944997,), (1399945029,), (1399945063,), (1399945087,), (1399945126,), (1399945127,), (1399945128,), (1399945129,), (1399945132,), (1399945166,), (1399945465,), (1399945474,), (1399945499,), (1399945536,), (1399945586,), (1399945740,), (1399945743,), (1399945745,), (1399945749,), (1399945752,), (1399945754,), (1399945768,), (1399945771,), (1399945773,), (1399945796,), (1399945894,), (1399946015,), (1399946017,), (1399946036,), (1399946092,), (1399946174,), (1399946208,), (1399946226,), (1399946228,), (1399946255,), (1399946260,), (1399946297,), (1399946298,), (1399946299,), (1399946300,), (1399946471,), (1399946503,), (1399946536,), (1399946569,), (1399946609,), (1399946666,), (1399946701,), (1399946702,), (1399946704,), (1399946706,), (1399946745,), (1399946791,), (1399946850,), (1399946884,), (1399946918,), (1399946944,), (1399946945,), (1399946946,), (1399946947,), (1399947328,), (1399947329,), (1399947365,), (1399947395,), (1399947613,), (1399947629,), (1399947633,), (1399947656,), (1399947659,), (1399947662,), (1399947693,), (1399947700,), (1399947701,), (1399947702,), (1399947908,), (1399947910,), (1399948014,), (1399948037,), (1399948076,), (1399947889,), (1399947891,), (1399947892,), (1399947898,), (1399948163,), (1399948187,), (1399948210,), (1399948214,), (1399948215,), (1399948218,), (1399948225,), (1399948234,), (1399948239,), (1399948241,), (1399948244,), (1399948258,), (1399948259,), (1399948261,), (1399948263,), (1399948266,), (1399948368,), (1399948401,), (1399948435,), (1399948467,), (1399948493,), (1399948495,), (1399948502,), (1399948504,), (1399948506,), (1399948608,), (1399948644,), (1399948677,), (1399948713,), (1399948752,), (1399948785,), (1399948872,), (1399948874,), (1399948876,), (1399948903,), (1399948910,), (1399948922,), (1399948926,), (1399948981,), (1399948986,), (1399948989,), (1399948991,), (1399949013,), (1399949015,), (1399949049,), (1399949051,), (1399949055,), (1399949057,), (1399949059,), (1399949061,), (1399949069,), (1399949073,), (1399949074,), (1399949075,), (1399949076,), (1399949129,), (1399949131,), (1399949134,), (1399949136,), (1399949139,), (1399949153,), (1399949154,), (1399949155,), (1399949156,), (1399949159,), (1399949162,), (1399949187,), (1399949188,), (1399949190,), (1399949193,), (1399949197,), (1399949198,), (1399949257,), (1399949260,), (1399949264,), (1399949265,), (1399949269,), (1399949270,), (1399949273,), (1399949274,), (1399949276,), (1399949277,), (1399949250,), (1399949251,), (1399949295,), (1399949296,), (1399949297,), (1399949299,), (1399949301,), (1399949320,), (1399949321,), (1399949322,), (1399949323,), (1399949326,), (1399949344,), (1399949346,), (1399949348,), (1399949350,), (1399949371,), (1399949373,), (1399949375,), (1399949379,), (1399949383,), (1399949407,), (1399949410,), (1399949413,), (1399949418,), (1399949432,), (1399949446,), (1399949462,), (1399949463,), (1399949464,), (1399949465,), (1399949485,), (1399949487,), (1399949488,), (1399949490,), (1399949493,), (1399949514,), (1399949515,), (1399949517,), (1399949519,), (1399949522,), (1399949557,), (1399949558,), (1399949559,), (1399949562,), (1399949565,), (1399949567,), (1399949578,), (1399949579,), (1399949581,), (1399949583,), (1399949586,), (1399949587,), (1399949590,), (1399949593,), (1399949596,), (1399949611,), (1399949613,), (1399949615,), (1399949617,), (1399949619,), (1399949622,), (1399949640,), (1399949643,), (1399949644,), (1399949646,), (1399949674,), (1399949675,), (1399949676,), (1399949677,), (1399949680,), (1399949704,), (1399949706,), (1399949724,), (1399949726,), (1399949729,), (1399949776,), (1399949779,), (1399949782,), (1399949791,), (1399949792,), (1399949793,), (1399949771,), (1399949772,), (1399949773,), (1399949799,), (1399949802,), (1399949806,), (1399949809,), (1399949812,), (1399949815,), (1399949851,), (1399949858,), (1399949867,), (1399949868,), (1399949870,), (1399949886,), (1399949887,), (1399949888,), (1399949889,), (1399949892,), (1399949895,), (1399949907,), (1399949909,), (1399949911,), (1399949914,), (1399949917,), (1399949919,), (1399949927,), (1399949928,), (1399949930,), (1399949933,), (1399949942,), (1399949943,), (1399949946,), (1399949949,), (1399949952,), (1399949960,), (1399949973,), (1399949975,), (1399949978,), (1399949981,), (1399949984,), (1399949988,), (1399950003,), (1399950005,), (1399950007,), (1399950045,), (1399950047,), (1399950049,), (1399950051,), (1399950054,), (1399950080,), (1399950081,), (1399950082,), (1399950083,), (1399950111,), (1399950112,), (1399950116,), (1399950127,), (1399950136,), (1399950139,), (1399950148,), (1399950149,), (1399950152,), (1399950153,), (1399950155,), (1399950157,), (1399950160,), (1399950187,), (1399950195,), (1399950206,), (1399950236,), (1399950239,), (1399950242,), (1399950246,), (1399950278,), (1399950269,), (1399950271,), (1399950273,), (1399950275,), (1399950288,), (1399950291,), (1399950294,), (1399950297,), (1399950300,), (1399950302,), (1399950325,), (1399950327,), (1399950329,), (1399950332,), (1399950361,), (1399950364,), (1399950367,), (1399950375,), (1399950379,), (1399950412,), (1399950413,), (1399950415,), (1399950420,), (1399950465,), (1399950466,), (1399950477,), (1399950480,), (1399950521,), (1399950524,), (1399950525,), (1399950526,), (1399950528,), (1399950530,), (1399950589,), (1399950590,), (1399950599,), (1399950656,), (1399950657,), (1399950659,), (1399950661,), (1399950664,), (1399950667,), (1399950704,), (1399950705,), (1399950707,), (1399950710,), (1399950713,), (1399950715,), (1399950740,), (1399950741,), (1399950743,), (1399950745,), (1399950748,), (1399950750,), (1399950763,), (1399950765,), (1399950785,), (1399950923,), (1399950926,), (1399952368,), (1399952399,), (1399952402,), (1399952404,), (1399952420,), (1399952446,), (1399952448,), (1399952450,), (1399952533,), (1399965798,), (1399965921,), (1399965898,), (1399965900,), (1399966049,), (1399966055,), (1399966056,), (1399966302,), (1399966333,), (1399966400,), (1399966402,), (1399966404,), (1399966422,), (1399966425,), (1399966446,), (1399966447,), (1399966449,), (1399966450,), (1399966452,), (1399966454,), (1399966498,), (1399966492,), (1399966494,), (1399966496,), (1399966515,), (1399966516,), (1399966517,), (1399966518,), (1399966545,), (1399966547,), (1399966549,), (1399966551,), (1399966571,), (1399966573,), (1399966575,), (1399966579,), (1399966583,), (1399966609,), (1399966611,), (1399966615,), (1399966619,), (1399966621,), (1399966624,), (1399966633,), (1399966635,), (1399966639,), (1399966643,), (1399966647,), (1399966651,), (1399966655,), (1399966670,), (1399966672,), (1399966674,), (1399966676,), (1399966693,), (1399966694,), (1399966728,), (1399966730,), (1399966732,), (1399966734,), (1399966766,), (1399966768,), (1399966770,), (1399966797,), (1399966798,), (1399966801,), (1399966804,), (1399966806,), (1399966808,), (1399966816,), (1399966824,), (1399966826,), (1399966828,), (1399966829,), (1399966832,), (1399966874,), (1399966877,), (1399966880,), (1399966882,), (1399966884,), (1399966886,), (1399967237,), (1399967275,), (1399967310,), (1399967348,), (1399967386,), (1399967421,), (1399967506,), (1399967512,), (1399967531,), (1399967533,), (1399967866,), (1399967571,), (1399967606,), (1399967671,), (1399967740,), (1399967806,), (1399968195,), (1399968236,), (1399968268,), (1399968298,), (1399968422,), (1399968424,), (1399968426,), (1399968428,), (1399968430,), (1399968431,), (1399968736,), (1399968801,), (1399968868,), (1399968929,), (1399968992,), (1399969481,), (1399969524,), (1399969541,), (1399969544,), (1399969754,), (1399969775,), (1399969803,), (1399969806,), (1399969839,), (1399969846,), (1399969866,), (1399969867,), (1399969871,), (1399969872,), (1399969874,), (1399969877,), (1399969880,), (1399969882,), (1399969992,), (1399970008,), (1399970021,), (1399970050,), (1399970052,), (1399970081,), (1399970083,), (1399970085,), (1399970087,), (1399970121,), (1399970156,), (1399970653,), (1399970690,), (1399970725,), (1399970761,), (1399970800,), (1399970848,), (1399970980,), (1399970999,), (1399971002,), (1399971037,), (1399971116,), (1399971149,), (1399971158,), (1399971161,), (1399971164,), (1399971167,), (1399971489,), (1399971533,), (1399971577,), (1399971613,), (1399971926,), (1399971928,), (1399971935,), (1399971936,), (1399971939,), (1399971990,), (1399971996,), (1399971998,), (1399972001,), (1399972004,), (1399972019,), (1399972020,), (1399972022,), (1399972023,), (1399972026,), (1399972504,), (1399972506,), (1399972513,), (1399972515,), (1399972517,), (1399972544,), (1399972437,), (1399972454,), (1399972456,), (1399972478,), (1399972650,), (1399972651,), (1399972654,), (1399972657,), (1399972677,), (1399972791,), (1399972793,), (1399972795,), (1399972797,), (1399972800,), (1399972803,), (1399972852,), (1399972854,), (1399972855,), (1399972874,), (1399972876,), (1399972878,), (1399972881,), (1399972884,), (1399972886,), (1399972891,), (1399972892,), (1399972893,), (1399972917,), (1399972920,), (1399972924,), (1399972927,), (1399973017,), (1399973019,), (1399973021,), (1399973030,), (1399973033,), (1399973038,), (1399973070,), (1399973097,), (1399973098,), (1399973104,), (1399973272,), (1399973273,), (1399973274,), (1399973283,), (1399973316,), (1399973320,), (1399973354,), (1399973355,), (1399973357,), (1399973359,), (1399973362,), (1399973387,), (1399973389,), (1399973391,), (1399973394,), (1399973397,), (1399973399,), (1399973404,), (1399973406,), (1399973408,), (1399973410,), (1399973412,), (1399973415,), (1399973418,), (1399973420,), (1399973423,), (1399973425,), (1399973429,), (1399973437,), (1399973444,), (1399973447,), (1399973449,), (1399973452,), (1399973485,), (1399973487,), (1399973491,), (1399973514,), (1399973519,), (1399973557,), (1399973558,), (1399973559,), (1399973563,), (1399973566,), (1399973569,), (1399973579,), (1399973580,), (1399973581,), (1399973582,), (1399973584,), (1399973611,), (1399973590,), (1399973593,), (1399973597,), (1399973599,), (1399973623,), (1399973624,), (1399973625,), (1399973626,), (1399973629,), (1399973645,), (1399973646,), (1399973647,), (1399973648,), (1399973681,), (1399973683,), (1399973698,), (1399973700,), (1399973705,), (1399973715,), (1399973727,), (1399973729,), (1399973731,), (1399973733,), (1399973756,), (1399973758,), (1399973760,), (1399973762,), (1399973764,), (1399973798,), (1399973817,), (1399973818,), (1399973826,), (1399973829,), (1399973832,), (1399973867,), (1399973870,), (1399973873,), (1399973876,), (1399973879,), (1399973941,), (1399973943,), (1399973945,), (1399973947,), (1399973950,), (1399973953,), (1399973976,), (1399973977,), (1399973978,), (1399973981,), (1399973984,), (1399973987,), (1399973994,), (1399973996,), (1399973997,), (1399974032,), (1399974034,), (1399974052,), (1399974056,), (1399974063,), (1399974066,), (1399974093,), (1399974094,), (1399974096,), (1399974147,), (1399974149,), (1399974151,), (1399974155,), (1399974159,), (1399974163,), (1399974282,), (1399974334,), (1399974386,), (1399974440,), (1399974599,), (1399974629,), (1399974661,), (1399974693,), (1399974730,), (1399974761,), (1399974985,), (1399974967,), (1399974976,), (1399974983,), (1399975161,), (1399975173,), (1399975179,), (1399975196,), (1399975206,), (1399975220,), (1399975234,), (1399975235,), (1399975236,), (1399975237,), (1399975240,), (1399975258,), (1399975260,), (1399975262,), (1399975264,), (1399975267,), (1399975270,), (1399975283,), (1399975318,), (1399975349,), (1399975398,), (1399975430,), (1399975439,), (1399975472,), (1399975478,), (1399975480,), (1399975481,), (1399975486,), (1399975527,), (1399975533,), (1399975543,), (1399975545,), (1399975548,), (1399975549,), (1399975550,), (1399975551,), (1399975554,), (1399975561,), (1399975700,), (1399975721,), (1399975725,), (1399975773,), (1399975808,), (1399976109,), (1399976112,), (1399976113,), (1399976114,), (1399976117,), (1399976137,), (1399976140,), (1399976143,), (1399976158,), (1399976165,), (1399976262,), (1399976282,), (1399976285,), (1399976288,), (1399976291,), (1399976292,), (1399976296,), (1399976297,), (1399976300,), (1399976311,), (1399976314,), (1399976316,), (1399976318,), (1399976407,), (1399976499,), (1399976629,), (1399976632,), (1399976658,), (1399977017,), (1399977020,), (1399977023,), (1399977027,), (1399977029,), (1399977033,), (1399977059,), (1399977049,), (1399977052,), (1399977054,), (1399977056,), (1399977277,), (1399977278,), (1399977320,), (1399977321,), (1399977324,), (1399977336,), (1399977341,), (1399977342,), (1399977345,), (1399977348,), (1399977371,), (1399977373,), (1399977374,), (1399977375,), (1399977378,), (1399977410,), (1399977413,), (1399977416,), (1399977420,), (1399977424,), (1399977427,), (1399977451,), (1399977453,), (1399977455,), (1399977459,), (1399977475,), (1399977477,), (1399977478,), (1399977480,), (1399977483,), (1399977487,), (1399977508,), (1399977509,), (1399977510,), (1399977511,), (1399977531,), (1399977532,), (1399977533,), (1399977534,), (1399977537,), (1399977540,), (1399977569,), (1399977571,), (1399977573,), (1399977576,), (1399977579,), (1399977581,), (1399977589,), (1399977590,), (1399977595,), (1399977604,), (1399977607,), (1399977608,), (1399977612,), (1399977613,), (1399977617,), (1399977618,), (1399977620,), (1399977621,), (1399977638,), (1399977641,), (1399977642,), (1399977644,), (1399977648,), (1399977655,), (1399977691,), (1399977693,), (1399977695,), (1399977697,), (1399977719,), (1399977721,), (1399977723,), (1399977725,), (1399977728,), (1399977731,), (1399977751,), (1399977753,), (1399977754,), (1399977755,), (1399977758,), (1399977762,), (1399977793,), (1399977796,), (1399977799,), (1399977802,), (1399977808,), (1399977809,), (1399977810,), (1399977775,), (1399977785,), (1399977924,), (1399977927,), (1399977952,), (1399977955,), (1399977982,), (1399977988,), (1399978052,), (1399978055,), (1399978061,), (1399978282,), (1399978284,), (1399978285,), (1399978287,), (1399978290,), (1399978292,), (1399978313,), (1399978314,), (1399978315,), (1399978318,), (1399978321,), (1399978324,), (1399978333,), (1399978334,), (1399978335,), (1399978336,), (1399978342,), (1399978343,), (1399978346,), (1399978349,), (1399978353,), (1399978359,), (1399978377,), (1399978378,), (1399978379,), (1399978380,), (1399978382,), (1399978405,), (1399978407,), (1399978408,), (1399978409,), (1399978412,), (1399978415,), (1399978436,), (1399978438,), (1399978440,), (1399978442,), (1399978445,), (1399978463,), (1399978465,), (1399978467,), (1399978468,), (1399978472,), (1399978501,), (1399978503,), (1399978505,), (1399978507,), (1399978510,), (1399978513,), (1399978529,), (1399978531,), (1399978532,), (1399978533,), (1399978561,), (1399978563,), (1399978565,), (1399978567,), (1399978570,), (1399978573,), (1399978581,), (1399978583,), (1399978585,), (1399978587,), (1399978591,), (1399978613,), (1399978615,), (1399978618,), (1399978621,), (1399978624,), (1399978626,), (1399978633,), (1399978636,), (1399978637,), (1399978638,), (1399978640,), (1399978672,), (1399978650,), (1399978653,), (1399978657,), (1399978661,), (1399978680,), (1399978681,), (1399978682,), (1399978683,), (1399978685,), (1399978698,), (1399978700,), (1399978701,), (1399978702,), (1399978705,), (1399978707,), (1399978731,), (1399978733,), (1399978735,), (1399978737,), (1399978753,), (1399978790,), (1399978792,), (1399978794,), (1399978796,), (1399978799,), (1399978802,), (1399978814,), (1399978823,), (1399978836,), (1399978838,), (1399978843,), (1399978849,), (1399978857,), (1399978859,), (1399978865,), (1399978900,), (1399978921,), (1399978922,), (1399978925,), (1399978928,), (1399978930,), (1399978934,), (1399978956,), (1399978964,), (1399978966,), (1399978967,), (1399978970,), (1399979031,), (1399979034,), (1399979048,), (1399979077,), (1399979145,), (1399979160,), (1399979192,), (1399979232,), (1399979274,), (1399979409,), (1399979419,), (1399979420,), (1399979435,), (1399979474,), (1399979522,), (1399979523,), (1399979524,), (1399979579,), (1399979582,), (1399979584,), (1399979587,), (1399979591,), (1399979713,), (1399979714,), (1399979715,), (1399979716,), (1399979719,), (1399979799,), (1399979802,), (1399979805,), (1399979807,), (1399979823,), (1399979825,), (1399979795,), (1399979797,), (1399979834,), (1399979835,), (1399979837,), (1399979841,), (1399979844,), (1399979847,), (1399979875,), (1399979877,), (1399979893,), (1399979926,), (1399979930,), (1399980004,), (1399980005,), (1399980006,), (1399980007,), (1399980010,), (1399980028,), (1399980030,), (1399980032,), (1399980035,), (1399980038,), (1399980040,), (1399980052,), (1399980055,), (1399980059,), (1399980064,), (1399980067,), (1399980071,), (1399980073,), (1399980076,), (1399980120,), (1399980122,), (1399980123,), (1399980124,), (1399980127,), (1399980128,), (1399980472,), (1399980492,), (1399980533,), (1399980574,), (1399980621,), (1399980631,), (1399980635,), (1399980636,), (1399980639,), (1399980641,), (1399980662,), (1399980664,), (1399980666,), (1399980668,), (1399980670,), (1399980673,), (1399980709,), (1399980711,), (1399980712,), (1399980727,), (1399980729,), (1399980732,), (1399980734,), (1399980738,), (1399980742,), (1399980797,), (1399980798,), (1399980799,), (1399980800,), (1399981114,), (1399981155,), (1399981190,), (1399981234,), (1399981272,), (1399981308,), (1399981386,), (1399981391,), (1399981413,), (1399981651,), (1399981448,), (1399981485,), (1399981523,), (1399981559,), (1399981594,), (1399982372,), (1399982470,), (1399982572,), (1399983235,), (1399983237,), (1399983239,), (1399983243,), (1399983247,), (1399983249,), (1399983704,), (1399983766,), (1399983831,), (1399983892,), (1399983911,), (1399984152,), (1399984180,), (1399984196,), (1399984217,), (1399984224,), (1399984571,), (1399984606,), (1399984641,), (1399984679,), (1399984715,), (1399984753,), (1399984902,), (1399984944,), (1399985003,), (1399985051,), (1399985085,), (1399985274,), (1399985322,), (1399985360,), (1399985397,), (1399985606,), (1399985643,), (1399985683,), (1399985721,), (1399985865,), (1399985934,), (1399986140,), (1399986201,), (1399986276,), (1399986342,), (1399986487,), (1399986930,), (1399986967,), (1399986999,), (1399987014,), (1399987032,), (1399987045,), (1399987137,), (1399987250,), (1399987593,), (1399988775,), (1399988651,), (1399988712,), (1399988742,), (1399989146,), (1399989148,), (1399989150,), (1399989151,), (1399989154,), (1399989305,), (1399989307,), (1399989335,), (1399989348,), (1399989352,), (1399989465,), (1399989470,), (1399989495,), (1399989499,), (1399989545,), (1399989582,), (1399989742,), (1399989778,), (1399989860,), (1399989862,), (1399989864,), (1399989866,), (1399989869,), (1399989872,), (1399989903,), (1399989905,), (1399989906,), (1399989924,), (1399989961,), (1399990055,), (1399990056,), (1399990057,), (1399990064,), (1399990071,), (1399990157,), (1399990191,), (1399990225,), (1399990458,), (1399990519,), (1399990833,), (1399990861,), (1399990928,), (1399991017,), (1399991033,), (1399991151,), (1399991153,), (1399991155,), (1399991254,), (1399991275,), (1399991295,), (1399991302,), (1399991306,), (1399991309,), (1399991416,), (1399991442,), (1399991444,), (1399991447,), (1399991463,), (1399991465,), (1399991515,), (1399991516,), (1399991517,), (1399991519,), (1399991521,), (1399991523,), (1399991542,), (1399991529,), (1399991530,), (1399991534,), (1399991736,), (1399991776,), (1399991804,), (1399991839,), (1399991863,), (1399991920,), (1399991922,), (1399991925,), (1399991927,), (1399991953,), (1399991954,), (1399991955,), (1399991972,), (1399991974,), (1399991976,), (1399991978,), (1399991980,), (1399991983,), (1399992009,), (1399992010,), (1399992011,), (1399992014,), (1399992017,), (1399992019,), (1399992028,), (1399992031,), (1399992033,), (1399992035,), (1399992037,), (1399992039,), (1399992040,), (1399992042,), (1399992044,), (1399992046,), (1399992071,), (1399992073,), (1399992075,), (1399992077,), (1399992080,), (1399992094,), (1399992095,), (1399992096,), (1399992097,), (1399992100,), (1399992128,), (1399992130,), (1399992131,), (1399992134,), (1399992137,), (1399992138,), (1399992146,), (1399992148,), (1399992149,), (1399992151,), (1399992154,), (1399992155,), (1399992158,), (1399992161,), (1399992164,), (1399992167,), (1399992184,), (1399992186,), (1399992188,), (1399992190,), (1399992213,), (1399992215,), (1399992217,), (1399992219,), (1399992222,), (1399992225,), (1399992242,), (1399992243,), (1399992244,), (1399992245,), (1399992248,), (1399992250,), (1399992259,), (1399992260,), (1399992262,), (1399992314,), (1399992317,), (1399992326,), (1399992327,), (1399992288,), (1399992298,), (1399992308,), (1399992311,), (1399992336,), (1399992338,), (1399992340,), (1399992344,), (1399992348,), (1399992351,), (1399992371,), (1399992379,), (1399992381,), (1399992399,), (1399992400,), (1399992401,), (1399992402,), (1399992405,), (1399992424,), (1399992426,), (1399992428,), (1399992431,), (1399992434,), (1399992436,), (1399992442,), (1399992447,), (1399992449,), (1399992451,), (1399992452,), (1399992455,), (1399992456,), (1399992459,), (1399992488,), (1399992490,), (1399992492,), (1399992494,), (1399992497,), (1399992516,), (1399992517,), (1399992518,), (1399992519,), (1399992522,), (1399992525,), (1399992540,), (1399992542,), (1399992544,), (1399992546,), (1399992564,), (1399992565,), (1399992566,), (1399992567,), (1399992570,), (1399992573,), (1399992598,), (1399992600,), (1399992602,), (1399992605,), (1399992608,), (1399992609,), (1399992615,), (1399992618,), (1399992619,), (1399992620,), (1399992624,), (1399992626,), (1399992630,), (1399992633,), (1399992636,), (1399992640,), (1399992651,), (1399992653,), (1399992655,), (1399992657,), (1399992660,), (1399992663,), (1399993147,), (1399993188,), (1399993225,), (1399993230,), (1399993444,), (1399993362,), (1399993403,), (1399993437,), (1399993845,), (1399994083,), (1399994147,), (1399994218,), (1399994289,), (1399994858,), (1399994892,), (1399994925,), (1399994965,), (1399995087,), (1399995119,), (1399995153,), (1399995189,), (1399995227,), (1399995304,), (1399995697,), (1399995704,), (1399995723,), (1399995782,), (1399995832,), (1399995890,), (1399995891,), (1399995893,), (1399995896,), (1399995899,), (1399995901,), (1399995906,), (1399995907,), (1399995913,), (1399995918,), (1399995919,), (1399995922,), (1399995925,), (1399995928,), (1399995946,), (1399995953,), (1399995955,), (1399995957,), (1399995974,), (1399995975,), (1399995977,), (1399995979,), (1399995982,), (1399995985,), (1399996029,), (1399996031,), (1399996033,), (1399996049,), (1399996056,), (1399996060,), (1399996086,), (1399996088,), (1399996090,), (1399996094,), (1399996099,), (1399996102,), (1399996104,), (1399996106,), (1399996109,), (1399996111,), (1399996115,), (1399996117,), (1399996118,), (1399996120,), (1399996126,), (1399996266,), (1399996268,), (1399996281,), (1399996291,), (1399996295,), (1399996298,), (1399996436,), (1399996438,), (1399996440,), (1399996470,), (1399996473,), (1399996476,), (1399996480,), (1399996484,), (1399996488,), (1399996533,), (1399996534,), (1399996540,), (1399996541,), (1399996542,), (1399996545,), (1399996547,), (1399996505,), (1399996518,), (1399996526,), (1399996531,), (1399996550,), (1399996553,), (1399996556,), (1399996558,), (1399996560,), (1399996592,), (1399996594,), (1399996596,), (1399996598,), (1399996601,), (1399996603,), (1399996685,), (1399996718,), (1399996750,), (1399996937,), (1399996939,), (1399996941,), (1399996944,), (1399996947,), (1399996996,), (1399997039,), (1399997040,), (1399997042,), (1399997048,), (1399997050,), (1399997052,), (1399997054,), (1399997072,), (1399997074,), (1399997076,), (1399997078,), (1399997081,), (1399997083,), (1399997103,), (1399997105,), (1399997107,), (1399997155,), (1399997176,), (1399997182,), (1399997192,), (1399997196,), (1399997200,), (1399997210,), (1399997212,), (1399997215,), (1399997219,), (1399997249,), (1399997251,), (1399997254,), (1399997257,), (1399997259,), (1399997261,), (1399997266,), (1399997267,), (1399997269,), (1399997271,), (1399997278,), (1399997283,), (1399997294,), (1399997301,), (1399997315,), (1399997317,), (1399997320,), (1399997323,), (1399997324,), (1399997333,), (1399997336,), (1399997338,), (1399997341,), (1399997344,), (1399997348,), (1399997365,), (1399997368,), (1399997370,), (1399997373,), (1399997376,), (1399997379,), (1399997414,), (1399997415,), (1399997416,), (1399997418,), (1399997420,), (1400001468,), (1400001450,), (1400001506,), (1400001539,), (1400001570,), (1400001610,), (1400001673,), (1400002237,), (1400002283,), (1400002345,), (1400002401,), (1400002444,), (1400002519,), (1400002807,), (1400002939,), (1400002971,), (1400003003,), (1400003037,), (1400003074,), (1400003099,), (1400003100,), (1400003101,), (1400003104,), (1400003107,), (1400003109,), (1400003181,), (1400003215,), (1400003246,), (1400003287,), (1400003412,), (1400003416,), (1400003419,), (1400003459,), (1400003461,), (1400003463,), (1400003555,), (1400003556,), (1400003557,), (1400003558,), (1400003567,), (1400003568,), (1400003569,), (1400003570,), (1400003573,), (1400003576,), (1400003592,), (1400003593,), (1400003594,), (1400003596,), (1400003598,), (1400003600,), (1400003604,), (1400003606,), (1400003607,), (1400003608,), (1400003609,), (1400003611,), (1400003614,), (1400003619,), (1400003622,), (1400003626,), (1400003629,), (1400003635,), (1400003636,), (1400003637,), (1400003638,), (1400003646,), (1400003647,), (1400003648,), (1400003649,), (1400003652,), (1400003653,), (1400003677,), (1400003682,), (1400003683,), (1400003684,), (1400003695,), (1400003696,), (1400003698,), (1400003699,), (1400003702,), (1400003703,), (1400003722,), (1400003725,), (1400003728,), (1400003731,), (1400003736,), (1400003737,), (1400003738,), (1400003720,), (1400003721,), (1400003741,), (1400003744,), (1400003748,), (1400003749,), (1400003752,), (1400003755,), (1400003760,), (1400003761,), (1400003762,), (1400003765,), (1400003772,), (1400003773,), (1400003774,), (1400003775,), (1400003777,), (1400003797,), (1400003798,), (1400003799,), (1400003801,), (1400003803,), (1400003805,), (1400003810,), (1400003812,), (1400003900,), (1400003993,), (1400004082,), (1400004384,), (1400004477,), (1400004480,), (1400004482,), (1400004501,), (1400004502,), (1400004503,), (1400004515,), (1400004609,), (1400004702,), (1400004923,), (1400004924,), (1400004925,), (1400004926,), (1400004945,), (1400004946,), (1400004947,), (1400004948,), (1400004951,), (1400004952,), (1400004965,), (1400004966,), (1400004967,), (1400004968,), (1400004971,), (1400004990,), (1400004991,), (1400004992,), (1400004995,), (1400004997,), (1400004999,), (1400005004,), (1400005005,), (1400005006,), (1400005007,), (1400005008,), (1400005011,), (1400005014,), (1400005017,), (1400005021,), (1400005036,), (1400005037,), (1400005038,), (1400005039,), (1400005050,), (1400005051,), (1400005052,), (1400005053,), (1400005056,), (1400005059,), (1400005079,), (1400005081,), (1400005082,), (1400005085,), (1400005088,), (1400005090,), (1400005093,), (1400005094,), (1400005095,), (1400005096,), (1400005107,), (1400005097,), (1400005100,), (1400005103,), (1400005105,), (1400005124,), (1400005125,), (1400005126,), (1400005127,), (1400005130,), (1400005140,), (1400005141,), (1400005142,), (1400005143,), (1400005146,), (1400005165,), (1400005166,), (1400005167,), (1400005168,), (1400005171,), (1400005183,), (1400005185,), (1400005187,), (1400005191,), (1400005194,), (1400005204,), (1400005205,), (1400005208,), (1400005211,), (1400005214,), (1400005217,), (1400005221,), (1400005222,), (1400005223,), (1400005224,), (1400005225,), (1400005230,), (1400005233,), (1400005235,), (1400005252,), (1400005253,), (1400005254,), (1400005255,), (1400005258,), (1400005260,), (1400005306,), (1400005308,), (1400005310,), (1400005320,), (1400005344,), (1400005346,), (1400005347,), (1400005349,), (1400005351,), (1400005353,), (1400005359,), (1400005361,), (1400005363,), (1400005366,), (1400005370,), (1400005372,), (1400005374,), (1400005391,), (1400005443,), (1400005456,), (1400005463,), (1400005464,), (1400005466,), (1400005494,), (1400005673,), (1400005675,), (1400005677,), (1400005679,), (1400005717,), (1400005719,), (1400005721,), (1400005723,), (1400005725,), (1400005727,), (1400006089,), (1400006126,), (1400006162,), (1400006203,), (1400006408,), (1400006411,), (1400006418,), (1400006426,), (1400006428,), (1400006355,), (1400006386,), (1400006401,), (1400006404,), (1400006406,), (1400006462,), (1400006463,), (1400006466,), (1400006468,), (1400006470,), (1400006514,), (1400006522,), (1400006529,), (1400006530,), (1400006533,), (1400006543,), (1400006550,), (1400006552,), (1400006554,), (1400006556,), (1400006558,), (1400006576,), (1400006577,), (1400006578,), (1400006580,), (1400006582,), (1400006584,), (1400006588,), (1400006589,), (1400006590,), (1400006591,), (1400006605,), (1400006742,), (1400006778,), (1400006812,), (1400006852,), (1400006884,), (1400006889,), (1400006891,), (1400006892,), (1400006893,), (1400006901,), (1400006902,), (1400006903,), (1400006904,), (1400006906,), (1400006911,), (1400006929,), (1400006930,), (1400006931,), (1400006932,), (1400006935,), (1400006937,), (1400006949,), (1400006951,), (1400006953,), (1400006979,), (1400006980,), (1400006983,), (1400006985,), (1400006987,), (1400006989,), (1400007004,), (1400007005,), (1400007061,), (1400007068,), (1400007077,), (1400007105,), (1400007106,), (1400007107,), (1400007108,), (1400007110,), (1400007136,), (1400007140,), (1400007144,), (1400007992,), (1400007702,), (1400007929,), (1400008420,), (1400008483,), (1400008543,), (1400008797,), (1400008801,), (1400008802,), (1400008803,), (1400009108,), (1400009140,), (1400009145,), (1400009307,), (1400009308,), (1400009309,), (1400009323,), (1400009324,), (1400009325,), (1400009326,), (1400009328,), (1400009329,), (1400009343,), (1400009345,), (1400009347,), (1400009350,), (1400009366,), (1400009367,), (1400009368,), (1400009369,), (1400009372,), (1400009374,), (1400009389,), (1400009390,), (1400009391,), (1400009392,), (1400009395,), (1400009409,), (1400009410,), (1400009411,), (1400009413,), (1400009416,), (1400009427,), (1400009454,), (1400009456,), (1400009460,), (1400009461,), (1400009462,), (1400009465,), (1400009467,), (1400009468,), (1400009492,), (1400009494,), (1400009495,), (1400009496,), (1400009515,), (1400009749,), (1400009762,), (1400009764,), (1400009765,), (1400009767,), (1400009773,), (1400009866,), (1400009867,), (1400009868,), (1400009869,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'18122025': {'nb_upload': 65, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29554585]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1400009869, 1400009868, 1400009867, 1400009866, 1400009773, 1400009767, 1400009765, 1400009764, 1400009762, 1400009749, 1400009515, 1400009496, 1400009495, 1400009494, 1400009492] map_info['map_portfolio_photo'] : {29554585: [1400009869, 1400009868, 1400009867, 1400009866, 1400009773, 1400009767, 1400009765, 1400009764, 1400009762, 1400009749, 1400009515, 1400009496, 1400009495, 1400009494, 1400009492, 1400009468, 1400009467, 1400009465, 1400009462, 1400009461, 1400009460, 1400009456, 1400009454, 1400009427, 1400009416, 1400009413, 1400009411, 1400009410, 1400009409, 1400009395, 1400009392, 1400009391, 1400009390, 1400009389, 1400009374, 1400009372, 1400009369, 1400009368, 1400009367, 1400009366, 1400009350, 1400009347, 1400009345, 1400009343, 1400009329, 1400009328, 1400009326, 1400009325, 1400009324, 1400009323, 1400009309, 1400009308, 1400009307, 1400009145, 1400009140, 1400009108, 1400008803, 1400008802, 1400008801, 1400008797, 1400008543, 1400008483, 1400008420, 1400007929, 1400007702]} final : True mtd_id 4302 list_pids : [1400009869, 1400009868, 1400009867, 1400009866, 1400009773, 1400009767, 1400009765, 1400009764, 1400009762, 1400009749, 1400009515, 1400009496, 1400009495, 1400009494, 1400009492] Looping around the photos to save general results len do output : 1 /29554585Didn'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, '4247650') ('4302', '29554585', '1400009869', None, None, None, None, None, '4247650') ('4302', None, None, None, None, None, None, None, '4247650') ('4302', '29554585', '1400009868', None, None, None, None, None, '4247650') ('4302', None, None, None, None, None, None, None, '4247650') ('4302', '29554585', '1400009867', None, None, None, None, None, '4247650') ('4302', None, None, None, None, None, None, None, '4247650') ('4302', '29554585', '1400009866', None, None, None, None, None, '4247650') ('4302', None, None, None, None, None, None, None, '4247650') ('4302', '29554585', '1400009773', None, None, None, None, None, '4247650') ('4302', None, None, None, None, None, None, None, '4247650') ('4302', '29554585', '1400009767', None, None, None, None, None, '4247650') ('4302', None, None, None, None, None, None, None, '4247650') ('4302', '29554585', '1400009765', None, None, None, None, None, '4247650') ('4302', None, None, None, None, None, None, None, '4247650') ('4302', '29554585', '1400009764', None, None, None, None, None, '4247650') ('4302', None, None, None, None, None, None, None, '4247650') ('4302', '29554585', '1400009762', None, None, None, None, None, '4247650') ('4302', None, None, None, None, None, None, None, '4247650') ('4302', '29554585', '1400009749', None, None, None, None, None, '4247650') ('4302', None, None, None, None, None, None, None, '4247650') ('4302', '29554585', '1400009515', None, None, None, None, None, '4247650') ('4302', None, None, None, None, None, None, None, '4247650') ('4302', '29554585', '1400009496', None, None, None, None, None, '4247650') ('4302', None, None, None, None, None, None, None, '4247650') ('4302', '29554585', '1400009495', None, None, None, None, None, '4247650') ('4302', None, None, None, None, None, None, None, '4247650') ('4302', '29554585', '1400009494', None, None, None, None, None, '4247650') ('4302', None, None, None, None, None, None, None, '4247650') ('4302', '29554585', '1400009492', None, None, None, None, None, '4247650') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 16 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, '29554585', 'None', None, None, None, None, '4247650'), ('4302', '29554585', '1400009869', None, None, None, None, None, '4247650'), ('4302', '29554585', '1400009868', None, None, None, None, None, '4247650'), ('4302', '29554585', '1400009867', None, None, None, None, None, '4247650'), ('4302', '29554585', '1400009866', None, None, None, None, None, '4247650'), ('4302', '29554585', '1400009773', None, None, None, None, None, '4247650'), ('4302', '29554585', '1400009767', None, None, None, None, None, '4247650'), ('4302', '29554585', '1400009765', None, None, None, None, None, '4247650'), ('4302', '29554585', '1400009764', None, None, None, None, None, '4247650'), ('4302', '29554585', '1400009762', None, None, None, None, None, '4247650'), ('4302', '29554585', '1400009749', None, None, None, None, None, '4247650'), ('4302', '29554585', '1400009515', None, None, None, None, None, '4247650'), ('4302', '29554585', '1400009496', None, None, None, None, None, '4247650'), ('4302', '29554585', '1400009495', None, None, None, None, None, '4247650'), ('4302', '29554585', '1400009494', None, None, None, None, None, '4247650'), ('4302', '29554585', '1400009492', None, None, None, None, None, '4247650')] time used for this insertion : 0.018604516983032227 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.7887983322143555 time spend to save output : 0.018880605697631836 total time spend for step 5 : 4.807678937911987 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 (4247650) 2.40user 2.53system 0:15.98elapsed 30%CPU (0avgtext+0avgdata 166036maxresident)k 624inputs+14552outputs (9major+80492minor)pagefaults 0swaps