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 : 3685500 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 (4202123) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (4202123) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29290079 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['4202123'] with mtr_portfolio_ids : ['29290079'] and first list_photo_ids : [] new path : /proc/3685500/ Name: python3 Umask: 0002 State: R (running) Tgid: 3685500 Ngid: 0 Pid: 3685500 PPid: 3685499 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 3685500 NSpid: 3685500 NSpgid: 3683985 NSsid: 3683985 VmPeak: 1113496 kB VmSize: 1113496 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 104508 kB VmRSS: 104508 kB RssAnon: 66300 kB RssFile: 38208 kB RssShmem: 0 kB VmData: 872224 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130476 kB VmPTE: 620 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: 57 nonvoluntary_ctxt_switches: 110 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '3685500', 'Ngid': '0', 'Pid': '3685500', 'PPid': '3685499', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '3685500', 'NSpid': '3685500', 'NSpgid': '3683985', 'NSsid': '3683985', 'VmPeak': '1113496 kB', 'VmSize': '1113496 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '104508 kB', 'VmRSS': '104508 kB', 'RssAnon': '66300 kB', 'RssFile': '38208 kB', 'RssShmem': '0 kB', 'VmData': '872224 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130476 kB', 'VmPTE': '620 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': '57', 'nonvoluntary_ctxt_switches': '110'} ('datou_batch_current', '3685500', '1113496', '0', '1113496', '872224', '104508', b'', 'marlene', '4202123') 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 (29290079) 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 (4202123 ) ) 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 (29290079) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1398611358, 'portfolio_id': 29290079}, {'photo_id': 1398611307, 'portfolio_id': 29290079}, {'photo_id': 1398611305, 'portfolio_id': 29290079}, {'photo_id': 1398611303, 'portfolio_id': 29290079}, {'photo_id': 1398611302, 'portfolio_id': 29290079}, {'photo_id': 1398611300, 'portfolio_id': 29290079}, {'photo_id': 1398611289, 'portfolio_id': 29290079}, {'photo_id': 1398611287, 'portfolio_id': 29290079}, {'photo_id': 1398611284, 'portfolio_id': 29290079}, {'photo_id': 1398611281, 'portfolio_id': 29290079}, {'photo_id': 1398611279, 'portfolio_id': 29290079}, {'photo_id': 1398611278, 'portfolio_id': 29290079}, {'photo_id': 1398611246, 'portfolio_id': 29290079}, {'photo_id': 1398611233, 'portfolio_id': 29290079}, {'photo_id': 1398611226, 'portfolio_id': 29290079}, {'photo_id': 1398611224, 'portfolio_id': 29290079}, {'photo_id': 1398611200, 'portfolio_id': 29290079}, {'photo_id': 1398611197, 'portfolio_id': 29290079}, {'photo_id': 1398611194, 'portfolio_id': 29290079}, {'photo_id': 1398611192, 'portfolio_id': 29290079}, {'photo_id': 1398611190, 'portfolio_id': 29290079}, {'photo_id': 1398611187, 'portfolio_id': 29290079}, {'photo_id': 1398611165, 'portfolio_id': 29290079}, {'photo_id': 1398611163, 'portfolio_id': 29290079}, {'photo_id': 1398611160, 'portfolio_id': 29290079}, {'photo_id': 1398611150, 'portfolio_id': 29290079}, {'photo_id': 1398611127, 'portfolio_id': 29290079}, {'photo_id': 1398611124, 'portfolio_id': 29290079}, {'photo_id': 1398611122, 'portfolio_id': 29290079}, {'photo_id': 1398611120, 'portfolio_id': 29290079}, {'photo_id': 1398611118, 'portfolio_id': 29290079}, {'photo_id': 1398611104, 'portfolio_id': 29290079}, {'photo_id': 1398611101, 'portfolio_id': 29290079}, {'photo_id': 1398611098, 'portfolio_id': 29290079}, {'photo_id': 1398611096, 'portfolio_id': 29290079}, {'photo_id': 1398611084, 'portfolio_id': 29290079}, {'photo_id': 1398611075, 'portfolio_id': 29290079}, {'photo_id': 1398611070, 'portfolio_id': 29290079}, {'photo_id': 1398611069, 'portfolio_id': 29290079}, {'photo_id': 1398611067, 'portfolio_id': 29290079}, {'photo_id': 1398611054, 'portfolio_id': 29290079}, {'photo_id': 1398611051, 'portfolio_id': 29290079}, {'photo_id': 1398611048, 'portfolio_id': 29290079}, {'photo_id': 1398611046, 'portfolio_id': 29290079}, {'photo_id': 1398611045, 'portfolio_id': 29290079}, {'photo_id': 1398611044, 'portfolio_id': 29290079}, {'photo_id': 1398611030, 'portfolio_id': 29290079}, {'photo_id': 1398611027, 'portfolio_id': 29290079}, {'photo_id': 1398611024, 'portfolio_id': 29290079}, {'photo_id': 1398611021, 'portfolio_id': 29290079}, {'photo_id': 1398611018, 'portfolio_id': 29290079}, {'photo_id': 1398611015, 'portfolio_id': 29290079}, {'photo_id': 1398610991, 'portfolio_id': 29290079}, {'photo_id': 1398610988, 'portfolio_id': 29290079}, {'photo_id': 1398610987, 'portfolio_id': 29290079}, {'photo_id': 1398610986, 'portfolio_id': 29290079}, {'photo_id': 1398610985, 'portfolio_id': 29290079}, {'photo_id': 1398610971, 'portfolio_id': 29290079}, {'photo_id': 1398610968, 'portfolio_id': 29290079}, {'photo_id': 1398610965, 'portfolio_id': 29290079}, {'photo_id': 1398610962, 'portfolio_id': 29290079}, {'photo_id': 1398610959, 'portfolio_id': 29290079}, {'photo_id': 1398610956, 'portfolio_id': 29290079}, {'photo_id': 1398610935, 'portfolio_id': 29290079}, {'photo_id': 1398610933, 'portfolio_id': 29290079}, {'photo_id': 1398610931, 'portfolio_id': 29290079}, {'photo_id': 1398610930, 'portfolio_id': 29290079}, {'photo_id': 1398610916, 'portfolio_id': 29290079}, {'photo_id': 1398610914, 'portfolio_id': 29290079}, {'photo_id': 1398610911, 'portfolio_id': 29290079}, {'photo_id': 1398610908, 'portfolio_id': 29290079}, {'photo_id': 1398610905, 'portfolio_id': 29290079}, {'photo_id': 1398610874, 'portfolio_id': 29290079}, {'photo_id': 1398610871, 'portfolio_id': 29290079}, {'photo_id': 1398610869, 'portfolio_id': 29290079}, {'photo_id': 1398610867, 'portfolio_id': 29290079}, {'photo_id': 1398610866, 'portfolio_id': 29290079}, {'photo_id': 1398610828, 'portfolio_id': 29290079}] map_portfolio_id_photo_id: {29290079: [1398611358, 1398611307, 1398611305, 1398611303, 1398611302, 1398611300, 1398611289, 1398611287, 1398611284, 1398611281, 1398611279, 1398611278, 1398611246, 1398611233, 1398611226, 1398611224, 1398611200, 1398611197, 1398611194, 1398611192, 1398611190, 1398611187, 1398611165, 1398611163, 1398611160, 1398611150, 1398611127, 1398611124, 1398611122, 1398611120, 1398611118, 1398611104, 1398611101, 1398611098, 1398611096, 1398611084, 1398611075, 1398611070, 1398611069, 1398611067, 1398611054, 1398611051, 1398611048, 1398611046, 1398611045, 1398611044, 1398611030, 1398611027, 1398611024, 1398611021, 1398611018, 1398611015, 1398610991, 1398610988, 1398610987, 1398610986, 1398610985, 1398610971, 1398610968, 1398610965, 1398610962, 1398610959, 1398610956, 1398610935, 1398610933, 1398610931, 1398610930, 1398610916, 1398610914, 1398610911, 1398610908, 1398610905, 1398610874, 1398610871, 1398610869, 1398610867, 1398610866, 1398610828]} ##### 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.01797342300415039 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Wed Dec 10 08:02:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29290079) 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 : 29290079 get user id for portfolio 29290079 get sub ptf for main ptf 29290079, type 3726 and hashtags ['cartonnette', 'Teint_Dans_La_Masse', 'metal', 'plastique', 'mal_croppe', 'Carton_brun', 'Carton_gris', 'papier', 'kraft', 'flou', 'autre_refus', '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`=29290079 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','Teint_Dans_La_Masse','metal','plastique','mal_croppe','Carton_brun','Carton_gris','papier','kraft','flou','autre_refus','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`=29290079 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','Teint_Dans_La_Masse','metal','plastique','mal_croppe','Carton_brun','Carton_gris','papier','kraft','flou','autre_refus','environnement')) AND mptpi.`min_score`=0.5 To do returned map {'papier': {'main_port_id': 29290079, 'sub_port_id': 29290083, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19934032, 'last_updated_at': datetime.datetime(2025, 12, 10, 7, 58, 30), 'last_updated_at_desc': datetime.datetime(2025, 12, 10, 7, 58, 30), 'last_updated_at_asc': datetime.datetime(2025, 12, 10, 7, 48, 57)}, 'metal': {'main_port_id': 29290079, 'sub_port_id': 29290084, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19934033, 'last_updated_at': datetime.datetime(2025, 12, 10, 7, 58, 30), 'last_updated_at_desc': datetime.datetime(2025, 12, 10, 7, 58, 30), 'last_updated_at_asc': datetime.datetime(2025, 12, 10, 7, 48, 57)}, 'mal_croppe': {'main_port_id': 29290079, 'sub_port_id': 29290085, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19934034, 'last_updated_at': datetime.datetime(2025, 12, 10, 7, 58, 30), 'last_updated_at_desc': datetime.datetime(2025, 12, 10, 7, 58, 30), 'last_updated_at_asc': datetime.datetime(2025, 12, 10, 7, 48, 57)}, 'cartonnette': {'main_port_id': 29290079, 'sub_port_id': 29290086, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19934035, 'last_updated_at': datetime.datetime(2025, 12, 10, 7, 58, 30), 'last_updated_at_desc': datetime.datetime(2025, 12, 10, 7, 58, 30), 'last_updated_at_asc': datetime.datetime(2025, 12, 10, 7, 48, 57)}, 'kraft': {'main_port_id': 29290079, 'sub_port_id': 29290087, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19934036, 'last_updated_at': datetime.datetime(2025, 12, 10, 7, 58, 30), 'last_updated_at_desc': datetime.datetime(2025, 12, 10, 7, 58, 30), 'last_updated_at_asc': datetime.datetime(2025, 12, 10, 7, 48, 57)}, 'flou': {'main_port_id': 29290079, 'sub_port_id': 29290088, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19934037, 'last_updated_at': datetime.datetime(2025, 12, 10, 7, 58, 30), 'last_updated_at_desc': datetime.datetime(2025, 12, 10, 7, 58, 30), 'last_updated_at_asc': datetime.datetime(2025, 12, 10, 7, 48, 57)}, 'environnement': {'main_port_id': 29290079, 'sub_port_id': 29290089, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19934038, 'last_updated_at': datetime.datetime(2025, 12, 10, 7, 58, 30), 'last_updated_at_desc': datetime.datetime(2025, 12, 10, 7, 58, 30), 'last_updated_at_asc': datetime.datetime(2025, 12, 10, 7, 48, 57)}, 'Carton_gris': {'main_port_id': 29290079, 'sub_port_id': 29290090, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19934039, 'last_updated_at': datetime.datetime(2025, 12, 10, 7, 58, 30), 'last_updated_at_desc': datetime.datetime(2025, 12, 10, 7, 58, 30), 'last_updated_at_asc': datetime.datetime(2025, 12, 10, 7, 48, 57)}, 'Carton_brun': {'main_port_id': 29290079, 'sub_port_id': 29290091, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19934040, 'last_updated_at': datetime.datetime(2025, 12, 10, 7, 58, 30), 'last_updated_at_desc': datetime.datetime(2025, 12, 10, 7, 58, 30), 'last_updated_at_asc': datetime.datetime(2025, 12, 10, 7, 48, 57)}, 'plastique': {'main_port_id': 29290079, 'sub_port_id': 29290092, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19934041, 'last_updated_at': datetime.datetime(2025, 12, 10, 7, 58, 30), 'last_updated_at_desc': datetime.datetime(2025, 12, 10, 7, 58, 30), 'last_updated_at_asc': datetime.datetime(2025, 12, 10, 7, 48, 57)}, 'autre_refus': {'main_port_id': 29290079, 'sub_port_id': 29290093, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19934042, 'last_updated_at': datetime.datetime(2025, 12, 10, 7, 58, 30), 'last_updated_at_desc': datetime.datetime(2025, 12, 10, 7, 58, 30), 'last_updated_at_asc': datetime.datetime(2025, 12, 10, 7, 48, 57)}, 'Teint_Dans_La_Masse': {'main_port_id': 29290079, 'sub_port_id': 29290094, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19934043, 'last_updated_at': datetime.datetime(2025, 12, 10, 7, 58, 30), 'last_updated_at_desc': datetime.datetime(2025, 12, 10, 7, 58, 30), 'last_updated_at_asc': datetime.datetime(2025, 12, 10, 7, 48, 57)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29290083 , 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=29290079 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 (29290083) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29290079) result : ((1398610828,), (1398610866,), (1398610867,), (1398610869,), (1398610871,), (1398610874,), (1398610905,), (1398610908,), (1398610911,), (1398610914,), (1398610916,), (1398610930,), (1398610931,), (1398610933,), (1398610935,), (1398610956,), (1398610959,), (1398610962,), (1398610965,), (1398610968,), (1398610971,), (1398610985,), (1398610986,), (1398610987,), (1398610988,), (1398610991,), (1398611015,), (1398611018,), (1398611021,), (1398611024,), (1398611027,), (1398611030,), (1398611044,), (1398611045,), (1398611046,), (1398611048,), (1398611051,), (1398611054,), (1398611067,), (1398611069,), (1398611070,), (1398611075,), (1398611084,), (1398611096,), (1398611098,), (1398611101,), (1398611104,), (1398611118,), (1398611120,), (1398611122,), (1398611124,), (1398611127,), (1398611150,), (1398611160,), (1398611163,), (1398611165,), (1398611187,), (1398611190,), (1398611192,), (1398611194,), (1398611197,), (1398611200,), (1398611224,), (1398611226,), (1398611233,), (1398611246,), (1398611278,), (1398611279,), (1398611281,), (1398611284,), (1398611287,), (1398611289,), (1398611300,), (1398611302,), (1398611303,), (1398611305,), (1398611307,), (1398611358,)) 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 (1398611200,1398611300) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29290084 , 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=29290079 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 (29290084) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29290079) result : ((1398610828,), (1398610866,), (1398610867,), (1398610869,), (1398610871,), (1398610874,), (1398610905,), (1398610908,), (1398610911,), (1398610914,), (1398610916,), (1398610930,), (1398610931,), (1398610933,), (1398610935,), (1398610956,), (1398610959,), (1398610962,), (1398610965,), (1398610968,), (1398610971,), (1398610985,), (1398610986,), (1398610987,), (1398610988,), (1398610991,), (1398611015,), (1398611018,), (1398611021,), (1398611024,), (1398611027,), (1398611030,), (1398611044,), (1398611045,), (1398611046,), (1398611048,), (1398611051,), (1398611054,), (1398611067,), (1398611069,), (1398611070,), (1398611075,), (1398611084,), (1398611096,), (1398611098,), (1398611101,), (1398611104,), (1398611118,), (1398611120,), (1398611122,), (1398611124,), (1398611127,), (1398611150,), (1398611160,), (1398611163,), (1398611165,), (1398611187,), (1398611190,), (1398611192,), (1398611194,), (1398611197,), (1398611200,), (1398611224,), (1398611226,), (1398611233,), (1398611246,), (1398611278,), (1398611279,), (1398611281,), (1398611284,), (1398611287,), (1398611289,), (1398611300,), (1398611302,), (1398611303,), (1398611305,), (1398611307,), (1398611358,)) 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 (1398611200,1398611300) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29290085 , 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=29290079 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 (29290085) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29290079) result : ((1398610828,), (1398610866,), (1398610867,), (1398610869,), (1398610871,), (1398610874,), (1398610905,), (1398610908,), (1398610911,), (1398610914,), (1398610916,), (1398610930,), (1398610931,), (1398610933,), (1398610935,), (1398610956,), (1398610959,), (1398610962,), (1398610965,), (1398610968,), (1398610971,), (1398610985,), (1398610986,), (1398610987,), (1398610988,), (1398610991,), (1398611015,), (1398611018,), (1398611021,), (1398611024,), (1398611027,), (1398611030,), (1398611044,), (1398611045,), (1398611046,), (1398611048,), (1398611051,), (1398611054,), (1398611067,), (1398611069,), (1398611070,), (1398611075,), (1398611084,), (1398611096,), (1398611098,), (1398611101,), (1398611104,), (1398611118,), (1398611120,), (1398611122,), (1398611124,), (1398611127,), (1398611150,), (1398611160,), (1398611163,), (1398611165,), (1398611187,), (1398611190,), (1398611192,), (1398611194,), (1398611197,), (1398611200,), (1398611224,), (1398611226,), (1398611233,), (1398611246,), (1398611278,), (1398611279,), (1398611281,), (1398611284,), (1398611287,), (1398611289,), (1398611300,), (1398611302,), (1398611303,), (1398611305,), (1398611307,), (1398611358,)) 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 (1398611200,1398611300) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29290086 , 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=29290079 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 (29290086) result : ((1398611003,), (1398611056,), (1398611080,), (1398611081,), (1398611134,), (1398611151,), (1398611152,), (1398611153,), (1398611177,), (1398611178,), (1398611179,), (1398611180,), (1398611181,), (1398611221,), (1398611232,), (1398611234,), (1398611235,), (1398611236,), (1398611237,), (1398611238,), (1398611264,), (1398611265,), (1398611266,), (1398611529,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29290079) result : ((1398610828,), (1398610866,), (1398610867,), (1398610869,), (1398610871,), (1398610874,), (1398610905,), (1398610908,), (1398610911,), (1398610914,), (1398610916,), (1398610930,), (1398610931,), (1398610933,), (1398610935,), (1398610956,), (1398610959,), (1398610962,), (1398610965,), (1398610968,), (1398610971,), (1398610985,), (1398610986,), (1398610987,), (1398610988,), (1398610991,), (1398611015,), (1398611018,), (1398611021,), (1398611024,), (1398611027,), (1398611030,), (1398611044,), (1398611045,), (1398611046,), (1398611048,), (1398611051,), (1398611054,), (1398611067,), (1398611069,), (1398611070,), (1398611075,), (1398611084,), (1398611096,), (1398611098,), (1398611101,), (1398611104,), (1398611118,), (1398611120,), (1398611122,), (1398611124,), (1398611127,), (1398611150,), (1398611160,), (1398611163,), (1398611165,), (1398611187,), (1398611190,), (1398611192,), (1398611194,), (1398611197,), (1398611200,), (1398611224,), (1398611226,), (1398611233,), (1398611246,), (1398611278,), (1398611279,), (1398611281,), (1398611284,), (1398611287,), (1398611289,), (1398611300,), (1398611302,), (1398611303,), (1398611305,), (1398611307,), (1398611358,)) 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 (1398611200,1398611300) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29290087 , 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=29290079 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 (29290087) result : ((1398611059,), (1398611161,), (1398611271,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29290079) result : ((1398610828,), (1398610866,), (1398610867,), (1398610869,), (1398610871,), (1398610874,), (1398610905,), (1398610908,), (1398610911,), (1398610914,), (1398610916,), (1398610930,), (1398610931,), (1398610933,), (1398610935,), (1398610956,), (1398610959,), (1398610962,), (1398610965,), (1398610968,), (1398610971,), (1398610985,), (1398610986,), (1398610987,), (1398610988,), (1398610991,), (1398611015,), (1398611018,), (1398611021,), (1398611024,), (1398611027,), (1398611030,), (1398611044,), (1398611045,), (1398611046,), (1398611048,), (1398611051,), (1398611054,), (1398611067,), (1398611069,), (1398611070,), (1398611075,), (1398611084,), (1398611096,), (1398611098,), (1398611101,), (1398611104,), (1398611118,), (1398611120,), (1398611122,), (1398611124,), (1398611127,), (1398611150,), (1398611160,), (1398611163,), (1398611165,), (1398611187,), (1398611190,), (1398611192,), (1398611194,), (1398611197,), (1398611200,), (1398611224,), (1398611226,), (1398611233,), (1398611246,), (1398611278,), (1398611279,), (1398611281,), (1398611284,), (1398611287,), (1398611289,), (1398611300,), (1398611302,), (1398611303,), (1398611305,), (1398611307,), (1398611358,)) 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 (1398611200,1398611300) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29290088 , 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=29290079 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 (29290088) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29290079) result : ((1398610828,), (1398610866,), (1398610867,), (1398610869,), (1398610871,), (1398610874,), (1398610905,), (1398610908,), (1398610911,), (1398610914,), (1398610916,), (1398610930,), (1398610931,), (1398610933,), (1398610935,), (1398610956,), (1398610959,), (1398610962,), (1398610965,), (1398610968,), (1398610971,), (1398610985,), (1398610986,), (1398610987,), (1398610988,), (1398610991,), (1398611015,), (1398611018,), (1398611021,), (1398611024,), (1398611027,), (1398611030,), (1398611044,), (1398611045,), (1398611046,), (1398611048,), (1398611051,), (1398611054,), (1398611067,), (1398611069,), (1398611070,), (1398611075,), (1398611084,), (1398611096,), (1398611098,), (1398611101,), (1398611104,), (1398611118,), (1398611120,), (1398611122,), (1398611124,), (1398611127,), (1398611150,), (1398611160,), (1398611163,), (1398611165,), (1398611187,), (1398611190,), (1398611192,), (1398611194,), (1398611197,), (1398611200,), (1398611224,), (1398611226,), (1398611233,), (1398611246,), (1398611278,), (1398611279,), (1398611281,), (1398611284,), (1398611287,), (1398611289,), (1398611300,), (1398611302,), (1398611303,), (1398611305,), (1398611307,), (1398611358,)) 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 (1398611200,1398611300) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29290089 , 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=29290079 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 (29290089) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29290079) result : ((1398610828,), (1398610866,), (1398610867,), (1398610869,), (1398610871,), (1398610874,), (1398610905,), (1398610908,), (1398610911,), (1398610914,), (1398610916,), (1398610930,), (1398610931,), (1398610933,), (1398610935,), (1398610956,), (1398610959,), (1398610962,), (1398610965,), (1398610968,), (1398610971,), (1398610985,), (1398610986,), (1398610987,), (1398610988,), (1398610991,), (1398611015,), (1398611018,), (1398611021,), (1398611024,), (1398611027,), (1398611030,), (1398611044,), (1398611045,), (1398611046,), (1398611048,), (1398611051,), (1398611054,), (1398611067,), (1398611069,), (1398611070,), (1398611075,), (1398611084,), (1398611096,), (1398611098,), (1398611101,), (1398611104,), (1398611118,), (1398611120,), (1398611122,), (1398611124,), (1398611127,), (1398611150,), (1398611160,), (1398611163,), (1398611165,), (1398611187,), (1398611190,), (1398611192,), (1398611194,), (1398611197,), (1398611200,), (1398611224,), (1398611226,), (1398611233,), (1398611246,), (1398611278,), (1398611279,), (1398611281,), (1398611284,), (1398611287,), (1398611289,), (1398611300,), (1398611302,), (1398611303,), (1398611305,), (1398611307,), (1398611358,)) 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 (1398611200,1398611300) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29290090 , 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=29290079 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 (29290090) result : ((1398611000,), (1398611001,), (1398611078,), (1398611079,), (1398611148,), (1398611149,), (1398611176,), (1398611219,), (1398611220,), (1398611262,), (1398611263,), (1398611497,), (1398611501,), (1398611505,), (1398611571,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29290079) result : ((1398610828,), (1398610866,), (1398610867,), (1398610869,), (1398610871,), (1398610874,), (1398610905,), (1398610908,), (1398610911,), (1398610914,), (1398610916,), (1398610930,), (1398610931,), (1398610933,), (1398610935,), (1398610956,), (1398610959,), (1398610962,), (1398610965,), (1398610968,), (1398610971,), (1398610985,), (1398610986,), (1398610987,), (1398610988,), (1398610991,), (1398611015,), (1398611018,), (1398611021,), (1398611024,), (1398611027,), (1398611030,), (1398611044,), (1398611045,), (1398611046,), (1398611048,), (1398611051,), (1398611054,), (1398611067,), (1398611069,), (1398611070,), (1398611075,), (1398611084,), (1398611096,), (1398611098,), (1398611101,), (1398611104,), (1398611118,), (1398611120,), (1398611122,), (1398611124,), (1398611127,), (1398611150,), (1398611160,), (1398611163,), (1398611165,), (1398611187,), (1398611190,), (1398611192,), (1398611194,), (1398611197,), (1398611200,), (1398611224,), (1398611226,), (1398611233,), (1398611246,), (1398611278,), (1398611279,), (1398611281,), (1398611284,), (1398611287,), (1398611289,), (1398611300,), (1398611302,), (1398611303,), (1398611305,), (1398611307,), (1398611358,)) 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 (1398611200,1398611300) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29290091 , 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=29290079 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 (29290091) result : ((1398611004,), (1398611005,), (1398611082,), (1398611083,), (1398611156,), (1398611157,), (1398611182,), (1398611183,), (1398611239,), (1398611240,), (1398611241,), (1398611242,), (1398611267,), (1398611268,), (1398611530,), (1398611572,), (1398611573,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29290079) result : ((1398610828,), (1398610866,), (1398610867,), (1398610869,), (1398610871,), (1398610874,), (1398610905,), (1398610908,), (1398610911,), (1398610914,), (1398610916,), (1398610930,), (1398610931,), (1398610933,), (1398610935,), (1398610956,), (1398610959,), (1398610962,), (1398610965,), (1398610968,), (1398610971,), (1398610985,), (1398610986,), (1398610987,), (1398610988,), (1398610991,), (1398611015,), (1398611018,), (1398611021,), (1398611024,), (1398611027,), (1398611030,), (1398611044,), (1398611045,), (1398611046,), (1398611048,), (1398611051,), (1398611054,), (1398611067,), (1398611069,), (1398611070,), (1398611075,), (1398611084,), (1398611096,), (1398611098,), (1398611101,), (1398611104,), (1398611118,), (1398611120,), (1398611122,), (1398611124,), (1398611127,), (1398611150,), (1398611160,), (1398611163,), (1398611165,), (1398611187,), (1398611190,), (1398611192,), (1398611194,), (1398611197,), (1398611200,), (1398611224,), (1398611226,), (1398611233,), (1398611246,), (1398611278,), (1398611279,), (1398611281,), (1398611284,), (1398611287,), (1398611289,), (1398611300,), (1398611302,), (1398611303,), (1398611305,), (1398611307,), (1398611358,)) 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 (1398611200,1398611300) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29290092 , 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=29290079 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 (29290092) result : ((1398611057,), (1398611086,), (1398611087,), (1398611158,), (1398611159,), (1398611185,), (1398611244,), (1398611245,), (1398611269,), (1398611270,), (1398611531,), (1398611575,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29290079) result : ((1398610828,), (1398610866,), (1398610867,), (1398610869,), (1398610871,), (1398610874,), (1398610905,), (1398610908,), (1398610911,), (1398610914,), (1398610916,), (1398610930,), (1398610931,), (1398610933,), (1398610935,), (1398610956,), (1398610959,), (1398610962,), (1398610965,), (1398610968,), (1398610971,), (1398610985,), (1398610986,), (1398610987,), (1398610988,), (1398610991,), (1398611015,), (1398611018,), (1398611021,), (1398611024,), (1398611027,), (1398611030,), (1398611044,), (1398611045,), (1398611046,), (1398611048,), (1398611051,), (1398611054,), (1398611067,), (1398611069,), (1398611070,), (1398611075,), (1398611084,), (1398611096,), (1398611098,), (1398611101,), (1398611104,), (1398611118,), (1398611120,), (1398611122,), (1398611124,), (1398611127,), (1398611150,), (1398611160,), (1398611163,), (1398611165,), (1398611187,), (1398611190,), (1398611192,), (1398611194,), (1398611197,), (1398611200,), (1398611224,), (1398611226,), (1398611233,), (1398611246,), (1398611278,), (1398611279,), (1398611281,), (1398611284,), (1398611287,), (1398611289,), (1398611300,), (1398611302,), (1398611303,), (1398611305,), (1398611307,), (1398611358,)) 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 (1398611200,1398611300) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29290093 , 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=29290079 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 (29290093) result : ((1398610997,), (1398610998,), (1398611012,), (1398611055,), (1398611076,), (1398611132,), (1398611145,), (1398611147,), (1398611175,), (1398611217,), (1398611229,), (1398611230,), (1398611260,), (1398611261,), (1398611479,), (1398611480,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29290079) result : ((1398610828,), (1398610866,), (1398610867,), (1398610869,), (1398610871,), (1398610874,), (1398610905,), (1398610908,), (1398610911,), (1398610914,), (1398610916,), (1398610930,), (1398610931,), (1398610933,), (1398610935,), (1398610956,), (1398610959,), (1398610962,), (1398610965,), (1398610968,), (1398610971,), (1398610985,), (1398610986,), (1398610987,), (1398610988,), (1398610991,), (1398611015,), (1398611018,), (1398611021,), (1398611024,), (1398611027,), (1398611030,), (1398611044,), (1398611045,), (1398611046,), (1398611048,), (1398611051,), (1398611054,), (1398611067,), (1398611069,), (1398611070,), (1398611075,), (1398611084,), (1398611096,), (1398611098,), (1398611101,), (1398611104,), (1398611118,), (1398611120,), (1398611122,), (1398611124,), (1398611127,), (1398611150,), (1398611160,), (1398611163,), (1398611165,), (1398611187,), (1398611190,), (1398611192,), (1398611194,), (1398611197,), (1398611200,), (1398611224,), (1398611226,), (1398611233,), (1398611246,), (1398611278,), (1398611279,), (1398611281,), (1398611284,), (1398611287,), (1398611289,), (1398611300,), (1398611302,), (1398611303,), (1398611305,), (1398611307,), (1398611358,)) 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 (1398611200,1398611300) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29290094 , 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=29290079 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 (29290094) result : ((1398610996,), (1398611072,), (1398611073,), (1398611074,), (1398611131,), (1398611141,), (1398611142,), (1398611173,), (1398611174,), (1398611212,), (1398611214,), (1398611216,), (1398611227,), (1398611228,), (1398611258,), (1398611259,), (1398611477,), (1398611569,), (1398611570,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29290079) result : ((1398610828,), (1398610866,), (1398610867,), (1398610869,), (1398610871,), (1398610874,), (1398610905,), (1398610908,), (1398610911,), (1398610914,), (1398610916,), (1398610930,), (1398610931,), (1398610933,), (1398610935,), (1398610956,), (1398610959,), (1398610962,), (1398610965,), (1398610968,), (1398610971,), (1398610985,), (1398610986,), (1398610987,), (1398610988,), (1398610991,), (1398611015,), (1398611018,), (1398611021,), (1398611024,), (1398611027,), (1398611030,), (1398611044,), (1398611045,), (1398611046,), (1398611048,), (1398611051,), (1398611054,), (1398611067,), (1398611069,), (1398611070,), (1398611075,), (1398611084,), (1398611096,), (1398611098,), (1398611101,), (1398611104,), (1398611118,), (1398611120,), (1398611122,), (1398611124,), (1398611127,), (1398611150,), (1398611160,), (1398611163,), (1398611165,), (1398611187,), (1398611190,), (1398611192,), (1398611194,), (1398611197,), (1398611200,), (1398611224,), (1398611226,), (1398611233,), (1398611246,), (1398611278,), (1398611279,), (1398611281,), (1398611284,), (1398611287,), (1398611289,), (1398611300,), (1398611302,), (1398611303,), (1398611305,), (1398611307,), (1398611358,)) 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 (1398611200,1398611300) and cspi.crop_hashtag_id = chi.id; 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`=29290079 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','Teint_Dans_La_Masse','metal','plastique','mal_croppe','Carton_brun','Carton_gris','papier','kraft','flou','autre_refus','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`=29290079 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','Teint_Dans_La_Masse','metal','plastique','mal_croppe','Carton_brun','Carton_gris','papier','kraft','flou','autre_refus','environnement')) AND mptpi.`min_score`=0.5 To do returned map {'papier': {'main_port_id': 29290079, 'sub_port_id': 29290096, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19934044, 'last_updated_at': datetime.datetime(2025, 12, 10, 7, 48, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 10, 7, 48, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 10, 7, 48, 59)}, 'metal': {'main_port_id': 29290079, 'sub_port_id': 29290097, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19934045, 'last_updated_at': datetime.datetime(2025, 12, 10, 7, 48, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 10, 7, 48, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 10, 7, 48, 59)}, 'mal_croppe': {'main_port_id': 29290079, 'sub_port_id': 29290098, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19934046, 'last_updated_at': datetime.datetime(2025, 12, 10, 7, 48, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 10, 7, 48, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 10, 7, 48, 59)}, 'cartonnette': {'main_port_id': 29290079, 'sub_port_id': 29290099, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19934047, 'last_updated_at': datetime.datetime(2025, 12, 10, 7, 48, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 10, 7, 48, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 10, 7, 48, 59)}, 'kraft': {'main_port_id': 29290079, 'sub_port_id': 29290100, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19934048, 'last_updated_at': datetime.datetime(2025, 12, 10, 7, 48, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 10, 7, 48, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 10, 7, 48, 59)}, 'flou': {'main_port_id': 29290079, 'sub_port_id': 29290101, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19934049, 'last_updated_at': datetime.datetime(2025, 12, 10, 7, 48, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 10, 7, 48, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 10, 7, 48, 59)}, 'environnement': {'main_port_id': 29290079, 'sub_port_id': 29290102, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19934050, 'last_updated_at': datetime.datetime(2025, 12, 10, 7, 48, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 10, 7, 48, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 10, 7, 48, 59)}, 'Carton_gris': {'main_port_id': 29290079, 'sub_port_id': 29290103, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19934051, 'last_updated_at': datetime.datetime(2025, 12, 10, 7, 48, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 10, 7, 48, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 10, 7, 48, 59)}, 'Carton_brun': {'main_port_id': 29290079, 'sub_port_id': 29290104, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19934052, 'last_updated_at': datetime.datetime(2025, 12, 10, 7, 48, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 10, 7, 48, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 10, 7, 48, 59)}, 'plastique': {'main_port_id': 29290079, 'sub_port_id': 29290105, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19934053, 'last_updated_at': datetime.datetime(2025, 12, 10, 7, 48, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 10, 7, 48, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 10, 7, 48, 59)}, 'autre_refus': {'main_port_id': 29290079, 'sub_port_id': 29290106, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19934054, 'last_updated_at': datetime.datetime(2025, 12, 10, 7, 48, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 10, 7, 48, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 10, 7, 48, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 29290079, 'sub_port_id': 29290107, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19934055, 'last_updated_at': datetime.datetime(2025, 12, 10, 7, 58, 30), 'last_updated_at_desc': datetime.datetime(2025, 12, 10, 7, 58, 30), 'last_updated_at_asc': datetime.datetime(2025, 12, 10, 7, 48, 59)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29290096,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29290083 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29290097,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29290084 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29290098,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29290085 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29290099,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29290086 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29290100,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29290087 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29290101,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29290088 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29290102,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29290089 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29290103,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29290090 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29290104,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29290091 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29290105,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29290092 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29290106,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29290093 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29290107,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29290094 lien utilise dans velours : https://marlene.fotonower.com/velours/29290096,29290097,29290098,29290099,29290100,29290101,29290102,29290103,29290104,29290105,29290106,29290107?tags=papier,metal,mal_croppe,cartonnette,kraft,flou,environnement,Carton_gris,Carton_brun,plastique,autre_refus,Teint_Dans_La_Masse After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29290079]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1398611358, 1398611307, 1398611305, 1398611303, 1398611302, 1398611300, 1398611289, 1398611287, 1398611284, 1398611281, 1398611279, 1398611278] map_info['map_portfolio_photo'] : {29290079: [1398611358, 1398611307, 1398611305, 1398611303, 1398611302, 1398611300, 1398611289, 1398611287, 1398611284, 1398611281, 1398611279, 1398611278, 1398611246, 1398611233, 1398611226, 1398611224, 1398611200, 1398611197, 1398611194, 1398611192, 1398611190, 1398611187, 1398611165, 1398611163, 1398611160, 1398611150, 1398611127, 1398611124, 1398611122, 1398611120, 1398611118, 1398611104, 1398611101, 1398611098, 1398611096, 1398611084, 1398611075, 1398611070, 1398611069, 1398611067, 1398611054, 1398611051, 1398611048, 1398611046, 1398611045, 1398611044, 1398611030, 1398611027, 1398611024, 1398611021, 1398611018, 1398611015, 1398610991, 1398610988, 1398610987, 1398610986, 1398610985, 1398610971, 1398610968, 1398610965, 1398610962, 1398610959, 1398610956, 1398610935, 1398610933, 1398610931, 1398610930, 1398610916, 1398610914, 1398610911, 1398610908, 1398610905, 1398610874, 1398610871, 1398610869, 1398610867, 1398610866, 1398610828]} final : False mtd_id 4302 list_pids : [1398611358, 1398611307, 1398611305, 1398611303, 1398611302, 1398611300, 1398611289, 1398611287, 1398611284, 1398611281, 1398611279, 1398611278] Looping around the photos to save general results len do output : 1 /29290079. 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, '4202123') ('4302', '29290079', '1398611358', None, None, None, None, None, '4202123') ('4302', None, None, None, None, None, None, None, '4202123') ('4302', '29290079', '1398611307', None, None, None, None, None, '4202123') ('4302', None, None, None, None, None, None, None, '4202123') ('4302', '29290079', '1398611305', None, None, None, None, None, '4202123') ('4302', None, None, None, None, None, None, None, '4202123') ('4302', '29290079', '1398611303', None, None, None, None, None, '4202123') ('4302', None, None, None, None, None, None, None, '4202123') ('4302', '29290079', '1398611302', None, None, None, None, None, '4202123') ('4302', None, None, None, None, None, None, None, '4202123') ('4302', '29290079', '1398611300', None, None, None, None, None, '4202123') ('4302', None, None, None, None, None, None, None, '4202123') ('4302', '29290079', '1398611289', None, None, None, None, None, '4202123') ('4302', None, None, None, None, None, None, None, '4202123') ('4302', '29290079', '1398611287', None, None, None, None, None, '4202123') ('4302', None, None, None, None, None, None, None, '4202123') ('4302', '29290079', '1398611284', None, None, None, None, None, '4202123') ('4302', None, None, None, None, None, None, None, '4202123') ('4302', '29290079', '1398611281', None, None, None, None, None, '4202123') ('4302', None, None, None, None, None, None, None, '4202123') ('4302', '29290079', '1398611279', None, None, None, None, None, '4202123') ('4302', None, None, None, None, None, None, None, '4202123') ('4302', '29290079', '1398611278', None, None, None, None, None, '4202123') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 13 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '29290079', "{'papier': 29290083, 'metal': 29290084, 'mal_croppe': 29290085, 'cartonnette': 29290086, 'kraft': 29290087, 'flou': 29290088, 'environnement': 29290089, 'Carton_gris': 29290090, 'Carton_brun': 29290091, 'plastique': 29290092, 'autre_refus': 29290093, 'Teint_Dans_La_Masse': 29290094}", None, None, None, None, '4202123'), ('4302', '29290079', '1398611358', None, None, None, None, None, '4202123'), ('4302', '29290079', '1398611307', None, None, None, None, None, '4202123'), ('4302', '29290079', '1398611305', None, None, None, None, None, '4202123'), ('4302', '29290079', '1398611303', None, None, None, None, None, '4202123'), ('4302', '29290079', '1398611302', None, None, None, None, None, '4202123'), ('4302', '29290079', '1398611300', None, None, None, None, None, '4202123'), ('4302', '29290079', '1398611289', None, None, None, None, None, '4202123'), ('4302', '29290079', '1398611287', None, None, None, None, None, '4202123'), ('4302', '29290079', '1398611284', None, None, None, None, None, '4202123'), ('4302', '29290079', '1398611281', None, None, None, None, None, '4202123'), ('4302', '29290079', '1398611279', None, None, None, None, None, '4202123'), ('4302', '29290079', '1398611278', None, None, None, None, None, '4202123')] time used for this insertion : 0.015859127044677734 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.5608794689178467 time spend to save output : 0.016167879104614258 total time spend for step 1 : 0.5770473480224609 step2:final Wed Dec 10 08:02:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29290079) 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 29290079 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1398610828,1398610874,1398610871,1398610869,1398610867,1398610866,1398610916,1398610914,1398610911,1398610908,1398610905,1398610935,1398610933,1398610931,1398610930,1398610971,1398610968,1398610965,1398610962,1398610959,1398610956,1398610991,1398610988,1398610987,1398610986,1398610985,1398611084,1398611030,1398611075,1398611027,1398611070,1398611024,1398611069,1398611021,1398611067,1398611018,1398611054,1398611015,1398611051,1398611048,1398611046,1398611045,1398611044,1398611104,1398611101,1398611098,1398611096,1398611127,1398611124,1398611122,1398611120,1398611118,1398611165,1398611163,1398611160,1398611150,1398611200,1398611197,1398611194,1398611192,1398611190,1398611187,1398611246,1398611233,1398611226,1398611224,1398611289,1398611287,1398611284,1398611281,1398611279,1398611278,1398611307,1398611305,1398611303,1398611302,1398611300,1398611358); 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([29290079]) Inside saveOutput : final : False verbose : True original output for save of step final : {1398611358: ('0.04993413662820763',), 1398611307: ('0.04993413662820763',), 1398611305: ('0.04993413662820763',), 1398611303: ('0.04993413662820763',), 1398611302: ('0.04993413662820763',), 1398611300: ('0.04993413662820763',), 1398611289: ('0.04993413662820763',), 1398611287: ('0.04993413662820763',), 1398611284: ('0.04993413662820763',), 1398611281: ('0.04993413662820763',), 1398611279: ('0.04993413662820763',), 1398611278: ('0.04993413662820763',)} new output for save of step final : {1398611358: ('0.04993413662820763',), 1398611307: ('0.04993413662820763',), 1398611305: ('0.04993413662820763',), 1398611303: ('0.04993413662820763',), 1398611302: ('0.04993413662820763',), 1398611300: ('0.04993413662820763',), 1398611289: ('0.04993413662820763',), 1398611287: ('0.04993413662820763',), 1398611284: ('0.04993413662820763',), 1398611281: ('0.04993413662820763',), 1398611279: ('0.04993413662820763',), 1398611278: ('0.04993413662820763',)} [1398611358, 1398611307, 1398611305, 1398611303, 1398611302, 1398611300, 1398611289, 1398611287, 1398611284, 1398611281, 1398611279, 1398611278] map_info['map_portfolio_photo'] : {29290079: [1398611358, 1398611307, 1398611305, 1398611303, 1398611302, 1398611300, 1398611289, 1398611287, 1398611284, 1398611281, 1398611279, 1398611278, 1398611246, 1398611233, 1398611226, 1398611224, 1398611200, 1398611197, 1398611194, 1398611192, 1398611190, 1398611187, 1398611165, 1398611163, 1398611160, 1398611150, 1398611127, 1398611124, 1398611122, 1398611120, 1398611118, 1398611104, 1398611101, 1398611098, 1398611096, 1398611084, 1398611075, 1398611070, 1398611069, 1398611067, 1398611054, 1398611051, 1398611048, 1398611046, 1398611045, 1398611044, 1398611030, 1398611027, 1398611024, 1398611021, 1398611018, 1398611015, 1398610991, 1398610988, 1398610987, 1398610986, 1398610985, 1398610971, 1398610968, 1398610965, 1398610962, 1398610959, 1398610956, 1398610935, 1398610933, 1398610931, 1398610930, 1398610916, 1398610914, 1398610911, 1398610908, 1398610905, 1398610874, 1398610871, 1398610869, 1398610867, 1398610866, 1398610828]} final : False mtd_id 4302 list_pids : [1398611358, 1398611307, 1398611305, 1398611303, 1398611302, 1398611300, 1398611289, 1398611287, 1398611284, 1398611281, 1398611279, 1398611278] Looping around the photos to save general results len do output : 12 /1398611358.Didn't retrieve data . /1398611307.Didn't retrieve data . /1398611305.Didn't retrieve data . /1398611303.Didn't retrieve data . /1398611302.Didn't retrieve data . /1398611300.Didn't retrieve data . /1398611289.Didn't retrieve data . /1398611287.Didn't retrieve data . /1398611284.Didn't retrieve data . /1398611281.Didn't retrieve data . /1398611279.Didn't retrieve data . /1398611278.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, '4202123') ('4302', '29290079', '1398611358', None, None, None, None, None, '4202123') ('4302', None, None, None, None, None, None, None, '4202123') ('4302', '29290079', '1398611307', None, None, None, None, None, '4202123') ('4302', None, None, None, None, None, None, None, '4202123') ('4302', '29290079', '1398611305', None, None, None, None, None, '4202123') ('4302', None, None, None, None, None, None, None, '4202123') ('4302', '29290079', '1398611303', None, None, None, None, None, '4202123') ('4302', None, None, None, None, None, None, None, '4202123') ('4302', '29290079', '1398611302', None, None, None, None, None, '4202123') ('4302', None, None, None, None, None, None, None, '4202123') ('4302', '29290079', '1398611300', None, None, None, None, None, '4202123') ('4302', None, None, None, None, None, None, None, '4202123') ('4302', '29290079', '1398611289', None, None, None, None, None, '4202123') ('4302', None, None, None, None, None, None, None, '4202123') ('4302', '29290079', '1398611287', None, None, None, None, None, '4202123') ('4302', None, None, None, None, None, None, None, '4202123') ('4302', '29290079', '1398611284', None, None, None, None, None, '4202123') ('4302', None, None, None, None, None, None, None, '4202123') ('4302', '29290079', '1398611281', None, None, None, None, None, '4202123') ('4302', None, None, None, None, None, None, None, '4202123') ('4302', '29290079', '1398611279', None, None, None, None, None, '4202123') ('4302', None, None, None, None, None, None, None, '4202123') ('4302', '29290079', '1398611278', None, None, None, None, None, '4202123') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 36 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', '29290079', '1398611358', '0.04993413662820763', None, None, None, None, '4202123'), ('4302', '29290079', '1398611307', '0.04993413662820763', None, None, None, None, '4202123'), ('4302', '29290079', '1398611305', '0.04993413662820763', None, None, None, None, '4202123'), ('4302', '29290079', '1398611303', '0.04993413662820763', None, None, None, None, '4202123'), ('4302', '29290079', '1398611302', '0.04993413662820763', None, None, None, None, '4202123'), ('4302', '29290079', '1398611300', '0.04993413662820763', None, None, None, None, '4202123'), ('4302', '29290079', '1398611289', '0.04993413662820763', None, None, None, None, '4202123'), ('4302', '29290079', '1398611287', '0.04993413662820763', None, None, None, None, '4202123'), ('4302', '29290079', '1398611284', '0.04993413662820763', None, None, None, None, '4202123'), ('4302', '29290079', '1398611281', '0.04993413662820763', None, None, None, None, '4202123'), ('4302', '29290079', '1398611279', '0.04993413662820763', None, None, None, None, '4202123'), ('4302', '29290079', '1398611278', '0.04993413662820763', None, None, None, None, '4202123')] time used for this insertion : 0.014235496520996094 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.08597874641418457 time spend to save output : 0.014850616455078125 total time spend for step 2 : 0.1008293628692627 step3:velours_tree Wed Dec 10 08:02:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {29290079: [{'papier': 29290083, 'metal': 29290084, 'mal_croppe': 29290085, 'cartonnette': 29290086, 'kraft': 29290087, 'flou': 29290088, 'environnement': 29290089, 'Carton_gris': 29290090, 'Carton_brun': 29290091, 'plastique': 29290092, 'autre_refus': 29290093, 'Teint_Dans_La_Masse': 29290094}]} input_args_next_step : {29290079: ()} output_args : {29290079: [{'papier': 29290083, 'metal': 29290084, 'mal_croppe': 29290085, 'cartonnette': 29290086, 'kraft': 29290087, 'flou': 29290088, 'environnement': 29290089, 'Carton_gris': 29290090, 'Carton_brun': 29290091, 'plastique': 29290092, 'autre_refus': 29290093, 'Teint_Dans_La_Masse': 29290094}]} args : 29290079 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 : ({'papier': 29290083, 'metal': 29290084, 'mal_croppe': 29290085, 'cartonnette': 29290086, 'kraft': 29290087, 'flou': 29290088, 'environnement': 29290089, 'Carton_gris': 29290090, 'Carton_brun': 29290091, 'plastique': 29290092, 'autre_refus': 29290093, 'Teint_Dans_La_Masse': 29290094},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29290079) 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([29290079]) 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.2885706424713135 time spend to save output : 7.200241088867188e-05 total time spend for step 3 : 0.28864264488220215 step4:send_mail_cod Wed Dec 10 08:02:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1398611358: ('0.04993413662820763',), 1398611307: ('0.04993413662820763',), 1398611305: ('0.04993413662820763',), 1398611303: ('0.04993413662820763',), 1398611302: ('0.04993413662820763',), 1398611300: ('0.04993413662820763',), 1398611289: ('0.04993413662820763',), 1398611287: ('0.04993413662820763',), 1398611284: ('0.04993413662820763',), 1398611281: ('0.04993413662820763',), 1398611279: ('0.04993413662820763',), 1398611278: ('0.04993413662820763',)} input_args_next_step : {1398611358: ()} output_args : {1398611358: ('0.04993413662820763',), 1398611307: ('0.04993413662820763',), 1398611305: ('0.04993413662820763',), 1398611303: ('0.04993413662820763',), 1398611302: ('0.04993413662820763',), 1398611300: ('0.04993413662820763',), 1398611289: ('0.04993413662820763',), 1398611287: ('0.04993413662820763',), 1398611284: ('0.04993413662820763',), 1398611281: ('0.04993413662820763',), 1398611279: ('0.04993413662820763',), 1398611278: ('0.04993413662820763',)} args : 1398611358 depend.output_id : 0 input_args_next_step : {1398611358: ('0.04993413662820763',), 1398611307: ()} output_args : {1398611358: ('0.04993413662820763',), 1398611307: ('0.04993413662820763',), 1398611305: ('0.04993413662820763',), 1398611303: ('0.04993413662820763',), 1398611302: ('0.04993413662820763',), 1398611300: ('0.04993413662820763',), 1398611289: ('0.04993413662820763',), 1398611287: ('0.04993413662820763',), 1398611284: ('0.04993413662820763',), 1398611281: ('0.04993413662820763',), 1398611279: ('0.04993413662820763',), 1398611278: ('0.04993413662820763',)} args : 1398611307 depend.output_id : 0 input_args_next_step : {1398611358: ('0.04993413662820763',), 1398611307: ('0.04993413662820763',), 1398611305: ()} output_args : {1398611358: ('0.04993413662820763',), 1398611307: ('0.04993413662820763',), 1398611305: ('0.04993413662820763',), 1398611303: ('0.04993413662820763',), 1398611302: ('0.04993413662820763',), 1398611300: ('0.04993413662820763',), 1398611289: ('0.04993413662820763',), 1398611287: ('0.04993413662820763',), 1398611284: ('0.04993413662820763',), 1398611281: ('0.04993413662820763',), 1398611279: ('0.04993413662820763',), 1398611278: ('0.04993413662820763',)} args : 1398611305 depend.output_id : 0 input_args_next_step : {1398611358: ('0.04993413662820763',), 1398611307: ('0.04993413662820763',), 1398611305: ('0.04993413662820763',), 1398611303: ()} output_args : {1398611358: ('0.04993413662820763',), 1398611307: ('0.04993413662820763',), 1398611305: ('0.04993413662820763',), 1398611303: ('0.04993413662820763',), 1398611302: ('0.04993413662820763',), 1398611300: ('0.04993413662820763',), 1398611289: ('0.04993413662820763',), 1398611287: ('0.04993413662820763',), 1398611284: ('0.04993413662820763',), 1398611281: ('0.04993413662820763',), 1398611279: ('0.04993413662820763',), 1398611278: ('0.04993413662820763',)} args : 1398611303 depend.output_id : 0 input_args_next_step : {1398611358: ('0.04993413662820763',), 1398611307: ('0.04993413662820763',), 1398611305: ('0.04993413662820763',), 1398611303: ('0.04993413662820763',), 1398611302: ()} output_args : {1398611358: ('0.04993413662820763',), 1398611307: ('0.04993413662820763',), 1398611305: ('0.04993413662820763',), 1398611303: ('0.04993413662820763',), 1398611302: ('0.04993413662820763',), 1398611300: ('0.04993413662820763',), 1398611289: ('0.04993413662820763',), 1398611287: ('0.04993413662820763',), 1398611284: ('0.04993413662820763',), 1398611281: ('0.04993413662820763',), 1398611279: ('0.04993413662820763',), 1398611278: ('0.04993413662820763',)} args : 1398611302 depend.output_id : 0 input_args_next_step : {1398611358: ('0.04993413662820763',), 1398611307: ('0.04993413662820763',), 1398611305: ('0.04993413662820763',), 1398611303: ('0.04993413662820763',), 1398611302: ('0.04993413662820763',), 1398611300: ()} output_args : {1398611358: ('0.04993413662820763',), 1398611307: ('0.04993413662820763',), 1398611305: ('0.04993413662820763',), 1398611303: ('0.04993413662820763',), 1398611302: ('0.04993413662820763',), 1398611300: ('0.04993413662820763',), 1398611289: ('0.04993413662820763',), 1398611287: ('0.04993413662820763',), 1398611284: ('0.04993413662820763',), 1398611281: ('0.04993413662820763',), 1398611279: ('0.04993413662820763',), 1398611278: ('0.04993413662820763',)} args : 1398611300 depend.output_id : 0 input_args_next_step : {1398611358: ('0.04993413662820763',), 1398611307: ('0.04993413662820763',), 1398611305: ('0.04993413662820763',), 1398611303: ('0.04993413662820763',), 1398611302: ('0.04993413662820763',), 1398611300: ('0.04993413662820763',), 1398611289: ()} output_args : {1398611358: ('0.04993413662820763',), 1398611307: ('0.04993413662820763',), 1398611305: ('0.04993413662820763',), 1398611303: ('0.04993413662820763',), 1398611302: ('0.04993413662820763',), 1398611300: ('0.04993413662820763',), 1398611289: ('0.04993413662820763',), 1398611287: ('0.04993413662820763',), 1398611284: ('0.04993413662820763',), 1398611281: ('0.04993413662820763',), 1398611279: ('0.04993413662820763',), 1398611278: ('0.04993413662820763',)} args : 1398611289 depend.output_id : 0 input_args_next_step : {1398611358: ('0.04993413662820763',), 1398611307: ('0.04993413662820763',), 1398611305: ('0.04993413662820763',), 1398611303: ('0.04993413662820763',), 1398611302: ('0.04993413662820763',), 1398611300: ('0.04993413662820763',), 1398611289: ('0.04993413662820763',), 1398611287: ()} output_args : {1398611358: ('0.04993413662820763',), 1398611307: ('0.04993413662820763',), 1398611305: ('0.04993413662820763',), 1398611303: ('0.04993413662820763',), 1398611302: ('0.04993413662820763',), 1398611300: ('0.04993413662820763',), 1398611289: ('0.04993413662820763',), 1398611287: ('0.04993413662820763',), 1398611284: ('0.04993413662820763',), 1398611281: ('0.04993413662820763',), 1398611279: ('0.04993413662820763',), 1398611278: ('0.04993413662820763',)} args : 1398611287 depend.output_id : 0 input_args_next_step : {1398611358: ('0.04993413662820763',), 1398611307: ('0.04993413662820763',), 1398611305: ('0.04993413662820763',), 1398611303: ('0.04993413662820763',), 1398611302: ('0.04993413662820763',), 1398611300: ('0.04993413662820763',), 1398611289: ('0.04993413662820763',), 1398611287: ('0.04993413662820763',), 1398611284: ()} output_args : {1398611358: ('0.04993413662820763',), 1398611307: ('0.04993413662820763',), 1398611305: ('0.04993413662820763',), 1398611303: ('0.04993413662820763',), 1398611302: ('0.04993413662820763',), 1398611300: ('0.04993413662820763',), 1398611289: ('0.04993413662820763',), 1398611287: ('0.04993413662820763',), 1398611284: ('0.04993413662820763',), 1398611281: ('0.04993413662820763',), 1398611279: ('0.04993413662820763',), 1398611278: ('0.04993413662820763',)} args : 1398611284 depend.output_id : 0 input_args_next_step : {1398611358: ('0.04993413662820763',), 1398611307: ('0.04993413662820763',), 1398611305: ('0.04993413662820763',), 1398611303: ('0.04993413662820763',), 1398611302: ('0.04993413662820763',), 1398611300: ('0.04993413662820763',), 1398611289: ('0.04993413662820763',), 1398611287: ('0.04993413662820763',), 1398611284: ('0.04993413662820763',), 1398611281: ()} output_args : {1398611358: ('0.04993413662820763',), 1398611307: ('0.04993413662820763',), 1398611305: ('0.04993413662820763',), 1398611303: ('0.04993413662820763',), 1398611302: ('0.04993413662820763',), 1398611300: ('0.04993413662820763',), 1398611289: ('0.04993413662820763',), 1398611287: ('0.04993413662820763',), 1398611284: ('0.04993413662820763',), 1398611281: ('0.04993413662820763',), 1398611279: ('0.04993413662820763',), 1398611278: ('0.04993413662820763',)} args : 1398611281 depend.output_id : 0 input_args_next_step : {1398611358: ('0.04993413662820763',), 1398611307: ('0.04993413662820763',), 1398611305: ('0.04993413662820763',), 1398611303: ('0.04993413662820763',), 1398611302: ('0.04993413662820763',), 1398611300: ('0.04993413662820763',), 1398611289: ('0.04993413662820763',), 1398611287: ('0.04993413662820763',), 1398611284: ('0.04993413662820763',), 1398611281: ('0.04993413662820763',), 1398611279: ()} output_args : {1398611358: ('0.04993413662820763',), 1398611307: ('0.04993413662820763',), 1398611305: ('0.04993413662820763',), 1398611303: ('0.04993413662820763',), 1398611302: ('0.04993413662820763',), 1398611300: ('0.04993413662820763',), 1398611289: ('0.04993413662820763',), 1398611287: ('0.04993413662820763',), 1398611284: ('0.04993413662820763',), 1398611281: ('0.04993413662820763',), 1398611279: ('0.04993413662820763',), 1398611278: ('0.04993413662820763',)} args : 1398611279 depend.output_id : 0 input_args_next_step : {1398611358: ('0.04993413662820763',), 1398611307: ('0.04993413662820763',), 1398611305: ('0.04993413662820763',), 1398611303: ('0.04993413662820763',), 1398611302: ('0.04993413662820763',), 1398611300: ('0.04993413662820763',), 1398611289: ('0.04993413662820763',), 1398611287: ('0.04993413662820763',), 1398611284: ('0.04993413662820763',), 1398611281: ('0.04993413662820763',), 1398611279: ('0.04993413662820763',), 1398611278: ()} output_args : {1398611358: ('0.04993413662820763',), 1398611307: ('0.04993413662820763',), 1398611305: ('0.04993413662820763',), 1398611303: ('0.04993413662820763',), 1398611302: ('0.04993413662820763',), 1398611300: ('0.04993413662820763',), 1398611289: ('0.04993413662820763',), 1398611287: ('0.04993413662820763',), 1398611284: ('0.04993413662820763',), 1398611281: ('0.04993413662820763',), 1398611279: ('0.04993413662820763',), 1398611278: ('0.04993413662820763',)} args : 1398611278 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 : {29290079: [{'papier': 29290083, 'metal': 29290084, 'mal_croppe': 29290085, 'cartonnette': 29290086, 'kraft': 29290087, 'flou': 29290088, 'environnement': 29290089, 'Carton_gris': 29290090, 'Carton_brun': 29290091, 'plastique': 29290092, 'autre_refus': 29290093, 'Teint_Dans_La_Masse': 29290094}]} input_args_next_step : {1398611358: ('0.04993413662820763',), 1398611307: ('0.04993413662820763',), 1398611305: ('0.04993413662820763',), 1398611303: ('0.04993413662820763',), 1398611302: ('0.04993413662820763',), 1398611300: ('0.04993413662820763',), 1398611289: ('0.04993413662820763',), 1398611287: ('0.04993413662820763',), 1398611284: ('0.04993413662820763',), 1398611281: ('0.04993413662820763',), 1398611279: ('0.04993413662820763',), 1398611278: ('0.04993413662820763',), 29290079: ()} output_args : {29290079: [{'papier': 29290083, 'metal': 29290084, 'mal_croppe': 29290085, 'cartonnette': 29290086, 'kraft': 29290087, 'flou': 29290088, 'environnement': 29290089, 'Carton_gris': 29290090, 'Carton_brun': 29290091, 'plastique': 29290092, 'autre_refus': 29290093, 'Teint_Dans_La_Masse': 29290094}]} args : 29290079 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 :13, first value : ('0.04993413662820763',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29290079) 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 (1398611358,1398611307,1398611305,1398611303,1398611302,1398611300,1398611289,1398611287,1398611284,1398611281,1398611279,1398611278) Found this number of photos: 12 ##### Call download_photos : nb_thread : 5 begin to download photo : 1398611278 begin to download photo : 1398611284 begin to download photo : 1398611300 begin to download photo : 1398611305 download finish for photo 1398611278 begin to download photo : 1398611279 download finish for photo 1398611284 begin to download photo : 1398611287 download finish for photo 1398611305 begin to download photo : 1398611307 download finish for photo 1398611300 begin to download photo : 1398611302 download finish for photo 1398611287 begin to download photo : 1398611289 download finish for photo 1398611279 begin to download photo : 1398611281 download finish for photo 1398611307 begin to download photo : 1398611358 download finish for photo 1398611302 begin to download photo : 1398611303 download finish for photo 1398611289 download finish for photo 1398611358 download finish for photo 1398611281 download finish for photo 1398611303 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette292900841765350179/ imagette292900851765350179/ length of list_filenames : 12 ; length of list_pids : 12 ; length of list_args : 12 results_Auto_P29290079_10-12-2025_08_02_59.pdf 29290084 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=29290084 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette292900841765350179 29290085 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=29290085 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette292900851765350179 29290086 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=29290086 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1398611181: '1765349785_1560571_1398611044_f764e9ec7113f1b02499b88117db1bdc_rle_crop_4064103097_0.png', 1398611529: '1765350087_1586471_1398611197_dad86b00f63c617bd8721e7c26cda8a3_rle_crop_4064105235_0.png', 1398611266: '1765349947_1571399_1398610959_cb1027c154fcbaf2531846dbce10969d_rle_crop_4064102878_0.png', 1398611265: '1765349947_1571399_1398610965_594a1886964d5d6fdc6cbd045c17a2ce_rle_crop_4064102845_0.png', 1398611264: '1765349947_1571399_1398610968_6533a6d6cf62ea5bda9e1fb95d934a06_rle_crop_4064102836_0.png', 1398611238: '1765349826_1563815_1398611018_7405700d2521daef9cf2c0d44448384c_rle_crop_4064103655_0.png', 1398611237: '1765349826_1563815_1398611018_7405700d2521daef9cf2c0d44448384c_rle_crop_4064103654_0.png', 1398611236: '1765349826_1563815_1398611024_2f9bdaddd8b93e0b0a55469671ab7895_rle_crop_4064103625_0.png', 1398611235: '1765349826_1563815_1398611067_34177133c52c22d7f9ae3a2a2fe69205_rle_crop_4064103590_0.png', 1398611234: '1765349826_1563815_1398611067_34177133c52c22d7f9ae3a2a2fe69205_rle_crop_4064103589_0.png', 1398611232: '1765349826_1563815_1398611070_81d6a3b01f8ae9db4c48ec03d8d9fdb5_rle_crop_4064103548_0.png', 1398611221: '1765349846_1564853_1398610985_fa943176823ca994039845f7467a3b64_rle_crop_4064102616_0.png', 1398611003: '1765349465_1545215_1398610867_38d2a2ac341356b2651a08c79743774c_rle_crop_4064102149_0.png', 1398611180: '1765349785_1560571_1398611045_76b4ef37cc4642dfcac34b7d55f9083a_rle_crop_4064103074_0.png', 1398611179: '1765349785_1560571_1398611045_76b4ef37cc4642dfcac34b7d55f9083a_rle_crop_4064103084_0.png', 1398611178: '1765349785_1560571_1398611045_76b4ef37cc4642dfcac34b7d55f9083a_rle_crop_4064103073_0.png', 1398611177: '1765349785_1560571_1398611048_0ec8a16b1873b1915afff914e4a4d8f1_rle_crop_4064103047_0.png', 1398611153: '1765349726_1557559_1398610959_cb1027c154fcbaf2531846dbce10969d_rle_crop_4064102878_0.png', 1398611152: '1765349726_1557559_1398610965_594a1886964d5d6fdc6cbd045c17a2ce_rle_crop_4064102845_0.png', 1398611151: '1765349726_1557559_1398610968_6533a6d6cf62ea5bda9e1fb95d934a06_rle_crop_4064102836_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/6918f34116e34439ba1092e596e7c6e9_44664791.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/87c265b81b66418287c878db4f2cc8e7_62700580.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/ab860d3f644e93058acc03ad3758e9f5_17063444.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/32a81d6a84eeb370842698c21969acc9_43580942.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/98bea6c76b79a75ee4d65b9b1838dee6_83106828.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/d4d132c4a388a4b0e70942129e33ebca_95241533.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/6d6abec1f7190eeaad4506541cde94d6_97598843.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/143d25d26a5bb5bca85032cebc2cc58a_35266903.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/d4d132c4a388a4b0e70942129e33ebca_23158719.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/6d6abec1f7190eeaad4506541cde94d6_96142629.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/143d25d26a5bb5bca85032cebc2cc58a_70189305.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/8d0a35b382b2224c5586d563f0b429e4_85910449.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/a4b8c779a53d94799328dde00431d458_94032079.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/704eb87274d019b1a3f08031a24b4157_67345285.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/90112c1d0c2182a658aec2c8e6610cac_22115849.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/173d64eeec97ca5a4f40fad75b7be382_12244123.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/4e6854a7b58b991c64f174201351dc1b_31800861.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/ab860d3f644e93058acc03ad3758e9f5_241741.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/32a81d6a84eeb370842698c21969acc9_20407780.png change filename to text .imagette292900861765350179/ imagette292900861765350179/1765349465_1545215_1398610867_38d2a2ac341356b2651a08c79743774c_rle_crop_4064102149_0.png.png imagette292900861765350179/1765349826_1563815_1398611024_2f9bdaddd8b93e0b0a55469671ab7895_rle_crop_4064103625_0.png.png imagette292900861765350179/1765349785_1560571_1398611045_76b4ef37cc4642dfcac34b7d55f9083a_rle_crop_4064103074_0.png.png imagette292900861765350179/1765349785_1560571_1398611044_f764e9ec7113f1b02499b88117db1bdc_rle_crop_4064103097_0.png.png imagette292900861765350179/1765349826_1563815_1398611018_7405700d2521daef9cf2c0d44448384c_rle_crop_4064103654_0.png.png imagette292900861765350179/1765349826_1563815_1398611067_34177133c52c22d7f9ae3a2a2fe69205_rle_crop_4064103589_0.png.png imagette292900861765350179/1765349947_1571399_1398610965_594a1886964d5d6fdc6cbd045c17a2ce_rle_crop_4064102845_0.png.png imagette292900861765350179/1765349785_1560571_1398611045_76b4ef37cc4642dfcac34b7d55f9083a_rle_crop_4064103084_0.png.png imagette292900861765350179/1765349947_1571399_1398610959_cb1027c154fcbaf2531846dbce10969d_rle_crop_4064102878_0.png.png imagette292900861765350179/1765349947_1571399_1398610968_6533a6d6cf62ea5bda9e1fb95d934a06_rle_crop_4064102836_0.png.png imagette292900861765350179/1765349785_1560571_1398611048_0ec8a16b1873b1915afff914e4a4d8f1_rle_crop_4064103047_0.png.png imagette292900861765350179/1765349726_1557559_1398610959_cb1027c154fcbaf2531846dbce10969d_rle_crop_4064102878_0.png.png imagette292900861765350179/1765349826_1563815_1398611067_34177133c52c22d7f9ae3a2a2fe69205_rle_crop_4064103590_0.png.png imagette292900861765350179/1765349846_1564853_1398610985_fa943176823ca994039845f7467a3b64_rle_crop_4064102616_0.png.png imagette292900861765350179/1765349826_1563815_1398611070_81d6a3b01f8ae9db4c48ec03d8d9fdb5_rle_crop_4064103548_0.png.png imagette292900861765350179/1765349785_1560571_1398611045_76b4ef37cc4642dfcac34b7d55f9083a_rle_crop_4064103073_0.png.png imagette292900861765350179/1765349826_1563815_1398611018_7405700d2521daef9cf2c0d44448384c_rle_crop_4064103655_0.png.png imagette292900861765350179/1765349726_1557559_1398610965_594a1886964d5d6fdc6cbd045c17a2ce_rle_crop_4064102845_0.png.png imagette292900861765350179/1765349726_1557559_1398610968_6533a6d6cf62ea5bda9e1fb95d934a06_rle_crop_4064102836_0.png.png imagette292900861765350179/1765350087_1586471_1398611197_dad86b00f63c617bd8721e7c26cda8a3_rle_crop_4064105235_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/98bea6c76b79a75ee4d65b9b1838dee6_77377422.png imagette292900861765350179 29290087 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=29290087 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1398611059: '1765349585_1551628_1398610931_79ff66ec4e3082b3d4c7d736944c06a9_rle_crop_4064102311_0.png', 1398611161: '1765349726_1557559_1398610959_cb1027c154fcbaf2531846dbce10969d_rle_crop_4064102880_0.png', 1398611271: '1765349947_1571399_1398610959_cb1027c154fcbaf2531846dbce10969d_rle_crop_4064102880_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/c1339df48a50408c4a7739ffac740e0a_96702107.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/42d9645b585e19c3ba0bb12bae6d4e6e_84988310.png change filename to text .imagette292900871765350181/ imagette292900871765350181/1765349726_1557559_1398610959_cb1027c154fcbaf2531846dbce10969d_rle_crop_4064102880_0.png.png imagette292900871765350181/1765349585_1551628_1398610931_79ff66ec4e3082b3d4c7d736944c06a9_rle_crop_4064102311_0.png.png imagette292900871765350181/1765349947_1571399_1398610959_cb1027c154fcbaf2531846dbce10969d_rle_crop_4064102880_0.png.png imagette292900881765350181/ wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/42d9645b585e19c3ba0bb12bae6d4e6e_77765882.png imagette292900871765350181 29290088 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=29290088 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette292900881765350181 29290092 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=29290092 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1398611057: '1765349585_1551628_1398610931_79ff66ec4e3082b3d4c7d736944c06a9_rle_crop_4064102309_0.png', 1398611086: '1765349607_1552024_1398610914_19586e84d85d5498a18bf85dbd7dc181_rle_crop_4064102480_0.png', 1398611087: '1765349607_1552024_1398610905_5fcca05afd375d3d9652f925761b0d3b_rle_crop_4064102538_0.png', 1398611158: '1765349726_1557559_1398610965_594a1886964d5d6fdc6cbd045c17a2ce_rle_crop_4064102844_0.png', 1398611159: '1765349726_1557559_1398610962_546dbb686b0093d583e21bfb98a8d31e_rle_crop_4064102870_0.png', 1398611185: '1765349785_1560571_1398611048_0ec8a16b1873b1915afff914e4a4d8f1_rle_crop_4064103049_0.png', 1398611244: '1765349826_1563815_1398611069_030f14b138b9c426d3e56dfb20499a78_rle_crop_4064103572_0.png', 1398611245: '1765349826_1563815_1398611021_71fabb4e98e1cdfb4e2e42a0353b7612_rle_crop_4064103637_0.png', 1398611269: '1765349947_1571399_1398610965_594a1886964d5d6fdc6cbd045c17a2ce_rle_crop_4064102844_0.png', 1398611270: '1765349947_1571399_1398610962_546dbb686b0093d583e21bfb98a8d31e_rle_crop_4064102870_0.png', 1398611531: '1765350087_1586471_1398611197_dad86b00f63c617bd8721e7c26cda8a3_rle_crop_4064105239_0.png', 1398611575: '1765350148_1589886_1398611226_1c302f745b41760cb9d19590c12a4723_rle_crop_4064104995_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/1d5a087017acc9df172c776702d4cde2_66939425.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/2c999c00d735bf6cfc2fe970d645ee8f_14189118.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/c56231baf0843ff2af5b45bcf9e8586d_2107030.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/2b573104e814f693dbbb3f428c73ce6f_87634646.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/14c7e6de0fa2e4ddd501077a567dbedd_29719544.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/ca76c685e11b429db49a9b2ffa54aee2_17750714.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/fe82edd197479074f304a26a54deb27e_64655890.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/fe82edd197479074f304a26a54deb27e_35404659.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/2b573104e814f693dbbb3f428c73ce6f_67985303.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/14c7e6de0fa2e4ddd501077a567dbedd_48173557.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/5f4fdb8303c0fa6f60234fceba65b705_26522837.png change filename to text .imagette292900921765350181/ imagette292900921765350181/1765349785_1560571_1398611048_0ec8a16b1873b1915afff914e4a4d8f1_rle_crop_4064103049_0.png.png imagette292900921765350181/1765349607_1552024_1398610905_5fcca05afd375d3d9652f925761b0d3b_rle_crop_4064102538_0.png.png imagette292900921765350181/1765349726_1557559_1398610965_594a1886964d5d6fdc6cbd045c17a2ce_rle_crop_4064102844_0.png.png imagette292900921765350181/1765350087_1586471_1398611197_dad86b00f63c617bd8721e7c26cda8a3_rle_crop_4064105239_0.png.png imagette292900921765350181/1765349585_1551628_1398610931_79ff66ec4e3082b3d4c7d736944c06a9_rle_crop_4064102309_0.png.png imagette292900921765350181/1765349826_1563815_1398611021_71fabb4e98e1cdfb4e2e42a0353b7612_rle_crop_4064103637_0.png.png imagette292900921765350181/1765349947_1571399_1398610965_594a1886964d5d6fdc6cbd045c17a2ce_rle_crop_4064102844_0.png.png imagette292900921765350181/1765349826_1563815_1398611069_030f14b138b9c426d3e56dfb20499a78_rle_crop_4064103572_0.png.png imagette292900921765350181/1765349607_1552024_1398610914_19586e84d85d5498a18bf85dbd7dc181_rle_crop_4064102480_0.png.png imagette292900921765350181/1765350148_1589886_1398611226_1c302f745b41760cb9d19590c12a4723_rle_crop_4064104995_0.png.png imagette292900921765350181/1765349947_1571399_1398610962_546dbb686b0093d583e21bfb98a8d31e_rle_crop_4064102870_0.png.png imagette292900921765350181/1765349726_1557559_1398610962_546dbb686b0093d583e21bfb98a8d31e_rle_crop_4064102870_0.png.png wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/c4d0d83fc42b8c8f42c220d778ad835f_83130411.png imagette292900921765350181 29290093 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=29290093 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1398610997: '1765349465_1545215_1398610869_a49dbf92136e3e0cb7ff11d417c3a7ed_rle_crop_4064102142_0.png', 1398610998: '1765349465_1545215_1398610867_38d2a2ac341356b2651a08c79743774c_rle_crop_4064102150_0.png', 1398611012: '1765349485_1546439_1398610828_dc8d92c968c91236fa90f1427b370625_rle_crop_4064102207_0.png', 1398611055: '1765349585_1551628_1398610931_79ff66ec4e3082b3d4c7d736944c06a9_rle_crop_4064102312_0.png', 1398611076: '1765349607_1552024_1398610911_96e729c79c0d7b55031c8e8b7b9b770a_rle_crop_4064102501_0.png', 1398611132: '1765349705_1557127_1398610986_aba6e838a57701c44226c930af26d515_rle_crop_4064102604_0.png', 1398611145: '1765349726_1557559_1398610965_594a1886964d5d6fdc6cbd045c17a2ce_rle_crop_4064102851_0.png', 1398611147: '1765349726_1557559_1398610959_cb1027c154fcbaf2531846dbce10969d_rle_crop_4064102884_0.png', 1398611175: '1765349785_1560571_1398611048_0ec8a16b1873b1915afff914e4a4d8f1_rle_crop_4064103044_0.png', 1398611217: '1765349846_1564853_1398610986_aba6e838a57701c44226c930af26d515_rle_crop_4064102604_0.png', 1398611229: '1765349826_1563815_1398611070_81d6a3b01f8ae9db4c48ec03d8d9fdb5_rle_crop_4064103554_0.png', 1398611230: '1765349826_1563815_1398611024_2f9bdaddd8b93e0b0a55469671ab7895_rle_crop_4064103631_0.png', 1398611260: '1765349947_1571399_1398610965_594a1886964d5d6fdc6cbd045c17a2ce_rle_crop_4064102851_0.png', 1398611261: '1765349947_1571399_1398610959_cb1027c154fcbaf2531846dbce10969d_rle_crop_4064102884_0.png', 1398611479: '1765350087_1586471_1398611194_45340ac494ba4f614f672a317eeb7724_rle_crop_4064105253_0.png', 1398611480: '1765350087_1586471_1398611194_45340ac494ba4f614f672a317eeb7724_rle_crop_4064105252_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/046d4da42ca9b065644f84869e119b4d_23646557.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/ea53b8013c5ba1d42074e52db9c46abb_32934773.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/e938cf4d17bbd10c51678d608b0fa883_58229044.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/fa4ccace5a9e99d5a0fcf1a877e8c13a_96985104.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/387343370f889864263d65796e886e35_71755078.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/d9a998a0088c9e12d1a577caa4c9e524_86895318.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/fe2cf4c0ee95ab7bf6b9bba3adac5afd_48275547.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/abb255fd5cb0a9fb21ca80aab4950848_13023919.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/ada8407b3da48cc6af195f2141fd868a_92524340.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/d9a998a0088c9e12d1a577caa4c9e524_408594.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/06c1c7c890b04cd4e7ede325feef1506_67915758.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/06c1c7c890b04cd4e7ede325feef1506_48182879.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/fe2cf4c0ee95ab7bf6b9bba3adac5afd_67523736.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/abb255fd5cb0a9fb21ca80aab4950848_35408465.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/a39177e05bafb756cb826abac5acfd02_43556486.png change filename to text .imagette292900931765350182/ imagette292900931765350182/1765350087_1586471_1398611194_45340ac494ba4f614f672a317eeb7724_rle_crop_4064105252_0.png.png imagette292900931765350182/1765349826_1563815_1398611070_81d6a3b01f8ae9db4c48ec03d8d9fdb5_rle_crop_4064103554_0.png.png imagette292900931765350182/1765349846_1564853_1398610986_aba6e838a57701c44226c930af26d515_rle_crop_4064102604_0.png.png imagette292900931765350182/1765349607_1552024_1398610911_96e729c79c0d7b55031c8e8b7b9b770a_rle_crop_4064102501_0.png.png imagette292900931765350182/1765349726_1557559_1398610959_cb1027c154fcbaf2531846dbce10969d_rle_crop_4064102884_0.png.png imagette292900931765350182/1765349465_1545215_1398610867_38d2a2ac341356b2651a08c79743774c_rle_crop_4064102150_0.png.png imagette292900931765350182/1765349485_1546439_1398610828_dc8d92c968c91236fa90f1427b370625_rle_crop_4064102207_0.png.png imagette292900931765350182/1765349826_1563815_1398611024_2f9bdaddd8b93e0b0a55469671ab7895_rle_crop_4064103631_0.png.png imagette292900931765350182/1765350087_1586471_1398611194_45340ac494ba4f614f672a317eeb7724_rle_crop_4064105253_0.png.png imagette292900931765350182/1765349785_1560571_1398611048_0ec8a16b1873b1915afff914e4a4d8f1_rle_crop_4064103044_0.png.png imagette292900931765350182/1765349465_1545215_1398610869_a49dbf92136e3e0cb7ff11d417c3a7ed_rle_crop_4064102142_0.png.png imagette292900931765350182/1765349947_1571399_1398610959_cb1027c154fcbaf2531846dbce10969d_rle_crop_4064102884_0.png.png imagette292900931765350182/1765349705_1557127_1398610986_aba6e838a57701c44226c930af26d515_rle_crop_4064102604_0.png.png imagette292900931765350182/1765349726_1557559_1398610965_594a1886964d5d6fdc6cbd045c17a2ce_rle_crop_4064102851_0.png.png imagette292900931765350182/1765349947_1571399_1398610965_594a1886964d5d6fdc6cbd045c17a2ce_rle_crop_4064102851_0.png.png imagette292900931765350182/1765349585_1551628_1398610931_79ff66ec4e3082b3d4c7d736944c06a9_rle_crop_4064102312_0.png.png wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/06e7762d9c62559a62ba62c94398998e_83943072.png imagette292900931765350182 29290090 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=29290090 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1398611000: '1765349465_1545215_1398610869_a49dbf92136e3e0cb7ff11d417c3a7ed_rle_crop_4064102147_0.png', 1398611001: '1765349465_1545215_1398610867_38d2a2ac341356b2651a08c79743774c_rle_crop_4064102158_0.png', 1398611078: '1765349607_1552024_1398610914_19586e84d85d5498a18bf85dbd7dc181_rle_crop_4064102483_0.png', 1398611079: '1765349607_1552024_1398610905_5fcca05afd375d3d9652f925761b0d3b_rle_crop_4064102524_0.png', 1398611148: '1765349726_1557559_1398610968_6533a6d6cf62ea5bda9e1fb95d934a06_rle_crop_4064102837_0.png', 1398611149: '1765349726_1557559_1398610965_594a1886964d5d6fdc6cbd045c17a2ce_rle_crop_4064102857_0.png', 1398611176: '1765349785_1560571_1398611044_f764e9ec7113f1b02499b88117db1bdc_rle_crop_4064103094_0.png', 1398611219: '1765349846_1564853_1398611084_9465a4b841d6bd47a127dac3ec89ea10_rle_crop_4064103484_0.png', 1398611220: '1765349846_1564853_1398611030_8b1bdb63abd13f1c0339348074e28bc2_rle_crop_4064103502_0.png', 1398611262: '1765349947_1571399_1398610968_6533a6d6cf62ea5bda9e1fb95d934a06_rle_crop_4064102837_0.png', 1398611263: '1765349947_1571399_1398610965_594a1886964d5d6fdc6cbd045c17a2ce_rle_crop_4064102857_0.png', 1398611497: '1765350087_1586471_1398611192_dabd7f712ef6171b00df55beb78432ea_rle_crop_4064105268_0.png', 1398611501: '1765350087_1586471_1398611192_dabd7f712ef6171b00df55beb78432ea_rle_crop_4064105275_0.png', 1398611505: '1765350087_1586471_1398611190_0c67dd3bba8c04000010c95c4c74f69b_rle_crop_4064105288_0.png', 1398611571: '1765350148_1589886_1398611226_1c302f745b41760cb9d19590c12a4723_rle_crop_4064104989_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/9abc36c051cb37145d343fd0d84e62be_2691668.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/18764d6114d6e6653b485d41582fb205_12444217.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/5494d7e0d19124462ed5a124a1cb5c87_4952581.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/cd696f7bd5a4c189d0bbe942fcbb49c7_9922029.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/44ac719091c0521b3452ce93bea6e180_84591638.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/de0b8fc09fe08a0b9753997df74c6381_92162288.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/2b35bad2e86981710b2ac040904ef96c_46162800.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/cb31a411eb48a049193a6a18a321833c_43483.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/cb31a411eb48a049193a6a18a321833c_86659321.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/44ac719091c0521b3452ce93bea6e180_98447980.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/de0b8fc09fe08a0b9753997df74c6381_8585649.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/53ef3bba285e28e634f0675ad4c447ad_27881547.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/42a3c8b46b3534876064740632703ef0_14884979.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/41aeaceb115ae9f296b430204030c869_52659815.png change filename to text .imagette292900901765350183/ imagette292900901765350183/1765349726_1557559_1398610965_594a1886964d5d6fdc6cbd045c17a2ce_rle_crop_4064102857_0.png.png imagette292900901765350183/1765349607_1552024_1398610914_19586e84d85d5498a18bf85dbd7dc181_rle_crop_4064102483_0.png.png imagette292900901765350183/1765349846_1564853_1398611030_8b1bdb63abd13f1c0339348074e28bc2_rle_crop_4064103502_0.png.png imagette292900901765350183/1765349947_1571399_1398610965_594a1886964d5d6fdc6cbd045c17a2ce_rle_crop_4064102857_0.png.png imagette292900901765350183/1765349947_1571399_1398610968_6533a6d6cf62ea5bda9e1fb95d934a06_rle_crop_4064102837_0.png.png imagette292900901765350183/1765349465_1545215_1398610869_a49dbf92136e3e0cb7ff11d417c3a7ed_rle_crop_4064102147_0.png.png imagette292900901765350183/1765349465_1545215_1398610867_38d2a2ac341356b2651a08c79743774c_rle_crop_4064102158_0.png.png imagette292900901765350183/1765350087_1586471_1398611190_0c67dd3bba8c04000010c95c4c74f69b_rle_crop_4064105288_0.png.png imagette292900901765350183/1765350087_1586471_1398611192_dabd7f712ef6171b00df55beb78432ea_rle_crop_4064105275_0.png.png imagette292900901765350183/1765349726_1557559_1398610968_6533a6d6cf62ea5bda9e1fb95d934a06_rle_crop_4064102837_0.png.png imagette292900901765350183/1765350148_1589886_1398611226_1c302f745b41760cb9d19590c12a4723_rle_crop_4064104989_0.png.png imagette292900901765350183/1765350087_1586471_1398611192_dabd7f712ef6171b00df55beb78432ea_rle_crop_4064105268_0.png.png imagette292900901765350183/1765349607_1552024_1398610905_5fcca05afd375d3d9652f925761b0d3b_rle_crop_4064102524_0.png.png imagette292900901765350183/1765349846_1564853_1398611084_9465a4b841d6bd47a127dac3ec89ea10_rle_crop_4064103484_0.png.png imagette292900901765350183/1765349785_1560571_1398611044_f764e9ec7113f1b02499b88117db1bdc_rle_crop_4064103094_0.png.png wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/d1a45bac01f02514af7721ef2358cfd7_92956583.png imagette292900901765350183 29290091 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=29290091 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1398611239: '1765349826_1563815_1398611067_34177133c52c22d7f9ae3a2a2fe69205_rle_crop_4064103593_0.png', 1398611573: '1765350148_1589886_1398611226_1c302f745b41760cb9d19590c12a4723_rle_crop_4064104988_0.png', 1398611572: '1765350148_1589886_1398611233_4f2a2c001cd1c8cd2a1939d5483556e2_rle_crop_4064104978_0.png', 1398611530: '1765350087_1586471_1398611246_f07ae8f6062ddb7ba641cc0ecd7382b4_rle_crop_4064105220_0.png', 1398611268: '1765349947_1571399_1398610959_cb1027c154fcbaf2531846dbce10969d_rle_crop_4064102889_0.png', 1398611267: '1765349947_1571399_1398610991_3f0169bb9867681f2ee10435c0063f23_rle_crop_4064102829_0.png', 1398611242: '1765349826_1563815_1398611018_7405700d2521daef9cf2c0d44448384c_rle_crop_4064103659_0.png', 1398611241: '1765349826_1563815_1398611018_7405700d2521daef9cf2c0d44448384c_rle_crop_4064103658_0.png', 1398611240: '1765349826_1563815_1398611067_34177133c52c22d7f9ae3a2a2fe69205_rle_crop_4064103594_0.png', 1398611004: '1765349465_1545215_1398610867_38d2a2ac341356b2651a08c79743774c_rle_crop_4064102151_0.png', 1398611183: '1765349785_1560571_1398611045_76b4ef37cc4642dfcac34b7d55f9083a_rle_crop_4064103085_0.png', 1398611182: '1765349785_1560571_1398611045_76b4ef37cc4642dfcac34b7d55f9083a_rle_crop_4064103081_0.png', 1398611157: '1765349726_1557559_1398610959_cb1027c154fcbaf2531846dbce10969d_rle_crop_4064102889_0.png', 1398611156: '1765349726_1557559_1398610991_3f0169bb9867681f2ee10435c0063f23_rle_crop_4064102829_0.png', 1398611083: '1765349607_1552024_1398610905_5fcca05afd375d3d9652f925761b0d3b_rle_crop_4064102536_0.png', 1398611082: '1765349607_1552024_1398610905_5fcca05afd375d3d9652f925761b0d3b_rle_crop_4064102530_0.png', 1398611005: '1765349465_1545215_1398610867_38d2a2ac341356b2651a08c79743774c_rle_crop_4064102155_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/4ed22a8be50e8735c14c73a24ea8e2bf_85820811.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/720a5665d63d8e7554262bac639a7893_74754719.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/ba15996e59493a425ffe82191944afdd_72952740.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/98deee6938933d7cc06dafb64167eea1_77218278.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/6a00a48c72c26ea0a5193f71c181e1d2_63198413.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/e788c152e6c06f11edfb7eef52d57106_11307681.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/3a3bb901c02490f07ad32a8c00914b81_6173107.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/4ed22a8be50e8735c14c73a24ea8e2bf_93396563.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/3a3bb901c02490f07ad32a8c00914b81_1402808.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/ba31f3a47634cf3df62fb0a4e05a8d62_77912318.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/4a4555b610c2cb5df6c2996a0826b3cd_21272803.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/88c5e3fb31184f0b42336f92eb7c68c9_4937615.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/6a00a48c72c26ea0a5193f71c181e1d2_51211306.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/e788c152e6c06f11edfb7eef52d57106_88244759.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/ec358634869d716b045a5e3edc9d3e87_37745174.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/bc1304e92d82a9331a0b722e68572cfa_2759911.png change filename to text .imagette292900911765350184/ imagette292900911765350184/1765349726_1557559_1398610991_3f0169bb9867681f2ee10435c0063f23_rle_crop_4064102829_0.png.png imagette292900911765350184/1765349947_1571399_1398610991_3f0169bb9867681f2ee10435c0063f23_rle_crop_4064102829_0.png.png imagette292900911765350184/1765349947_1571399_1398610959_cb1027c154fcbaf2531846dbce10969d_rle_crop_4064102889_0.png.png imagette292900911765350184/1765350148_1589886_1398611233_4f2a2c001cd1c8cd2a1939d5483556e2_rle_crop_4064104978_0.png.png imagette292900911765350184/1765349826_1563815_1398611018_7405700d2521daef9cf2c0d44448384c_rle_crop_4064103658_0.png.png imagette292900911765350184/1765349826_1563815_1398611067_34177133c52c22d7f9ae3a2a2fe69205_rle_crop_4064103593_0.png.png imagette292900911765350184/1765349726_1557559_1398610959_cb1027c154fcbaf2531846dbce10969d_rle_crop_4064102889_0.png.png imagette292900911765350184/1765350148_1589886_1398611226_1c302f745b41760cb9d19590c12a4723_rle_crop_4064104988_0.png.png imagette292900911765350184/1765349785_1560571_1398611045_76b4ef37cc4642dfcac34b7d55f9083a_rle_crop_4064103081_0.png.png imagette292900911765350184/1765349607_1552024_1398610905_5fcca05afd375d3d9652f925761b0d3b_rle_crop_4064102536_0.png.png imagette292900911765350184/1765349826_1563815_1398611018_7405700d2521daef9cf2c0d44448384c_rle_crop_4064103659_0.png.png imagette292900911765350184/1765349785_1560571_1398611045_76b4ef37cc4642dfcac34b7d55f9083a_rle_crop_4064103085_0.png.png imagette292900911765350184/1765349465_1545215_1398610867_38d2a2ac341356b2651a08c79743774c_rle_crop_4064102151_0.png.png imagette292900911765350184/1765350087_1586471_1398611246_f07ae8f6062ddb7ba641cc0ecd7382b4_rle_crop_4064105220_0.png.png imagette292900911765350184/1765349607_1552024_1398610905_5fcca05afd375d3d9652f925761b0d3b_rle_crop_4064102530_0.png.png imagette292900911765350184/1765349826_1563815_1398611067_34177133c52c22d7f9ae3a2a2fe69205_rle_crop_4064103594_0.png.png imagette292900911765350184/1765349465_1545215_1398610867_38d2a2ac341356b2651a08c79743774c_rle_crop_4064102155_0.png.png wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/a75eb42abeae7d44619bfac768fc8de5_34711302.png imagette292900911765350184 29290094 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=29290094 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1398611212: '1765349846_1564853_1398611084_9465a4b841d6bd47a127dac3ec89ea10_rle_crop_4064103488_0.png', 1398611570: '1765350148_1589886_1398611224_a462455f35683061e961ea5a1cb468a5_rle_crop_4064105001_0.png', 1398611569: '1765350148_1589886_1398611233_4f2a2c001cd1c8cd2a1939d5483556e2_rle_crop_4064104975_0.png', 1398611477: '1765350087_1586471_1398611194_45340ac494ba4f614f672a317eeb7724_rle_crop_4064105255_0.png', 1398611259: '1765349947_1571399_1398610959_cb1027c154fcbaf2531846dbce10969d_rle_crop_4064102890_0.png', 1398611258: '1765349947_1571399_1398610991_3f0169bb9867681f2ee10435c0063f23_rle_crop_4064102830_0.png', 1398611228: '1765349826_1563815_1398611027_ced1f7b1f1dbe71f725fed64feb32957_rle_crop_4064103608_0.png', 1398611227: '1765349826_1563815_1398611075_d9e4aea19e669528c0d39d3edddbfa7e_rle_crop_4064103525_0.png', 1398611216: '1765349846_1564853_1398610985_fa943176823ca994039845f7467a3b64_rle_crop_4064102612_0.png', 1398611214: '1765349846_1564853_1398611030_8b1bdb63abd13f1c0339348074e28bc2_rle_crop_4064103506_0.png', 1398610996: '1765349465_1545215_1398610866_94db0027539c0b0590615fee50f3f209_rle_crop_4064102167_0.png', 1398611174: '1765349785_1560571_1398611046_dc313af9c4173444f4369e3ea96df1f2_rle_crop_4064103059_0.png', 1398611173: '1765349785_1560571_1398611048_0ec8a16b1873b1915afff914e4a4d8f1_rle_crop_4064103046_0.png', 1398611142: '1765349726_1557559_1398610959_cb1027c154fcbaf2531846dbce10969d_rle_crop_4064102890_0.png', 1398611141: '1765349726_1557559_1398610991_3f0169bb9867681f2ee10435c0063f23_rle_crop_4064102830_0.png', 1398611131: '1765349705_1557127_1398610985_fa943176823ca994039845f7467a3b64_rle_crop_4064102612_0.png', 1398611074: '1765349607_1552024_1398610908_460ad646ea02b774e398c31ba57d12e0_rle_crop_4064102511_0.png', 1398611073: '1765349607_1552024_1398610908_460ad646ea02b774e398c31ba57d12e0_rle_crop_4064102515_0.png', 1398611072: '1765349607_1552024_1398610911_96e729c79c0d7b55031c8e8b7b9b770a_rle_crop_4064102498_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/d4bbea018f9ae83608a95d14a2f3c160_26484062.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/bce1e28d88ee5dcd49f80f71490837b8_72848550.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/54affe12922af33bda381a4cb1a02bd2_78016262.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/299a792615bb70685c5cf488dea222dd_51004534.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/81b4c77b04180459ed478da20c406f55_93583226.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/fef10eab5a0129981d17b07db9ef8c86_84402930.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/bd20587dac7ebedf350b0fc06b17f421_26917452.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/bd20587dac7ebedf350b0fc06b17f421_56700950.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/c577a0b1109b2b2d2b5dc19d93369eb5_36513096.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/d4bbea018f9ae83608a95d14a2f3c160_17159187.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/65919e6575517cffea0cbc7110e2d67f_13388185.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/781ffbedf0fd2a0bb24bdeed9ebc4b7d_42322425.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/f7afc69ecd280746b194dd90f0821d31_38924207.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/81b4c77b04180459ed478da20c406f55_89817980.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/fef10eab5a0129981d17b07db9ef8c86_94024891.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/c577a0b1109b2b2d2b5dc19d93369eb5_71675569.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/ad633c311bb1fd0cdb0c2059d1797eb0_13617893.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/bd790afcfb2700cee6ac9c8e8e47ab83_70056677.png change filename to text .imagette292900941765350185/ imagette292900941765350185/1765350148_1589886_1398611224_a462455f35683061e961ea5a1cb468a5_rle_crop_4064105001_0.png.png imagette292900941765350185/1765350148_1589886_1398611233_4f2a2c001cd1c8cd2a1939d5483556e2_rle_crop_4064104975_0.png.png imagette292900941765350185/1765349726_1557559_1398610959_cb1027c154fcbaf2531846dbce10969d_rle_crop_4064102890_0.png.png imagette292900941765350185/1765349607_1552024_1398610908_460ad646ea02b774e398c31ba57d12e0_rle_crop_4064102515_0.png.png imagette292900941765350185/1765349826_1563815_1398611027_ced1f7b1f1dbe71f725fed64feb32957_rle_crop_4064103608_0.png.png imagette292900941765350185/1765349846_1564853_1398611084_9465a4b841d6bd47a127dac3ec89ea10_rle_crop_4064103488_0.png.png imagette292900941765350185/1765349846_1564853_1398611030_8b1bdb63abd13f1c0339348074e28bc2_rle_crop_4064103506_0.png.png imagette292900941765350185/1765349846_1564853_1398610985_fa943176823ca994039845f7467a3b64_rle_crop_4064102612_0.png.png imagette292900941765350185/1765349726_1557559_1398610991_3f0169bb9867681f2ee10435c0063f23_rle_crop_4064102830_0.png.png imagette292900941765350185/1765349947_1571399_1398610991_3f0169bb9867681f2ee10435c0063f23_rle_crop_4064102830_0.png.png imagette292900941765350185/1765349705_1557127_1398610985_fa943176823ca994039845f7467a3b64_rle_crop_4064102612_0.png.png imagette292900941765350185/1765349947_1571399_1398610959_cb1027c154fcbaf2531846dbce10969d_rle_crop_4064102890_0.png.png imagette292900941765350185/1765349465_1545215_1398610866_94db0027539c0b0590615fee50f3f209_rle_crop_4064102167_0.png.png imagette292900941765350185/1765349785_1560571_1398611048_0ec8a16b1873b1915afff914e4a4d8f1_rle_crop_4064103046_0.png.png imagette292900941765350185/1765349826_1563815_1398611075_d9e4aea19e669528c0d39d3edddbfa7e_rle_crop_4064103525_0.png.png imagette292900941765350185/1765349607_1552024_1398610911_96e729c79c0d7b55031c8e8b7b9b770a_rle_crop_4064102498_0.png.png imagette292900941765350185/1765350087_1586471_1398611194_45340ac494ba4f614f672a317eeb7724_rle_crop_4064105255_0.png.png imagette292900941765350185/1765349785_1560571_1398611046_dc313af9c4173444f4369e3ea96df1f2_rle_crop_4064103059_0.png.png imagette292900941765350185/1765349607_1552024_1398610908_460ad646ea02b774e398c31ba57d12e0_rle_crop_4064102511_0.png.png wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/2d57fb1f93bfe76d3cb6089c8e6bdee8_42515368.png imagette292900941765350185 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=29290079 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/29290096,29290097,29290098,29290099,29290100,29290101,29290102,29290103,29290104,29290105,29290106,29290107?tags=papier,metal,mal_croppe,cartonnette,kraft,flou,environnement,Carton_gris,Carton_brun,plastique,autre_refus,Teint_Dans_La_Masse your option no_mail is active, we will not send the real mail to your client args[1398611358] : ('0.04993413662820763',) no score found for photo 1398611358 We are sending mail with results at report@fotonower.com args[1398611307] : ('0.04993413662820763',) no score found for photo 1398611307 We are sending mail with results at report@fotonower.com args[1398611305] : ('0.04993413662820763',) no score found for photo 1398611305 We are sending mail with results at report@fotonower.com args[1398611303] : ('0.04993413662820763',) no score found for photo 1398611303 We are sending mail with results at report@fotonower.com args[1398611302] : ('0.04993413662820763',) no score found for photo 1398611302 We are sending mail with results at report@fotonower.com args[1398611300] : ('0.04993413662820763',) no score found for photo 1398611300 We are sending mail with results at report@fotonower.com args[1398611289] : ('0.04993413662820763',) no score found for photo 1398611289 We are sending mail with results at report@fotonower.com args[1398611287] : ('0.04993413662820763',) no score found for photo 1398611287 We are sending mail with results at report@fotonower.com args[1398611284] : ('0.04993413662820763',) no score found for photo 1398611284 We are sending mail with results at report@fotonower.com args[1398611281] : ('0.04993413662820763',) no score found for photo 1398611281 We are sending mail with results at report@fotonower.com args[1398611279] : ('0.04993413662820763',) no score found for photo 1398611279 We are sending mail with results at report@fotonower.com args[1398611278] : ('0.04993413662820763',) no score found for photo 1398611278 We are sending mail with results at report@fotonower.com refus_total : 0.04993413662820763 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=29290079 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_P29290079_10-12-2025_08_02_59.pdf results_Auto_P29290079_10-12-2025_08_02_59.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29290079_10-12-2025_08_02_59.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','29290079','results_Auto_P29290079_10-12-2025_08_02_59.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29290079_10-12-2025_08_02_59.pdf','pdf','','0.33','0.04993413662820763') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29290079]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1398611358, 1398611307, 1398611305, 1398611303, 1398611302, 1398611300, 1398611289, 1398611287, 1398611284, 1398611281, 1398611279, 1398611278] map_info['map_portfolio_photo'] : {29290079: [1398611358, 1398611307, 1398611305, 1398611303, 1398611302, 1398611300, 1398611289, 1398611287, 1398611284, 1398611281, 1398611279, 1398611278, 1398611246, 1398611233, 1398611226, 1398611224, 1398611200, 1398611197, 1398611194, 1398611192, 1398611190, 1398611187, 1398611165, 1398611163, 1398611160, 1398611150, 1398611127, 1398611124, 1398611122, 1398611120, 1398611118, 1398611104, 1398611101, 1398611098, 1398611096, 1398611084, 1398611075, 1398611070, 1398611069, 1398611067, 1398611054, 1398611051, 1398611048, 1398611046, 1398611045, 1398611044, 1398611030, 1398611027, 1398611024, 1398611021, 1398611018, 1398611015, 1398610991, 1398610988, 1398610987, 1398610986, 1398610985, 1398610971, 1398610968, 1398610965, 1398610962, 1398610959, 1398610956, 1398610935, 1398610933, 1398610931, 1398610930, 1398610916, 1398610914, 1398610911, 1398610908, 1398610905, 1398610874, 1398610871, 1398610869, 1398610867, 1398610866, 1398610828]} final : False mtd_id 4302 list_pids : [1398611358, 1398611307, 1398611305, 1398611303, 1398611302, 1398611300, 1398611289, 1398611287, 1398611284, 1398611281, 1398611279, 1398611278] 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, '4202123') ('4302', '29290079', '1398611358', None, None, None, None, None, '4202123') ('4302', None, None, None, None, None, None, None, '4202123') ('4302', '29290079', '1398611307', None, None, None, None, None, '4202123') ('4302', None, None, None, None, None, None, None, '4202123') ('4302', '29290079', '1398611305', None, None, None, None, None, '4202123') ('4302', None, None, None, None, None, None, None, '4202123') ('4302', '29290079', '1398611303', None, None, None, None, None, '4202123') ('4302', None, None, None, None, None, None, None, '4202123') ('4302', '29290079', '1398611302', None, None, None, None, None, '4202123') ('4302', None, None, None, None, None, None, None, '4202123') ('4302', '29290079', '1398611300', None, None, None, None, None, '4202123') ('4302', None, None, None, None, None, None, None, '4202123') ('4302', '29290079', '1398611289', None, None, None, None, None, '4202123') ('4302', None, None, None, None, None, None, None, '4202123') ('4302', '29290079', '1398611287', None, None, None, None, None, '4202123') ('4302', None, None, None, None, None, None, None, '4202123') ('4302', '29290079', '1398611284', None, None, None, None, None, '4202123') ('4302', None, None, None, None, None, None, None, '4202123') ('4302', '29290079', '1398611281', None, None, None, None, None, '4202123') ('4302', None, None, None, None, None, None, None, '4202123') ('4302', '29290079', '1398611279', None, None, None, None, None, '4202123') ('4302', None, None, None, None, None, None, None, '4202123') ('4302', '29290079', '1398611278', None, None, None, None, None, '4202123') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 12 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', '29290079', '1398611358', None, None, None, None, None, '4202123'), ('4302', '29290079', '1398611307', None, None, None, None, None, '4202123'), ('4302', '29290079', '1398611305', None, None, None, None, None, '4202123'), ('4302', '29290079', '1398611303', None, None, None, None, None, '4202123'), ('4302', '29290079', '1398611302', None, None, None, None, None, '4202123'), ('4302', '29290079', '1398611300', None, None, None, None, None, '4202123'), ('4302', '29290079', '1398611289', None, None, None, None, None, '4202123'), ('4302', '29290079', '1398611287', None, None, None, None, None, '4202123'), ('4302', '29290079', '1398611284', None, None, None, None, None, '4202123'), ('4302', '29290079', '1398611281', None, None, None, None, None, '4202123'), ('4302', '29290079', '1398611279', None, None, None, None, None, '4202123'), ('4302', '29290079', '1398611278', None, None, None, None, None, '4202123')] time used for this insertion : 0.015755653381347656 save_final save missing photos in datou_result : time spend for datou_step_exec : 9.61165165901184 time spend to save output : 0.016050338745117188 total time spend for step 4 : 9.627701997756958 step5:split_time_score Wed Dec 10 08:03:08 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 : ['29290079'] 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 : [('29290079',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29290079) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1398611284: {'path': 'temp/1765350179_3685500_1398611284_be779f4c82a8a9207573e9c58fff341d.jpg', 'extension': 'jpg'}, 1398611287: {'path': 'temp/1765350179_3685500_1398611287_22e61792fca95490a0a57e627d9ecc47.jpg', 'extension': 'jpg'}, 1398611289: {'path': 'temp/1765350179_3685500_1398611289_b6afd9907dadf633340f8972de087717.jpg', 'extension': 'jpg'}, 1398611305: {'path': 'temp/1765350179_3685500_1398611305_37d5eae5b26f1b7d16d3153180beb780.jpg', 'extension': 'jpg'}, 1398611307: {'path': 'temp/1765350179_3685500_1398611307_21f47da94f15bfe27b37cb4f8a499a5c.jpg', 'extension': 'jpg'}, 1398611358: {'path': 'temp/1765350179_3685500_1398611358_ff3c7f84b712d7c589dd64cd69fd51b5.jpg', 'extension': 'jpg'}, 1398611278: {'path': 'temp/1765350179_3685500_1398611278_a767a9d77de07e5a29e065a7eac0bcc1.jpg', 'extension': 'jpg'}, 1398611279: {'path': 'temp/1765350179_3685500_1398611279_3edc3ca407b432217510e14cff4a714d.jpg', 'extension': 'jpg'}, 1398611281: {'path': 'temp/1765350179_3685500_1398611281_6b36a446729c4c7510fe5d853cacefcd.jpg', 'extension': 'jpg'}, 1398611300: {'path': 'temp/1765350179_3685500_1398611300_bb753caf6dd649710b60ea3f6a7bec7f.jpg', 'extension': 'jpg'}, 1398611302: {'path': 'temp/1765350179_3685500_1398611302_6dae3a5f51d22d66275c7ec12c33b29b.jpg', 'extension': 'jpg'}, 1398611303: {'path': 'temp/1765350179_3685500_1398611303_c7e495be1d3e8597e33f92a4f4b3de10.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 = 29290079; (('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 = 29290079 group by h (('07', 78),) 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=29290079 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 (29290079) 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 (29290079) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 10122025 29290079 Nombre de photos uploadées : 78 / 23040 (0%) 10122025 29290079 Nombre de photos taguées (types de déchets): 0 / 78 (0%) 10122025 29290079 Nombre de photos taguées (volume) : 0 / 78 (0%) [{'photo_id': 1398610828, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/dc8d92c968c91236fa90f1427b370625.jpg', 'username': None, 'uploaded_at': 1765349167, 'text': 'image_10122025_07_45_34_010140m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1398610874, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/ad6d4a6664d639350fbed9624383a82a.jpg', 'username': None, 'uploaded_at': 1765349227, 'text': 'image_10122025_07_45_44_010140m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1398610871, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/409cc75d9843cf46a24d305d06b67609.jpg', 'username': None, 'uploaded_at': 1765349227, 'text': 'image_10122025_07_46_13_010138m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1398610869, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/a49dbf92136e3e0cb7ff11d417c3a7ed.jpg', 'username': None, 'uploaded_at': 1765349227, 'text': 'image_10122025_07_46_23_010132m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 2.1457672119140625e-06 elapsed_time : order_list_meta_photo_and_scores 5.9604644775390625e-06 ?????????????????????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0036306381225585938 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 29290079, '2025-12-10' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); Catched exception ! Connect or reconnect ! INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2712863,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.24822735786437988 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= 2712863 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2712863, 'dashboard_run_id': 2721505, 'mtr_portfolio_id': 29283133, 'dashboard_result_id': 18196725, '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_P29283133_10-12-2025_06_07_29.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29283134, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29283135, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29283136, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29283137, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29283138, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29283139, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29283140, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29283141, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29283142, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29283143, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29283144, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29283145, 'pht': 3726}}"}, {'dashboat_entry_day': 2712863, 'dashboard_run_id': 2721505, 'mtr_portfolio_id': 29283507, 'dashboard_result_id': 18196726, '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_P29283507_10-12-2025_06_07_57.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29283508, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29283509, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29283510, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29283511, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29283512, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29283513, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29283514, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29283515, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29283516, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29283517, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29283518, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29283519, 'pht': 3726}}"}, {'dashboat_entry_day': 2712863, 'dashboard_run_id': 2721505, 'mtr_portfolio_id': 29283563, 'dashboard_result_id': 18196727, '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_P29283563_10-12-2025_06_08_30.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29283564, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29283565, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29283566, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29283567, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29283568, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29283569, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29283570, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29283571, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29283572, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29283573, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29283574, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29283575, 'pht': 3726}}"}, {'dashboat_entry_day': 2712863, 'dashboard_run_id': 2721505, 'mtr_portfolio_id': 29283646, 'dashboard_result_id': 18196728, '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_P29283646_10-12-2025_06_09_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29283647, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29283648, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29283649, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29283650, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29283651, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29283652, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29283653, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29283654, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29283655, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29283656, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29283657, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29283658, 'pht': 3726}}"}, {'dashboat_entry_day': 2712863, 'dashboard_run_id': 2721505, 'mtr_portfolio_id': 29284551, 'dashboard_result_id': 18196729, '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_P29284551_10-12-2025_06_10_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29284552, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29284553, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29284554, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29284555, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29284556, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29284557, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29284558, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29284559, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29284560, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29284561, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29284562, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29284563, 'pht': 3726}}"}, {'dashboat_entry_day': 2712863, 'dashboard_run_id': 2721505, 'mtr_portfolio_id': 29284712, 'dashboard_result_id': 18196730, '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_P29284712_10-12-2025_06_10_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29284719, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29284720, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29284721, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29284722, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29284723, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29284724, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29284725, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29284726, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29284727, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29284728, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29284729, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29284730, 'pht': 3726}}"}, {'dashboat_entry_day': 2712863, 'dashboard_run_id': 2721505, 'mtr_portfolio_id': 29285136, 'dashboard_result_id': 18196731, '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_P29285136_10-12-2025_06_10_40.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29285139, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29285140, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29285141, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29285142, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29285143, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29285144, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29285145, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29285146, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29285147, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29285148, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29285149, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29285150, 'pht': 3726}}"}, {'dashboat_entry_day': 2712863, 'dashboard_run_id': 2721505, 'mtr_portfolio_id': 29285345, 'dashboard_result_id': 18196732, '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_P29285345_10-12-2025_06_11_16.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29285348, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29285349, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29285350, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29285351, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29285352, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29285353, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29285354, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29285355, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29285356, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29285357, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29285358, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29285359, 'pht': 3726}}"}, {'dashboat_entry_day': 2712863, 'dashboard_run_id': 2721505, 'mtr_portfolio_id': 29285732, 'dashboard_result_id': 18196733, '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_P29285732_10-12-2025_05_46_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29285738, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29285739, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29285740, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29285741, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29285742, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29285743, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29285744, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29285745, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29285746, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29285747, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29285748, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29285749, 'pht': 3726}}"}, {'dashboat_entry_day': 2712863, 'dashboard_run_id': 2721505, 'mtr_portfolio_id': 29286087, 'dashboard_result_id': 18196734, '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_P29286087_10-12-2025_06_03_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29286095, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29286096, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29286097, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29286098, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29286099, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29286100, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29286101, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29286102, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29286103, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29286104, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29286105, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29286106, 'pht': 3726}}"}, {'dashboat_entry_day': 2712863, 'dashboard_run_id': 2721505, 'mtr_portfolio_id': 29286524, 'dashboard_result_id': 18196735, '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_P29286524_10-12-2025_06_19_29.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29286543, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29286544, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29286545, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29286546, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29286547, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29286548, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29286549, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29286550, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29286551, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29286552, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29286553, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29286554, 'pht': 3726}}"}, {'dashboat_entry_day': 2712863, 'dashboard_run_id': 2721505, 'mtr_portfolio_id': 29287284, 'dashboard_result_id': 18196736, '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_P29287284_10-12-2025_06_32_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29287289, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29287290, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29287291, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29287292, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29287293, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29287294, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29287295, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29287296, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29287297, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29287298, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29287299, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29287300, 'pht': 3726}}"}, {'dashboat_entry_day': 2712863, 'dashboard_run_id': 2721505, 'mtr_portfolio_id': 29287755, 'dashboard_result_id': 18196737, '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_P29287755_10-12-2025_06_49_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29287757, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29287758, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29287759, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29287760, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29287761, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29287762, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29287763, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29287764, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29287765, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29287766, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29287767, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29287768, 'pht': 3726}}"}, {'dashboat_entry_day': 2712863, 'dashboard_run_id': 2721505, 'mtr_portfolio_id': 29288227, 'dashboard_result_id': 18196738, '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_P29288227_10-12-2025_07_04_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29288244, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29288245, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29288246, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29288247, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29288248, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29288249, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29288250, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29288251, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29288252, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29288253, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29288254, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29288255, 'pht': 3726}}"}, {'dashboat_entry_day': 2712863, 'dashboard_run_id': 2721505, 'mtr_portfolio_id': 29288571, 'dashboard_result_id': 18196739, '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_P29288571_10-12-2025_07_18_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29288596, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29288597, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29288598, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29288599, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29288600, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29288601, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29288602, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29288603, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29288604, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29288605, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29288606, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29288607, 'pht': 3726}}"}, {'dashboat_entry_day': 2712863, 'dashboard_run_id': 2721505, 'mtr_portfolio_id': 29289197, 'dashboard_result_id': 18196740, '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_P29289197_10-12-2025_07_33_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29289205, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29289206, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29289207, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29289208, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29289209, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29289210, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29289211, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29289212, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29289213, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29289214, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29289215, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29289216, 'pht': 3726}}"}, {'dashboat_entry_day': 2712863, 'dashboard_run_id': 2721505, 'mtr_portfolio_id': 29289576, 'dashboard_result_id': 18196741, '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_P29289576_10-12-2025_07_47_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29289602, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29289603, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29289604, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29289605, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29289606, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29289607, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29289608, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29289609, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29289610, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29289611, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29289612, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29289613, 'pht': 3726}}"}, {'dashboat_entry_day': 2712863, 'dashboard_run_id': 2721505, 'mtr_portfolio_id': 29290079, 'dashboard_result_id': 18196742, '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_P29290079_10-12-2025_07_58_31.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29290083, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29290084, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29290085, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29290086, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29290087, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29290088, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29290089, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29290090, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29290091, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29290092, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29290093, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29290094, '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 = 29283133 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': 4201514, 'mtr_portfolio_id': 29283133, 'created_at': datetime.datetime(2025, 12, 10, 6, 7, 29), 'result': '0.010678362266960811', 'result_long': None, 'result_double': None}] Qualite : 0.010678362266960811 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29283133 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29283133_10-12-2025_06_07_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29283133 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_P29283133_10-12-2025_06_07_29.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29283134, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29283135, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29283136, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29283137, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29283138, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29283139, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29283140, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29283141, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29283142, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29283143, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29283144, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29283145, 'pht': 3726}}" where mtr_portfolio_id = 29283133 and dashboard_run_id = 2721505 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`=29283133 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18196725, 0.010678362266960811, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29283133_10-12-2025_06_07_29.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29283134, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29283135, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29283136, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29283137, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29283138, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29283139, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29283140, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29283141, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29283142, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29283143, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29283144, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29283145, '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 = 29283507 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': 4201515, 'mtr_portfolio_id': 29283507, 'created_at': datetime.datetime(2025, 12, 10, 6, 7, 56), 'result': '0.060292920952775546', 'result_long': None, 'result_double': None}] Qualite : 0.060292920952775546 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29283507 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29283507_10-12-2025_06_07_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29283507 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_P29283507_10-12-2025_06_07_57.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29283508, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29283509, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29283510, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29283511, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29283512, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29283513, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29283514, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29283515, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29283516, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29283517, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29283518, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29283519, 'pht': 3726}}" where mtr_portfolio_id = 29283507 and dashboard_run_id = 2721505 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`=29283507 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18196726, 0.060292920952775546, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29283507_10-12-2025_06_07_57.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29283508, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29283509, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29283510, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29283511, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29283512, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29283513, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29283514, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29283515, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29283516, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29283517, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29283518, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29283519, '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 = 29283563 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': 4201516, 'mtr_portfolio_id': 29283563, 'created_at': datetime.datetime(2025, 12, 10, 6, 8, 29), 'result': '0.05437533202236932', 'result_long': None, 'result_double': None}] Qualite : 0.05437533202236932 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29283563 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29283563_10-12-2025_06_08_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29283563 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_P29283563_10-12-2025_06_08_30.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29283564, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29283565, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29283566, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29283567, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29283568, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29283569, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29283570, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29283571, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29283572, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29283573, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29283574, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29283575, 'pht': 3726}}" where mtr_portfolio_id = 29283563 and dashboard_run_id = 2721505 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`=29283563 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18196727, 0.05437533202236932, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29283563_10-12-2025_06_08_30.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29283564, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29283565, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29283566, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29283567, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29283568, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29283569, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29283570, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29283571, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29283572, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29283573, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29283574, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29283575, '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 = 29283646 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': 4201517, 'mtr_portfolio_id': 29283646, 'created_at': datetime.datetime(2025, 12, 10, 6, 9, 30), 'result': '0.035229902913867295', 'result_long': None, 'result_double': None}] Qualite : 0.035229902913867295 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29283646 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29283646_10-12-2025_06_09_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29283646 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_P29283646_10-12-2025_06_09_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29283647, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29283648, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29283649, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29283650, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29283651, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29283652, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29283653, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29283654, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29283655, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29283656, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29283657, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29283658, 'pht': 3726}}" where mtr_portfolio_id = 29283646 and dashboard_run_id = 2721505 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`=29283646 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18196728, 0.035229902913867295, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29283646_10-12-2025_06_09_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29283647, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29283648, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29283649, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29283650, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29283651, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29283652, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29283653, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29283654, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29283655, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29283656, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29283657, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29283658, '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 = 29284551 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': 4201518, 'mtr_portfolio_id': 29284551, 'created_at': datetime.datetime(2025, 12, 10, 6, 9, 59), 'result': '0.12040949980131724', 'result_long': None, 'result_double': None}] Qualite : 0.12040949980131724 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29284551 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29284551_10-12-2025_06_10_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29284551 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_P29284551_10-12-2025_06_10_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29284552, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29284553, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29284554, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29284555, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29284556, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29284557, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29284558, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29284559, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29284560, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29284561, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29284562, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29284563, 'pht': 3726}}" where mtr_portfolio_id = 29284551 and dashboard_run_id = 2721505 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`=29284551 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18196729, 0.12040949980131724, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29284551_10-12-2025_06_10_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29284552, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29284553, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29284554, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29284555, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29284556, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29284557, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29284558, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29284559, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29284560, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29284561, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29284562, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29284563, '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 = 29284712 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': 4201519, 'mtr_portfolio_id': 29284712, 'created_at': datetime.datetime(2025, 12, 10, 6, 10, 30), 'result': '0.08618908751612969', 'result_long': None, 'result_double': None}] Qualite : 0.08618908751612969 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29284712 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29284712_10-12-2025_06_10_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29284712 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_P29284712_10-12-2025_06_10_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29284719, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29284720, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29284721, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29284722, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29284723, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29284724, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29284725, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29284726, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29284727, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29284728, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29284729, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29284730, 'pht': 3726}}" where mtr_portfolio_id = 29284712 and dashboard_run_id = 2721505 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`=29284712 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18196730, 0.08618908751612969, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29284712_10-12-2025_06_10_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29284719, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29284720, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29284721, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29284722, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29284723, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29284724, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29284725, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29284726, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29284727, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29284728, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29284729, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29284730, '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 = 29285136 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': 4201520, 'mtr_portfolio_id': 29285136, 'created_at': datetime.datetime(2025, 12, 10, 6, 10, 38), 'result': '0.061449803204952656', 'result_long': None, 'result_double': None}] Qualite : 0.061449803204952656 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29285136 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29285136_10-12-2025_06_10_40.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29285136 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_P29285136_10-12-2025_06_10_40.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29285139, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29285140, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29285141, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29285142, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29285143, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29285144, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29285145, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29285146, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29285147, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29285148, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29285149, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29285150, 'pht': 3726}}" where mtr_portfolio_id = 29285136 and dashboard_run_id = 2721505 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`=29285136 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18196731, 0.061449803204952656, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29285136_10-12-2025_06_10_40.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29285139, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29285140, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29285141, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29285142, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29285143, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29285144, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29285145, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29285146, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29285147, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29285148, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29285149, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29285150, '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 = 29285345 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': 4201521, 'mtr_portfolio_id': 29285345, 'created_at': datetime.datetime(2025, 12, 10, 6, 11, 13), 'result': '0.0449976319961059', 'result_long': None, 'result_double': None}] Qualite : 0.0449976319961059 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29285345 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29285345_10-12-2025_06_11_16.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29285345 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_P29285345_10-12-2025_06_11_16.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29285348, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29285349, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29285350, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29285351, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29285352, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29285353, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29285354, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29285355, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29285356, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29285357, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29285358, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29285359, 'pht': 3726}}" where mtr_portfolio_id = 29285345 and dashboard_run_id = 2721505 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`=29285345 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18196732, 0.0449976319961059, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29285345_10-12-2025_06_11_16.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29285348, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29285349, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29285350, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29285351, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29285352, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29285353, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29285354, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29285355, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29285356, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29285357, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29285358, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29285359, '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 = 29285732 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': 4201445, 'mtr_portfolio_id': 29285732, 'created_at': datetime.datetime(2025, 12, 10, 5, 46, 59), 'result': '0.04341877282480353', 'result_long': None, 'result_double': None}] Qualite : 0.04341877282480353 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29285732 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29285732_10-12-2025_05_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29285732 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_P29285732_10-12-2025_05_46_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29285738, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29285739, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29285740, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29285741, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29285742, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29285743, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29285744, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29285745, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29285746, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29285747, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29285748, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29285749, 'pht': 3726}}" where mtr_portfolio_id = 29285732 and dashboard_run_id = 2721505 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`=29285732 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18196733, 0.04341877282480353, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29285732_10-12-2025_05_46_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29285738, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29285739, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29285740, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29285741, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29285742, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29285743, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29285744, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29285745, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29285746, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29285747, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29285748, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29285749, '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 = 29286087 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': 4201629, 'mtr_portfolio_id': 29286087, 'created_at': datetime.datetime(2025, 12, 10, 6, 2, 59), 'result': '0.05901750348886181', 'result_long': None, 'result_double': None}] Qualite : 0.05901750348886181 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29286087 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29286087_10-12-2025_06_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29286087 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_P29286087_10-12-2025_06_03_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29286095, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29286096, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29286097, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29286098, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29286099, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29286100, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29286101, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29286102, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29286103, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29286104, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29286105, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29286106, 'pht': 3726}}" where mtr_portfolio_id = 29286087 and dashboard_run_id = 2721505 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`=29286087 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18196734, 0.05901750348886181, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29286087_10-12-2025_06_03_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29286095, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29286096, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29286097, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29286098, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29286099, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29286100, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29286101, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29286102, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29286103, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29286104, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29286105, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29286106, '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 = 29286524 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': 4201716, 'mtr_portfolio_id': 29286524, 'created_at': datetime.datetime(2025, 12, 10, 6, 19, 28), 'result': '0.03694767199211665', 'result_long': None, 'result_double': None}] Qualite : 0.03694767199211665 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29286524 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29286524_10-12-2025_06_19_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29286524 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_P29286524_10-12-2025_06_19_29.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29286543, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29286544, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29286545, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29286546, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29286547, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29286548, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29286549, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29286550, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29286551, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29286552, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29286553, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29286554, 'pht': 3726}}" where mtr_portfolio_id = 29286524 and dashboard_run_id = 2721505 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`=29286524 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18196735, 0.03694767199211665, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29286524_10-12-2025_06_19_29.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29286543, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29286544, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29286545, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29286546, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29286547, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29286548, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29286549, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29286550, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29286551, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29286552, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29286553, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29286554, '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 = 29287284 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': 4201767, 'mtr_portfolio_id': 29287284, 'created_at': datetime.datetime(2025, 12, 10, 6, 32, 58), 'result': '0.04863824767530533', 'result_long': None, 'result_double': None}] Qualite : 0.04863824767530533 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29287284 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29287284_10-12-2025_06_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29287284 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_P29287284_10-12-2025_06_32_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29287289, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29287290, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29287291, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29287292, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29287293, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29287294, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29287295, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29287296, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29287297, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29287298, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29287299, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29287300, 'pht': 3726}}" where mtr_portfolio_id = 29287284 and dashboard_run_id = 2721505 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`=29287284 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18196736, 0.04863824767530533, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29287284_10-12-2025_06_32_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29287289, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29287290, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29287291, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29287292, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29287293, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29287294, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29287295, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29287296, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29287297, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29287298, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29287299, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29287300, '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 = 29287755 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': 4201830, 'mtr_portfolio_id': 29287755, 'created_at': datetime.datetime(2025, 12, 10, 6, 49, 1), 'result': '0.04821815271660753', 'result_long': None, 'result_double': None}] Qualite : 0.04821815271660753 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29287755 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29287755_10-12-2025_06_49_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29287755 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_P29287755_10-12-2025_06_49_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29287757, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29287758, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29287759, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29287760, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29287761, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29287762, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29287763, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29287764, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29287765, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29287766, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29287767, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29287768, 'pht': 3726}}" where mtr_portfolio_id = 29287755 and dashboard_run_id = 2721505 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`=29287755 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18196737, 0.04821815271660753, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29287755_10-12-2025_06_49_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29287757, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29287758, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29287759, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29287760, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29287761, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29287762, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29287763, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29287764, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29287765, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29287766, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29287767, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29287768, '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 = 29288227 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': 4201883, 'mtr_portfolio_id': 29288227, 'created_at': datetime.datetime(2025, 12, 10, 7, 4, 31), 'result': '0.058907813621285', 'result_long': None, 'result_double': None}] Qualite : 0.058907813621285 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29288227 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29288227_10-12-2025_07_04_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29288227 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_P29288227_10-12-2025_07_04_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29288244, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29288245, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29288246, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29288247, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29288248, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29288249, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29288250, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29288251, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29288252, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29288253, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29288254, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29288255, 'pht': 3726}}" where mtr_portfolio_id = 29288227 and dashboard_run_id = 2721505 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`=29288227 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18196738, 0.058907813621285, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29288227_10-12-2025_07_04_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29288244, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29288245, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29288246, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29288247, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29288248, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29288249, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29288250, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29288251, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29288252, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29288253, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29288254, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29288255, '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 = 29288571 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': 4201955, 'mtr_portfolio_id': 29288571, 'created_at': datetime.datetime(2025, 12, 10, 7, 18, 58), 'result': '0.05470042017544461', 'result_long': None, 'result_double': None}] Qualite : 0.05470042017544461 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29288571 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29288571_10-12-2025_07_18_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29288571 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_P29288571_10-12-2025_07_18_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29288596, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29288597, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29288598, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29288599, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29288600, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29288601, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29288602, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29288603, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29288604, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29288605, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29288606, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29288607, 'pht': 3726}}" where mtr_portfolio_id = 29288571 and dashboard_run_id = 2721505 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`=29288571 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18196739, 0.05470042017544461, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29288571_10-12-2025_07_18_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29288596, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29288597, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29288598, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29288599, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29288600, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29288601, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29288602, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29288603, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29288604, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29288605, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29288606, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29288607, '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 = 29289197 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': 4202010, 'mtr_portfolio_id': 29289197, 'created_at': datetime.datetime(2025, 12, 10, 7, 33, 31), 'result': '0.04106621773170499', 'result_long': None, 'result_double': None}] Qualite : 0.04106621773170499 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29289197 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29289197_10-12-2025_07_33_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29289197 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_P29289197_10-12-2025_07_33_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29289205, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29289206, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29289207, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29289208, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29289209, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29289210, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29289211, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29289212, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29289213, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29289214, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29289215, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29289216, 'pht': 3726}}" where mtr_portfolio_id = 29289197 and dashboard_run_id = 2721502 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`=29289197 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18196740, 0.04106621773170499, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29289197_10-12-2025_07_33_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29289205, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29289206, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29289207, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29289208, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29289209, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29289210, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29289211, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29289212, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29289213, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29289214, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29289215, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29289216, '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 = 29289576 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': 4202063, 'mtr_portfolio_id': 29289576, 'created_at': datetime.datetime(2025, 12, 10, 7, 46, 59), 'result': '0.03737762999254662', 'result_long': None, 'result_double': None}] Qualite : 0.03737762999254662 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29289576 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29289576_10-12-2025_07_47_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29289576 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_P29289576_10-12-2025_07_47_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29289602, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29289603, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29289604, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29289605, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29289606, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29289607, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29289608, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29289609, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29289610, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29289611, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29289612, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29289613, 'pht': 3726}}" where mtr_portfolio_id = 29289576 and dashboard_run_id = 2721502 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`=29289576 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18196741, 0.03737762999254662, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29289576_10-12-2025_07_47_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29289602, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29289603, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29289604, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29289605, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29289606, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29289607, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29289608, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29289609, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29289610, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29289611, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29289612, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29289613, '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 = 29290079 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': 4202123, 'mtr_portfolio_id': 29290079, 'created_at': datetime.datetime(2025, 12, 10, 8, 2, 58), 'result': '0.04993413662820763', 'result_long': None, 'result_double': None}] Qualite : 0.04993413662820763 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29290079 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29290079_10-12-2025_08_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29290079 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_P29290079_10-12-2025_08_02_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29290083, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29290084, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29290085, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29290086, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29290087, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29290088, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29290089, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29290090, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29290091, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29290092, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29290093, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29290094, 'pht': 3726}}" where mtr_portfolio_id = 29290079 and dashboard_run_id = 2721502 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`=29290079 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18196742, 0.04993413662820763, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29290079_10-12-2025_08_02_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29290083, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29290084, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29290085, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29290086, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29290087, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29290088, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29290089, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29290090, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29290091, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29290092, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29290093, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29290094, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29283133,29283507,29283563,29283646,29284551,29284712,29285136,29285345,29285732,29286087,29286524,29287284,29287755,29288227,29288571,29289197,29289576,29290079) result : ((1398578619,), (1398579570,), (1398579942,), (1398581226,), (1398582557,), (1398582769,), (1398582809,), (1398583350,), (1398583552,), (1398583569,), (1398583937,), (1398583950,), (1398583982,), (1398584042,), (1398584061,), (1398584083,), (1398584100,), (1398584133,), (1398584198,), (1398584213,), (1398584215,), (1398584250,), (1398584252,), (1398584320,), (1398584358,), (1398584471,), (1398584473,), (1398584490,), (1398584510,), (1398584511,), (1398584526,), (1398584529,), (1398584568,), (1398584607,), (1398588536,), (1398592466,), (1398592469,), (1398592472,), (1398592576,), (1398592580,), (1398592633,), (1398593633,), (1398593977,), (1398594020,), (1398594022,), (1398594036,), (1398594038,), (1398594054,), (1398594097,), (1398594165,), (1398594177,), (1398594213,), (1398594264,), (1398596363,), (1398596383,), (1398596385,), (1398596399,), (1398596402,), (1398596418,), (1398596420,), (1398596474,), (1398596490,), (1398596505,), (1398596528,), (1398596530,), (1398596532,), (1398596547,), (1398596549,), (1398596571,), (1398596574,), (1398596576,), (1398596592,), (1398596594,), (1398596596,), (1398596600,), (1398596604,), (1398596609,), (1398596627,), (1398596629,), (1398596686,), (1398596683,), (1398596684,), (1398596685,), (1398596705,), (1398596707,), (1398596709,), (1398596710,), (1398596713,), (1398596716,), (1398596730,), (1398596732,), (1398596734,), (1398596736,), (1398596751,), (1398596754,), (1398596756,), (1398596758,), (1398596761,), (1398596764,), (1398596774,), (1398596777,), (1398596779,), (1398596782,), (1398596784,), (1398596796,), (1398596799,), (1398596801,), (1398596803,), (1398596805,), (1398596830,), (1398596831,), (1398596833,), (1398596835,), (1398596838,), (1398596841,), (1398596863,), (1398596867,), (1398596871,), (1398596877,), (1398596882,), (1398596884,), (1398596892,), (1398596895,), (1398596922,), (1398596927,), (1398596948,), (1398596951,), (1398596954,), (1398596957,), (1398596959,), (1398596960,), (1398596970,), (1398596972,), (1398596974,), (1398596976,), (1398597026,), (1398597029,), (1398597030,), (1398597031,), (1398597034,), (1398597037,), (1398597048,), (1398597050,), (1398597053,), (1398597056,), (1398597060,), (1398597078,), (1398597080,), (1398597082,), (1398597085,), (1398597088,), (1398597091,), (1398597101,), (1398597103,), (1398597105,), (1398597131,), (1398597132,), (1398597134,), (1398597135,), (1398597138,), (1398597142,), (1398597162,), (1398597149,), (1398597156,), (1398597159,), (1398597215,), (1398597219,), (1398597220,), (1398597221,), (1398597224,), (1398597227,), (1398597238,), (1398597241,), (1398597244,), (1398597247,), (1398597275,), (1398597280,), (1398597282,), (1398597284,), (1398597287,), (1398597289,), (1398597300,), (1398597301,), (1398597302,), (1398597323,), (1398597326,), (1398597329,), (1398597332,), (1398597335,), (1398597337,), (1398597346,), (1398597348,), (1398597351,), (1398597352,), (1398597353,), (1398597355,), (1398597366,), (1398597376,), (1398597386,), (1398597393,), (1398597394,), (1398597395,), (1398597398,), (1398597401,), (1398597404,), (1398597412,), (1398597415,), (1398597418,), (1398597421,), (1398597424,), (1398597446,), (1398597448,), (1398597450,), (1398597452,), (1398597463,), (1398597465,), (1398597467,), (1398597469,), (1398597472,), (1398597491,), (1398597492,), (1398597497,), (1398597501,), (1398597515,), (1398597517,), (1398597519,), (1398597523,), (1398597527,), (1398597530,), (1398597541,), (1398597542,), (1398597543,), (1398597544,), (1398597560,), (1398597563,), (1398597566,), (1398597570,), (1398597582,), (1398597584,), (1398597587,), (1398597589,), (1398597592,), (1398597596,), (1398597637,), (1398597627,), (1398597635,), (1398597636,), (1398597653,), (1398597655,), (1398597657,), (1398597659,), (1398597662,), (1398597665,), (1398597688,), (1398597689,), (1398597691,), (1398597693,), (1398597695,), (1398597707,), (1398597709,), (1398597711,), (1398597713,), (1398597716,), (1398597718,), (1398597755,), (1398597757,), (1398597759,), (1398597777,), (1398597778,), (1398597779,), (1398597780,), (1398597783,), (1398597786,), (1398597811,), (1398597814,), (1398597817,), (1398597820,), (1398597823,), (1398597838,), (1398597839,), (1398597840,), (1398597841,), (1398597844,), (1398597847,), (1398597871,), (1398597874,), (1398597877,), (1398597880,), (1398597883,), (1398597899,), (1398597901,), (1398597904,), (1398597907,), (1398597910,), (1398597912,), (1398597940,), (1398597941,), (1398597943,), (1398597945,), (1398597948,), (1398597966,), (1398597969,), (1398597972,), (1398597974,), (1398597998,), (1398598001,), (1398598004,), (1398598007,), (1398598011,), (1398598014,), (1398598034,), (1398598040,), (1398598076,), (1398598112,), (1398598588,), (1398598546,), (1398599029,), (1398599068,), (1398599103,), (1398599140,), (1398599175,), (1398599260,), (1398599820,), (1398599855,), (1398599897,), (1398599933,), (1398599971,), (1398600008,), (1398600139,), (1398600193,), (1398600242,), (1398600309,), (1398600351,), (1398600499,), (1398600526,), (1398600530,), (1398600733,), (1398600779,), (1398600858,), (1398600925,), (1398601525,), (1398601557,), (1398601926,), (1398601929,), (1398601932,), (1398601936,), (1398602129,), (1398602166,), (1398602202,), (1398602242,), (1398602280,), (1398602741,), (1398602774,), (1398602812,), (1398602882,), (1398603433,), (1398603469,), (1398603511,), (1398603551,), (1398603596,), (1398603634,), (1398603881,), (1398603917,), (1398603977,), (1398604040,), (1398604098,), (1398604653,), (1398604672,), (1398604709,), (1398604718,), (1398604721,), (1398604749,), (1398604824,), (1398604826,), (1398604827,), (1398604828,), (1398604846,), (1398604848,), (1398604850,), (1398604854,), (1398604859,), (1398604860,), (1398605037,), (1398605073,), (1398605108,), (1398605145,), (1398605168,), (1398605172,), (1398605274,), (1398605265,), (1398605267,), (1398605269,), (1398605271,), (1398605301,), (1398605307,), (1398605309,), (1398605311,), (1398605314,), (1398605322,), (1398605339,), (1398605341,), (1398605344,), (1398605347,), (1398605349,), (1398605350,), (1398605352,), (1398605353,), (1398605356,), (1398605359,), (1398605366,), (1398605373,), (1398605374,), (1398605375,), (1398605377,), (1398605646,), (1398605741,), (1398605847,), (1398606105,), (1398606107,), (1398606109,), (1398606112,), (1398606150,), (1398606166,), (1398606168,), (1398606170,), (1398606172,), (1398606204,), (1398606206,), (1398606230,), (1398606231,), (1398606233,), (1398606235,), (1398606238,), (1398606263,), (1398606266,), (1398606268,), (1398606270,), (1398606273,), (1398606288,), (1398606290,), (1398606292,), (1398606294,), (1398606297,), (1398606300,), (1398606327,), (1398606336,), (1398606348,), (1398606350,), (1398606377,), (1398606378,), (1398606380,), (1398606382,), (1398606385,), (1398606388,), (1398606402,), (1398606405,), (1398606408,), (1398606411,), (1398606414,), (1398606438,), (1398606424,), (1398606427,), (1398606430,), (1398606433,), (1398606436,), (1398606462,), (1398606468,), (1398606473,), (1398606474,), (1398606477,), (1398606489,), (1398606492,), (1398606495,), (1398606498,), (1398606501,), (1398606503,), (1398606513,), (1398606514,), (1398606515,), (1398606519,), (1398606522,), (1398606527,), (1398606530,), (1398606532,), (1398606533,), (1398606540,), (1398606541,), (1398606543,), (1398606545,), (1398606547,), (1398606549,), (1398606584,), (1398606586,), (1398606588,), (1398606589,), (1398606592,), (1398606613,), (1398606617,), (1398606621,), (1398606625,), (1398606627,), (1398606629,), (1398606648,), (1398606651,), (1398606654,), (1398606656,), (1398606665,), (1398606681,), (1398606684,), (1398606687,), (1398606689,), (1398606693,), (1398606701,), (1398606703,), (1398606705,), (1398606707,), (1398606733,), (1398606737,), (1398606740,), (1398606743,), (1398606746,), (1398606749,), (1398606754,), (1398606756,), (1398606758,), (1398606760,), (1398606762,), (1398606763,), (1398606787,), (1398606797,), (1398606814,), (1398606816,), (1398606986,), (1398606967,), (1398606977,), (1398607002,), (1398607004,), (1398607007,), (1398607009,), (1398607021,), (1398607024,), (1398607027,), (1398607044,), (1398607047,), (1398607048,), (1398607050,), (1398607056,), (1398607071,), (1398607073,), (1398607076,), (1398607126,), (1398607128,), (1398607130,), (1398607148,), (1398607150,), (1398607153,), (1398607186,), (1398607187,), (1398607188,), (1398607189,), (1398607209,), (1398607210,), (1398607211,), (1398607212,), (1398607215,), (1398607218,), (1398607238,), (1398607240,), (1398607243,), (1398607261,), (1398607265,), (1398607269,), (1398607272,), (1398607274,), (1398607276,), (1398607281,), (1398607284,), (1398607286,), (1398607288,), (1398607290,), (1398607304,), (1398607293,), (1398607295,), (1398607299,), (1398607313,), (1398607314,), (1398607315,), (1398607317,), (1398607318,), (1398607344,), (1398607347,), (1398607383,), (1398607387,), (1398607422,), (1398607425,), (1398607472,), (1398607573,), (1398607577,), (1398607580,), (1398607597,), (1398608050,), (1398608084,), (1398608120,), (1398608156,), (1398608195,), (1398608232,), (1398608975,), (1398608977,), (1398608979,), (1398608981,), (1398609024,), (1398609234,), (1398609277,), (1398609316,), (1398609351,), (1398609528,), (1398609531,), (1398609534,), (1398609569,), (1398609603,), (1398609614,), (1398609637,), (1398609640,), (1398609642,), (1398609644,), (1398609666,), (1398609667,), (1398609669,), (1398609671,), (1398609674,), (1398609676,), (1398609703,), (1398609704,), (1398609706,), (1398609708,), (1398609711,), (1398609714,), (1398609724,), (1398609727,), (1398609731,), (1398609734,), (1398609748,), (1398609751,), (1398609754,), (1398609764,), (1398609773,), (1398609777,), (1398609801,), (1398609803,), (1398609805,), (1398609808,), (1398609811,), (1398609813,), (1398609821,), (1398609823,), (1398609825,), (1398609840,), (1398609842,), (1398609844,), (1398609847,), (1398609850,), (1398609851,), (1398609866,), (1398609868,), (1398609870,), (1398609874,), (1398609906,), (1398609891,), (1398609894,), (1398609897,), (1398609900,), (1398609903,), (1398609920,), (1398609923,), (1398609924,), (1398609925,), (1398609927,), (1398609978,), (1398609988,), (1398609990,), (1398609992,), (1398609995,), (1398609998,), (1398610007,), (1398610011,), (1398610014,), (1398610016,), (1398610019,), (1398610041,), (1398610043,), (1398610045,), (1398610047,), (1398610050,), (1398610074,), (1398610077,), (1398610079,), (1398610081,), (1398610084,), (1398610104,), (1398610106,), (1398610108,), (1398610110,), (1398610113,), (1398610127,), (1398610129,), (1398610131,), (1398610133,), (1398610136,), (1398610139,), (1398610167,), (1398610169,), (1398610171,), (1398610173,), (1398610176,), (1398610192,), (1398610194,), (1398610231,), (1398610234,), (1398610237,), (1398610240,), (1398610242,), (1398610245,), (1398610251,), (1398610255,), (1398610257,), (1398610259,), (1398610285,), (1398610286,), (1398610287,), (1398610288,), (1398610291,), (1398610294,), (1398610318,), (1398610321,), (1398610324,), (1398610328,), (1398610354,), (1398610358,), (1398610361,), (1398610365,), (1398610370,), (1398610373,), (1398610388,), (1398610384,), (1398610386,), (1398610410,), (1398610411,), (1398610412,), (1398610442,), (1398610444,), (1398610446,), (1398610469,), (1398610477,), (1398610479,), (1398610481,), (1398610484,), (1398610500,), (1398610502,), (1398610505,), (1398610508,), (1398610538,), (1398610539,), (1398610541,), (1398610543,), (1398610546,), (1398610549,), (1398610564,), (1398610567,), (1398610571,), (1398610574,), (1398610576,), (1398610578,), (1398610589,), (1398610591,), (1398610596,), (1398610598,), (1398610600,), (1398610606,), (1398610608,), (1398610610,), (1398610622,), (1398610624,), (1398610626,), (1398610628,), (1398610632,), (1398610636,), (1398610658,), (1398610661,), (1398610664,), (1398610667,), (1398610682,), (1398610684,), (1398610686,), (1398610689,), (1398610692,), (1398610696,), (1398610733,), (1398610735,), (1398610737,), (1398610740,), (1398610755,), (1398610757,), (1398610760,), (1398610764,), (1398610766,), (1398610769,), (1398610787,), (1398610792,), (1398610795,), (1398610831,), (1398610828,), (1398610866,), (1398610867,), (1398610869,), (1398610871,), (1398610874,), (1398610905,), (1398610908,), (1398610911,), (1398610914,), (1398610916,), (1398610930,), (1398610931,), (1398610933,), (1398610935,), (1398610956,), (1398610959,), (1398610962,), (1398610965,), (1398610968,), (1398610971,), (1398610985,), (1398610986,), (1398610987,), (1398610988,), (1398610991,), (1398611015,), (1398611018,), (1398611021,), (1398611024,), (1398611027,), (1398611030,), (1398611044,), (1398611045,), (1398611046,), (1398611048,), (1398611051,), (1398611054,), (1398611067,), (1398611069,), (1398611070,), (1398611075,), (1398611084,), (1398611096,), (1398611098,), (1398611101,), (1398611104,), (1398611118,), (1398611120,), (1398611122,), (1398611124,), (1398611127,), (1398611150,), (1398611160,), (1398611163,), (1398611165,), (1398611187,), (1398611190,), (1398611192,), (1398611194,), (1398611197,), (1398611200,), (1398611224,), (1398611226,), (1398611233,), (1398611246,), (1398611278,), (1398611279,), (1398611281,), (1398611284,), (1398611287,), (1398611289,), (1398611300,), (1398611302,), (1398611303,), (1398611305,), (1398611307,), (1398611358,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'10122025': {'nb_upload': 78, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29290079]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1398611358, 1398611307, 1398611305, 1398611303, 1398611302, 1398611300, 1398611289, 1398611287, 1398611284, 1398611281, 1398611279, 1398611278] map_info['map_portfolio_photo'] : {29290079: [1398611358, 1398611307, 1398611305, 1398611303, 1398611302, 1398611300, 1398611289, 1398611287, 1398611284, 1398611281, 1398611279, 1398611278, 1398611246, 1398611233, 1398611226, 1398611224, 1398611200, 1398611197, 1398611194, 1398611192, 1398611190, 1398611187, 1398611165, 1398611163, 1398611160, 1398611150, 1398611127, 1398611124, 1398611122, 1398611120, 1398611118, 1398611104, 1398611101, 1398611098, 1398611096, 1398611084, 1398611075, 1398611070, 1398611069, 1398611067, 1398611054, 1398611051, 1398611048, 1398611046, 1398611045, 1398611044, 1398611030, 1398611027, 1398611024, 1398611021, 1398611018, 1398611015, 1398610991, 1398610988, 1398610987, 1398610986, 1398610985, 1398610971, 1398610968, 1398610965, 1398610962, 1398610959, 1398610956, 1398610935, 1398610933, 1398610931, 1398610930, 1398610916, 1398610914, 1398610911, 1398610908, 1398610905, 1398610874, 1398610871, 1398610869, 1398610867, 1398610866, 1398610828]} final : True mtd_id 4302 list_pids : [1398611358, 1398611307, 1398611305, 1398611303, 1398611302, 1398611300, 1398611289, 1398611287, 1398611284, 1398611281, 1398611279, 1398611278] Looping around the photos to save general results len do output : 1 /29290079Didn'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, '4202123') ('4302', '29290079', '1398611358', None, None, None, None, None, '4202123') ('4302', None, None, None, None, None, None, None, '4202123') ('4302', '29290079', '1398611307', None, None, None, None, None, '4202123') ('4302', None, None, None, None, None, None, None, '4202123') ('4302', '29290079', '1398611305', None, None, None, None, None, '4202123') ('4302', None, None, None, None, None, None, None, '4202123') ('4302', '29290079', '1398611303', None, None, None, None, None, '4202123') ('4302', None, None, None, None, None, None, None, '4202123') ('4302', '29290079', '1398611302', None, None, None, None, None, '4202123') ('4302', None, None, None, None, None, None, None, '4202123') ('4302', '29290079', '1398611300', None, None, None, None, None, '4202123') ('4302', None, None, None, None, None, None, None, '4202123') ('4302', '29290079', '1398611289', None, None, None, None, None, '4202123') ('4302', None, None, None, None, None, None, None, '4202123') ('4302', '29290079', '1398611287', None, None, None, None, None, '4202123') ('4302', None, None, None, None, None, None, None, '4202123') ('4302', '29290079', '1398611284', None, None, None, None, None, '4202123') ('4302', None, None, None, None, None, None, None, '4202123') ('4302', '29290079', '1398611281', None, None, None, None, None, '4202123') ('4302', None, None, None, None, None, None, None, '4202123') ('4302', '29290079', '1398611279', None, None, None, None, None, '4202123') ('4302', None, None, None, None, None, None, None, '4202123') ('4302', '29290079', '1398611278', None, None, None, None, None, '4202123') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 13 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '29290079', 'None', None, None, None, None, '4202123'), ('4302', '29290079', '1398611358', None, None, None, None, None, '4202123'), ('4302', '29290079', '1398611307', None, None, None, None, None, '4202123'), ('4302', '29290079', '1398611305', None, None, None, None, None, '4202123'), ('4302', '29290079', '1398611303', None, None, None, None, None, '4202123'), ('4302', '29290079', '1398611302', None, None, None, None, None, '4202123'), ('4302', '29290079', '1398611300', None, None, None, None, None, '4202123'), ('4302', '29290079', '1398611289', None, None, None, None, None, '4202123'), ('4302', '29290079', '1398611287', None, None, None, None, None, '4202123'), ('4302', '29290079', '1398611284', None, None, None, None, None, '4202123'), ('4302', '29290079', '1398611281', None, None, None, None, None, '4202123'), ('4302', '29290079', '1398611279', None, None, None, None, None, '4202123'), ('4302', '29290079', '1398611278', None, None, None, None, None, '4202123')] time used for this insertion : 0.015016317367553711 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.5516681671142578 time spend to save output : 0.015237569808959961 total time spend for step 5 : 1.5669057369232178 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 (4202123) 2.43user 2.77system 0:16.20elapsed 32%CPU (0avgtext+0avgdata 166784maxresident)k 8inputs+21664outputs (0major+80488minor)pagefaults 0swaps