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 : 2218203 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 (4091516) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (4091516) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28782456 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['4091516'] with mtr_portfolio_ids : ['28782456'] and first list_photo_ids : [] new path : /proc/2218203/ Name: python3 Umask: 0002 State: R (running) Tgid: 2218203 Ngid: 0 Pid: 2218203 PPid: 2218202 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 2218203 NSpid: 2218203 NSpgid: 2217539 NSsid: 2217539 VmPeak: 1106908 kB VmSize: 1106884 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98272 kB VmRSS: 98272 kB RssAnon: 59904 kB RssFile: 38368 kB RssShmem: 0 kB VmData: 865636 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 540 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: 36 nonvoluntary_ctxt_switches: 101 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '2218203', 'Ngid': '0', 'Pid': '2218203', 'PPid': '2218202', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '2218203', 'NSpid': '2218203', 'NSpgid': '2217539', 'NSsid': '2217539', 'VmPeak': '1106908 kB', 'VmSize': '1106884 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98272 kB', 'VmRSS': '98272 kB', 'RssAnon': '59904 kB', 'RssFile': '38368 kB', 'RssShmem': '0 kB', 'VmData': '865636 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '540 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': '36', 'nonvoluntary_ctxt_switches': '101'} ('datou_batch_current', '2218203', '1106908', '0', '1106884', '865636', '98272', b'', 'marlene', '4091516') 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 (28782456) 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 (4091516 ) ) 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 (28782456) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1395568141, 'portfolio_id': 28782456}, {'photo_id': 1395568136, 'portfolio_id': 28782456}, {'photo_id': 1395567902, 'portfolio_id': 28782456}, {'photo_id': 1395567832, 'portfolio_id': 28782456}, {'photo_id': 1395566897, 'portfolio_id': 28782456}, {'photo_id': 1395566864, 'portfolio_id': 28782456}, {'photo_id': 1395566829, 'portfolio_id': 28782456}, {'photo_id': 1395566375, 'portfolio_id': 28782456}, {'photo_id': 1395566340, 'portfolio_id': 28782456}, {'photo_id': 1395566103, 'portfolio_id': 28782456}, {'photo_id': 1395566068, 'portfolio_id': 28782456}, {'photo_id': 1395566032, 'portfolio_id': 28782456}, {'photo_id': 1395565999, 'portfolio_id': 28782456}, {'photo_id': 1395565875, 'portfolio_id': 28782456}, {'photo_id': 1395565841, 'portfolio_id': 28782456}, {'photo_id': 1395565805, 'portfolio_id': 28782456}, {'photo_id': 1395565773, 'portfolio_id': 28782456}, {'photo_id': 1395565740, 'portfolio_id': 28782456}, {'photo_id': 1395565704, 'portfolio_id': 28782456}, {'photo_id': 1395564961, 'portfolio_id': 28782456}, {'photo_id': 1395564957, 'portfolio_id': 28782456}, {'photo_id': 1395564955, 'portfolio_id': 28782456}, {'photo_id': 1395564953, 'portfolio_id': 28782456}, {'photo_id': 1395564932, 'portfolio_id': 28782456}, {'photo_id': 1395564650, 'portfolio_id': 28782456}, {'photo_id': 1395564608, 'portfolio_id': 28782456}, {'photo_id': 1395564550, 'portfolio_id': 28782456}, {'photo_id': 1395564484, 'portfolio_id': 28782456}, {'photo_id': 1395564453, 'portfolio_id': 28782456}, {'photo_id': 1395564305, 'portfolio_id': 28782456}, {'photo_id': 1395563687, 'portfolio_id': 28782456}, {'photo_id': 1395563628, 'portfolio_id': 28782456}, {'photo_id': 1395563593, 'portfolio_id': 28782456}, {'photo_id': 1395563591, 'portfolio_id': 28782456}, {'photo_id': 1395563564, 'portfolio_id': 28782456}, {'photo_id': 1395563531, 'portfolio_id': 28782456}, {'photo_id': 1395563499, 'portfolio_id': 28782456}, {'photo_id': 1395563469, 'portfolio_id': 28782456}, {'photo_id': 1395563356, 'portfolio_id': 28782456}, {'photo_id': 1395563320, 'portfolio_id': 28782456}, {'photo_id': 1395563290, 'portfolio_id': 28782456}, {'photo_id': 1395563260, 'portfolio_id': 28782456}, {'photo_id': 1395563135, 'portfolio_id': 28782456}, {'photo_id': 1395563102, 'portfolio_id': 28782456}, {'photo_id': 1395563065, 'portfolio_id': 28782456}, {'photo_id': 1395563032, 'portfolio_id': 28782456}, {'photo_id': 1395563001, 'portfolio_id': 28782456}, {'photo_id': 1395562965, 'portfolio_id': 28782456}, {'photo_id': 1395562580, 'portfolio_id': 28782456}, {'photo_id': 1395562578, 'portfolio_id': 28782456}, {'photo_id': 1395562577, 'portfolio_id': 28782456}, {'photo_id': 1395562576, 'portfolio_id': 28782456}, {'photo_id': 1395562503, 'portfolio_id': 28782456}, {'photo_id': 1395562466, 'portfolio_id': 28782456}, {'photo_id': 1395562432, 'portfolio_id': 28782456}, {'photo_id': 1395562425, 'portfolio_id': 28782456}, {'photo_id': 1395562423, 'portfolio_id': 28782456}, {'photo_id': 1395562422, 'portfolio_id': 28782456}, {'photo_id': 1395562191, 'portfolio_id': 28782456}, {'photo_id': 1395562156, 'portfolio_id': 28782456}, {'photo_id': 1395562144, 'portfolio_id': 28782456}, {'photo_id': 1395562143, 'portfolio_id': 28782456}, {'photo_id': 1395561729, 'portfolio_id': 28782456}, {'photo_id': 1395561185, 'portfolio_id': 28782456}, {'photo_id': 1395561116, 'portfolio_id': 28782456}, {'photo_id': 1395561105, 'portfolio_id': 28782456}, {'photo_id': 1395561103, 'portfolio_id': 28782456}, {'photo_id': 1395561101, 'portfolio_id': 28782456}, {'photo_id': 1395560794, 'portfolio_id': 28782456}, {'photo_id': 1395560766, 'portfolio_id': 28782456}] map_portfolio_id_photo_id: {28782456: [1395568141, 1395568136, 1395567902, 1395567832, 1395566897, 1395566864, 1395566829, 1395566375, 1395566340, 1395566103, 1395566068, 1395566032, 1395565999, 1395565875, 1395565841, 1395565805, 1395565773, 1395565740, 1395565704, 1395564961, 1395564957, 1395564955, 1395564953, 1395564932, 1395564650, 1395564608, 1395564550, 1395564484, 1395564453, 1395564305, 1395563687, 1395563628, 1395563593, 1395563591, 1395563564, 1395563531, 1395563499, 1395563469, 1395563356, 1395563320, 1395563290, 1395563260, 1395563135, 1395563102, 1395563065, 1395563032, 1395563001, 1395562965, 1395562580, 1395562578, 1395562577, 1395562576, 1395562503, 1395562466, 1395562432, 1395562425, 1395562423, 1395562422, 1395562191, 1395562156, 1395562144, 1395562143, 1395561729, 1395561185, 1395561116, 1395561105, 1395561103, 1395561101, 1395560794, 1395560766]} ##### 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.018854618072509766 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Fri Nov 21 16:06:29 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 (28782456) 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 : 28782456 get user id for portfolio 28782456 get sub ptf for main ptf 28782456, type 3726 and hashtags ['plastique', 'autre_refus', 'Carton_brun', 'mal_croppe', 'Carton_gris', 'kraft', 'cartonnette', 'flou', 'papier', 'Teint_Dans_La_Masse', 'metal', 'environnement'] 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`=28782456 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','autre_refus','Carton_brun','mal_croppe','Carton_gris','kraft','cartonnette','flou','papier','Teint_Dans_La_Masse','metal','environnement')) 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`=28782456 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','autre_refus','Carton_brun','mal_croppe','Carton_gris','kraft','cartonnette','flou','papier','Teint_Dans_La_Masse','metal','environnement')) AND mptpi.`min_score`=0.5 To do returned map {'metal': {'main_port_id': 28782456, 'sub_port_id': 28782474, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19529554, 'last_updated_at': datetime.datetime(2025, 11, 21, 16, 5), 'last_updated_at_desc': datetime.datetime(2025, 11, 21, 16, 5), 'last_updated_at_asc': datetime.datetime(2025, 11, 21, 15, 49, 28)}, 'plastique': {'main_port_id': 28782456, 'sub_port_id': 28782475, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19529555, 'last_updated_at': datetime.datetime(2025, 11, 21, 16, 5), 'last_updated_at_desc': datetime.datetime(2025, 11, 21, 16, 5), 'last_updated_at_asc': datetime.datetime(2025, 11, 21, 15, 49, 28)}, 'Carton_brun': {'main_port_id': 28782456, 'sub_port_id': 28782476, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19529556, 'last_updated_at': datetime.datetime(2025, 11, 21, 16, 5), 'last_updated_at_desc': datetime.datetime(2025, 11, 21, 16, 5), 'last_updated_at_asc': datetime.datetime(2025, 11, 21, 15, 49, 28)}, 'autre_refus': {'main_port_id': 28782456, 'sub_port_id': 28782477, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19529557, 'last_updated_at': datetime.datetime(2025, 11, 21, 16, 5), 'last_updated_at_desc': datetime.datetime(2025, 11, 21, 16, 5), 'last_updated_at_asc': datetime.datetime(2025, 11, 21, 15, 49, 28)}, 'cartonnette': {'main_port_id': 28782456, 'sub_port_id': 28782478, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19529558, 'last_updated_at': datetime.datetime(2025, 11, 21, 16, 5), 'last_updated_at_desc': datetime.datetime(2025, 11, 21, 16, 5), 'last_updated_at_asc': datetime.datetime(2025, 11, 21, 15, 49, 28)}, 'papier': {'main_port_id': 28782456, 'sub_port_id': 28782479, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19529559, 'last_updated_at': datetime.datetime(2025, 11, 21, 16, 5), 'last_updated_at_desc': datetime.datetime(2025, 11, 21, 16, 5), 'last_updated_at_asc': datetime.datetime(2025, 11, 21, 15, 49, 28)}, 'Carton_gris': {'main_port_id': 28782456, 'sub_port_id': 28782480, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19529560, 'last_updated_at': datetime.datetime(2025, 11, 21, 16, 5), 'last_updated_at_desc': datetime.datetime(2025, 11, 21, 16, 5), 'last_updated_at_asc': datetime.datetime(2025, 11, 21, 15, 49, 28)}, 'kraft': {'main_port_id': 28782456, 'sub_port_id': 28782481, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19529561, 'last_updated_at': datetime.datetime(2025, 11, 21, 16, 5), 'last_updated_at_desc': datetime.datetime(2025, 11, 21, 16, 5), 'last_updated_at_asc': datetime.datetime(2025, 11, 21, 15, 49, 28)}, 'mal_croppe': {'main_port_id': 28782456, 'sub_port_id': 28782482, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19529562, 'last_updated_at': datetime.datetime(2025, 11, 21, 16, 5), 'last_updated_at_desc': datetime.datetime(2025, 11, 21, 16, 5), 'last_updated_at_asc': datetime.datetime(2025, 11, 21, 15, 49, 28)}, 'Teint_Dans_La_Masse': {'main_port_id': 28782456, 'sub_port_id': 28782483, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19529563, 'last_updated_at': datetime.datetime(2025, 11, 21, 16, 5), 'last_updated_at_desc': datetime.datetime(2025, 11, 21, 16, 5), 'last_updated_at_asc': datetime.datetime(2025, 11, 21, 15, 49, 28)}, 'environnement': {'main_port_id': 28782456, 'sub_port_id': 28782484, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19529564, 'last_updated_at': datetime.datetime(2025, 11, 21, 16, 5), 'last_updated_at_desc': datetime.datetime(2025, 11, 21, 16, 5), 'last_updated_at_asc': datetime.datetime(2025, 11, 21, 15, 49, 28)}, 'flou': {'main_port_id': 28782456, 'sub_port_id': 28782485, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19529565, 'last_updated_at': datetime.datetime(2025, 11, 21, 16, 5), 'last_updated_at_desc': datetime.datetime(2025, 11, 21, 16, 5), 'last_updated_at_asc': datetime.datetime(2025, 11, 21, 15, 49, 28)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28782474 , 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=28782456 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 (28782474) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28782456) result : ((1395560766,), (1395560794,), (1395561101,), (1395561103,), (1395561105,), (1395561116,), (1395561185,), (1395561729,), (1395562143,), (1395562144,), (1395562156,), (1395562191,), (1395562422,), (1395562423,), (1395562425,), (1395562432,), (1395562466,), (1395562503,), (1395562576,), (1395562577,), (1395562578,), (1395562580,), (1395562965,), (1395563001,), (1395563032,), (1395563065,), (1395563102,), (1395563135,), (1395563260,), (1395563290,), (1395563320,), (1395563356,), (1395563469,), (1395563499,), (1395563531,), (1395563564,), (1395563591,), (1395563593,), (1395563628,), (1395563687,), (1395564305,), (1395564453,), (1395564484,), (1395564550,), (1395564608,), (1395564650,), (1395564932,), (1395564953,), (1395564955,), (1395564957,), (1395564961,), (1395565704,), (1395565740,), (1395565773,), (1395565805,), (1395565841,), (1395565875,), (1395565999,), (1395566032,), (1395566068,), (1395566103,), (1395566340,), (1395566375,), (1395566829,), (1395566864,), (1395566897,), (1395567832,), (1395567902,), (1395568136,), (1395568141,)) 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 28782475 , 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=28782456 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 (28782475) result : ((1395565165,), (1395566441,), (1395566443,), (1395568105,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28782456) result : ((1395560766,), (1395560794,), (1395561101,), (1395561103,), (1395561105,), (1395561116,), (1395561185,), (1395561729,), (1395562143,), (1395562144,), (1395562156,), (1395562191,), (1395562422,), (1395562423,), (1395562425,), (1395562432,), (1395562466,), (1395562503,), (1395562576,), (1395562577,), (1395562578,), (1395562580,), (1395562965,), (1395563001,), (1395563032,), (1395563065,), (1395563102,), (1395563135,), (1395563260,), (1395563290,), (1395563320,), (1395563356,), (1395563469,), (1395563499,), (1395563531,), (1395563564,), (1395563591,), (1395563593,), (1395563628,), (1395563687,), (1395564305,), (1395564453,), (1395564484,), (1395564550,), (1395564608,), (1395564650,), (1395564932,), (1395564953,), (1395564955,), (1395564957,), (1395564961,), (1395565704,), (1395565740,), (1395565773,), (1395565805,), (1395565841,), (1395565875,), (1395565999,), (1395566032,), (1395566068,), (1395566103,), (1395566340,), (1395566375,), (1395566829,), (1395566864,), (1395566897,), (1395567832,), (1395567902,), (1395568136,), (1395568141,)) 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 28782476 , 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=28782456 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 (28782476) result : ((1395563757,), (1395563760,), (1395563763,), (1395565154,), (1395565156,), (1395566428,), (1395566430,), (1395566953,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28782456) result : ((1395560766,), (1395560794,), (1395561101,), (1395561103,), (1395561105,), (1395561116,), (1395561185,), (1395561729,), (1395562143,), (1395562144,), (1395562156,), (1395562191,), (1395562422,), (1395562423,), (1395562425,), (1395562432,), (1395562466,), (1395562503,), (1395562576,), (1395562577,), (1395562578,), (1395562580,), (1395562965,), (1395563001,), (1395563032,), (1395563065,), (1395563102,), (1395563135,), (1395563260,), (1395563290,), (1395563320,), (1395563356,), (1395563469,), (1395563499,), (1395563531,), (1395563564,), (1395563591,), (1395563593,), (1395563628,), (1395563687,), (1395564305,), (1395564453,), (1395564484,), (1395564550,), (1395564608,), (1395564650,), (1395564932,), (1395564953,), (1395564955,), (1395564957,), (1395564961,), (1395565704,), (1395565740,), (1395565773,), (1395565805,), (1395565841,), (1395565875,), (1395565999,), (1395566032,), (1395566068,), (1395566103,), (1395566340,), (1395566375,), (1395566829,), (1395566864,), (1395566897,), (1395567832,), (1395567902,), (1395568136,), (1395568141,)) 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 28782477 , 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=28782456 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 (28782477) result : ((1395566390,), (1395566392,), (1395566919,), (1395568100,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28782456) result : ((1395560766,), (1395560794,), (1395561101,), (1395561103,), (1395561105,), (1395561116,), (1395561185,), (1395561729,), (1395562143,), (1395562144,), (1395562156,), (1395562191,), (1395562422,), (1395562423,), (1395562425,), (1395562432,), (1395562466,), (1395562503,), (1395562576,), (1395562577,), (1395562578,), (1395562580,), (1395562965,), (1395563001,), (1395563032,), (1395563065,), (1395563102,), (1395563135,), (1395563260,), (1395563290,), (1395563320,), (1395563356,), (1395563469,), (1395563499,), (1395563531,), (1395563564,), (1395563591,), (1395563593,), (1395563628,), (1395563687,), (1395564305,), (1395564453,), (1395564484,), (1395564550,), (1395564608,), (1395564650,), (1395564932,), (1395564953,), (1395564955,), (1395564957,), (1395564961,), (1395565704,), (1395565740,), (1395565773,), (1395565805,), (1395565841,), (1395565875,), (1395565999,), (1395566032,), (1395566068,), (1395566103,), (1395566340,), (1395566375,), (1395566829,), (1395566864,), (1395566897,), (1395567832,), (1395567902,), (1395568136,), (1395568141,)) 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 28782478 , 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=28782456 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 (28782478) result : ((1395563733,), (1395565144,), (1395565436,), (1395566417,), (1395566419,), (1395566942,), (1395566944,), (1395568103,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28782456) result : ((1395560766,), (1395560794,), (1395561101,), (1395561103,), (1395561105,), (1395561116,), (1395561185,), (1395561729,), (1395562143,), (1395562144,), (1395562156,), (1395562191,), (1395562422,), (1395562423,), (1395562425,), (1395562432,), (1395562466,), (1395562503,), (1395562576,), (1395562577,), (1395562578,), (1395562580,), (1395562965,), (1395563001,), (1395563032,), (1395563065,), (1395563102,), (1395563135,), (1395563260,), (1395563290,), (1395563320,), (1395563356,), (1395563469,), (1395563499,), (1395563531,), (1395563564,), (1395563591,), (1395563593,), (1395563628,), (1395563687,), (1395564305,), (1395564453,), (1395564484,), (1395564550,), (1395564608,), (1395564650,), (1395564932,), (1395564953,), (1395564955,), (1395564957,), (1395564961,), (1395565704,), (1395565740,), (1395565773,), (1395565805,), (1395565841,), (1395565875,), (1395565999,), (1395566032,), (1395566068,), (1395566103,), (1395566340,), (1395566375,), (1395566829,), (1395566864,), (1395566897,), (1395567832,), (1395567902,), (1395568136,), (1395568141,)) 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 28782479 , 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=28782456 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 (28782479) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28782456) result : ((1395560766,), (1395560794,), (1395561101,), (1395561103,), (1395561105,), (1395561116,), (1395561185,), (1395561729,), (1395562143,), (1395562144,), (1395562156,), (1395562191,), (1395562422,), (1395562423,), (1395562425,), (1395562432,), (1395562466,), (1395562503,), (1395562576,), (1395562577,), (1395562578,), (1395562580,), (1395562965,), (1395563001,), (1395563032,), (1395563065,), (1395563102,), (1395563135,), (1395563260,), (1395563290,), (1395563320,), (1395563356,), (1395563469,), (1395563499,), (1395563531,), (1395563564,), (1395563591,), (1395563593,), (1395563628,), (1395563687,), (1395564305,), (1395564453,), (1395564484,), (1395564550,), (1395564608,), (1395564650,), (1395564932,), (1395564953,), (1395564955,), (1395564957,), (1395564961,), (1395565704,), (1395565740,), (1395565773,), (1395565805,), (1395565841,), (1395565875,), (1395565999,), (1395566032,), (1395566068,), (1395566103,), (1395566340,), (1395566375,), (1395566829,), (1395566864,), (1395566897,), (1395567832,), (1395567902,), (1395568136,), (1395568141,)) 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 28782480 , 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=28782456 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 (28782480) result : ((1395563707,), (1395563710,), (1395563713,), (1395565424,), (1395565426,), (1395565428,), (1395566404,), (1395566407,), (1395566928,), (1395566930,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28782456) result : ((1395560766,), (1395560794,), (1395561101,), (1395561103,), (1395561105,), (1395561116,), (1395561185,), (1395561729,), (1395562143,), (1395562144,), (1395562156,), (1395562191,), (1395562422,), (1395562423,), (1395562425,), (1395562432,), (1395562466,), (1395562503,), (1395562576,), (1395562577,), (1395562578,), (1395562580,), (1395562965,), (1395563001,), (1395563032,), (1395563065,), (1395563102,), (1395563135,), (1395563260,), (1395563290,), (1395563320,), (1395563356,), (1395563469,), (1395563499,), (1395563531,), (1395563564,), (1395563591,), (1395563593,), (1395563628,), (1395563687,), (1395564305,), (1395564453,), (1395564484,), (1395564550,), (1395564608,), (1395564650,), (1395564932,), (1395564953,), (1395564955,), (1395564957,), (1395564961,), (1395565704,), (1395565740,), (1395565773,), (1395565805,), (1395565841,), (1395565875,), (1395565999,), (1395566032,), (1395566068,), (1395566103,), (1395566340,), (1395566375,), (1395566829,), (1395566864,), (1395566897,), (1395567832,), (1395567902,), (1395568136,), (1395568141,)) 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 28782481 , 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=28782456 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 (28782481) result : ((1395563784,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28782456) result : ((1395560766,), (1395560794,), (1395561101,), (1395561103,), (1395561105,), (1395561116,), (1395561185,), (1395561729,), (1395562143,), (1395562144,), (1395562156,), (1395562191,), (1395562422,), (1395562423,), (1395562425,), (1395562432,), (1395562466,), (1395562503,), (1395562576,), (1395562577,), (1395562578,), (1395562580,), (1395562965,), (1395563001,), (1395563032,), (1395563065,), (1395563102,), (1395563135,), (1395563260,), (1395563290,), (1395563320,), (1395563356,), (1395563469,), (1395563499,), (1395563531,), (1395563564,), (1395563591,), (1395563593,), (1395563628,), (1395563687,), (1395564305,), (1395564453,), (1395564484,), (1395564550,), (1395564608,), (1395564650,), (1395564932,), (1395564953,), (1395564955,), (1395564957,), (1395564961,), (1395565704,), (1395565740,), (1395565773,), (1395565805,), (1395565841,), (1395565875,), (1395565999,), (1395566032,), (1395566068,), (1395566103,), (1395566340,), (1395566375,), (1395566829,), (1395566864,), (1395566897,), (1395567832,), (1395567902,), (1395568136,), (1395568141,)) 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 28782482 , 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=28782456 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 (28782482) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28782456) result : ((1395560766,), (1395560794,), (1395561101,), (1395561103,), (1395561105,), (1395561116,), (1395561185,), (1395561729,), (1395562143,), (1395562144,), (1395562156,), (1395562191,), (1395562422,), (1395562423,), (1395562425,), (1395562432,), (1395562466,), (1395562503,), (1395562576,), (1395562577,), (1395562578,), (1395562580,), (1395562965,), (1395563001,), (1395563032,), (1395563065,), (1395563102,), (1395563135,), (1395563260,), (1395563290,), (1395563320,), (1395563356,), (1395563469,), (1395563499,), (1395563531,), (1395563564,), (1395563591,), (1395563593,), (1395563628,), (1395563687,), (1395564305,), (1395564453,), (1395564484,), (1395564550,), (1395564608,), (1395564650,), (1395564932,), (1395564953,), (1395564955,), (1395564957,), (1395564961,), (1395565704,), (1395565740,), (1395565773,), (1395565805,), (1395565841,), (1395565875,), (1395565999,), (1395566032,), (1395566068,), (1395566103,), (1395566340,), (1395566375,), (1395566829,), (1395566864,), (1395566897,), (1395567832,), (1395567902,), (1395568136,), (1395568141,)) 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 28782483 , 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=28782456 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 (28782483) result : ((1395564229,), (1395564231,), (1395565135,), (1395565413,), (1395566378,), (1395566380,), (1395568099,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28782456) result : ((1395560766,), (1395560794,), (1395561101,), (1395561103,), (1395561105,), (1395561116,), (1395561185,), (1395561729,), (1395562143,), (1395562144,), (1395562156,), (1395562191,), (1395562422,), (1395562423,), (1395562425,), (1395562432,), (1395562466,), (1395562503,), (1395562576,), (1395562577,), (1395562578,), (1395562580,), (1395562965,), (1395563001,), (1395563032,), (1395563065,), (1395563102,), (1395563135,), (1395563260,), (1395563290,), (1395563320,), (1395563356,), (1395563469,), (1395563499,), (1395563531,), (1395563564,), (1395563591,), (1395563593,), (1395563628,), (1395563687,), (1395564305,), (1395564453,), (1395564484,), (1395564550,), (1395564608,), (1395564650,), (1395564932,), (1395564953,), (1395564955,), (1395564957,), (1395564961,), (1395565704,), (1395565740,), (1395565773,), (1395565805,), (1395565841,), (1395565875,), (1395565999,), (1395566032,), (1395566068,), (1395566103,), (1395566340,), (1395566375,), (1395566829,), (1395566864,), (1395566897,), (1395567832,), (1395567902,), (1395568136,), (1395568141,)) 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 28782484 , 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=28782456 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 (28782484) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28782456) result : ((1395560766,), (1395560794,), (1395561101,), (1395561103,), (1395561105,), (1395561116,), (1395561185,), (1395561729,), (1395562143,), (1395562144,), (1395562156,), (1395562191,), (1395562422,), (1395562423,), (1395562425,), (1395562432,), (1395562466,), (1395562503,), (1395562576,), (1395562577,), (1395562578,), (1395562580,), (1395562965,), (1395563001,), (1395563032,), (1395563065,), (1395563102,), (1395563135,), (1395563260,), (1395563290,), (1395563320,), (1395563356,), (1395563469,), (1395563499,), (1395563531,), (1395563564,), (1395563591,), (1395563593,), (1395563628,), (1395563687,), (1395564305,), (1395564453,), (1395564484,), (1395564550,), (1395564608,), (1395564650,), (1395564932,), (1395564953,), (1395564955,), (1395564957,), (1395564961,), (1395565704,), (1395565740,), (1395565773,), (1395565805,), (1395565841,), (1395565875,), (1395565999,), (1395566032,), (1395566068,), (1395566103,), (1395566340,), (1395566375,), (1395566829,), (1395566864,), (1395566897,), (1395567832,), (1395567902,), (1395568136,), (1395568141,)) 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 28782485 , 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=28782456 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 (28782485) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28782456) result : ((1395560766,), (1395560794,), (1395561101,), (1395561103,), (1395561105,), (1395561116,), (1395561185,), (1395561729,), (1395562143,), (1395562144,), (1395562156,), (1395562191,), (1395562422,), (1395562423,), (1395562425,), (1395562432,), (1395562466,), (1395562503,), (1395562576,), (1395562577,), (1395562578,), (1395562580,), (1395562965,), (1395563001,), (1395563032,), (1395563065,), (1395563102,), (1395563135,), (1395563260,), (1395563290,), (1395563320,), (1395563356,), (1395563469,), (1395563499,), (1395563531,), (1395563564,), (1395563591,), (1395563593,), (1395563628,), (1395563687,), (1395564305,), (1395564453,), (1395564484,), (1395564550,), (1395564608,), (1395564650,), (1395564932,), (1395564953,), (1395564955,), (1395564957,), (1395564961,), (1395565704,), (1395565740,), (1395565773,), (1395565805,), (1395565841,), (1395565875,), (1395565999,), (1395566032,), (1395566068,), (1395566103,), (1395566340,), (1395566375,), (1395566829,), (1395566864,), (1395566897,), (1395567832,), (1395567902,), (1395568136,), (1395568141,)) 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`=28782456 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','autre_refus','Carton_brun','mal_croppe','Carton_gris','kraft','cartonnette','flou','papier','Teint_Dans_La_Masse','metal','environnement')) 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`=28782456 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','autre_refus','Carton_brun','mal_croppe','Carton_gris','kraft','cartonnette','flou','papier','Teint_Dans_La_Masse','metal','environnement')) AND mptpi.`min_score`=0.5 To do returned map {'metal': {'main_port_id': 28782456, 'sub_port_id': 28782487, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19529566, 'last_updated_at': datetime.datetime(2025, 11, 21, 15, 49, 34), 'last_updated_at_desc': datetime.datetime(2025, 11, 21, 15, 49, 34), 'last_updated_at_asc': datetime.datetime(2025, 11, 21, 15, 49, 34)}, 'plastique': {'main_port_id': 28782456, 'sub_port_id': 28782488, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19529567, 'last_updated_at': datetime.datetime(2025, 11, 21, 15, 49, 34), 'last_updated_at_desc': datetime.datetime(2025, 11, 21, 15, 49, 34), 'last_updated_at_asc': datetime.datetime(2025, 11, 21, 15, 49, 34)}, 'Carton_brun': {'main_port_id': 28782456, 'sub_port_id': 28782489, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19529568, 'last_updated_at': datetime.datetime(2025, 11, 21, 15, 49, 34), 'last_updated_at_desc': datetime.datetime(2025, 11, 21, 15, 49, 34), 'last_updated_at_asc': datetime.datetime(2025, 11, 21, 15, 49, 34)}, 'autre_refus': {'main_port_id': 28782456, 'sub_port_id': 28782490, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19529569, 'last_updated_at': datetime.datetime(2025, 11, 21, 15, 49, 34), 'last_updated_at_desc': datetime.datetime(2025, 11, 21, 15, 49, 34), 'last_updated_at_asc': datetime.datetime(2025, 11, 21, 15, 49, 34)}, 'cartonnette': {'main_port_id': 28782456, 'sub_port_id': 28782491, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19529570, 'last_updated_at': datetime.datetime(2025, 11, 21, 15, 49, 34), 'last_updated_at_desc': datetime.datetime(2025, 11, 21, 15, 49, 34), 'last_updated_at_asc': datetime.datetime(2025, 11, 21, 15, 49, 34)}, 'papier': {'main_port_id': 28782456, 'sub_port_id': 28782492, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19529571, 'last_updated_at': datetime.datetime(2025, 11, 21, 15, 49, 34), 'last_updated_at_desc': datetime.datetime(2025, 11, 21, 15, 49, 34), 'last_updated_at_asc': datetime.datetime(2025, 11, 21, 15, 49, 34)}, 'Carton_gris': {'main_port_id': 28782456, 'sub_port_id': 28782493, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19529572, 'last_updated_at': datetime.datetime(2025, 11, 21, 15, 49, 34), 'last_updated_at_desc': datetime.datetime(2025, 11, 21, 15, 49, 34), 'last_updated_at_asc': datetime.datetime(2025, 11, 21, 15, 49, 34)}, 'kraft': {'main_port_id': 28782456, 'sub_port_id': 28782494, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19529573, 'last_updated_at': datetime.datetime(2025, 11, 21, 15, 49, 34), 'last_updated_at_desc': datetime.datetime(2025, 11, 21, 15, 49, 34), 'last_updated_at_asc': datetime.datetime(2025, 11, 21, 15, 49, 34)}, 'mal_croppe': {'main_port_id': 28782456, 'sub_port_id': 28782495, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19529574, 'last_updated_at': datetime.datetime(2025, 11, 21, 15, 49, 34), 'last_updated_at_desc': datetime.datetime(2025, 11, 21, 15, 49, 34), 'last_updated_at_asc': datetime.datetime(2025, 11, 21, 15, 49, 34)}, 'Teint_Dans_La_Masse': {'main_port_id': 28782456, 'sub_port_id': 28782496, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19529575, 'last_updated_at': datetime.datetime(2025, 11, 21, 15, 49, 34), 'last_updated_at_desc': datetime.datetime(2025, 11, 21, 15, 49, 34), 'last_updated_at_asc': datetime.datetime(2025, 11, 21, 15, 49, 34)}, 'environnement': {'main_port_id': 28782456, 'sub_port_id': 28782497, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19529576, 'last_updated_at': datetime.datetime(2025, 11, 21, 15, 49, 34), 'last_updated_at_desc': datetime.datetime(2025, 11, 21, 15, 49, 34), 'last_updated_at_asc': datetime.datetime(2025, 11, 21, 15, 49, 34)}, 'flou': {'main_port_id': 28782456, 'sub_port_id': 28782498, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19529577, 'last_updated_at': datetime.datetime(2025, 11, 21, 16, 5), 'last_updated_at_desc': datetime.datetime(2025, 11, 21, 16, 5), 'last_updated_at_asc': datetime.datetime(2025, 11, 21, 15, 49, 34)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28782487,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28782474 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28782488,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28782475 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28782489,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28782476 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28782490,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28782477 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28782491,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28782478 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28782492,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28782479 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28782493,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28782480 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28782494,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28782481 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28782495,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28782482 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28782496,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28782483 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28782497,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28782484 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28782498,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28782485 lien utilise dans velours : https://marlene.fotonower.com/velours/28782487,28782488,28782489,28782490,28782491,28782492,28782493,28782494,28782495,28782496,28782497,28782498?tags=metal,plastique,Carton_brun,autre_refus,cartonnette,papier,Carton_gris,kraft,mal_croppe,Teint_Dans_La_Masse,environnement,flou After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([28782456]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1395568141, 1395568136] map_info['map_portfolio_photo'] : {28782456: [1395568141, 1395568136, 1395567902, 1395567832, 1395566897, 1395566864, 1395566829, 1395566375, 1395566340, 1395566103, 1395566068, 1395566032, 1395565999, 1395565875, 1395565841, 1395565805, 1395565773, 1395565740, 1395565704, 1395564961, 1395564957, 1395564955, 1395564953, 1395564932, 1395564650, 1395564608, 1395564550, 1395564484, 1395564453, 1395564305, 1395563687, 1395563628, 1395563593, 1395563591, 1395563564, 1395563531, 1395563499, 1395563469, 1395563356, 1395563320, 1395563290, 1395563260, 1395563135, 1395563102, 1395563065, 1395563032, 1395563001, 1395562965, 1395562580, 1395562578, 1395562577, 1395562576, 1395562503, 1395562466, 1395562432, 1395562425, 1395562423, 1395562422, 1395562191, 1395562156, 1395562144, 1395562143, 1395561729, 1395561185, 1395561116, 1395561105, 1395561103, 1395561101, 1395560794, 1395560766]} final : False mtd_id 4302 list_pids : [1395568141, 1395568136] Looping around the photos to save general results len do output : 1 /28782456. 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, '4091516') ('4302', '28782456', '1395568141', None, None, None, None, None, '4091516') ('4302', None, None, None, None, None, None, None, '4091516') ('4302', '28782456', '1395568136', None, None, None, None, None, '4091516') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 3 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '28782456', "{'metal': 28782474, 'plastique': 28782475, 'Carton_brun': 28782476, 'autre_refus': 28782477, 'cartonnette': 28782478, 'papier': 28782479, 'Carton_gris': 28782480, 'kraft': 28782481, 'mal_croppe': 28782482, 'Teint_Dans_La_Masse': 28782483, 'environnement': 28782484, 'flou': 28782485}", None, None, None, None, '4091516'), ('4302', '28782456', '1395568141', None, None, None, None, None, '4091516'), ('4302', '28782456', '1395568136', None, None, None, None, None, '4091516')] time used for this insertion : 0.01868295669555664 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.9279632568359375 time spend to save output : 0.018944501876831055 total time spend for step 1 : 1.9469077587127686 step2:final Fri Nov 21 16:06:31 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 (28782456) 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 28782456 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1395560794,1395560766,1395561185,1395561116,1395561105,1395561103,1395561101,1395561729,1395562191,1395562156,1395562144,1395562143,1395562503,1395562466,1395562432,1395562425,1395562423,1395562422,1395563356,1395562580,1395562578,1395563320,1395562577,1395563290,1395562576,1395563260,1395563135,1395563102,1395563065,1395563032,1395563001,1395562965,1395563564,1395563531,1395563499,1395563469,1395563687,1395563628,1395563593,1395563591,1395564650,1395564608,1395564305,1395564550,1395564484,1395564453,1395564961,1395564957,1395564955,1395564953,1395564932,1395565875,1395565841,1395565805,1395565773,1395565740,1395565704,1395566103,1395566897,1395568136,1395568141,1395566068,1395566864,1395567902,1395566032,1395566829,1395567832,1395565999,1395566375,1395566340); 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([28782456]) Inside saveOutput : final : False verbose : True original output for save of step final : {1395568141: ('0.055599615887123414',), 1395568136: ('0.055599615887123414',)} new output for save of step final : {1395568141: ('0.055599615887123414',), 1395568136: ('0.055599615887123414',)} [1395568141, 1395568136] map_info['map_portfolio_photo'] : {28782456: [1395568141, 1395568136, 1395567902, 1395567832, 1395566897, 1395566864, 1395566829, 1395566375, 1395566340, 1395566103, 1395566068, 1395566032, 1395565999, 1395565875, 1395565841, 1395565805, 1395565773, 1395565740, 1395565704, 1395564961, 1395564957, 1395564955, 1395564953, 1395564932, 1395564650, 1395564608, 1395564550, 1395564484, 1395564453, 1395564305, 1395563687, 1395563628, 1395563593, 1395563591, 1395563564, 1395563531, 1395563499, 1395563469, 1395563356, 1395563320, 1395563290, 1395563260, 1395563135, 1395563102, 1395563065, 1395563032, 1395563001, 1395562965, 1395562580, 1395562578, 1395562577, 1395562576, 1395562503, 1395562466, 1395562432, 1395562425, 1395562423, 1395562422, 1395562191, 1395562156, 1395562144, 1395562143, 1395561729, 1395561185, 1395561116, 1395561105, 1395561103, 1395561101, 1395560794, 1395560766]} final : False mtd_id 4302 list_pids : [1395568141, 1395568136] Looping around the photos to save general results len do output : 2 /1395568141.Didn't retrieve data . /1395568136.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, '4091516') ('4302', '28782456', '1395568141', None, None, None, None, None, '4091516') ('4302', None, None, None, None, None, None, None, '4091516') ('4302', '28782456', '1395568136', None, None, None, None, None, '4091516') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 6 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', '28782456', '1395568141', '0.055599615887123414', None, None, None, None, '4091516'), ('4302', '28782456', '1395568136', '0.055599615887123414', None, None, None, None, '4091516')] time used for this insertion : 0.018468856811523438 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.08415532112121582 time spend to save output : 0.01870417594909668 total time spend for step 2 : 0.1028594970703125 step3:velours_tree Fri Nov 21 16:06:31 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 : {28782456: [{'metal': 28782474, 'plastique': 28782475, 'Carton_brun': 28782476, 'autre_refus': 28782477, 'cartonnette': 28782478, 'papier': 28782479, 'Carton_gris': 28782480, 'kraft': 28782481, 'mal_croppe': 28782482, 'Teint_Dans_La_Masse': 28782483, 'environnement': 28782484, 'flou': 28782485}]} input_args_next_step : {28782456: ()} output_args : {28782456: [{'metal': 28782474, 'plastique': 28782475, 'Carton_brun': 28782476, 'autre_refus': 28782477, 'cartonnette': 28782478, 'papier': 28782479, 'Carton_gris': 28782480, 'kraft': 28782481, 'mal_croppe': 28782482, 'Teint_Dans_La_Masse': 28782483, 'environnement': 28782484, 'flou': 28782485}]} args : 28782456 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'metal': 28782474, 'plastique': 28782475, 'Carton_brun': 28782476, 'autre_refus': 28782477, 'cartonnette': 28782478, 'papier': 28782479, 'Carton_gris': 28782480, 'kraft': 28782481, 'mal_croppe': 28782482, 'Teint_Dans_La_Masse': 28782483, 'environnement': 28782484, 'flou': 28782485},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28782456) 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([28782456]) 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.30548906326293945 time spend to save output : 5.14984130859375e-05 total time spend for step 3 : 0.3055405616760254 step4:send_mail_cod Fri Nov 21 16:06:31 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 : {1395568141: ('0.055599615887123414',), 1395568136: ('0.055599615887123414',)} input_args_next_step : {1395568141: ()} output_args : {1395568141: ('0.055599615887123414',), 1395568136: ('0.055599615887123414',)} args : 1395568141 depend.output_id : 0 input_args_next_step : {1395568141: ('0.055599615887123414',), 1395568136: ()} output_args : {1395568141: ('0.055599615887123414',), 1395568136: ('0.055599615887123414',)} args : 1395568136 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 : {28782456: [{'metal': 28782474, 'plastique': 28782475, 'Carton_brun': 28782476, 'autre_refus': 28782477, 'cartonnette': 28782478, 'papier': 28782479, 'Carton_gris': 28782480, 'kraft': 28782481, 'mal_croppe': 28782482, 'Teint_Dans_La_Masse': 28782483, 'environnement': 28782484, 'flou': 28782485}]} input_args_next_step : {1395568141: ('0.055599615887123414',), 1395568136: ('0.055599615887123414',), 28782456: ()} output_args : {28782456: [{'metal': 28782474, 'plastique': 28782475, 'Carton_brun': 28782476, 'autre_refus': 28782477, 'cartonnette': 28782478, 'papier': 28782479, 'Carton_gris': 28782480, 'kraft': 28782481, 'mal_croppe': 28782482, 'Teint_Dans_La_Masse': 28782483, 'environnement': 28782484, 'flou': 28782485}]} args : 28782456 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 :3, first value : ('0.055599615887123414',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28782456) 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 (1395568141,1395568136) Found this number of photos: 2 ##### Call download_photos : nb_thread : 5 begin to download photo : 1395568136 begin to download photo : 1395568141 download finish for photo 1395568136 download finish for photo 1395568141 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette287824741763737591/ length of list_filenames : 2 ; length of list_pids : 2 ; length of list_args : 2 results_Auto_P28782456_21-11-2025_16_06_31.pdf 28782474 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=28782474 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette287824741763737591 28782475 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=28782475 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1395565165: '1763737105_1293683_1395563593_3797ccb17d5d8e15643e77d9b28c5460_rle_crop_4041222709_0.png', 1395566441: '1763737266_1382865_1395563065_dfe6d88f8e69ebd2191794a97c3f5782_rle_crop_4041230494_0.png', 1395566443: '1763737266_1382865_1395563032_b0c246bf469829c52289b4abcc09637c_rle_crop_4041230506_0.png', 1395568105: '1763737386_1409113_1395564484_0ee8c28f13d31ee90f6025bd7a9229c2_rle_crop_4041230806_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/21/97e6884e263ed4b5d5d57d333dfff343_66299449.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/21/18b593e8350a5054e7f5b27546f3b5e8_57731403.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/21/b03adc67aeb1129a3788a0ebbd8b9119_10000171.png change filename to text .imagette287824751763737591/ imagette287824751763737591/1763737266_1382865_1395563032_b0c246bf469829c52289b4abcc09637c_rle_crop_4041230506_0.png.png imagette287824751763737591/1763737105_1293683_1395563593_3797ccb17d5d8e15643e77d9b28c5460_rle_crop_4041222709_0.png.png imagette287824751763737591/1763737266_1382865_1395563065_dfe6d88f8e69ebd2191794a97c3f5782_rle_crop_4041230494_0.png.png imagette287824751763737591/1763737386_1409113_1395564484_0ee8c28f13d31ee90f6025bd7a9229c2_rle_crop_4041230806_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/21/a946b08a24deba93a82300c9857f76ed_19832355.png imagette287824751763737591 28782477 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=28782477 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1395566390: '1763737266_1382865_1395563102_750d392c4e0b915b00f24761c72b6fa4_rle_crop_4041230477_0.png', 1395566392: '1763737266_1382865_1395563032_b0c246bf469829c52289b4abcc09637c_rle_crop_4041230513_0.png', 1395566919: '1763737344_1408348_1395564957_886867a54cb336ed9c572f9d9ddd598d_rle_crop_4041230627_0.png', 1395568100: '1763737386_1409113_1395564484_0ee8c28f13d31ee90f6025bd7a9229c2_rle_crop_4041230796_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/21/d11e63be6cd1be48b6f393fa6a904005_11290974.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/21/fe02a9ecea45bfe543852d9b6f016158_71901044.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/21/80df776e6e98b9746b8f4cf83f085b68_76704687.png change filename to text .imagette287824771763737592/ imagette287824771763737592/1763737386_1409113_1395564484_0ee8c28f13d31ee90f6025bd7a9229c2_rle_crop_4041230796_0.png.png imagette287824771763737592/1763737266_1382865_1395563032_b0c246bf469829c52289b4abcc09637c_rle_crop_4041230513_0.png.png imagette287824771763737592/1763737266_1382865_1395563102_750d392c4e0b915b00f24761c72b6fa4_rle_crop_4041230477_0.png.png imagette287824771763737592/1763737344_1408348_1395564957_886867a54cb336ed9c572f9d9ddd598d_rle_crop_4041230627_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/21/a944209b61e99406a905a3a0289dd49c_31578350.png imagette287824771763737592 28782478 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=28782478 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1395563733: '1763736926_1287374_1395561105_086de38fcacbd0d23ae6e0020c939f0a_rle_crop_4041216448_0.png', 1395565144: '1763737105_1293683_1395563591_eaaab27651c84155a7ee1e0f4607e2e2_rle_crop_4041222721_0.png', 1395565436: '1763737146_1294238_1395563687_8e4a255968376926cdc38ca43cbb4d54_rle_crop_4041225729_0.png', 1395566417: '1763737266_1382865_1395563032_b0c246bf469829c52289b4abcc09637c_rle_crop_4041230507_0.png', 1395566419: '1763737266_1382865_1395562965_f6ca7182a9b78dea13f967c9c8252658_rle_crop_4041230541_0.png', 1395566942: '1763737344_1408348_1395564957_886867a54cb336ed9c572f9d9ddd598d_rle_crop_4041230628_0.png', 1395566944: '1763737344_1408348_1395564955_3e0b4ea0cfb367527cda1a825fd36f51_rle_crop_4041230640_0.png', 1395568103: '1763737386_1409113_1395564305_f1d95479b3cb274930eefa344151ea3c_rle_crop_4041230822_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/21/57e28c49e6b4fe18091ea94e0a663460_59059465.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/21/009e31f74afa4e51befa6506b0232300_93561848.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/21/5af49908e540b54263b097f4b1624d53_16544102.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/21/7cd5821aefb8356af023eb9eeb25092b_89343549.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/21/f03987e583874e44e2b283620258307d_48906111.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/21/5b33d03a2dcc96f90ae2f6f152d4ed40_75664006.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/21/62595b3cc430c97c36b7fe7a9f9f8885_97549057.png change filename to text .imagette287824781763737592/ imagette287824781763737592/1763736926_1287374_1395561105_086de38fcacbd0d23ae6e0020c939f0a_rle_crop_4041216448_0.png.png imagette287824781763737592/1763737266_1382865_1395562965_f6ca7182a9b78dea13f967c9c8252658_rle_crop_4041230541_0.png.png imagette287824781763737592/1763737266_1382865_1395563032_b0c246bf469829c52289b4abcc09637c_rle_crop_4041230507_0.png.png imagette287824781763737592/1763737344_1408348_1395564955_3e0b4ea0cfb367527cda1a825fd36f51_rle_crop_4041230640_0.png.png imagette287824781763737592/1763737105_1293683_1395563591_eaaab27651c84155a7ee1e0f4607e2e2_rle_crop_4041222721_0.png.png imagette287824781763737592/1763737146_1294238_1395563687_8e4a255968376926cdc38ca43cbb4d54_rle_crop_4041225729_0.png.png imagette287824781763737592/1763737386_1409113_1395564305_f1d95479b3cb274930eefa344151ea3c_rle_crop_4041230822_0.png.png imagette287824781763737592/1763737344_1408348_1395564957_886867a54cb336ed9c572f9d9ddd598d_rle_crop_4041230628_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/21/9dceff862a9a8f98552d82f01563cf95_19310129.png imagette287824781763737592 28782481 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=28782481 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1395563784: '1763736926_1287374_1395561103_272c774ffd43634713b7852cbcd76064_rle_crop_4041216468_0.png'} change filename to text .imagette287824811763737593/ imagette287824811763737593/1763736926_1287374_1395561103_272c774ffd43634713b7852cbcd76064_rle_crop_4041216468_0.png.png imagette287824821763737593/ imagette287824851763737593/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/21/c38578098be1e8e1bbb85d8460feba3a_17185966.png imagette287824811763737593 28782482 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=28782482 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette287824821763737593 28782485 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=28782485 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette287824851763737593 28782476 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=28782476 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1395563757: '1763736926_1287374_1395561105_086de38fcacbd0d23ae6e0020c939f0a_rle_crop_4041216452_0.png', 1395563760: '1763736926_1287374_1395561101_387b0bac9aee43144be4d2ff1169c6c4_rle_crop_4041216488_0.png', 1395563763: '1763736926_1287374_1395561101_387b0bac9aee43144be4d2ff1169c6c4_rle_crop_4041216484_0.png', 1395565154: '1763737105_1293683_1395563591_eaaab27651c84155a7ee1e0f4607e2e2_rle_crop_4041222716_0.png', 1395565156: '1763737105_1293683_1395563591_eaaab27651c84155a7ee1e0f4607e2e2_rle_crop_4041222715_0.png', 1395566428: '1763737266_1382865_1395563102_750d392c4e0b915b00f24761c72b6fa4_rle_crop_4041230483_0.png', 1395566430: '1763737266_1382865_1395563001_98e0b9c5d05026353d2ca3102735f66f_rle_crop_4041230528_0.png', 1395566953: '1763737344_1408348_1395564955_3e0b4ea0cfb367527cda1a825fd36f51_rle_crop_4041230639_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/21/78d92b382b798d261d9772d87e30d380_50585341.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/21/f2fbd19e7401f36019a2037d97579604_54244929.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/21/1026e3a6b2eef9e6775ae66a3d2f5541_49774502.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/21/870657d01443b693a291d19e56478ddc_51342719.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/21/c5f0b575033b82c7f7f992fdfaafc2cd_80446814.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/21/5059f754c0b7902ee4a6d0e49e65a7be_43538529.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/21/ad14f04a4414d30dde231093470297f2_19490908.png change filename to text .imagette287824761763737593/ imagette287824761763737593/1763737266_1382865_1395563001_98e0b9c5d05026353d2ca3102735f66f_rle_crop_4041230528_0.png.png imagette287824761763737593/1763736926_1287374_1395561101_387b0bac9aee43144be4d2ff1169c6c4_rle_crop_4041216488_0.png.png imagette287824761763737593/1763736926_1287374_1395561105_086de38fcacbd0d23ae6e0020c939f0a_rle_crop_4041216452_0.png.png imagette287824761763737593/1763736926_1287374_1395561101_387b0bac9aee43144be4d2ff1169c6c4_rle_crop_4041216484_0.png.png imagette287824761763737593/1763737105_1293683_1395563591_eaaab27651c84155a7ee1e0f4607e2e2_rle_crop_4041222716_0.png.png imagette287824761763737593/1763737105_1293683_1395563591_eaaab27651c84155a7ee1e0f4607e2e2_rle_crop_4041222715_0.png.png imagette287824761763737593/1763737266_1382865_1395563102_750d392c4e0b915b00f24761c72b6fa4_rle_crop_4041230483_0.png.png imagette287824761763737593/1763737344_1408348_1395564955_3e0b4ea0cfb367527cda1a825fd36f51_rle_crop_4041230639_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/21/adb24499480c0bc36b20db9429c2da2b_56528764.png imagette287824761763737593 28782480 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=28782480 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1395563707: '1763736926_1287374_1395561105_086de38fcacbd0d23ae6e0020c939f0a_rle_crop_4041216453_0.png', 1395563710: '1763736926_1287374_1395561103_272c774ffd43634713b7852cbcd76064_rle_crop_4041216467_0.png', 1395563713: '1763736926_1287374_1395561101_387b0bac9aee43144be4d2ff1169c6c4_rle_crop_4041216483_0.png', 1395565424: '1763737146_1294238_1395563687_8e4a255968376926cdc38ca43cbb4d54_rle_crop_4041225731_0.png', 1395565426: '1763737146_1294238_1395563499_480dcdb6b7db2a6a922ddd356ec9e549_rle_crop_4041225749_0.png', 1395565428: '1763737146_1294238_1395563469_4b564907d48f112d4e27c055652f2fc7_rle_crop_4041225761_0.png', 1395566404: '1763737266_1382865_1395563102_750d392c4e0b915b00f24761c72b6fa4_rle_crop_4041230478_0.png', 1395566407: '1763737266_1382865_1395563001_98e0b9c5d05026353d2ca3102735f66f_rle_crop_4041230526_0.png', 1395566928: '1763737344_1408348_1395564957_886867a54cb336ed9c572f9d9ddd598d_rle_crop_4041230623_0.png', 1395566930: '1763737344_1408348_1395564957_886867a54cb336ed9c572f9d9ddd598d_rle_crop_4041230626_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/21/888366a65786496bb6456d5c98876cdb_43667365.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/21/a9191727d30419a359a7a9783d4d63c2_53014249.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/21/9a83047594c11ca4e0f318d8288b3ea6_20304640.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/21/0aa345b36483525a1c82806f82c9da47_28175098.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/21/8f87914f97b7c5261ca5d4688f3a4f89_70926845.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/21/3c7f82ad87d2bdab13abcb9e9d61ff95_73058093.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/21/993c44688ed8705da4316f66cc2b8ed2_29300720.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/21/88e2b155a2419ff01d1205dbd6ac77c0_95842549.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/21/6a338a90888aae3e874e2d049516fef6_79245879.png change filename to text .imagette287824801763737594/ imagette287824801763737594/1763737266_1382865_1395563102_750d392c4e0b915b00f24761c72b6fa4_rle_crop_4041230478_0.png.png imagette287824801763737594/1763736926_1287374_1395561105_086de38fcacbd0d23ae6e0020c939f0a_rle_crop_4041216453_0.png.png imagette287824801763737594/1763737146_1294238_1395563499_480dcdb6b7db2a6a922ddd356ec9e549_rle_crop_4041225749_0.png.png imagette287824801763737594/1763737146_1294238_1395563469_4b564907d48f112d4e27c055652f2fc7_rle_crop_4041225761_0.png.png imagette287824801763737594/1763736926_1287374_1395561103_272c774ffd43634713b7852cbcd76064_rle_crop_4041216467_0.png.png imagette287824801763737594/1763737266_1382865_1395563001_98e0b9c5d05026353d2ca3102735f66f_rle_crop_4041230526_0.png.png imagette287824801763737594/1763737146_1294238_1395563687_8e4a255968376926cdc38ca43cbb4d54_rle_crop_4041225731_0.png.png imagette287824801763737594/1763737344_1408348_1395564957_886867a54cb336ed9c572f9d9ddd598d_rle_crop_4041230626_0.png.png imagette287824801763737594/1763737344_1408348_1395564957_886867a54cb336ed9c572f9d9ddd598d_rle_crop_4041230623_0.png.png imagette287824801763737594/1763736926_1287374_1395561101_387b0bac9aee43144be4d2ff1169c6c4_rle_crop_4041216483_0.png.png wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/21/4e567f748b4513a61a8fcf81b8c57467_55613157.png imagette287824801763737594 28782483 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=28782483 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1395564229: '1763736988_1288866_1395562577_fd0c99a5cf9097d0cd74dc11f7f68cfc_rle_crop_4041216586_0.png', 1395564231: '1763736988_1288866_1395562576_ed76a27e8542ba65b8301aaa24b88886_rle_crop_4041216609_0.png', 1395565135: '1763737105_1293683_1395563591_eaaab27651c84155a7ee1e0f4607e2e2_rle_crop_4041222718_0.png', 1395565413: '1763737146_1294238_1395563687_8e4a255968376926cdc38ca43cbb4d54_rle_crop_4041225734_0.png', 1395566378: '1763737266_1382865_1395563065_dfe6d88f8e69ebd2191794a97c3f5782_rle_crop_4041230497_0.png', 1395566380: '1763737266_1382865_1395563032_b0c246bf469829c52289b4abcc09637c_rle_crop_4041230518_0.png', 1395568099: '1763737386_1409113_1395564305_f1d95479b3cb274930eefa344151ea3c_rle_crop_4041230827_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/21/45dfcf41235f5ac15e1af788fbf465fb_9912085.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/21/e9248c4a95430ff5d7019a4797d728fd_2454714.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/21/a10786cfbc2dff82a7898e2d320fd213_36153485.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/21/92bd66662cb93277f2924ac2786fb6ca_93262589.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/21/7f9b7fe097d64b7d5de3bd3193fe74ff_52505238.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/21/71b36eebffeb229d519a4e9ccbf94d5f_11389480.png change filename to text .imagette287824831763737594/ imagette287824831763737594/1763737146_1294238_1395563687_8e4a255968376926cdc38ca43cbb4d54_rle_crop_4041225734_0.png.png imagette287824831763737594/1763736988_1288866_1395562577_fd0c99a5cf9097d0cd74dc11f7f68cfc_rle_crop_4041216586_0.png.png imagette287824831763737594/1763737266_1382865_1395563032_b0c246bf469829c52289b4abcc09637c_rle_crop_4041230518_0.png.png imagette287824831763737594/1763736988_1288866_1395562576_ed76a27e8542ba65b8301aaa24b88886_rle_crop_4041216609_0.png.png imagette287824831763737594/1763737105_1293683_1395563591_eaaab27651c84155a7ee1e0f4607e2e2_rle_crop_4041222718_0.png.png imagette287824831763737594/1763737386_1409113_1395564305_f1d95479b3cb274930eefa344151ea3c_rle_crop_4041230827_0.png.png imagette287824831763737594/1763737266_1382865_1395563065_dfe6d88f8e69ebd2191794a97c3f5782_rle_crop_4041230497_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/21/7b6e37660d3e3c62f946adc009e9b3b1_27012859.png imagette287824831763737594 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=28782456 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/28782487,28782488,28782489,28782490,28782491,28782492,28782493,28782494,28782495,28782496,28782497,28782498?tags=metal,plastique,Carton_brun,autre_refus,cartonnette,papier,Carton_gris,kraft,mal_croppe,Teint_Dans_La_Masse,environnement,flou your option no_mail is active, we will not send the real mail to your client args[1395568141] : ('0.055599615887123414',) no score found for photo 1395568141 We are sending mail with results at report@fotonower.com args[1395568136] : ('0.055599615887123414',) no score found for photo 1395568136 We are sending mail with results at report@fotonower.com refus_total : 0.055599615887123414 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=28782456 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_P28782456_21-11-2025_16_06_31.pdf results_Auto_P28782456_21-11-2025_16_06_31.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28782456_21-11-2025_16_06_31.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','28782456','results_Auto_P28782456_21-11-2025_16_06_31.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28782456_21-11-2025_16_06_31.pdf','pdf','','0.17','0.055599615887123414') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([28782456]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1395568141, 1395568136] map_info['map_portfolio_photo'] : {28782456: [1395568141, 1395568136, 1395567902, 1395567832, 1395566897, 1395566864, 1395566829, 1395566375, 1395566340, 1395566103, 1395566068, 1395566032, 1395565999, 1395565875, 1395565841, 1395565805, 1395565773, 1395565740, 1395565704, 1395564961, 1395564957, 1395564955, 1395564953, 1395564932, 1395564650, 1395564608, 1395564550, 1395564484, 1395564453, 1395564305, 1395563687, 1395563628, 1395563593, 1395563591, 1395563564, 1395563531, 1395563499, 1395563469, 1395563356, 1395563320, 1395563290, 1395563260, 1395563135, 1395563102, 1395563065, 1395563032, 1395563001, 1395562965, 1395562580, 1395562578, 1395562577, 1395562576, 1395562503, 1395562466, 1395562432, 1395562425, 1395562423, 1395562422, 1395562191, 1395562156, 1395562144, 1395562143, 1395561729, 1395561185, 1395561116, 1395561105, 1395561103, 1395561101, 1395560794, 1395560766]} final : False mtd_id 4302 list_pids : [1395568141, 1395568136] 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, '4091516') ('4302', '28782456', '1395568141', None, None, None, None, None, '4091516') ('4302', None, None, None, None, None, None, None, '4091516') ('4302', '28782456', '1395568136', None, None, None, None, None, '4091516') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 2 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '28782456', '1395568141', None, None, None, None, None, '4091516'), ('4302', '28782456', '1395568136', None, None, None, None, None, '4091516')] time used for this insertion : 0.015552997589111328 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.80492377281189 time spend to save output : 0.01576066017150879 total time spend for step 4 : 4.820684432983398 step5:split_time_score Fri Nov 21 16:06:36 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 : ['28782456'] 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 : [('28782456',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28782456) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1395568136: {'path': 'temp/1763737591_2218203_1395568136_b5817e3e3949e2741457f5efc5bb791b.jpg', 'extension': 'jpg'}, 1395568141: {'path': 'temp/1763737591_2218203_1395568141_52c753c1173df9780b19b5c372d68fb2.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 = 28782456; (('arc_en_ciel_jrm_live',), ('arc_en_ciel_jrm_bis',), ('arc_en_ciel_jrm',)) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos_view ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 28782456 group by h (('15', 70),) 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=28782456 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 (28782456) 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 (28782456) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 21112025 28782456 Nombre de photos uploadées : 70 / 23040 (0%) 21112025 28782456 Nombre de photos taguées (types de déchets): 0 / 70 (0%) 21112025 28782456 Nombre de photos taguées (volume) : 0 / 70 (0%) [{'photo_id': 1395560794, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/21/8b6819812c23611af4c5567788b63c33.jpg', 'username': None, 'uploaded_at': 1763736487, 'text': 'image_21112025_15_47_04_9127.jpg'}, {'photo_id': 1395560766, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/21/bc7f2e6efbd57e050d5e46918774237b.jpg', 'username': None, 'uploaded_at': 1763736487, 'text': 'image_21112025_15_47_45_10142.jpg'}, {'photo_id': 1395561185, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/21/6e977899c4b00ad8331ae78f79c4b933.jpg', 'username': None, 'uploaded_at': 1763736547, 'text': 'image_21112025_15_47_55_10138.jpg'}, {'photo_id': 1395561116, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/21/204d5503690f116046a6eb10d704039c.jpg', 'username': None, 'uploaded_at': 1763736547, 'text': 'image_21112025_15_48_05_10142.jpg'}] 0 [] elapsed_time : load_data_split_time_score 1.1920928955078125e-06 elapsed_time : order_list_meta_photo_and_scores 4.0531158447265625e-06 ?????????????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0027408599853515625 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 28782456, '2025-11-21' ) 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-11-21' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2620552,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.2396397590637207 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= 2620552 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2620552, 'dashboard_run_id': 2632316, 'mtr_portfolio_id': 28762662, 'dashboard_result_id': 17588268, '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_P28762662_21-11-2025_05_57_30.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28762690, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28762691, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28762692, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28762693, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28762694, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28762695, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28762696, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28762697, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28762698, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28762699, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28762700, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28762701, 'pht': 3726}}"}, {'dashboat_entry_day': 2620552, 'dashboard_run_id': 2632316, 'mtr_portfolio_id': 28763044, 'dashboard_result_id': 17588269, '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_P28763044_21-11-2025_05_57_35.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28763049, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28763050, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28763051, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28763052, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28763053, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28763054, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28763056, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28763057, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28763058, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28763059, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28763060, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28763061, 'pht': 3726}}"}, {'dashboat_entry_day': 2620552, 'dashboard_run_id': 2632316, 'mtr_portfolio_id': 28763533, 'dashboard_result_id': 17588270, '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_P28763533_21-11-2025_05_58_04.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28763537, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28763538, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28763539, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28763540, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28763541, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28763542, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28763543, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28763544, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28763545, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28763546, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28763547, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28763548, 'pht': 3726}}"}, {'dashboat_entry_day': 2620552, 'dashboard_run_id': 2632316, 'mtr_portfolio_id': 28763781, 'dashboard_result_id': 17588271, '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_P28763781_21-11-2025_05_58_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28763790, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28763791, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28763792, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28763793, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28763794, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28763795, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28763796, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28763797, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28763798, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28763799, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28763800, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28763801, 'pht': 3726}}"}, {'dashboat_entry_day': 2620552, 'dashboard_run_id': 2632316, 'mtr_portfolio_id': 28764719, 'dashboard_result_id': 17588272, '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_P28764719_21-11-2025_05_59_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28764723, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28764724, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28764725, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28764726, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28764727, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28764728, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28764729, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28764730, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28764731, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28764732, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28764733, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28764734, 'pht': 3726}}"}, {'dashboat_entry_day': 2620552, 'dashboard_run_id': 2632316, 'mtr_portfolio_id': 28765064, 'dashboard_result_id': 17588273, '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_P28765064_21-11-2025_05_59_30.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28765065, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28765066, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28765067, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28765068, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28765069, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28765070, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28765071, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28765072, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28765073, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28765074, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28765075, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28765076, 'pht': 3726}}"}, {'dashboat_entry_day': 2620552, 'dashboard_run_id': 2632316, 'mtr_portfolio_id': 28765712, 'dashboard_result_id': 17588274, '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_P28765712_21-11-2025_05_59_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28765713, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28765714, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28765715, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28765716, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28765717, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28765718, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28765719, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28765720, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28765721, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28765722, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28765723, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28765724, 'pht': 3726}}"}, {'dashboat_entry_day': 2620552, 'dashboard_run_id': 2632316, 'mtr_portfolio_id': 28765950, 'dashboard_result_id': 17588275, '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_P28765950_21-11-2025_06_00_33.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28765954, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28765955, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28765956, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28765957, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28765958, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28765959, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28765961, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28765962, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28765963, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28765964, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28765965, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28765966, 'pht': 3726}}"}, {'dashboat_entry_day': 2620552, 'dashboard_run_id': 2632316, 'mtr_portfolio_id': 28766408, 'dashboard_result_id': 17588276, '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_P28766408_21-11-2025_06_01_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28766416, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28766417, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28766418, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28766419, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28766420, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28766421, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28766422, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28766423, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28766424, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28766425, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28766426, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28766427, 'pht': 3726}}"}, {'dashboat_entry_day': 2620552, 'dashboard_run_id': 2632316, 'mtr_portfolio_id': 28766709, 'dashboard_result_id': 17588277, '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_P28766709_21-11-2025_06_01_14.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28766715, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28766716, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28766717, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28766718, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28766719, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28766720, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28766721, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28766722, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28766723, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28766724, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28766725, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28766726, 'pht': 3726}}"}, {'dashboat_entry_day': 2620552, 'dashboard_run_id': 2632316, 'mtr_portfolio_id': 28769436, 'dashboard_result_id': 17588278, '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_P28769436_21-11-2025_08_18_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28769440, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28769441, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28769442, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28769443, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28769444, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28769445, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28769446, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28769447, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28769448, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28769449, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28769450, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28769451, 'pht': 3726}}"}, {'dashboat_entry_day': 2620552, 'dashboard_run_id': 2632316, 'mtr_portfolio_id': 28769662, 'dashboard_result_id': 17588279, '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_P28769662_21-11-2025_08_33_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28769671, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28769672, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28769673, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28769674, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28769675, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28769676, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28769677, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28769678, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28769679, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28769680, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28769681, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28769682, 'pht': 3726}}"}, {'dashboat_entry_day': 2620552, 'dashboard_run_id': 2632316, 'mtr_portfolio_id': 28769961, 'dashboard_result_id': 17588280, '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_P28769961_21-11-2025_08_47_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28769982, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28769983, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28769984, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28769985, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28769986, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28769987, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28769988, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28769989, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28769990, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28769991, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28769992, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28769993, 'pht': 3726}}"}, {'dashboat_entry_day': 2620552, 'dashboard_run_id': 2632316, 'mtr_portfolio_id': 28770522, 'dashboard_result_id': 17588281, '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_P28770522_21-11-2025_09_02_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28770537, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28770538, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28770539, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28770540, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28770541, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28770542, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28770543, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28770544, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28770545, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28770546, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28770547, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28770548, 'pht': 3726}}"}, {'dashboat_entry_day': 2620552, 'dashboard_run_id': 2632316, 'mtr_portfolio_id': 28773043, 'dashboard_result_id': 17588282, '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_P28773043_21-11-2025_10_49_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28773047, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28773048, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28773049, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28773050, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28773051, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28773052, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28773053, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28773054, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28773055, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28773056, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28773057, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28773058, 'pht': 3726}}"}, {'dashboat_entry_day': 2620552, 'dashboard_run_id': 2632316, 'mtr_portfolio_id': 28773245, 'dashboard_result_id': 17588284, '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_P28773245_21-11-2025_11_03_29.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28773300, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28773301, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28773302, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28773303, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28773304, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28773305, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28773306, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28773307, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28773308, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28773309, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28773310, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28773311, 'pht': 3726}}"}, {'dashboat_entry_day': 2620552, 'dashboard_run_id': 2632316, 'mtr_portfolio_id': 28773755, 'dashboard_result_id': 17588285, '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_P28773755_21-11-2025_11_18_57.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28773762, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28773763, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28773764, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28773765, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28773766, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28773767, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28773768, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28773769, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28773770, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28773771, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28773772, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28773773, 'pht': 3726}}"}, {'dashboat_entry_day': 2620552, 'dashboard_run_id': 2632316, 'mtr_portfolio_id': 28774293, 'dashboard_result_id': 17588286, '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_P28774293_21-11-2025_11_32_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28774298, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28774299, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28774300, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28774301, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28774302, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28774303, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28774304, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28774305, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28774306, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28774307, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28774308, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28774309, 'pht': 3726}}"}, {'dashboat_entry_day': 2620552, 'dashboard_run_id': 2632316, 'mtr_portfolio_id': 28774855, 'dashboard_result_id': 17588287, '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_P28774855_21-11-2025_11_55_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28774900, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28774901, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28774902, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28774903, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28774904, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28774905, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28774906, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28774907, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28774908, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28774909, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28774910, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28774911, 'pht': 3726}}"}, {'dashboat_entry_day': 2620552, 'dashboard_run_id': 2632316, 'mtr_portfolio_id': 28778960, 'dashboard_result_id': 17588289, '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_P28778960_21-11-2025_14_18_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28778964, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28778965, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28778966, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28778967, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28778968, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28778969, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28778970, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28778971, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28778972, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28778973, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28778974, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28778975, 'pht': 3726}}"}, {'dashboat_entry_day': 2620552, 'dashboard_run_id': 2632316, 'mtr_portfolio_id': 28779599, 'dashboard_result_id': 17588290, '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_P28779599_21-11-2025_14_49_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28779604, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28779605, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28779606, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28779607, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28779608, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28779609, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28779610, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28779611, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28779612, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28779613, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28779614, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28779615, 'pht': 3726}}"}, {'dashboat_entry_day': 2620552, 'dashboard_run_id': 2632316, 'mtr_portfolio_id': 28780075, 'dashboard_result_id': 17588291, '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_P28780075_21-11-2025_15_03_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28780084, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28780085, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28780086, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28780087, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28780088, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28780089, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28780090, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28780091, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28780092, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28780093, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28780094, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28780095, 'pht': 3726}}"}, {'dashboat_entry_day': 2620552, 'dashboard_run_id': 2632316, 'mtr_portfolio_id': 28780517, 'dashboard_result_id': 17588292, '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_P28780517_21-11-2025_15_16_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28780521, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28780522, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28780523, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28780524, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28780525, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28780526, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28780527, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28780528, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28780529, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28780530, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28780531, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28780532, 'pht': 3726}}"}, {'dashboat_entry_day': 2620552, 'dashboard_run_id': 2632316, 'mtr_portfolio_id': 28781135, 'dashboard_result_id': 17588294, '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_P28781135_21-11-2025_15_33_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28781143, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28781144, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28781145, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28781146, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28781147, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28781148, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28781149, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28781150, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28781151, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28781152, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28781153, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28781154, 'pht': 3726}}"}, {'dashboat_entry_day': 2620552, 'dashboard_run_id': 2632316, 'mtr_portfolio_id': 28781891, 'dashboard_result_id': 17588296, '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_P28781891_21-11-2025_15_48_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28781905, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28781906, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28781907, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28781908, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28781909, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28781910, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28781911, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28781912, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28781913, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28781914, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28781916, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28781917, 'pht': 3726}}"}, {'dashboat_entry_day': 2620552, 'dashboard_run_id': 2632316, 'mtr_portfolio_id': 28782456, 'dashboard_result_id': 17588297, '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_P28782456_21-11-2025_16_03_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28782474, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28782475, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28782476, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28782477, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28782478, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28782479, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28782480, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28782481, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28782482, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28782483, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28782484, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28782485, 'pht': 3726}}"}, {'dashboat_entry_day': 2620552, 'dashboard_run_id': 2632316, 'mtr_portfolio_id': 28782958, 'dashboard_result_id': 17588298, '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_P28782958_21-11-2025_16_03_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28783009, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28783010, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28783011, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28783012, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28783013, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28783014, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28783015, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28783016, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28783017, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28783018, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28783019, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28783020, '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 = 28762662 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': 4089235, 'mtr_portfolio_id': 28762662, 'created_at': datetime.datetime(2025, 11, 21, 5, 57, 28), 'result': '0.0335321444106526', 'result_long': None, 'result_double': None}] Qualite : 0.0335321444106526 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28762662 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28762662_21-11-2025_05_57_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28762662 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_P28762662_21-11-2025_05_57_30.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28762690, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28762691, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28762692, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28762693, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28762694, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28762695, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28762696, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28762697, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28762698, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28762699, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28762700, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28762701, 'pht': 3726}}" where mtr_portfolio_id = 28762662 and dashboard_run_id = 2632316 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`=28762662 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17588268, 0.0335321444106526, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28762662_21-11-2025_05_57_30.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28762690, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28762691, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28762692, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28762693, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28762694, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28762695, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28762696, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28762697, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28762698, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28762699, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28762700, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28762701, '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 = 28763044 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': 4089236, 'mtr_portfolio_id': 28763044, 'created_at': datetime.datetime(2025, 11, 21, 5, 57, 30), 'result': '0.043341102704995846', 'result_long': None, 'result_double': None}] Qualite : 0.043341102704995846 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28763044 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28763044_21-11-2025_05_57_35.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28763044 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_P28763044_21-11-2025_05_57_35.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28763049, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28763050, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28763051, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28763052, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28763053, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28763054, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28763056, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28763057, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28763058, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28763059, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28763060, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28763061, 'pht': 3726}}" where mtr_portfolio_id = 28763044 and dashboard_run_id = 2632316 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`=28763044 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17588269, 0.043341102704995846, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28763044_21-11-2025_05_57_35.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28763049, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28763050, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28763051, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28763052, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28763053, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28763054, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28763056, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28763057, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28763058, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28763059, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28763060, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28763061, '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 = 28763533 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': 4089237, 'mtr_portfolio_id': 28763533, 'created_at': datetime.datetime(2025, 11, 21, 5, 58, 1), 'result': '0.0343134230540663', 'result_long': None, 'result_double': None}] Qualite : 0.0343134230540663 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28763533 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28763533_21-11-2025_05_58_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28763533 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_P28763533_21-11-2025_05_58_04.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28763537, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28763538, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28763539, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28763540, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28763541, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28763542, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28763543, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28763544, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28763545, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28763546, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28763547, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28763548, 'pht': 3726}}" where mtr_portfolio_id = 28763533 and dashboard_run_id = 2632316 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`=28763533 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17588270, 0.0343134230540663, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28763533_21-11-2025_05_58_04.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28763537, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28763538, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28763539, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28763540, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28763541, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28763542, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28763543, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28763544, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28763545, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28763546, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28763547, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28763548, '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 = 28763781 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': 4089238, 'mtr_portfolio_id': 28763781, 'created_at': datetime.datetime(2025, 11, 21, 5, 58, 28), 'result': '0.030743217828098125', 'result_long': None, 'result_double': None}] Qualite : 0.030743217828098125 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28763781 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28763781_21-11-2025_05_58_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28763781 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_P28763781_21-11-2025_05_58_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28763790, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28763791, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28763792, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28763793, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28763794, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28763795, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28763796, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28763797, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28763798, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28763799, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28763800, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28763801, 'pht': 3726}}" where mtr_portfolio_id = 28763781 and dashboard_run_id = 2632316 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`=28763781 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17588271, 0.030743217828098125, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28763781_21-11-2025_05_58_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28763790, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28763791, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28763792, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28763793, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28763794, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28763795, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28763796, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28763797, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28763798, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28763799, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28763800, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28763801, '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 = 28764719 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': 4089239, 'mtr_portfolio_id': 28764719, 'created_at': datetime.datetime(2025, 11, 21, 5, 58, 59), 'result': '0.05715487488060221', 'result_long': None, 'result_double': None}] Qualite : 0.05715487488060221 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28764719 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28764719_21-11-2025_05_59_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28764719 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_P28764719_21-11-2025_05_59_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28764723, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28764724, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28764725, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28764726, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28764727, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28764728, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28764729, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28764730, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28764731, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28764732, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28764733, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28764734, 'pht': 3726}}" where mtr_portfolio_id = 28764719 and dashboard_run_id = 2632316 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`=28764719 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17588272, 0.05715487488060221, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28764719_21-11-2025_05_59_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28764723, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28764724, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28764725, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28764726, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28764727, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28764728, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28764729, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28764730, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28764731, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28764732, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28764733, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28764734, '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 = 28765064 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': 4089240, 'mtr_portfolio_id': 28765064, 'created_at': datetime.datetime(2025, 11, 21, 5, 59, 28), 'result': '0.04664491613355381', 'result_long': None, 'result_double': None}] Qualite : 0.04664491613355381 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28765064 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28765064_21-11-2025_05_59_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28765064 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_P28765064_21-11-2025_05_59_30.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28765065, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28765066, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28765067, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28765068, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28765069, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28765070, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28765071, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28765072, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28765073, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28765074, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28765075, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28765076, 'pht': 3726}}" where mtr_portfolio_id = 28765064 and dashboard_run_id = 2632316 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`=28765064 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17588273, 0.04664491613355381, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28765064_21-11-2025_05_59_30.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28765065, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28765066, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28765067, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28765068, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28765069, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28765070, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28765071, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28765072, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28765073, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28765074, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28765075, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28765076, '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 = 28765712 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': 4089241, 'mtr_portfolio_id': 28765712, 'created_at': datetime.datetime(2025, 11, 21, 5, 59, 57), 'result': '0.06257943452468175', 'result_long': None, 'result_double': None}] Qualite : 0.06257943452468175 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28765712 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28765712_21-11-2025_05_59_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28765712 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_P28765712_21-11-2025_05_59_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28765713, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28765714, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28765715, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28765716, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28765717, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28765718, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28765719, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28765720, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28765721, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28765722, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28765723, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28765724, 'pht': 3726}}" where mtr_portfolio_id = 28765712 and dashboard_run_id = 2632316 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`=28765712 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17588274, 0.06257943452468175, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28765712_21-11-2025_05_59_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28765713, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28765714, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28765715, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28765716, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28765717, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28765718, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28765719, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28765720, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28765721, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28765722, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28765723, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28765724, '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 = 28765950 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': 4089242, 'mtr_portfolio_id': 28765950, 'created_at': datetime.datetime(2025, 11, 21, 6, 0, 30), 'result': '0.061092176791240876', 'result_long': None, 'result_double': None}] Qualite : 0.061092176791240876 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28765950 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28765950_21-11-2025_06_00_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28765950 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_P28765950_21-11-2025_06_00_33.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28765954, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28765955, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28765956, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28765957, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28765958, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28765959, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28765961, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28765962, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28765963, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28765964, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28765965, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28765966, 'pht': 3726}}" where mtr_portfolio_id = 28765950 and dashboard_run_id = 2632316 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`=28765950 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17588275, 0.061092176791240876, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28765950_21-11-2025_06_00_33.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28765954, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28765955, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28765956, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28765957, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28765958, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28765959, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28765961, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28765962, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28765963, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28765964, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28765965, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28765966, '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 = 28766408 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': 4089243, 'mtr_portfolio_id': 28766408, 'created_at': datetime.datetime(2025, 11, 21, 6, 0, 58), 'result': '0.0489443804374229', 'result_long': None, 'result_double': None}] Qualite : 0.0489443804374229 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28766408 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28766408_21-11-2025_06_01_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28766408 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_P28766408_21-11-2025_06_01_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28766416, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28766417, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28766418, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28766419, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28766420, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28766421, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28766422, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28766423, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28766424, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28766425, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28766426, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28766427, 'pht': 3726}}" where mtr_portfolio_id = 28766408 and dashboard_run_id = 2632316 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`=28766408 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17588276, 0.0489443804374229, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28766408_21-11-2025_06_01_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28766416, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28766417, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28766418, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28766419, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28766420, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28766421, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28766422, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28766423, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28766424, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28766425, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28766426, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28766427, '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 = 28766709 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': 4089244, 'mtr_portfolio_id': 28766709, 'created_at': datetime.datetime(2025, 11, 21, 6, 1, 13), 'result': '0.044003237785461884', 'result_long': None, 'result_double': None}] Qualite : 0.044003237785461884 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28766709 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28766709_21-11-2025_06_01_14.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28766709 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_P28766709_21-11-2025_06_01_14.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28766715, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28766716, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28766717, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28766718, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28766719, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28766720, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28766721, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28766722, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28766723, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28766724, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28766725, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28766726, 'pht': 3726}}" where mtr_portfolio_id = 28766709 and dashboard_run_id = 2632316 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`=28766709 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17588277, 0.044003237785461884, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28766709_21-11-2025_06_01_14.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28766715, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28766716, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28766717, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28766718, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28766719, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28766720, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28766721, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28766722, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28766723, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28766724, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28766725, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28766726, '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 = 28769436 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': 4089610, 'mtr_portfolio_id': 28769436, 'created_at': datetime.datetime(2025, 11, 21, 8, 18, 58), 'result': '0.032492604098221474', 'result_long': None, 'result_double': None}] Qualite : 0.032492604098221474 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28769436 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28769436_21-11-2025_08_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28769436 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_P28769436_21-11-2025_08_18_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28769440, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28769441, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28769442, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28769443, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28769444, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28769445, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28769446, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28769447, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28769448, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28769449, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28769450, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28769451, 'pht': 3726}}" where mtr_portfolio_id = 28769436 and dashboard_run_id = 2632316 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`=28769436 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17588278, 0.032492604098221474, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28769436_21-11-2025_08_18_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28769440, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28769441, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28769442, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28769443, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28769444, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28769445, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28769446, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28769447, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28769448, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28769449, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28769450, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28769451, '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 = 28769662 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': 4089642, 'mtr_portfolio_id': 28769662, 'created_at': datetime.datetime(2025, 11, 21, 8, 33), 'result': '0.0242349945150128', 'result_long': None, 'result_double': None}] Qualite : 0.0242349945150128 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28769662 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28769662_21-11-2025_08_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28769662 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_P28769662_21-11-2025_08_33_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28769671, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28769672, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28769673, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28769674, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28769675, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28769676, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28769677, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28769678, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28769679, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28769680, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28769681, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28769682, 'pht': 3726}}" where mtr_portfolio_id = 28769662 and dashboard_run_id = 2632316 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`=28769662 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17588279, 0.0242349945150128, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28769662_21-11-2025_08_33_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28769671, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28769672, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28769673, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28769674, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28769675, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28769676, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28769677, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28769678, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28769679, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28769680, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28769681, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28769682, '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 = 28769961 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': 4089690, 'mtr_portfolio_id': 28769961, 'created_at': datetime.datetime(2025, 11, 21, 8, 46, 59), 'result': '0.03761035200879281', 'result_long': None, 'result_double': None}] Qualite : 0.03761035200879281 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28769961 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28769961_21-11-2025_08_47_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28769961 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_P28769961_21-11-2025_08_47_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28769982, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28769983, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28769984, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28769985, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28769986, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28769987, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28769988, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28769989, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28769990, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28769991, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28769992, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28769993, 'pht': 3726}}" where mtr_portfolio_id = 28769961 and dashboard_run_id = 2632316 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`=28769961 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17588280, 0.03761035200879281, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28769961_21-11-2025_08_47_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28769982, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28769983, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28769984, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28769985, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28769986, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28769987, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28769988, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28769989, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28769990, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28769991, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28769992, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28769993, '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 = 28770522 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': 4089772, 'mtr_portfolio_id': 28770522, 'created_at': datetime.datetime(2025, 11, 21, 9, 2, 58), 'result': '0.035799614973971605', 'result_long': None, 'result_double': None}] Qualite : 0.035799614973971605 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28770522 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28770522_21-11-2025_09_02_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28770522 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_P28770522_21-11-2025_09_02_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28770537, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28770538, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28770539, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28770540, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28770541, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28770542, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28770543, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28770544, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28770545, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28770546, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28770547, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28770548, 'pht': 3726}}" where mtr_portfolio_id = 28770522 and dashboard_run_id = 2632316 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`=28770522 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17588281, 0.035799614973971605, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28770522_21-11-2025_09_02_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28770537, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28770538, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28770539, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28770540, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28770541, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28770542, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28770543, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28770544, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28770545, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28770546, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28770547, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28770548, '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 = 28773043 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': 4090176, 'mtr_portfolio_id': 28773043, 'created_at': datetime.datetime(2025, 11, 21, 10, 49), 'result': '0.03607065031559861', 'result_long': None, 'result_double': None}] Qualite : 0.03607065031559861 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28773043 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28773043_21-11-2025_10_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28773043 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_P28773043_21-11-2025_10_49_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28773047, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28773048, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28773049, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28773050, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28773051, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28773052, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28773053, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28773054, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28773055, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28773056, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28773057, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28773058, 'pht': 3726}}" where mtr_portfolio_id = 28773043 and dashboard_run_id = 2632316 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`=28773043 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17588282, 0.03607065031559861, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28773043_21-11-2025_10_49_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28773047, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28773048, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28773049, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28773050, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28773051, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28773052, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28773053, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28773054, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28773055, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28773056, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28773057, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28773058, '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 = 28773245 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': 4090202, 'mtr_portfolio_id': 28773245, 'created_at': datetime.datetime(2025, 11, 21, 11, 3, 28), 'result': '0.03812431545620776', 'result_long': None, 'result_double': None}] Qualite : 0.03812431545620776 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28773245 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28773245_21-11-2025_11_03_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28773245 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_P28773245_21-11-2025_11_03_29.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28773300, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28773301, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28773302, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28773303, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28773304, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28773305, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28773306, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28773307, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28773308, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28773309, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28773310, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28773311, 'pht': 3726}}" where mtr_portfolio_id = 28773245 and dashboard_run_id = 2632316 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`=28773245 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17588284, 0.03812431545620776, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28773245_21-11-2025_11_03_29.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28773300, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28773301, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28773302, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28773303, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28773304, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28773305, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28773306, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28773307, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28773308, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28773309, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28773310, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28773311, '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 = 28773755 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': 4090284, 'mtr_portfolio_id': 28773755, 'created_at': datetime.datetime(2025, 11, 21, 11, 18, 57), 'result': '0.058465991929520976', 'result_long': None, 'result_double': None}] Qualite : 0.058465991929520976 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28773755 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28773755_21-11-2025_11_18_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28773755 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_P28773755_21-11-2025_11_18_57.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28773762, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28773763, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28773764, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28773765, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28773766, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28773767, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28773768, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28773769, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28773770, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28773771, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28773772, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28773773, 'pht': 3726}}" where mtr_portfolio_id = 28773755 and dashboard_run_id = 2632316 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`=28773755 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17588285, 0.058465991929520976, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28773755_21-11-2025_11_18_57.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28773762, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28773763, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28773764, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28773765, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28773766, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28773767, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28773768, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28773769, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28773770, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28773771, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28773772, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28773773, '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 = 28774293 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': 4090353, 'mtr_portfolio_id': 28774293, 'created_at': datetime.datetime(2025, 11, 21, 11, 32, 58), 'result': '0.045127962645112034', 'result_long': None, 'result_double': None}] Qualite : 0.045127962645112034 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28774293 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28774293_21-11-2025_11_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28774293 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_P28774293_21-11-2025_11_32_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28774298, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28774299, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28774300, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28774301, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28774302, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28774303, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28774304, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28774305, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28774306, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28774307, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28774308, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28774309, 'pht': 3726}}" where mtr_portfolio_id = 28774293 and dashboard_run_id = 2632316 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`=28774293 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17588286, 0.045127962645112034, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28774293_21-11-2025_11_32_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28774298, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28774299, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28774300, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28774301, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28774302, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28774303, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28774304, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28774305, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28774306, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28774307, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28774308, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28774309, '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 = 28774855 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': 4090430, 'mtr_portfolio_id': 28774855, 'created_at': datetime.datetime(2025, 11, 21, 11, 55), 'result': '0.02147330295304429', 'result_long': None, 'result_double': None}] Qualite : 0.02147330295304429 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28774855 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28774855_21-11-2025_11_55_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28774855 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_P28774855_21-11-2025_11_55_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28774900, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28774901, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28774902, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28774903, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28774904, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28774905, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28774906, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28774907, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28774908, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28774909, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28774910, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28774911, 'pht': 3726}}" where mtr_portfolio_id = 28774855 and dashboard_run_id = 2632316 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`=28774855 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17588287, 0.02147330295304429, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28774855_21-11-2025_11_55_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28774900, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28774901, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28774902, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28774903, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28774904, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28774905, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28774906, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28774907, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28774908, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28774909, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28774910, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28774911, '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 = 28778960 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': 4090932, 'mtr_portfolio_id': 28778960, 'created_at': datetime.datetime(2025, 11, 21, 14, 18, 58), 'result': '0.04712823614220239', 'result_long': None, 'result_double': None}] Qualite : 0.04712823614220239 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28778960 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28778960_21-11-2025_14_18_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28778960 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_P28778960_21-11-2025_14_18_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28778964, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28778965, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28778966, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28778967, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28778968, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28778969, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28778970, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28778971, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28778972, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28778973, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28778974, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28778975, 'pht': 3726}}" where mtr_portfolio_id = 28778960 and dashboard_run_id = 2632316 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`=28778960 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17588289, 0.04712823614220239, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28778960_21-11-2025_14_18_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28778964, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28778965, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28778966, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28778967, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28778968, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28778969, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28778970, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28778971, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28778972, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28778973, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28778974, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28778975, '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 = 28779599 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': 4091016, 'mtr_portfolio_id': 28779599, 'created_at': datetime.datetime(2025, 11, 21, 14, 49), 'result': '0.03680607478351283', 'result_long': None, 'result_double': None}] Qualite : 0.03680607478351283 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28779599 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28779599_21-11-2025_14_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28779599 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_P28779599_21-11-2025_14_49_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28779604, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28779605, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28779606, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28779607, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28779608, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28779609, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28779610, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28779611, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28779612, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28779613, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28779614, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28779615, 'pht': 3726}}" where mtr_portfolio_id = 28779599 and dashboard_run_id = 2632316 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`=28779599 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17588290, 0.03680607478351283, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28779599_21-11-2025_14_49_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28779604, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28779605, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28779606, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28779607, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28779608, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28779609, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28779610, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28779611, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28779612, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28779613, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28779614, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28779615, '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 = 28780075 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': 4091080, 'mtr_portfolio_id': 28780075, 'created_at': datetime.datetime(2025, 11, 21, 15, 3, 1), 'result': '0.03618037379675427', 'result_long': None, 'result_double': None}] Qualite : 0.03618037379675427 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28780075 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28780075_21-11-2025_15_03_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28780075 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_P28780075_21-11-2025_15_03_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28780084, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28780085, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28780086, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28780087, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28780088, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28780089, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28780090, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28780091, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28780092, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28780093, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28780094, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28780095, 'pht': 3726}}" where mtr_portfolio_id = 28780075 and dashboard_run_id = 2632316 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`=28780075 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17588291, 0.03618037379675427, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28780075_21-11-2025_15_03_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28780084, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28780085, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28780086, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28780087, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28780088, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28780089, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28780090, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28780091, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28780092, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28780093, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28780094, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28780095, '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 = 28780517 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': 4091189, 'mtr_portfolio_id': 28780517, 'created_at': datetime.datetime(2025, 11, 21, 15, 16, 58), 'result': '0.0571009435846028', 'result_long': None, 'result_double': None}] Qualite : 0.0571009435846028 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28780517 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28780517_21-11-2025_15_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28780517 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_P28780517_21-11-2025_15_16_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28780521, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28780522, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28780523, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28780524, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28780525, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28780526, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28780527, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28780528, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28780529, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28780530, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28780531, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28780532, 'pht': 3726}}" where mtr_portfolio_id = 28780517 and dashboard_run_id = 2632316 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`=28780517 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17588292, 0.0571009435846028, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28780517_21-11-2025_15_16_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28780521, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28780522, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28780523, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28780524, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28780525, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28780526, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28780527, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28780528, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28780529, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28780530, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28780531, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28780532, '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 = 28781135 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': 4091270, 'mtr_portfolio_id': 28781135, 'created_at': datetime.datetime(2025, 11, 21, 15, 33), 'result': '0.029728516829345773', 'result_long': None, 'result_double': None}] Qualite : 0.029728516829345773 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28781135 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28781135_21-11-2025_15_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28781135 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_P28781135_21-11-2025_15_33_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28781143, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28781144, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28781145, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28781146, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28781147, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28781148, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28781149, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28781150, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28781151, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28781152, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28781153, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28781154, 'pht': 3726}}" where mtr_portfolio_id = 28781135 and dashboard_run_id = 2632316 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`=28781135 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17588294, 0.029728516829345773, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28781135_21-11-2025_15_33_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28781143, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28781144, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28781145, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28781146, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28781147, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28781148, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28781149, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28781150, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28781151, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28781152, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28781153, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28781154, '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 = 28781891 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': 4091368, 'mtr_portfolio_id': 28781891, 'created_at': datetime.datetime(2025, 11, 21, 15, 48, 59), 'result': '0.035058254566426465', 'result_long': None, 'result_double': None}] Qualite : 0.035058254566426465 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28781891 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28781891_21-11-2025_15_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28781891 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_P28781891_21-11-2025_15_48_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28781905, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28781906, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28781907, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28781908, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28781909, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28781910, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28781911, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28781912, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28781913, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28781914, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28781916, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28781917, 'pht': 3726}}" where mtr_portfolio_id = 28781891 and dashboard_run_id = 2632316 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`=28781891 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17588296, 0.035058254566426465, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28781891_21-11-2025_15_48_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28781905, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28781906, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28781907, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28781908, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28781909, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28781910, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28781911, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28781912, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28781913, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28781914, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28781916, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28781917, '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 = 28782456 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': 4091516, 'mtr_portfolio_id': 28782456, 'created_at': datetime.datetime(2025, 11, 21, 16, 6, 31), 'result': '0.055599615887123414', 'result_long': None, 'result_double': None}] Qualite : 0.055599615887123414 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28782456 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28782456_21-11-2025_16_06_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28782456 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_P28782456_21-11-2025_16_06_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28782474, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28782475, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28782476, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28782477, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28782478, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28782479, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28782480, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28782481, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28782482, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28782483, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28782484, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28782485, 'pht': 3726}}" where mtr_portfolio_id = 28782456 and dashboard_run_id = 2632316 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`=28782456 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17588297, 0.055599615887123414, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28782456_21-11-2025_16_06_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28782474, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28782475, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28782476, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28782477, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28782478, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28782479, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28782480, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28782481, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28782482, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28782483, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28782484, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28782485, '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 = 28782958 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 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 = 28782958 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 28782958 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28782958 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28782958 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28782958 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28782958_21-11-2025_16_05_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28782958 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_P28782958_21-11-2025_16_05_33.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28783009, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28783010, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28783011, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28783012, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28783013, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28783014, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28783015, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28783016, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28783017, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28783018, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28783019, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28783020, 'pht': 3726}}" where mtr_portfolio_id = 28782958 and dashboard_run_id = 2632314 SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28762662,28763044,28763533,28763781,28764719,28765064,28765712,28765950,28766408,28766709,28769436,28769662,28769961,28770522,28773043,28773245,28773755,28774293,28774855,28778960,28779599,28780075,28780517,28781135,28781891,28782456,28782958) result : ((1395438397,), (1395438400,), (1395438429,), (1395438430,), (1395438431,), (1395438433,), (1395438434,), (1395438450,), (1395438452,), (1395438454,), (1395438485,), (1395438486,), (1395438487,), (1395438489,), (1395438513,), (1395438515,), (1395438516,), (1395438520,), (1395438541,), (1395438543,), (1395438545,), (1395438569,), (1395438570,), (1395438571,), (1395438573,), (1395438596,), (1395438598,), (1395438602,), (1395438608,), (1395438671,), (1395438675,), (1395438695,), (1395438710,), (1395438743,), (1395438813,), (1395438814,), (1395438815,), (1395438817,), (1395438820,), (1395438824,), (1395438838,), (1395438840,), (1395438843,), (1395438848,), (1395438863,), (1395438865,), (1395438890,), (1395438927,), (1395439153,), (1395439157,), (1395439162,), (1395439166,), (1395439169,), (1395439172,), (1395439176,), (1395439177,), (1395439180,), (1395439183,), (1395439223,), (1395439218,), (1395439219,), (1395439220,), (1395439259,), (1395439267,), (1395439269,), (1395439271,), (1395439337,), (1395439370,), (1395439405,), (1395439438,), (1395439474,), (1395439586,), (1395439587,), (1395439588,), (1395439591,), (1395439835,), (1395439866,), (1395439898,), (1395439952,), (1395439954,), (1395439988,), (1395440022,), (1395440057,), (1395440089,), (1395440262,), (1395440302,), (1395440307,), (1395440308,), (1395440310,), (1395440416,), (1395440448,), (1395440470,), (1395440478,), (1395440526,), (1395440527,), (1395440529,), (1395440532,), (1395440535,), (1395440539,), (1395440547,), (1395440549,), (1395440551,), (1395440555,), (1395440561,), (1395440574,), (1395440575,), (1395440577,), (1395440581,), (1395440586,), (1395440600,), (1395440601,), (1395440602,), (1395440603,), (1395440622,), (1395440624,), (1395440652,), (1395440677,), (1395440681,), (1395440855,), (1395440844,), (1395440846,), (1395440848,), (1395440851,), (1395440869,), (1395440871,), (1395440918,), (1395440919,), (1395440920,), (1395440943,), (1395440945,), (1395440947,), (1395440950,), (1395440953,), (1395440954,), (1395440960,), (1395440965,), (1395440966,), (1395440967,), (1395440994,), (1395441017,), (1395441037,), (1395441066,), (1395441067,), (1395441068,), (1395441070,), (1395441090,), (1395441092,), (1395441096,), (1395441115,), (1395441117,), (1395441119,), (1395441123,), (1395441127,), (1395441143,), (1395441144,), (1395441145,), (1395441162,), (1395441164,), (1395441166,), (1395441197,), (1395441198,), (1395441201,), (1395441205,), (1395441208,), (1395441209,), (1395441218,), (1395441220,), (1395441222,), (1395441224,), (1395441227,), (1395441253,), (1395441251,), (1395441252,), (1395441271,), (1395441273,), (1395441275,), (1395441279,), (1395441301,), (1395441302,), (1395441303,), (1395441306,), (1395441327,), (1395441329,), (1395441363,), (1395441364,), (1395441365,), (1395441368,), (1395441452,), (1395441453,), (1395441454,), (1395441456,), (1395441458,), (1395441484,), (1395441486,), (1395441488,), (1395441492,), (1395441509,), (1395441510,), (1395441531,), (1395441533,), (1395441537,), (1395441541,), (1395441544,), (1395441556,), (1395441585,), (1395441586,), (1395441587,), (1395441590,), (1395441604,), (1395441629,), (1395441630,), (1395441633,), (1395441638,), (1395441661,), (1395441664,), (1395441667,), (1395441670,), (1395441675,), (1395441700,), (1395442761,), (1395442779,), (1395442781,), (1395442784,), (1395442788,), (1395442791,), (1395442798,), (1395442800,), (1395442802,), (1395442836,), (1395442840,), (1395442841,), (1395442858,), (1395442862,), (1395442915,), (1395442916,), (1395442917,), (1395442919,), (1395442934,), (1395442935,), (1395442940,), (1395442942,), (1395442946,), (1395442950,), (1395443183,), (1395443194,), (1395443196,), (1395443270,), (1395443306,), (1395443317,), (1395443338,), (1395443339,), (1395443340,), (1395443343,), (1395443347,), (1395443350,), (1395443373,), (1395443374,), (1395443376,), (1395443379,), (1395443388,), (1395443391,), (1395443403,), (1395443404,), (1395443405,), (1395443422,), (1395443423,), (1395443425,), (1395443428,), (1395443431,), (1395443433,), (1395443441,), (1395443442,), (1395443443,), (1395443447,), (1395443449,), (1395443453,), (1395443458,), (1395443460,), (1395443463,), (1395443475,), (1395443473,), (1395443498,), (1395443500,), (1395443504,), (1395443509,), (1395443514,), (1395443518,), (1395443528,), (1395443530,), (1395443533,), (1395443538,), (1395443542,), (1395443565,), (1395443574,), (1395443576,), (1395443580,), (1395443611,), (1395443617,), (1395443640,), (1395443642,), (1395443643,), (1395443647,), (1395443651,), (1395443662,), (1395443664,), (1395443666,), (1395443669,), (1395443674,), (1395443711,), (1395443712,), (1395443714,), (1395443718,), (1395443720,), (1395443723,), (1395443738,), (1395443741,), (1395443743,), (1395443746,), (1395443748,), (1395443751,), (1395443758,), (1395443759,), (1395443761,), (1395443765,), (1395443767,), (1395443768,), (1395443779,), (1395443780,), (1395443782,), (1395443786,), (1395443794,), (1395443797,), (1395443798,), (1395443807,), (1395443814,), (1395443822,), (1395443825,), (1395443828,), (1395443832,), (1395443834,), (1395443837,), (1395446104,), (1395446348,), (1395446385,), (1395446389,), (1395446394,), (1395446440,), (1395446471,), (1395446792,), (1395446794,), (1395446796,), (1395446800,), (1395446803,), (1395446806,), (1395446817,), (1395446819,), (1395446821,), (1395446846,), (1395446847,), (1395446848,), (1395446853,), (1395446892,), (1395446893,), (1395446894,), (1395446914,), (1395446915,), (1395446916,), (1395446918,), (1395446929,), (1395446931,), (1395446933,), (1395446936,), (1395446959,), (1395446960,), (1395446961,), (1395446964,), (1395446996,), (1395446982,), (1395446984,), (1395446985,), (1395446988,), (1395446992,), (1395447018,), (1395447019,), (1395447020,), (1395447038,), (1395447039,), (1395447040,), (1395447042,), (1395447046,), (1395447049,), (1395447063,), (1395447065,), (1395447068,), (1395447073,), (1395447077,), (1395447081,), (1395447085,), (1395447086,), (1395447087,), (1395447088,), (1395447089,), (1395447091,), (1395447094,), (1395447097,), (1395447173,), (1395447174,), (1395447223,), (1395447224,), (1395447225,), (1395447237,), (1395447239,), (1395447241,), (1395447244,), (1395447250,), (1395447413,), (1395447440,), (1395447471,), (1395447504,), (1395447802,), (1395447803,), (1395447804,), (1395447807,), (1395447833,), (1395447868,), (1395448038,), (1395448072,), (1395448095,), (1395448098,), (1395448311,), (1395448312,), (1395448313,), (1395448315,), (1395448318,), (1395448321,), (1395448444,), (1395448474,), (1395448504,), (1395448540,), (1395448577,), (1395448610,), (1395448732,), (1395448761,), (1395448794,), (1395448930,), (1395448962,), (1395448997,), (1395449039,), (1395449074,), (1395449108,), (1395449284,), (1395449137,), (1395449139,), (1395449158,), (1395449198,), (1395449239,), (1395449466,), (1395449468,), (1395449470,), (1395449473,), (1395449476,), (1395449642,), (1395449672,), (1395449704,), (1395449745,), (1395449749,), (1395449750,), (1395449752,), (1395450003,), (1395450005,), (1395450159,), (1395450180,), (1395450157,), (1395450158,), (1395450177,), (1395450178,), (1395450236,), (1395450237,), (1395450239,), (1395450267,), (1395450268,), (1395450270,), (1395450985,), (1395467004,), (1395467006,), (1395467060,), (1395467063,), (1395467064,), (1395467065,), (1395467085,), (1395467103,), (1395467104,), (1395467106,), (1395467109,), (1395467135,), (1395467137,), (1395467138,), (1395467178,), (1395467204,), (1395467234,), (1395467435,), (1395467456,), (1395467457,), (1395467458,), (1395467460,), (1395467483,), (1395467484,), (1395467485,), (1395467487,), (1395467490,), (1395467493,), (1395467513,), (1395467515,), (1395467517,), (1395467520,), (1395467523,), (1395467526,), (1395467543,), (1395467544,), (1395467545,), (1395467547,), (1395467565,), (1395467566,), (1395467567,), (1395467569,), (1395467573,), (1395467593,), (1395467596,), (1395467620,), (1395467622,), (1395467631,), (1395467638,), (1395467742,), (1395467744,), (1395467745,), (1395467771,), (1395467773,), (1395467775,), (1395467777,), (1395467804,), (1395467805,), (1395467807,), (1395467809,), (1395467812,), (1395467840,), (1395467843,), (1395467846,), (1395467854,), (1395467855,), (1395467860,), (1395467834,), (1395467835,), (1395467837,), (1395467864,), (1395467865,), (1395467867,), (1395467871,), (1395467875,), (1395467878,), (1395467891,), (1395467893,), (1395467895,), (1395467897,), (1395467901,), (1395467904,), (1395467946,), (1395467947,), (1395467949,), (1395467953,), (1395467957,), (1395467960,), (1395467972,), (1395467973,), (1395467974,), (1395467975,), (1395467978,), (1395467980,), (1395467982,), (1395467986,), (1395468009,), (1395468010,), (1395468011,), (1395468013,), (1395468016,), (1395468066,), (1395468068,), (1395468071,), (1395468081,), (1395468084,), (1395468122,), (1395468123,), (1395468124,), (1395468131,), (1395468137,), (1395468337,), (1395468340,), (1395468343,), (1395468346,), (1395468350,), (1395468378,), (1395468381,), (1395468382,), (1395468384,), (1395468388,), (1395468391,), (1395468425,), (1395468426,), (1395468427,), (1395468586,), (1395468588,), (1395468590,), (1395468592,), (1395468595,), (1395468598,), (1395468613,), (1395468615,), (1395468617,), (1395468660,), (1395468662,), (1395468665,), (1395468673,), (1395468676,), (1395468678,), (1395468689,), (1395468691,), (1395468693,), (1395468697,), (1395468699,), (1395468701,), (1395468705,), (1395468709,), (1395468713,), (1395468748,), (1395468741,), (1395468743,), (1395468745,), (1395468825,), (1395468826,), (1395468827,), (1395468829,), (1395468832,), (1395469121,), (1395469127,), (1395469129,), (1395469133,), (1395469166,), (1395469168,), (1395469173,), (1395469176,), (1395469179,), (1395469182,), (1395469195,), (1395469198,), (1395469200,), (1395469203,), (1395469207,), (1395469232,), (1395469234,), (1395469243,), (1395469263,), (1395469273,), (1395469280,), (1395469326,), (1395469334,), (1395469343,), (1395469530,), (1395469531,), (1395469723,), (1395469724,), (1395469826,), (1395469858,), (1395469890,), (1395469921,), (1395470039,), (1395470041,), (1395470043,), (1395470046,), (1395470150,), (1395470151,), (1395470152,), (1395470154,), (1395470157,), (1395470194,), (1395470196,), (1395470198,), (1395470200,), (1395470203,), (1395470239,), (1395470243,), (1395470247,), (1395470252,), (1395470256,), (1395470313,), (1395478088,), (1395478384,), (1395478439,), (1395478441,), (1395478443,), (1395478446,), (1395478453,), (1395478459,), (1395478613,), (1395478617,), (1395478629,), (1395478631,), (1395478735,), (1395478736,), (1395478737,), (1395478739,), (1395478743,), (1395478761,), (1395478792,), (1395478824,), (1395478857,), (1395478891,), (1395478908,), (1395478938,), (1395478939,), (1395478941,), (1395478944,), (1395478951,), (1395478986,), (1395479112,), (1395479147,), (1395479178,), (1395479214,), (1395479283,), (1395479286,), (1395479290,), (1395479294,), (1395479297,), (1395479302,), (1395479340,), (1395479319,), (1395479320,), (1395479321,), (1395479324,), (1395479335,), (1395479353,), (1395479355,), (1395479357,), (1395479360,), (1395479385,), (1395479387,), (1395479389,), (1395479392,), (1395479396,), (1395479399,), (1395479478,), (1395479486,), (1395479497,), (1395479499,), (1395479503,), (1395479558,), (1395479559,), (1395479560,), (1395479562,), (1395479565,), (1395479569,), (1395479587,), (1395479589,), (1395479590,), (1395479592,), (1395479614,), (1395479615,), (1395479616,), (1395479617,), (1395479624,), (1395479632,), (1395479654,), (1395479655,), (1395479656,), (1395479657,), (1395479659,), (1395479686,), (1395479688,), (1395479691,), (1395479695,), (1395479699,), (1395479701,), (1395479711,), (1395479712,), (1395479714,), (1395479716,), (1395479718,), (1395479731,), (1395479733,), (1395479736,), (1395479912,), (1395479923,), (1395479924,), (1395479926,), (1395479928,), (1395479931,), (1395479947,), (1395479949,), (1395479955,), (1395479966,), (1395479992,), (1395479993,), (1395479994,), (1395479996,), (1395480000,), (1395480004,), (1395480169,), (1395480174,), (1395480180,), (1395480186,), (1395480236,), (1395480225,), (1395480229,), (1395480235,), (1395480278,), (1395480279,), (1395480280,), (1395480282,), (1395480285,), (1395480422,), (1395480455,), (1395480467,), (1395480477,), (1395480482,), (1395480493,), (1395480516,), (1395480520,), (1395480524,), (1395480528,), (1395480531,), (1395480534,), (1395480538,), (1395480539,), (1395480540,), (1395480541,), (1395480549,), (1395480561,), (1395480572,), (1395480592,), (1395480593,), (1395480595,), (1395480597,), (1395480600,), (1395480732,), (1395480743,), (1395480747,), (1395480755,), (1395480797,), (1395480798,), (1395480800,), (1395480802,), (1395480847,), (1395480848,), (1395480849,), (1395480851,), (1395480873,), (1395480892,), (1395480894,), (1395480899,), (1395480987,), (1395480993,), (1395481006,), (1395481074,), (1395481078,), (1395481090,), (1395481095,), (1395481100,), (1395481116,), (1395481119,), (1395481130,), (1395481144,), (1395481151,), (1395481154,), (1395481158,), (1395481159,), (1395481160,), (1395481162,), (1395481164,), (1395481170,), (1395481176,), (1395481178,), (1395481181,), (1395481214,), (1395481206,), (1395481207,), (1395481208,), (1395481209,), (1395481212,), (1395481236,), (1395481238,), (1395481244,), (1395481285,), (1395481287,), (1395481289,), (1395481291,), (1395481295,), (1395481318,), (1395481324,), (1395481326,), (1395481329,), (1395481333,), (1395481352,), (1395481353,), (1395481354,), (1395481374,), (1395481376,), (1395481378,), (1395481381,), (1395481385,), (1395481389,), (1395481474,), (1395481529,), (1395481538,), (1395481823,), (1395481855,), (1395481889,), (1395481926,), (1395481963,), (1395482177,), (1395482178,), (1395482180,), (1395482183,), (1395482187,), (1395482190,), (1395482205,), (1395482207,), (1395482236,), (1395482256,), (1395482261,), (1395482263,), (1395482267,), (1395482271,), (1395482279,), (1395482347,), (1395482348,), (1395482349,), (1395482350,), (1395482406,), (1395482408,), (1395482411,), (1395482415,), (1395482419,), (1395482422,), (1395482435,), (1395482436,), (1395482438,), (1395482440,), (1395482443,), (1395482453,), (1395482454,), (1395482455,), (1395482457,), (1395482461,), (1395482855,), (1395482881,), (1395482883,), (1395482887,), (1395482912,), (1395482918,), (1395482927,), (1395482956,), (1395482964,), (1395482909,), (1395483031,), (1395483037,), (1395483079,), (1395483560,), (1395483565,), (1395483566,), (1395483568,), (1395483572,), (1395483575,), (1395483619,), (1395483620,), (1395483622,), (1395483625,), (1395483628,), (1395483630,), (1395483684,), (1395483685,), (1395483687,), (1395483689,), (1395483691,), (1395483707,), (1395483709,), (1395484222,), (1395488752,), (1395540853,), (1395541361,), (1395541393,), (1395542504,), (1395542552,), (1395542554,), (1395542558,), (1395542574,), (1395542618,), (1395542997,), (1395543079,), (1395543162,), (1395543219,), (1395543278,), (1395543343,), (1395543761,), (1395543785,), (1395543797,), (1395543800,), (1395544198,), (1395544258,), (1395544323,), (1395544385,), (1395544451,), (1395544777,), (1395544779,), (1395544791,), (1395544826,), (1395545057,), (1395545058,), (1395545084,), (1395545093,), (1395545103,), (1395545107,), (1395545138,), (1395545141,), (1395545144,), (1395545147,), (1395545150,), (1395545480,), (1395545512,), (1395545542,), (1395545575,), (1395545610,), (1395545642,), (1395545785,), (1395545817,), (1395545850,), (1395545939,), (1395545940,), (1395545942,), (1395545946,), (1395545951,), (1395545955,), (1395546174,), (1395547173,), (1395547175,), (1395547177,), (1395547224,), (1395547226,), (1395547228,), (1395547230,), (1395547234,), (1395547238,), (1395547257,), (1395547259,), (1395547261,), (1395547301,), (1395547303,), (1395547305,), (1395547308,), (1395547310,), (1395547312,), (1395547337,), (1395547340,), (1395547343,), (1395547347,), (1395547348,), (1395547350,), (1395547353,), (1395547366,), (1395547368,), (1395547370,), (1395547372,), (1395547375,), (1395547378,), (1395547403,), (1395547405,), (1395547406,), (1395547407,), (1395547410,), (1395547447,), (1395547448,), (1395547449,), (1395547451,), (1395547486,), (1395547488,), (1395547490,), (1395547492,), (1395547495,), (1395547498,), (1395547526,), (1395547528,), (1395547529,), (1395547530,), (1395547532,), (1395547553,), (1395547555,), (1395547558,), (1395547563,), (1395547568,), (1395547572,), (1395547604,), (1395547607,), (1395547610,), (1395547613,), (1395547616,), (1395547633,), (1395547635,), (1395547638,), (1395547642,), (1395547645,), (1395547647,), (1395547683,), (1395547687,), (1395547692,), (1395547696,), (1395547699,), (1395547702,), (1395547707,), (1395547708,), (1395547709,), (1395547710,), (1395547711,), (1395547712,), (1395547718,), (1395547722,), (1395547729,), (1395547732,), (1395547735,), (1395547736,), (1395547741,), (1395547743,), (1395547745,), (1395547763,), (1395547750,), (1395547753,), (1395547757,), (1395547759,), (1395547770,), (1395547772,), (1395547774,), (1395547777,), (1395547781,), (1395547785,), (1395547808,), (1395547809,), (1395547810,), (1395547812,), (1395547824,), (1395547825,), (1395547826,), (1395547828,), (1395547831,), (1395547834,), (1395547849,), (1395547850,), (1395547851,), (1395547871,), (1395547873,), (1395547876,), (1395547880,), (1395547884,), (1395547907,), (1395547916,), (1395547924,), (1395547944,), (1395547945,), (1395547946,), (1395547947,), (1395547952,), (1395547954,), (1395548006,), (1395548008,), (1395548010,), (1395548014,), (1395548018,), (1395548021,), (1395548029,), (1395548030,), (1395548032,), (1395548036,), (1395548068,), (1395548101,), (1395548230,), (1395548263,), (1395548296,), (1395548603,), (1395548633,), (1395548666,), (1395548682,), (1395548685,), (1395548699,), (1395548861,), (1395548863,), (1395548891,), (1395548923,), (1395548933,), (1395548975,), (1395548977,), (1395548978,), (1395548980,), (1395549001,), (1395549782,), (1395549823,), (1395549859,), (1395549891,), (1395549926,), (1395550543,), (1395550472,), (1395550508,), (1395550956,), (1395550987,), (1395551022,), (1395551047,), (1395551441,), (1395551443,), (1395551446,), (1395551471,), (1395551474,), (1395551477,), (1395551480,), (1395551483,), (1395551485,), (1395552041,), (1395552043,), (1395552232,), (1395552264,), (1395552294,), (1395552326,), (1395552344,), (1395552366,), (1395552512,), (1395552544,), (1395552577,), (1395552611,), (1395552958,), (1395552959,), (1395552960,), (1395552962,), (1395552965,), (1395552977,), (1395553188,), (1395553191,), (1395553211,), (1395553215,), (1395553219,), (1395553366,), (1395553398,), (1395553431,), (1395553465,), (1395553505,), (1395553540,), (1395553818,), (1395553819,), (1395553821,), (1395553825,), (1395553828,), (1395553852,), (1395553980,), (1395554009,), (1395554021,), (1395554022,), (1395554045,), (1395554075,), (1395554092,), (1395554110,), (1395554173,), (1395554215,), (1395554614,), (1395554532,), (1395554570,), (1395554602,), (1395555111,), (1395555141,), (1395555472,), (1395555474,), (1395555475,), (1395555477,), (1395555945,), (1395555977,), (1395555985,), (1395556010,), (1395556048,), (1395556071,), (1395556116,), (1395556118,), (1395556120,), (1395556123,), (1395556148,), (1395556149,), (1395556150,), (1395556152,), (1395556158,), (1395556162,), (1395556424,), (1395556434,), (1395556443,), (1395556453,), (1395556456,), (1395556458,), (1395556469,), (1395556470,), (1395556471,), (1395556472,), (1395556480,), (1395556482,), (1395556484,), (1395556488,), (1395556492,), (1395556496,), (1395556504,), (1395556506,), (1395556508,), (1395556511,), (1395556514,), (1395556532,), (1395556534,), (1395556537,), (1395556548,), (1395556553,), (1395556578,), (1395556580,), (1395556582,), (1395556585,), (1395556589,), (1395556591,), (1395556609,), (1395556610,), (1395556611,), (1395556613,), (1395556655,), (1395556657,), (1395556659,), (1395556662,), (1395556665,), (1395557137,), (1395557169,), (1395557180,), (1395557182,), (1395557184,), (1395557185,), (1395556999,), (1395557030,), (1395557063,), (1395557099,), (1395557285,), (1395557350,), (1395557415,), (1395557473,), (1395557512,), (1395557711,), (1395557712,), (1395557713,), (1395557715,), (1395557718,), (1395557730,), (1395557732,), (1395557735,), (1395557739,), (1395557742,), (1395557745,), (1395557756,), (1395557759,), (1395557762,), (1395557765,), (1395557767,), (1395557769,), (1395557773,), (1395557777,), (1395557812,), (1395558005,), (1395558018,), (1395558036,), (1395558047,), (1395558051,), (1395558055,), (1395558104,), (1395558105,), (1395558156,), (1395558355,), (1395558384,), (1395558416,), (1395558448,), (1395558480,), (1395558515,), (1395558685,), (1395558686,), (1395558687,), (1395558700,), (1395558983,), (1395558985,), (1395558987,), (1395558989,), (1395559019,), (1395559026,), (1395559027,), (1395559029,), (1395559293,), (1395559326,), (1395559359,), (1395559394,), (1395559433,), (1395559468,), (1395560823,), (1395560766,), (1395560794,), (1395561101,), (1395561103,), (1395561105,), (1395561116,), (1395561185,), (1395561729,), (1395562143,), (1395562144,), (1395562156,), (1395562191,), (1395562422,), (1395562423,), (1395562425,), (1395562432,), (1395562466,), (1395562503,), (1395562576,), (1395562577,), (1395562578,), (1395562580,), (1395562965,), (1395563001,), (1395563032,), (1395563065,), (1395563102,), (1395563135,), (1395563260,), (1395563290,), (1395563320,), (1395563356,), (1395563469,), (1395563499,), (1395563531,), (1395563564,), (1395563591,), (1395563593,), (1395563628,), (1395563687,), (1395564305,), (1395564453,), (1395564484,), (1395564550,), (1395564608,), (1395564650,), (1395564932,), (1395564953,), (1395564955,), (1395564957,), (1395564961,), (1395565704,), (1395565740,), (1395565773,), (1395565805,), (1395565841,), (1395565875,), (1395565999,), (1395566032,), (1395566068,), (1395566103,), (1395566340,), (1395566375,), (1395566829,), (1395566864,), (1395566897,), (1395567832,), (1395567902,), (1395568136,), (1395568141,), (1395566272,), (1395566274,), (1395566276,), (1395566308,), (1395566511,), (1395566521,), (1395566524,), (1395566543,), (1395566601,), (1395566666,), (1395567582,), (1395567647,), (1395567710,), (1395567772,), (1395568089,), (1395568090,), (1395568094,), (1395568095,), (1395568101,), (1395568102,), (1395568109,), (1395568110,), (1395568115,), (1395568116,), (1395568256,), (1395568307,), (1395568355,), (1395568398,), (1395568443,), (1395568578,), (1395568579,), (1395568580,), (1395568582,), (1395568584,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'21112025': {'nb_upload': 70, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([28782456]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1395568141, 1395568136] map_info['map_portfolio_photo'] : {28782456: [1395568141, 1395568136, 1395567902, 1395567832, 1395566897, 1395566864, 1395566829, 1395566375, 1395566340, 1395566103, 1395566068, 1395566032, 1395565999, 1395565875, 1395565841, 1395565805, 1395565773, 1395565740, 1395565704, 1395564961, 1395564957, 1395564955, 1395564953, 1395564932, 1395564650, 1395564608, 1395564550, 1395564484, 1395564453, 1395564305, 1395563687, 1395563628, 1395563593, 1395563591, 1395563564, 1395563531, 1395563499, 1395563469, 1395563356, 1395563320, 1395563290, 1395563260, 1395563135, 1395563102, 1395563065, 1395563032, 1395563001, 1395562965, 1395562580, 1395562578, 1395562577, 1395562576, 1395562503, 1395562466, 1395562432, 1395562425, 1395562423, 1395562422, 1395562191, 1395562156, 1395562144, 1395562143, 1395561729, 1395561185, 1395561116, 1395561105, 1395561103, 1395561101, 1395560794, 1395560766]} final : True mtd_id 4302 list_pids : [1395568141, 1395568136] Looping around the photos to save general results len do output : 1 /28782456Didn'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, '4091516') ('4302', '28782456', '1395568141', None, None, None, None, None, '4091516') ('4302', None, None, None, None, None, None, None, '4091516') ('4302', '28782456', '1395568136', None, None, None, None, None, '4091516') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 3 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '28782456', 'None', None, None, None, None, '4091516'), ('4302', '28782456', '1395568141', None, None, None, None, None, '4091516'), ('4302', '28782456', '1395568136', None, None, None, None, None, '4091516')] time used for this insertion : 0.013527393341064453 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.2529613971710205 time spend to save output : 0.013734579086303711 total time spend for step 5 : 2.266695976257324 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 (4091516) 2.04user 2.36system 0:13.66elapsed 32%CPU (0avgtext+0avgdata 156804maxresident)k 144inputs+8160outputs (4major+63787minor)pagefaults 0swaps