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 : 2805390 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 (3935365) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (3935365) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27772259 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['3935365'] with mtr_portfolio_ids : ['27772259'] and first list_photo_ids : [] new path : /proc/2805390/ Name: python3 Umask: 0002 State: R (running) Tgid: 2805390 Ngid: 0 Pid: 2805390 PPid: 2805389 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 2805390 NSpid: 2805390 NSpgid: 2804124 NSsid: 2804124 VmPeak: 1106868 kB VmSize: 1106868 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98012 kB VmRSS: 98012 kB RssAnon: 59852 kB RssFile: 38160 kB RssShmem: 0 kB VmData: 865620 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 600 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: 50 nonvoluntary_ctxt_switches: 86 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '2805390', 'Ngid': '0', 'Pid': '2805390', 'PPid': '2805389', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '2805390', 'NSpid': '2805390', 'NSpgid': '2804124', 'NSsid': '2804124', 'VmPeak': '1106868 kB', 'VmSize': '1106868 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98012 kB', 'VmRSS': '98012 kB', 'RssAnon': '59852 kB', 'RssFile': '38160 kB', 'RssShmem': '0 kB', 'VmData': '865620 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '600 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': '50', 'nonvoluntary_ctxt_switches': '86'} ('datou_batch_current', '2805390', '1106868', '0', '1106868', '865620', '98012', b'', 'marlene', '3935365') 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 (27772259) 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 (3935365 ) ) 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 (27772259) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1389286443, 'portfolio_id': 27772259}, {'photo_id': 1389286440, 'portfolio_id': 27772259}, {'photo_id': 1389286434, 'portfolio_id': 27772259}, {'photo_id': 1389286423, 'portfolio_id': 27772259}, {'photo_id': 1389286418, 'portfolio_id': 27772259}, {'photo_id': 1389286416, 'portfolio_id': 27772259}, {'photo_id': 1389286413, 'portfolio_id': 27772259}, {'photo_id': 1389286409, 'portfolio_id': 27772259}, {'photo_id': 1389286407, 'portfolio_id': 27772259}, {'photo_id': 1389286405, 'portfolio_id': 27772259}, {'photo_id': 1389286033, 'portfolio_id': 27772259}, {'photo_id': 1389286030, 'portfolio_id': 27772259}, {'photo_id': 1389286028, 'portfolio_id': 27772259}, {'photo_id': 1389286014, 'portfolio_id': 27772259}, {'photo_id': 1389285973, 'portfolio_id': 27772259}, {'photo_id': 1389285971, 'portfolio_id': 27772259}, {'photo_id': 1389285968, 'portfolio_id': 27772259}, {'photo_id': 1389285966, 'portfolio_id': 27772259}, {'photo_id': 1389285965, 'portfolio_id': 27772259}, {'photo_id': 1389285963, 'portfolio_id': 27772259}, {'photo_id': 1389285717, 'portfolio_id': 27772259}, {'photo_id': 1389285448, 'portfolio_id': 27772259}, {'photo_id': 1389285445, 'portfolio_id': 27772259}, {'photo_id': 1389285441, 'portfolio_id': 27772259}, {'photo_id': 1389285438, 'portfolio_id': 27772259}, {'photo_id': 1389285417, 'portfolio_id': 27772259}, {'photo_id': 1389285410, 'portfolio_id': 27772259}, {'photo_id': 1389285407, 'portfolio_id': 27772259}, {'photo_id': 1389285404, 'portfolio_id': 27772259}, {'photo_id': 1389285402, 'portfolio_id': 27772259}, {'photo_id': 1389285400, 'portfolio_id': 27772259}, {'photo_id': 1389285386, 'portfolio_id': 27772259}, {'photo_id': 1389285383, 'portfolio_id': 27772259}, {'photo_id': 1389285380, 'portfolio_id': 27772259}, {'photo_id': 1389285379, 'portfolio_id': 27772259}, {'photo_id': 1389285253, 'portfolio_id': 27772259}, {'photo_id': 1389285244, 'portfolio_id': 27772259}, {'photo_id': 1389285231, 'portfolio_id': 27772259}, {'photo_id': 1389285211, 'portfolio_id': 27772259}, {'photo_id': 1389285184, 'portfolio_id': 27772259}, {'photo_id': 1389285165, 'portfolio_id': 27772259}, {'photo_id': 1389285115, 'portfolio_id': 27772259}, {'photo_id': 1389285112, 'portfolio_id': 27772259}, {'photo_id': 1389285110, 'portfolio_id': 27772259}, {'photo_id': 1389285109, 'portfolio_id': 27772259}, {'photo_id': 1389285094, 'portfolio_id': 27772259}, {'photo_id': 1389285067, 'portfolio_id': 27772259}, {'photo_id': 1389285063, 'portfolio_id': 27772259}, {'photo_id': 1389285053, 'portfolio_id': 27772259}, {'photo_id': 1389285039, 'portfolio_id': 27772259}, {'photo_id': 1389285014, 'portfolio_id': 27772259}, {'photo_id': 1389284987, 'portfolio_id': 27772259}, {'photo_id': 1389284985, 'portfolio_id': 27772259}, {'photo_id': 1389284984, 'portfolio_id': 27772259}, {'photo_id': 1389284983, 'portfolio_id': 27772259}, {'photo_id': 1389284978, 'portfolio_id': 27772259}, {'photo_id': 1389284976, 'portfolio_id': 27772259}, {'photo_id': 1389284974, 'portfolio_id': 27772259}, {'photo_id': 1389284972, 'portfolio_id': 27772259}, {'photo_id': 1389284970, 'portfolio_id': 27772259}, {'photo_id': 1389284962, 'portfolio_id': 27772259}, {'photo_id': 1389284960, 'portfolio_id': 27772259}, {'photo_id': 1389284957, 'portfolio_id': 27772259}, {'photo_id': 1389284955, 'portfolio_id': 27772259}, {'photo_id': 1389284953, 'portfolio_id': 27772259}, {'photo_id': 1389284650, 'portfolio_id': 27772259}, {'photo_id': 1389284647, 'portfolio_id': 27772259}, {'photo_id': 1389284646, 'portfolio_id': 27772259}, {'photo_id': 1389284644, 'portfolio_id': 27772259}, {'photo_id': 1389284469, 'portfolio_id': 27772259}, {'photo_id': 1389284461, 'portfolio_id': 27772259}, {'photo_id': 1389284458, 'portfolio_id': 27772259}, {'photo_id': 1389284404, 'portfolio_id': 27772259}, {'photo_id': 1389284401, 'portfolio_id': 27772259}] map_portfolio_id_photo_id: {27772259: [1389286443, 1389286440, 1389286434, 1389286423, 1389286418, 1389286416, 1389286413, 1389286409, 1389286407, 1389286405, 1389286033, 1389286030, 1389286028, 1389286014, 1389285973, 1389285971, 1389285968, 1389285966, 1389285965, 1389285963, 1389285717, 1389285448, 1389285445, 1389285441, 1389285438, 1389285417, 1389285410, 1389285407, 1389285404, 1389285402, 1389285400, 1389285386, 1389285383, 1389285380, 1389285379, 1389285253, 1389285244, 1389285231, 1389285211, 1389285184, 1389285165, 1389285115, 1389285112, 1389285110, 1389285109, 1389285094, 1389285067, 1389285063, 1389285053, 1389285039, 1389285014, 1389284987, 1389284985, 1389284984, 1389284983, 1389284978, 1389284976, 1389284974, 1389284972, 1389284970, 1389284962, 1389284960, 1389284957, 1389284955, 1389284953, 1389284650, 1389284647, 1389284646, 1389284644, 1389284469, 1389284461, 1389284458, 1389284404, 1389284401]} ##### 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.05416131019592285 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Mon Oct 13 20:15:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (27772259) 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 : 27772259 get user id for portfolio 27772259 get sub ptf for main ptf 27772259, type 3726 and hashtags ['kraft', 'mal_croppe', 'Teint_Dans_La_Masse', 'metal', 'autre_refus', 'plastique', 'environnement', 'Carton_brun', 'flou', 'Carton_gris', 'papier', 'cartonnette'] 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`=27772259 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','mal_croppe','Teint_Dans_La_Masse','metal','autre_refus','plastique','environnement','Carton_brun','flou','Carton_gris','papier','cartonnette')) 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`=27772259 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','mal_croppe','Teint_Dans_La_Masse','metal','autre_refus','plastique','environnement','Carton_brun','flou','Carton_gris','papier','cartonnette')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_gris': {'main_port_id': 27772259, 'sub_port_id': 27772270, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18734452, 'last_updated_at': datetime.datetime(2025, 10, 13, 20, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 10, 13, 20, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 10, 13, 20, 3, 1)}, 'metal': {'main_port_id': 27772259, 'sub_port_id': 27772271, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18734453, 'last_updated_at': datetime.datetime(2025, 10, 13, 20, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 10, 13, 20, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 10, 13, 20, 3, 1)}, 'autre_refus': {'main_port_id': 27772259, 'sub_port_id': 27772272, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18734454, 'last_updated_at': datetime.datetime(2025, 10, 13, 20, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 10, 13, 20, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 10, 13, 20, 3, 1)}, 'environnement': {'main_port_id': 27772259, 'sub_port_id': 27772273, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18734455, 'last_updated_at': datetime.datetime(2025, 10, 13, 20, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 10, 13, 20, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 10, 13, 20, 3, 1)}, 'mal_croppe': {'main_port_id': 27772259, 'sub_port_id': 27772274, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18734456, 'last_updated_at': datetime.datetime(2025, 10, 13, 20, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 10, 13, 20, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 10, 13, 20, 3, 1)}, 'Teint_Dans_La_Masse': {'main_port_id': 27772259, 'sub_port_id': 27772275, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18734457, 'last_updated_at': datetime.datetime(2025, 10, 13, 20, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 10, 13, 20, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 10, 13, 20, 3, 1)}, 'cartonnette': {'main_port_id': 27772259, 'sub_port_id': 27772276, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18734458, 'last_updated_at': datetime.datetime(2025, 10, 13, 20, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 10, 13, 20, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 10, 13, 20, 3, 1)}, 'kraft': {'main_port_id': 27772259, 'sub_port_id': 27772277, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18734459, 'last_updated_at': datetime.datetime(2025, 10, 13, 20, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 10, 13, 20, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 10, 13, 20, 3, 1)}, 'papier': {'main_port_id': 27772259, 'sub_port_id': 27772278, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18734460, 'last_updated_at': datetime.datetime(2025, 10, 13, 20, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 10, 13, 20, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 10, 13, 20, 3, 1)}, 'flou': {'main_port_id': 27772259, 'sub_port_id': 27772279, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18734461, 'last_updated_at': datetime.datetime(2025, 10, 13, 20, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 10, 13, 20, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 10, 13, 20, 3, 1)}, 'Carton_brun': {'main_port_id': 27772259, 'sub_port_id': 27772281, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18734462, 'last_updated_at': datetime.datetime(2025, 10, 13, 20, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 10, 13, 20, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 10, 13, 20, 3, 1)}, 'plastique': {'main_port_id': 27772259, 'sub_port_id': 27772282, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18734463, 'last_updated_at': datetime.datetime(2025, 10, 13, 20, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 10, 13, 20, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 10, 13, 20, 3, 1)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27772270 , 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=27772259 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 (27772270) result : ((1389285068,), (1389285069,), (1389285070,), (1389285133,), (1389285134,), (1389285280,), (1389285281,), (1389285285,), (1389285286,), (1389285287,), (1389285414,), (1389285415,), (1389285416,), (1389286385,), (1389286431,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27772259) result : ((1389284401,), (1389284404,), (1389284458,), (1389284461,), (1389284469,), (1389284644,), (1389284646,), (1389284647,), (1389284650,), (1389284953,), (1389284955,), (1389284957,), (1389284960,), (1389284962,), (1389284970,), (1389284972,), (1389284974,), (1389284976,), (1389284978,), (1389284983,), (1389284984,), (1389284985,), (1389284987,), (1389285014,), (1389285039,), (1389285053,), (1389285063,), (1389285067,), (1389285094,), (1389285109,), (1389285110,), (1389285112,), (1389285115,), (1389285165,), (1389285184,), (1389285211,), (1389285231,), (1389285244,), (1389285253,), (1389285379,), (1389285380,), (1389285383,), (1389285386,), (1389285400,), (1389285402,), (1389285404,), (1389285407,), (1389285410,), (1389285417,), (1389285438,), (1389285441,), (1389285445,), (1389285448,), (1389285717,), (1389285963,), (1389285965,), (1389285966,), (1389285968,), (1389285971,), (1389285973,), (1389286014,), (1389286028,), (1389286030,), (1389286033,), (1389286405,), (1389286407,), (1389286409,), (1389286413,), (1389286416,), (1389286418,), (1389286423,), (1389286434,), (1389286440,), (1389286443,)) 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 (1389285400) 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 27772271 , 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=27772259 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 (27772271) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27772259) result : ((1389284401,), (1389284404,), (1389284458,), (1389284461,), (1389284469,), (1389284644,), (1389284646,), (1389284647,), (1389284650,), (1389284953,), (1389284955,), (1389284957,), (1389284960,), (1389284962,), (1389284970,), (1389284972,), (1389284974,), (1389284976,), (1389284978,), (1389284983,), (1389284984,), (1389284985,), (1389284987,), (1389285014,), (1389285039,), (1389285053,), (1389285063,), (1389285067,), (1389285094,), (1389285109,), (1389285110,), (1389285112,), (1389285115,), (1389285165,), (1389285184,), (1389285211,), (1389285231,), (1389285244,), (1389285253,), (1389285379,), (1389285380,), (1389285383,), (1389285386,), (1389285400,), (1389285402,), (1389285404,), (1389285407,), (1389285410,), (1389285417,), (1389285438,), (1389285441,), (1389285445,), (1389285448,), (1389285717,), (1389285963,), (1389285965,), (1389285966,), (1389285968,), (1389285971,), (1389285973,), (1389286014,), (1389286028,), (1389286030,), (1389286033,), (1389286405,), (1389286407,), (1389286409,), (1389286413,), (1389286416,), (1389286418,), (1389286423,), (1389286434,), (1389286440,), (1389286443,)) 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 (1389285400) 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 27772272 , 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=27772259 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 (27772272) result : ((1389285259,), (1389285413,), (1389286384,), (1389286430,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27772259) result : ((1389284401,), (1389284404,), (1389284458,), (1389284461,), (1389284469,), (1389284644,), (1389284646,), (1389284647,), (1389284650,), (1389284953,), (1389284955,), (1389284957,), (1389284960,), (1389284962,), (1389284970,), (1389284972,), (1389284974,), (1389284976,), (1389284978,), (1389284983,), (1389284984,), (1389284985,), (1389284987,), (1389285014,), (1389285039,), (1389285053,), (1389285063,), (1389285067,), (1389285094,), (1389285109,), (1389285110,), (1389285112,), (1389285115,), (1389285165,), (1389285184,), (1389285211,), (1389285231,), (1389285244,), (1389285253,), (1389285379,), (1389285380,), (1389285383,), (1389285386,), (1389285400,), (1389285402,), (1389285404,), (1389285407,), (1389285410,), (1389285417,), (1389285438,), (1389285441,), (1389285445,), (1389285448,), (1389285717,), (1389285963,), (1389285965,), (1389285966,), (1389285968,), (1389285971,), (1389285973,), (1389286014,), (1389286028,), (1389286030,), (1389286033,), (1389286405,), (1389286407,), (1389286409,), (1389286413,), (1389286416,), (1389286418,), (1389286423,), (1389286434,), (1389286440,), (1389286443,)) 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 (1389285400) 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 27772273 , 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=27772259 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 (27772273) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27772259) result : ((1389284401,), (1389284404,), (1389284458,), (1389284461,), (1389284469,), (1389284644,), (1389284646,), (1389284647,), (1389284650,), (1389284953,), (1389284955,), (1389284957,), (1389284960,), (1389284962,), (1389284970,), (1389284972,), (1389284974,), (1389284976,), (1389284978,), (1389284983,), (1389284984,), (1389284985,), (1389284987,), (1389285014,), (1389285039,), (1389285053,), (1389285063,), (1389285067,), (1389285094,), (1389285109,), (1389285110,), (1389285112,), (1389285115,), (1389285165,), (1389285184,), (1389285211,), (1389285231,), (1389285244,), (1389285253,), (1389285379,), (1389285380,), (1389285383,), (1389285386,), (1389285400,), (1389285402,), (1389285404,), (1389285407,), (1389285410,), (1389285417,), (1389285438,), (1389285441,), (1389285445,), (1389285448,), (1389285717,), (1389285963,), (1389285965,), (1389285966,), (1389285968,), (1389285971,), (1389285973,), (1389286014,), (1389286028,), (1389286030,), (1389286033,), (1389286405,), (1389286407,), (1389286409,), (1389286413,), (1389286416,), (1389286418,), (1389286423,), (1389286434,), (1389286440,), (1389286443,)) 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 (1389285400) 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 27772274 , 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=27772259 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 (27772274) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27772259) result : ((1389284401,), (1389284404,), (1389284458,), (1389284461,), (1389284469,), (1389284644,), (1389284646,), (1389284647,), (1389284650,), (1389284953,), (1389284955,), (1389284957,), (1389284960,), (1389284962,), (1389284970,), (1389284972,), (1389284974,), (1389284976,), (1389284978,), (1389284983,), (1389284984,), (1389284985,), (1389284987,), (1389285014,), (1389285039,), (1389285053,), (1389285063,), (1389285067,), (1389285094,), (1389285109,), (1389285110,), (1389285112,), (1389285115,), (1389285165,), (1389285184,), (1389285211,), (1389285231,), (1389285244,), (1389285253,), (1389285379,), (1389285380,), (1389285383,), (1389285386,), (1389285400,), (1389285402,), (1389285404,), (1389285407,), (1389285410,), (1389285417,), (1389285438,), (1389285441,), (1389285445,), (1389285448,), (1389285717,), (1389285963,), (1389285965,), (1389285966,), (1389285968,), (1389285971,), (1389285973,), (1389286014,), (1389286028,), (1389286030,), (1389286033,), (1389286405,), (1389286407,), (1389286409,), (1389286413,), (1389286416,), (1389286418,), (1389286423,), (1389286434,), (1389286440,), (1389286443,)) 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 (1389285400) 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 27772275 , 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=27772259 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 (27772275) result : ((1389285065,), (1389285130,), (1389285131,), (1389285132,), (1389285258,), (1389285284,), (1389285433,), (1389286381,), (1389286382,), (1389286383,), (1389286425,), (1389286426,), (1389286427,), (1389286428,), (1389286429,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27772259) result : ((1389284401,), (1389284404,), (1389284458,), (1389284461,), (1389284469,), (1389284644,), (1389284646,), (1389284647,), (1389284650,), (1389284953,), (1389284955,), (1389284957,), (1389284960,), (1389284962,), (1389284970,), (1389284972,), (1389284974,), (1389284976,), (1389284978,), (1389284983,), (1389284984,), (1389284985,), (1389284987,), (1389285014,), (1389285039,), (1389285053,), (1389285063,), (1389285067,), (1389285094,), (1389285109,), (1389285110,), (1389285112,), (1389285115,), (1389285165,), (1389285184,), (1389285211,), (1389285231,), (1389285244,), (1389285253,), (1389285379,), (1389285380,), (1389285383,), (1389285386,), (1389285400,), (1389285402,), (1389285404,), (1389285407,), (1389285410,), (1389285417,), (1389285438,), (1389285441,), (1389285445,), (1389285448,), (1389285717,), (1389285963,), (1389285965,), (1389285966,), (1389285968,), (1389285971,), (1389285973,), (1389286014,), (1389286028,), (1389286030,), (1389286033,), (1389286405,), (1389286407,), (1389286409,), (1389286413,), (1389286416,), (1389286418,), (1389286423,), (1389286434,), (1389286440,), (1389286443,)) 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 (1389285400) 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 27772276 , 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=27772259 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 (27772276) result : ((1389285135,), (1389285392,), (1389285420,), (1389285421,), (1389285422,), (1389285423,), (1389285424,), (1389286389,), (1389286390,), (1389286391,), (1389286432,), (1389286433,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27772259) result : ((1389284401,), (1389284404,), (1389284458,), (1389284461,), (1389284469,), (1389284644,), (1389284646,), (1389284647,), (1389284650,), (1389284953,), (1389284955,), (1389284957,), (1389284960,), (1389284962,), (1389284970,), (1389284972,), (1389284974,), (1389284976,), (1389284978,), (1389284983,), (1389284984,), (1389284985,), (1389284987,), (1389285014,), (1389285039,), (1389285053,), (1389285063,), (1389285067,), (1389285094,), (1389285109,), (1389285110,), (1389285112,), (1389285115,), (1389285165,), (1389285184,), (1389285211,), (1389285231,), (1389285244,), (1389285253,), (1389285379,), (1389285380,), (1389285383,), (1389285386,), (1389285400,), (1389285402,), (1389285404,), (1389285407,), (1389285410,), (1389285417,), (1389285438,), (1389285441,), (1389285445,), (1389285448,), (1389285717,), (1389285963,), (1389285965,), (1389285966,), (1389285968,), (1389285971,), (1389285973,), (1389286014,), (1389286028,), (1389286030,), (1389286033,), (1389286405,), (1389286407,), (1389286409,), (1389286413,), (1389286416,), (1389286418,), (1389286423,), (1389286434,), (1389286440,), (1389286443,)) 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 (1389285400) 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 27772277 , 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=27772259 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 (27772277) result : ((1389286439,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27772259) result : ((1389284401,), (1389284404,), (1389284458,), (1389284461,), (1389284469,), (1389284644,), (1389284646,), (1389284647,), (1389284650,), (1389284953,), (1389284955,), (1389284957,), (1389284960,), (1389284962,), (1389284970,), (1389284972,), (1389284974,), (1389284976,), (1389284978,), (1389284983,), (1389284984,), (1389284985,), (1389284987,), (1389285014,), (1389285039,), (1389285053,), (1389285063,), (1389285067,), (1389285094,), (1389285109,), (1389285110,), (1389285112,), (1389285115,), (1389285165,), (1389285184,), (1389285211,), (1389285231,), (1389285244,), (1389285253,), (1389285379,), (1389285380,), (1389285383,), (1389285386,), (1389285400,), (1389285402,), (1389285404,), (1389285407,), (1389285410,), (1389285417,), (1389285438,), (1389285441,), (1389285445,), (1389285448,), (1389285717,), (1389285963,), (1389285965,), (1389285966,), (1389285968,), (1389285971,), (1389285973,), (1389286014,), (1389286028,), (1389286030,), (1389286033,), (1389286405,), (1389286407,), (1389286409,), (1389286413,), (1389286416,), (1389286418,), (1389286423,), (1389286434,), (1389286440,), (1389286443,)) 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 (1389285400) 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 27772278 , 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=27772259 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 (27772278) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27772259) result : ((1389284401,), (1389284404,), (1389284458,), (1389284461,), (1389284469,), (1389284644,), (1389284646,), (1389284647,), (1389284650,), (1389284953,), (1389284955,), (1389284957,), (1389284960,), (1389284962,), (1389284970,), (1389284972,), (1389284974,), (1389284976,), (1389284978,), (1389284983,), (1389284984,), (1389284985,), (1389284987,), (1389285014,), (1389285039,), (1389285053,), (1389285063,), (1389285067,), (1389285094,), (1389285109,), (1389285110,), (1389285112,), (1389285115,), (1389285165,), (1389285184,), (1389285211,), (1389285231,), (1389285244,), (1389285253,), (1389285379,), (1389285380,), (1389285383,), (1389285386,), (1389285400,), (1389285402,), (1389285404,), (1389285407,), (1389285410,), (1389285417,), (1389285438,), (1389285441,), (1389285445,), (1389285448,), (1389285717,), (1389285963,), (1389285965,), (1389285966,), (1389285968,), (1389285971,), (1389285973,), (1389286014,), (1389286028,), (1389286030,), (1389286033,), (1389286405,), (1389286407,), (1389286409,), (1389286413,), (1389286416,), (1389286418,), (1389286423,), (1389286434,), (1389286440,), (1389286443,)) 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 (1389285400) 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 27772279 , 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=27772259 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 (27772279) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27772259) result : ((1389284401,), (1389284404,), (1389284458,), (1389284461,), (1389284469,), (1389284644,), (1389284646,), (1389284647,), (1389284650,), (1389284953,), (1389284955,), (1389284957,), (1389284960,), (1389284962,), (1389284970,), (1389284972,), (1389284974,), (1389284976,), (1389284978,), (1389284983,), (1389284984,), (1389284985,), (1389284987,), (1389285014,), (1389285039,), (1389285053,), (1389285063,), (1389285067,), (1389285094,), (1389285109,), (1389285110,), (1389285112,), (1389285115,), (1389285165,), (1389285184,), (1389285211,), (1389285231,), (1389285244,), (1389285253,), (1389285379,), (1389285380,), (1389285383,), (1389285386,), (1389285400,), (1389285402,), (1389285404,), (1389285407,), (1389285410,), (1389285417,), (1389285438,), (1389285441,), (1389285445,), (1389285448,), (1389285717,), (1389285963,), (1389285965,), (1389285966,), (1389285968,), (1389285971,), (1389285973,), (1389286014,), (1389286028,), (1389286030,), (1389286033,), (1389286405,), (1389286407,), (1389286409,), (1389286413,), (1389286416,), (1389286418,), (1389286423,), (1389286434,), (1389286440,), (1389286443,)) 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 (1389285400) 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 27772281 , 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=27772259 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 (27772281) result : ((1389285071,), (1389285136,), (1389285137,), (1389285282,), (1389285289,), (1389285425,), (1389285426,), (1389285427,), (1389285434,), (1389286392,), (1389286393,), (1389286394,), (1389286435,), (1389286436,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27772259) result : ((1389284401,), (1389284404,), (1389284458,), (1389284461,), (1389284469,), (1389284644,), (1389284646,), (1389284647,), (1389284650,), (1389284953,), (1389284955,), (1389284957,), (1389284960,), (1389284962,), (1389284970,), (1389284972,), (1389284974,), (1389284976,), (1389284978,), (1389284983,), (1389284984,), (1389284985,), (1389284987,), (1389285014,), (1389285039,), (1389285053,), (1389285063,), (1389285067,), (1389285094,), (1389285109,), (1389285110,), (1389285112,), (1389285115,), (1389285165,), (1389285184,), (1389285211,), (1389285231,), (1389285244,), (1389285253,), (1389285379,), (1389285380,), (1389285383,), (1389285386,), (1389285400,), (1389285402,), (1389285404,), (1389285407,), (1389285410,), (1389285417,), (1389285438,), (1389285441,), (1389285445,), (1389285448,), (1389285717,), (1389285963,), (1389285965,), (1389285966,), (1389285968,), (1389285971,), (1389285973,), (1389286014,), (1389286028,), (1389286030,), (1389286033,), (1389286405,), (1389286407,), (1389286409,), (1389286413,), (1389286416,), (1389286418,), (1389286423,), (1389286434,), (1389286440,), (1389286443,)) 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 (1389285400) 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 27772282 , 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=27772259 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 (27772282) result : ((1389285428,), (1389286412,), (1389286438,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27772259) result : ((1389284401,), (1389284404,), (1389284458,), (1389284461,), (1389284469,), (1389284644,), (1389284646,), (1389284647,), (1389284650,), (1389284953,), (1389284955,), (1389284957,), (1389284960,), (1389284962,), (1389284970,), (1389284972,), (1389284974,), (1389284976,), (1389284978,), (1389284983,), (1389284984,), (1389284985,), (1389284987,), (1389285014,), (1389285039,), (1389285053,), (1389285063,), (1389285067,), (1389285094,), (1389285109,), (1389285110,), (1389285112,), (1389285115,), (1389285165,), (1389285184,), (1389285211,), (1389285231,), (1389285244,), (1389285253,), (1389285379,), (1389285380,), (1389285383,), (1389285386,), (1389285400,), (1389285402,), (1389285404,), (1389285407,), (1389285410,), (1389285417,), (1389285438,), (1389285441,), (1389285445,), (1389285448,), (1389285717,), (1389285963,), (1389285965,), (1389285966,), (1389285968,), (1389285971,), (1389285973,), (1389286014,), (1389286028,), (1389286030,), (1389286033,), (1389286405,), (1389286407,), (1389286409,), (1389286413,), (1389286416,), (1389286418,), (1389286423,), (1389286434,), (1389286440,), (1389286443,)) 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 (1389285400) 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`=27772259 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','mal_croppe','Teint_Dans_La_Masse','metal','autre_refus','plastique','environnement','Carton_brun','flou','Carton_gris','papier','cartonnette')) 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`=27772259 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','mal_croppe','Teint_Dans_La_Masse','metal','autre_refus','plastique','environnement','Carton_brun','flou','Carton_gris','papier','cartonnette')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_gris': {'main_port_id': 27772259, 'sub_port_id': 27772284, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18734464, 'last_updated_at': datetime.datetime(2025, 10, 13, 20, 3, 7), 'last_updated_at_desc': datetime.datetime(2025, 10, 13, 20, 3, 7), 'last_updated_at_asc': datetime.datetime(2025, 10, 13, 20, 3, 7)}, 'metal': {'main_port_id': 27772259, 'sub_port_id': 27772285, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18734465, 'last_updated_at': datetime.datetime(2025, 10, 13, 20, 3, 7), 'last_updated_at_desc': datetime.datetime(2025, 10, 13, 20, 3, 7), 'last_updated_at_asc': datetime.datetime(2025, 10, 13, 20, 3, 7)}, 'autre_refus': {'main_port_id': 27772259, 'sub_port_id': 27772286, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18734466, 'last_updated_at': datetime.datetime(2025, 10, 13, 20, 3, 7), 'last_updated_at_desc': datetime.datetime(2025, 10, 13, 20, 3, 7), 'last_updated_at_asc': datetime.datetime(2025, 10, 13, 20, 3, 7)}, 'environnement': {'main_port_id': 27772259, 'sub_port_id': 27772288, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18734467, 'last_updated_at': datetime.datetime(2025, 10, 13, 20, 3, 7), 'last_updated_at_desc': datetime.datetime(2025, 10, 13, 20, 3, 7), 'last_updated_at_asc': datetime.datetime(2025, 10, 13, 20, 3, 7)}, 'mal_croppe': {'main_port_id': 27772259, 'sub_port_id': 27772289, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18734468, 'last_updated_at': datetime.datetime(2025, 10, 13, 20, 3, 7), 'last_updated_at_desc': datetime.datetime(2025, 10, 13, 20, 3, 7), 'last_updated_at_asc': datetime.datetime(2025, 10, 13, 20, 3, 7)}, 'Teint_Dans_La_Masse': {'main_port_id': 27772259, 'sub_port_id': 27772290, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18734469, 'last_updated_at': datetime.datetime(2025, 10, 13, 20, 3, 7), 'last_updated_at_desc': datetime.datetime(2025, 10, 13, 20, 3, 7), 'last_updated_at_asc': datetime.datetime(2025, 10, 13, 20, 3, 7)}, 'cartonnette': {'main_port_id': 27772259, 'sub_port_id': 27772291, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18734470, 'last_updated_at': datetime.datetime(2025, 10, 13, 20, 3, 7), 'last_updated_at_desc': datetime.datetime(2025, 10, 13, 20, 3, 7), 'last_updated_at_asc': datetime.datetime(2025, 10, 13, 20, 3, 7)}, 'kraft': {'main_port_id': 27772259, 'sub_port_id': 27772292, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18734471, 'last_updated_at': datetime.datetime(2025, 10, 13, 20, 3, 7), 'last_updated_at_desc': datetime.datetime(2025, 10, 13, 20, 3, 7), 'last_updated_at_asc': datetime.datetime(2025, 10, 13, 20, 3, 7)}, 'papier': {'main_port_id': 27772259, 'sub_port_id': 27772293, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18734472, 'last_updated_at': datetime.datetime(2025, 10, 13, 20, 3, 7), 'last_updated_at_desc': datetime.datetime(2025, 10, 13, 20, 3, 7), 'last_updated_at_asc': datetime.datetime(2025, 10, 13, 20, 3, 7)}, 'flou': {'main_port_id': 27772259, 'sub_port_id': 27772294, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18734473, 'last_updated_at': datetime.datetime(2025, 10, 13, 20, 3, 7), 'last_updated_at_desc': datetime.datetime(2025, 10, 13, 20, 3, 7), 'last_updated_at_asc': datetime.datetime(2025, 10, 13, 20, 3, 7)}, 'Carton_brun': {'main_port_id': 27772259, 'sub_port_id': 27772296, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18734474, 'last_updated_at': datetime.datetime(2025, 10, 13, 20, 3, 7), 'last_updated_at_desc': datetime.datetime(2025, 10, 13, 20, 3, 7), 'last_updated_at_asc': datetime.datetime(2025, 10, 13, 20, 3, 7)}, 'plastique': {'main_port_id': 27772259, 'sub_port_id': 27772297, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18734475, 'last_updated_at': datetime.datetime(2025, 10, 13, 20, 12, 59), 'last_updated_at_desc': datetime.datetime(2025, 10, 13, 20, 12, 59), 'last_updated_at_asc': datetime.datetime(2025, 10, 13, 20, 3, 7)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27772284,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27772270 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27772285,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27772271 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27772286,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27772272 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27772288,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27772273 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27772289,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27772274 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27772290,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27772275 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27772291,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27772276 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27772292,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27772277 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27772293,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27772278 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27772294,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27772279 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27772296,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27772281 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27772297,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27772282 lien utilise dans velours : https://marlene.fotonower.com/velours/27772284,27772285,27772286,27772288,27772289,27772290,27772291,27772292,27772293,27772294,27772296,27772297?tags=Carton_gris,metal,autre_refus,environnement,mal_croppe,Teint_Dans_La_Masse,cartonnette,kraft,papier,flou,Carton_brun,plastique After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([27772259]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1389286443, 1389286440, 1389286434, 1389286423, 1389286418, 1389286416, 1389286413, 1389286409, 1389286407, 1389286405] map_info['map_portfolio_photo'] : {27772259: [1389286443, 1389286440, 1389286434, 1389286423, 1389286418, 1389286416, 1389286413, 1389286409, 1389286407, 1389286405, 1389286033, 1389286030, 1389286028, 1389286014, 1389285973, 1389285971, 1389285968, 1389285966, 1389285965, 1389285963, 1389285717, 1389285448, 1389285445, 1389285441, 1389285438, 1389285417, 1389285410, 1389285407, 1389285404, 1389285402, 1389285400, 1389285386, 1389285383, 1389285380, 1389285379, 1389285253, 1389285244, 1389285231, 1389285211, 1389285184, 1389285165, 1389285115, 1389285112, 1389285110, 1389285109, 1389285094, 1389285067, 1389285063, 1389285053, 1389285039, 1389285014, 1389284987, 1389284985, 1389284984, 1389284983, 1389284978, 1389284976, 1389284974, 1389284972, 1389284970, 1389284962, 1389284960, 1389284957, 1389284955, 1389284953, 1389284650, 1389284647, 1389284646, 1389284644, 1389284469, 1389284461, 1389284458, 1389284404, 1389284401]} final : False mtd_id 4302 list_pids : [1389286443, 1389286440, 1389286434, 1389286423, 1389286418, 1389286416, 1389286413, 1389286409, 1389286407, 1389286405] Looping around the photos to save general results len do output : 1 /27772259. 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, '3935365') ('4302', '27772259', '1389286443', None, None, None, None, None, '3935365') ('4302', None, None, None, None, None, None, None, '3935365') ('4302', '27772259', '1389286440', None, None, None, None, None, '3935365') ('4302', None, None, None, None, None, None, None, '3935365') ('4302', '27772259', '1389286434', None, None, None, None, None, '3935365') ('4302', None, None, None, None, None, None, None, '3935365') ('4302', '27772259', '1389286423', None, None, None, None, None, '3935365') ('4302', None, None, None, None, None, None, None, '3935365') ('4302', '27772259', '1389286418', None, None, None, None, None, '3935365') ('4302', None, None, None, None, None, None, None, '3935365') ('4302', '27772259', '1389286416', None, None, None, None, None, '3935365') ('4302', None, None, None, None, None, None, None, '3935365') ('4302', '27772259', '1389286413', None, None, None, None, None, '3935365') ('4302', None, None, None, None, None, None, None, '3935365') ('4302', '27772259', '1389286409', None, None, None, None, None, '3935365') ('4302', None, None, None, None, None, None, None, '3935365') ('4302', '27772259', '1389286407', None, None, None, None, None, '3935365') ('4302', None, None, None, None, None, None, None, '3935365') ('4302', '27772259', '1389286405', None, None, None, None, None, '3935365') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 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, '27772259', "{'Carton_gris': 27772270, 'metal': 27772271, 'autre_refus': 27772272, 'environnement': 27772273, 'mal_croppe': 27772274, 'Teint_Dans_La_Masse': 27772275, 'cartonnette': 27772276, 'kraft': 27772277, 'papier': 27772278, 'flou': 27772279, 'Carton_brun': 27772281, 'plastique': 27772282}", None, None, None, None, '3935365'), ('4302', '27772259', '1389286443', None, None, None, None, None, '3935365'), ('4302', '27772259', '1389286440', None, None, None, None, None, '3935365'), ('4302', '27772259', '1389286434', None, None, None, None, None, '3935365'), ('4302', '27772259', '1389286423', None, None, None, None, None, '3935365'), ('4302', '27772259', '1389286418', None, None, None, None, None, '3935365'), ('4302', '27772259', '1389286416', None, None, None, None, None, '3935365'), ('4302', '27772259', '1389286413', None, None, None, None, None, '3935365'), ('4302', '27772259', '1389286409', None, None, None, None, None, '3935365'), ('4302', '27772259', '1389286407', None, None, None, None, None, '3935365'), ('4302', '27772259', '1389286405', None, None, None, None, None, '3935365')] time used for this insertion : 0.03686809539794922 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.672255277633667 time spend to save output : 0.03716707229614258 total time spend for step 1 : 1.7094223499298096 step2:final Mon Oct 13 20:15:02 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! 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 (27772259) 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 27772259 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1389284469,1389284461,1389284458,1389284404,1389284401,1389284650,1389284978,1389284647,1389284976,1389284646,1389284974,1389284644,1389284972,1389284970,1389284962,1389284960,1389284957,1389284955,1389284953,1389284987,1389284985,1389284984,1389284983,1389285094,1389285067,1389285063,1389285053,1389285039,1389285014,1389285115,1389285112,1389285110,1389285109,1389285253,1389285244,1389285231,1389285211,1389285184,1389285165,1389285386,1389285383,1389285380,1389285379,1389285417,1389285410,1389285407,1389285404,1389285402,1389285400,1389285717,1389285448,1389285445,1389285441,1389285438,1389285973,1389285971,1389285968,1389285966,1389285965,1389285963,1389286033,1389286443,1389286030,1389286440,1389286028,1389286434,1389286014,1389286423,1389286418,1389286416,1389286413,1389286409,1389286407,1389286405); 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([27772259]) Inside saveOutput : final : False verbose : True original output for save of step final : {1389286443: ('0.05099674471085791',), 1389286440: ('0.05099674471085791',), 1389286434: ('0.05099674471085791',), 1389286423: ('0.05099674471085791',), 1389286418: ('0.05099674471085791',), 1389286416: ('0.05099674471085791',), 1389286413: ('0.05099674471085791',), 1389286409: ('0.05099674471085791',), 1389286407: ('0.05099674471085791',), 1389286405: ('0.05099674471085791',)} new output for save of step final : {1389286443: ('0.05099674471085791',), 1389286440: ('0.05099674471085791',), 1389286434: ('0.05099674471085791',), 1389286423: ('0.05099674471085791',), 1389286418: ('0.05099674471085791',), 1389286416: ('0.05099674471085791',), 1389286413: ('0.05099674471085791',), 1389286409: ('0.05099674471085791',), 1389286407: ('0.05099674471085791',), 1389286405: ('0.05099674471085791',)} [1389286443, 1389286440, 1389286434, 1389286423, 1389286418, 1389286416, 1389286413, 1389286409, 1389286407, 1389286405] map_info['map_portfolio_photo'] : {27772259: [1389286443, 1389286440, 1389286434, 1389286423, 1389286418, 1389286416, 1389286413, 1389286409, 1389286407, 1389286405, 1389286033, 1389286030, 1389286028, 1389286014, 1389285973, 1389285971, 1389285968, 1389285966, 1389285965, 1389285963, 1389285717, 1389285448, 1389285445, 1389285441, 1389285438, 1389285417, 1389285410, 1389285407, 1389285404, 1389285402, 1389285400, 1389285386, 1389285383, 1389285380, 1389285379, 1389285253, 1389285244, 1389285231, 1389285211, 1389285184, 1389285165, 1389285115, 1389285112, 1389285110, 1389285109, 1389285094, 1389285067, 1389285063, 1389285053, 1389285039, 1389285014, 1389284987, 1389284985, 1389284984, 1389284983, 1389284978, 1389284976, 1389284974, 1389284972, 1389284970, 1389284962, 1389284960, 1389284957, 1389284955, 1389284953, 1389284650, 1389284647, 1389284646, 1389284644, 1389284469, 1389284461, 1389284458, 1389284404, 1389284401]} final : False mtd_id 4302 list_pids : [1389286443, 1389286440, 1389286434, 1389286423, 1389286418, 1389286416, 1389286413, 1389286409, 1389286407, 1389286405] Looping around the photos to save general results len do output : 10 /1389286443.Didn't retrieve data . /1389286440.Didn't retrieve data . /1389286434.Didn't retrieve data . /1389286423.Didn't retrieve data . /1389286418.Didn't retrieve data . /1389286416.Didn't retrieve data . /1389286413.Didn't retrieve data . /1389286409.Didn't retrieve data . /1389286407.Didn't retrieve data . /1389286405.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, '3935365') ('4302', '27772259', '1389286443', None, None, None, None, None, '3935365') ('4302', None, None, None, None, None, None, None, '3935365') ('4302', '27772259', '1389286440', None, None, None, None, None, '3935365') ('4302', None, None, None, None, None, None, None, '3935365') ('4302', '27772259', '1389286434', None, None, None, None, None, '3935365') ('4302', None, None, None, None, None, None, None, '3935365') ('4302', '27772259', '1389286423', None, None, None, None, None, '3935365') ('4302', None, None, None, None, None, None, None, '3935365') ('4302', '27772259', '1389286418', None, None, None, None, None, '3935365') ('4302', None, None, None, None, None, None, None, '3935365') ('4302', '27772259', '1389286416', None, None, None, None, None, '3935365') ('4302', None, None, None, None, None, None, None, '3935365') ('4302', '27772259', '1389286413', None, None, None, None, None, '3935365') ('4302', None, None, None, None, None, None, None, '3935365') ('4302', '27772259', '1389286409', None, None, None, None, None, '3935365') ('4302', None, None, None, None, None, None, None, '3935365') ('4302', '27772259', '1389286407', None, None, None, None, None, '3935365') ('4302', None, None, None, None, None, None, None, '3935365') ('4302', '27772259', '1389286405', None, None, None, None, None, '3935365') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 30 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', '27772259', '1389286443', '0.05099674471085791', None, None, None, None, '3935365'), ('4302', '27772259', '1389286440', '0.05099674471085791', None, None, None, None, '3935365'), ('4302', '27772259', '1389286434', '0.05099674471085791', None, None, None, None, '3935365'), ('4302', '27772259', '1389286423', '0.05099674471085791', None, None, None, None, '3935365'), ('4302', '27772259', '1389286418', '0.05099674471085791', None, None, None, None, '3935365'), ('4302', '27772259', '1389286416', '0.05099674471085791', None, None, None, None, '3935365'), ('4302', '27772259', '1389286413', '0.05099674471085791', None, None, None, None, '3935365'), ('4302', '27772259', '1389286409', '0.05099674471085791', None, None, None, None, '3935365'), ('4302', '27772259', '1389286407', '0.05099674471085791', None, None, None, None, '3935365'), ('4302', '27772259', '1389286405', '0.05099674471085791', None, None, None, None, '3935365')] time used for this insertion : 0.037131547927856445 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.26188206672668457 time spend to save output : 0.037679195404052734 total time spend for step 2 : 0.2995612621307373 step3:velours_tree Mon Oct 13 20:15:02 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {27772259: [{'Carton_gris': 27772270, 'metal': 27772271, 'autre_refus': 27772272, 'environnement': 27772273, 'mal_croppe': 27772274, 'Teint_Dans_La_Masse': 27772275, 'cartonnette': 27772276, 'kraft': 27772277, 'papier': 27772278, 'flou': 27772279, 'Carton_brun': 27772281, 'plastique': 27772282}]} input_args_next_step : {27772259: ()} output_args : {27772259: [{'Carton_gris': 27772270, 'metal': 27772271, 'autre_refus': 27772272, 'environnement': 27772273, 'mal_croppe': 27772274, 'Teint_Dans_La_Masse': 27772275, 'cartonnette': 27772276, 'kraft': 27772277, 'papier': 27772278, 'flou': 27772279, 'Carton_brun': 27772281, 'plastique': 27772282}]} args : 27772259 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 : ({'Carton_gris': 27772270, 'metal': 27772271, 'autre_refus': 27772272, 'environnement': 27772273, 'mal_croppe': 27772274, 'Teint_Dans_La_Masse': 27772275, 'cartonnette': 27772276, 'kraft': 27772277, 'papier': 27772278, 'flou': 27772279, 'Carton_brun': 27772281, 'plastique': 27772282},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (27772259) 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([27772259]) 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.28483152389526367 time spend to save output : 4.887580871582031e-05 total time spend for step 3 : 0.2848803997039795 step4:send_mail_cod Mon Oct 13 20:15:02 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1389286443: ('0.05099674471085791',), 1389286440: ('0.05099674471085791',), 1389286434: ('0.05099674471085791',), 1389286423: ('0.05099674471085791',), 1389286418: ('0.05099674471085791',), 1389286416: ('0.05099674471085791',), 1389286413: ('0.05099674471085791',), 1389286409: ('0.05099674471085791',), 1389286407: ('0.05099674471085791',), 1389286405: ('0.05099674471085791',)} input_args_next_step : {1389286443: ()} output_args : {1389286443: ('0.05099674471085791',), 1389286440: ('0.05099674471085791',), 1389286434: ('0.05099674471085791',), 1389286423: ('0.05099674471085791',), 1389286418: ('0.05099674471085791',), 1389286416: ('0.05099674471085791',), 1389286413: ('0.05099674471085791',), 1389286409: ('0.05099674471085791',), 1389286407: ('0.05099674471085791',), 1389286405: ('0.05099674471085791',)} args : 1389286443 depend.output_id : 0 input_args_next_step : {1389286443: ('0.05099674471085791',), 1389286440: ()} output_args : {1389286443: ('0.05099674471085791',), 1389286440: ('0.05099674471085791',), 1389286434: ('0.05099674471085791',), 1389286423: ('0.05099674471085791',), 1389286418: ('0.05099674471085791',), 1389286416: ('0.05099674471085791',), 1389286413: ('0.05099674471085791',), 1389286409: ('0.05099674471085791',), 1389286407: ('0.05099674471085791',), 1389286405: ('0.05099674471085791',)} args : 1389286440 depend.output_id : 0 input_args_next_step : {1389286443: ('0.05099674471085791',), 1389286440: ('0.05099674471085791',), 1389286434: ()} output_args : {1389286443: ('0.05099674471085791',), 1389286440: ('0.05099674471085791',), 1389286434: ('0.05099674471085791',), 1389286423: ('0.05099674471085791',), 1389286418: ('0.05099674471085791',), 1389286416: ('0.05099674471085791',), 1389286413: ('0.05099674471085791',), 1389286409: ('0.05099674471085791',), 1389286407: ('0.05099674471085791',), 1389286405: ('0.05099674471085791',)} args : 1389286434 depend.output_id : 0 input_args_next_step : {1389286443: ('0.05099674471085791',), 1389286440: ('0.05099674471085791',), 1389286434: ('0.05099674471085791',), 1389286423: ()} output_args : {1389286443: ('0.05099674471085791',), 1389286440: ('0.05099674471085791',), 1389286434: ('0.05099674471085791',), 1389286423: ('0.05099674471085791',), 1389286418: ('0.05099674471085791',), 1389286416: ('0.05099674471085791',), 1389286413: ('0.05099674471085791',), 1389286409: ('0.05099674471085791',), 1389286407: ('0.05099674471085791',), 1389286405: ('0.05099674471085791',)} args : 1389286423 depend.output_id : 0 input_args_next_step : {1389286443: ('0.05099674471085791',), 1389286440: ('0.05099674471085791',), 1389286434: ('0.05099674471085791',), 1389286423: ('0.05099674471085791',), 1389286418: ()} output_args : {1389286443: ('0.05099674471085791',), 1389286440: ('0.05099674471085791',), 1389286434: ('0.05099674471085791',), 1389286423: ('0.05099674471085791',), 1389286418: ('0.05099674471085791',), 1389286416: ('0.05099674471085791',), 1389286413: ('0.05099674471085791',), 1389286409: ('0.05099674471085791',), 1389286407: ('0.05099674471085791',), 1389286405: ('0.05099674471085791',)} args : 1389286418 depend.output_id : 0 input_args_next_step : {1389286443: ('0.05099674471085791',), 1389286440: ('0.05099674471085791',), 1389286434: ('0.05099674471085791',), 1389286423: ('0.05099674471085791',), 1389286418: ('0.05099674471085791',), 1389286416: ()} output_args : {1389286443: ('0.05099674471085791',), 1389286440: ('0.05099674471085791',), 1389286434: ('0.05099674471085791',), 1389286423: ('0.05099674471085791',), 1389286418: ('0.05099674471085791',), 1389286416: ('0.05099674471085791',), 1389286413: ('0.05099674471085791',), 1389286409: ('0.05099674471085791',), 1389286407: ('0.05099674471085791',), 1389286405: ('0.05099674471085791',)} args : 1389286416 depend.output_id : 0 input_args_next_step : {1389286443: ('0.05099674471085791',), 1389286440: ('0.05099674471085791',), 1389286434: ('0.05099674471085791',), 1389286423: ('0.05099674471085791',), 1389286418: ('0.05099674471085791',), 1389286416: ('0.05099674471085791',), 1389286413: ()} output_args : {1389286443: ('0.05099674471085791',), 1389286440: ('0.05099674471085791',), 1389286434: ('0.05099674471085791',), 1389286423: ('0.05099674471085791',), 1389286418: ('0.05099674471085791',), 1389286416: ('0.05099674471085791',), 1389286413: ('0.05099674471085791',), 1389286409: ('0.05099674471085791',), 1389286407: ('0.05099674471085791',), 1389286405: ('0.05099674471085791',)} args : 1389286413 depend.output_id : 0 input_args_next_step : {1389286443: ('0.05099674471085791',), 1389286440: ('0.05099674471085791',), 1389286434: ('0.05099674471085791',), 1389286423: ('0.05099674471085791',), 1389286418: ('0.05099674471085791',), 1389286416: ('0.05099674471085791',), 1389286413: ('0.05099674471085791',), 1389286409: ()} output_args : {1389286443: ('0.05099674471085791',), 1389286440: ('0.05099674471085791',), 1389286434: ('0.05099674471085791',), 1389286423: ('0.05099674471085791',), 1389286418: ('0.05099674471085791',), 1389286416: ('0.05099674471085791',), 1389286413: ('0.05099674471085791',), 1389286409: ('0.05099674471085791',), 1389286407: ('0.05099674471085791',), 1389286405: ('0.05099674471085791',)} args : 1389286409 depend.output_id : 0 input_args_next_step : {1389286443: ('0.05099674471085791',), 1389286440: ('0.05099674471085791',), 1389286434: ('0.05099674471085791',), 1389286423: ('0.05099674471085791',), 1389286418: ('0.05099674471085791',), 1389286416: ('0.05099674471085791',), 1389286413: ('0.05099674471085791',), 1389286409: ('0.05099674471085791',), 1389286407: ()} output_args : {1389286443: ('0.05099674471085791',), 1389286440: ('0.05099674471085791',), 1389286434: ('0.05099674471085791',), 1389286423: ('0.05099674471085791',), 1389286418: ('0.05099674471085791',), 1389286416: ('0.05099674471085791',), 1389286413: ('0.05099674471085791',), 1389286409: ('0.05099674471085791',), 1389286407: ('0.05099674471085791',), 1389286405: ('0.05099674471085791',)} args : 1389286407 depend.output_id : 0 input_args_next_step : {1389286443: ('0.05099674471085791',), 1389286440: ('0.05099674471085791',), 1389286434: ('0.05099674471085791',), 1389286423: ('0.05099674471085791',), 1389286418: ('0.05099674471085791',), 1389286416: ('0.05099674471085791',), 1389286413: ('0.05099674471085791',), 1389286409: ('0.05099674471085791',), 1389286407: ('0.05099674471085791',), 1389286405: ()} output_args : {1389286443: ('0.05099674471085791',), 1389286440: ('0.05099674471085791',), 1389286434: ('0.05099674471085791',), 1389286423: ('0.05099674471085791',), 1389286418: ('0.05099674471085791',), 1389286416: ('0.05099674471085791',), 1389286413: ('0.05099674471085791',), 1389286409: ('0.05099674471085791',), 1389286407: ('0.05099674471085791',), 1389286405: ('0.05099674471085791',)} args : 1389286405 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 : {27772259: [{'Carton_gris': 27772270, 'metal': 27772271, 'autre_refus': 27772272, 'environnement': 27772273, 'mal_croppe': 27772274, 'Teint_Dans_La_Masse': 27772275, 'cartonnette': 27772276, 'kraft': 27772277, 'papier': 27772278, 'flou': 27772279, 'Carton_brun': 27772281, 'plastique': 27772282}]} input_args_next_step : {1389286443: ('0.05099674471085791',), 1389286440: ('0.05099674471085791',), 1389286434: ('0.05099674471085791',), 1389286423: ('0.05099674471085791',), 1389286418: ('0.05099674471085791',), 1389286416: ('0.05099674471085791',), 1389286413: ('0.05099674471085791',), 1389286409: ('0.05099674471085791',), 1389286407: ('0.05099674471085791',), 1389286405: ('0.05099674471085791',), 27772259: ()} output_args : {27772259: [{'Carton_gris': 27772270, 'metal': 27772271, 'autre_refus': 27772272, 'environnement': 27772273, 'mal_croppe': 27772274, 'Teint_Dans_La_Masse': 27772275, 'cartonnette': 27772276, 'kraft': 27772277, 'papier': 27772278, 'flou': 27772279, 'Carton_brun': 27772281, 'plastique': 27772282}]} args : 27772259 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 :11, first value : ('0.05099674471085791',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (27772259) 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 (1389286443,1389286440,1389286434,1389286423,1389286418,1389286416,1389286413,1389286409,1389286407,1389286405) Found this number of photos: 10 ##### Call download_photos : nb_thread : 5 begin to download photo : 1389286405 begin to download photo : 1389286413 begin to download photo : 1389286423 begin to download photo : 1389286443 download finish for photo 1389286443 download finish for photo 1389286405 begin to download photo : 1389286407 download finish for photo 1389286423 begin to download photo : 1389286434 download finish for photo 1389286413 begin to download photo : 1389286416 download finish for photo 1389286434 begin to download photo : 1389286440 download finish for photo 1389286416 begin to download photo : 1389286418 download finish for photo 1389286407 begin to download photo : 1389286409 download finish for photo 1389286440 download finish for photo 1389286418 download finish for photo 1389286409 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette277722711760379303/ length of list_filenames : 10 ; length of list_pids : 10 ; length of list_args : 10 results_Auto_P27772259_13-10-2025_20_15_03.pdf 27772271 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=27772271 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette277722711760379303 27772272 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=27772272 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1389285259: '1760378825_188922_1389284461_acdf156672e198e459e2734514ada342_rle_crop_3996714935_0.png', 1389285413: '1760378945_199192_1389285014_6eb3690e04a7f58fb8d5c228c02b3ca1_rle_crop_3996715954_0.png', 1389286384: '1760379144_210851_1389285404_d5f974a3c687de66ff1bbecc3175e65c_rle_crop_3996718037_0.png', 1389286430: '1760379206_214051_1389285386_1bac993b0d013a10c7ac3adb4ebc79fe_rle_crop_3996718332_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/13/c1de2afc9d8a69983add2e30ac3a761d_29723361.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/13/146bd238b18cfbf34c2400e25aeb46c9_30142920.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/13/20c3c106623d3b0be5cc99ab7681dbb1_53799599.png change filename to text .imagette277722721760379303/ imagette277722721760379303/1760378945_199192_1389285014_6eb3690e04a7f58fb8d5c228c02b3ca1_rle_crop_3996715954_0.png.png imagette277722721760379303/1760378825_188922_1389284461_acdf156672e198e459e2734514ada342_rle_crop_3996714935_0.png.png imagette277722721760379303/1760379144_210851_1389285404_d5f974a3c687de66ff1bbecc3175e65c_rle_crop_3996718037_0.png.png imagette277722721760379303/1760379206_214051_1389285386_1bac993b0d013a10c7ac3adb4ebc79fe_rle_crop_3996718332_0.png.png imagette277722741760379303/ wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/13/95764118892d47c99d00d459f0a37394_61323620.png imagette277722721760379303 27772274 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=27772274 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette277722741760379303 27772276 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=27772276 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1389285135: '1760378785_186590_1389284953_28bc5c4ba40112a5f47430785c19accb_rle_crop_3996714242_0.png', 1389285392: '1760378903_196574_1389284987_85150d69f8e0ca6c128218d4e80d5769_rle_crop_3996715444_0.png', 1389285420: '1760378945_199192_1389285067_9601e910970fa66d2cc6ffb20d45ff36_rle_crop_3996715878_0.png', 1389285421: '1760378945_199192_1389285067_9601e910970fa66d2cc6ffb20d45ff36_rle_crop_3996715882_0.png', 1389285422: '1760378945_199192_1389285063_1bc050b4caaa2e66683837d67ee8776e_rle_crop_3996715900_0.png', 1389285423: '1760378945_199192_1389285039_b1d22ecd73f72c44900ee442f2f37511_rle_crop_3996715933_0.png', 1389285424: '1760378945_199192_1389285014_6eb3690e04a7f58fb8d5c228c02b3ca1_rle_crop_3996715945_0.png', 1389286389: '1760379144_210851_1389285410_74a6ef8d4c2eea9b9c2138b703413d38_rle_crop_3996718000_0.png', 1389286390: '1760379144_210851_1389285404_d5f974a3c687de66ff1bbecc3175e65c_rle_crop_3996718030_0.png', 1389286391: '1760379144_210851_1389285400_3cbaeccc82fc235da6f32bd446876de6_rle_crop_3996718067_0.png', 1389286432: '1760379206_214051_1389285386_1bac993b0d013a10c7ac3adb4ebc79fe_rle_crop_3996718333_0.png', 1389286433: '1760379206_214051_1389285244_b3f015f617cd4b6b7e4179226d5c3a00_rle_crop_3996718342_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/13/0b12011b99786a3b444efd973a862f00_52782560.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/13/6c01e30c5ce9db5d8fdea5577f98d063_81225263.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/13/5931cd7bb309fb0dbc024057fe695815_47846252.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/13/f6e6e2c8ec10411e2e55a18b30277aec_2061596.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/13/828a511f6bf4e5500089010c6cec87df_4248263.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/13/3ca1502e89a47a74ae1d1b03778fbe58_13536980.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/13/b0997900f87d69077f92086beadf544d_11509079.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/13/dba6a0ed37a8d66cae66464f325e4948_2881230.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/13/f3d99b7a287d25129ce87deecc035d29_70381360.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/13/2216cb5e4c4089db6423ea6b843acd3d_20280959.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/13/0f3a3787d835264af9d92abb75176e0a_23618708.png change filename to text .imagette277722761760379303/ imagette277722761760379303/1760378785_186590_1389284953_28bc5c4ba40112a5f47430785c19accb_rle_crop_3996714242_0.png.png imagette277722761760379303/1760379206_214051_1389285244_b3f015f617cd4b6b7e4179226d5c3a00_rle_crop_3996718342_0.png.png imagette277722761760379303/1760378945_199192_1389285039_b1d22ecd73f72c44900ee442f2f37511_rle_crop_3996715933_0.png.png imagette277722761760379303/1760378945_199192_1389285014_6eb3690e04a7f58fb8d5c228c02b3ca1_rle_crop_3996715945_0.png.png imagette277722761760379303/1760379206_214051_1389285386_1bac993b0d013a10c7ac3adb4ebc79fe_rle_crop_3996718333_0.png.png imagette277722761760379303/1760378945_199192_1389285067_9601e910970fa66d2cc6ffb20d45ff36_rle_crop_3996715882_0.png.png imagette277722761760379303/1760379144_210851_1389285400_3cbaeccc82fc235da6f32bd446876de6_rle_crop_3996718067_0.png.png imagette277722761760379303/1760378945_199192_1389285067_9601e910970fa66d2cc6ffb20d45ff36_rle_crop_3996715878_0.png.png imagette277722761760379303/1760379144_210851_1389285410_74a6ef8d4c2eea9b9c2138b703413d38_rle_crop_3996718000_0.png.png imagette277722761760379303/1760378903_196574_1389284987_85150d69f8e0ca6c128218d4e80d5769_rle_crop_3996715444_0.png.png imagette277722761760379303/1760379144_210851_1389285404_d5f974a3c687de66ff1bbecc3175e65c_rle_crop_3996718030_0.png.png imagette277722761760379303/1760378945_199192_1389285063_1bc050b4caaa2e66683837d67ee8776e_rle_crop_3996715900_0.png.png wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/13/4d1542b6ef08782d7475039e91d6dfad_82928438.png imagette277722761760379303 27772277 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=27772277 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1389286439: '1760379206_214051_1389285244_b3f015f617cd4b6b7e4179226d5c3a00_rle_crop_3996718355_0.png'} change filename to text .imagette277722771760379304/ imagette277722771760379304/1760379206_214051_1389285244_b3f015f617cd4b6b7e4179226d5c3a00_rle_crop_3996718355_0.png.png imagette277722791760379304/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/13/9f29c5d290392fe494b8506f0b4fdb51_56502255.png imagette277722771760379304 27772279 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=27772279 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette277722791760379304 27772282 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=27772282 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1389285428: '1760378945_199192_1389285063_1bc050b4caaa2e66683837d67ee8776e_rle_crop_3996715901_0.png', 1389286412: '1760379185_212290_1389285379_f7623ec5334a81f23e96dad9153d5365_rle_crop_3996718174_0.png', 1389286438: '1760379206_214051_1389285244_b3f015f617cd4b6b7e4179226d5c3a00_rle_crop_3996718353_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/13/03e9040f4dc5b52f86ebe1d2c433e0d9_22879960.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/13/b808ab871dffe51d9a38f7777c10e082_93436427.png change filename to text .imagette277722821760379304/ imagette277722821760379304/1760379206_214051_1389285244_b3f015f617cd4b6b7e4179226d5c3a00_rle_crop_3996718353_0.png.png imagette277722821760379304/1760378945_199192_1389285063_1bc050b4caaa2e66683837d67ee8776e_rle_crop_3996715901_0.png.png imagette277722821760379304/1760379185_212290_1389285379_f7623ec5334a81f23e96dad9153d5365_rle_crop_3996718174_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/13/09cb78b677a2165fc19361b8126f2569_36634059.png imagette277722821760379304 27772270 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=27772270 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1389285068: '1760378705_181621_1389284647_c555a3d1178495096326f1080fa8ed1c_rle_crop_3996712359_0.png', 1389285069: '1760378705_181621_1389284646_6421893199d84dbc47fbf078add2a31e_rle_crop_3996712417_0.png', 1389285070: '1760378705_181621_1389284644_53967103bdfe2c4a4bfa4ceb3ff3580f_rle_crop_3996712440_0.png', 1389285133: '1760378785_186590_1389284962_6a416028c93306c0096f2a1ffb9fe6be_rle_crop_3996714081_0.png', 1389285134: '1760378785_186590_1389284953_28bc5c4ba40112a5f47430785c19accb_rle_crop_3996714241_0.png', 1389285280: '1760378825_188922_1389284978_0f7b705ccba4acf6cbecbd5f8a14c350_rle_crop_3996714899_0.png', 1389285281: '1760378825_188922_1389284650_6a7898d4004909736ee8a262311a534a_rle_crop_3996714911_0.png', 1389285285: '1760378844_191215_1389284976_094e5a1ad1cfa491f3adf036c67baa49_rle_crop_3996715113_0.png', 1389285286: '1760378844_191215_1389284974_0c47b4fbeaadcf9afe6fc5b62fb08f8e_rle_crop_3996715119_0.png', 1389285287: '1760378844_191215_1389284972_701e3a294a20cd147dcea2ac5951ab0f_rle_crop_3996715131_0.png', 1389285414: '1760378945_199192_1389285067_9601e910970fa66d2cc6ffb20d45ff36_rle_crop_3996715884_0.png', 1389285415: '1760378945_199192_1389285053_41905a53901eccb0994245d67ff9dbd2_rle_crop_3996715920_0.png', 1389285416: '1760378945_199192_1389285039_b1d22ecd73f72c44900ee442f2f37511_rle_crop_3996715936_0.png', 1389286385: '1760379144_210851_1389285407_657af6378d5f3c68a2f8c9eb04201630_rle_crop_3996718021_0.png', 1389286431: '1760379206_214051_1389285165_87de0442313f30a5bfea86297d23db19_rle_crop_3996718400_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/13/fec08df33221e8d05630b588b26bac80_88464639.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/13/a471f03d6757caeab9db32ae6c589820_96333717.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/13/095001f07df604e84e30480bcf986edb_26645913.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/13/92f26039a410252e537ce84c35e92cbe_31564268.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/13/c1ea88f767974b6712ce090247583c4f_73206245.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/13/772bcedc64e521b389305fa9f026c832_83698988.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/13/772bcedc64e521b389305fa9f026c832_63719852.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/13/fec08df33221e8d05630b588b26bac80_44351017.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/13/a471f03d6757caeab9db32ae6c589820_65991553.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/13/095001f07df604e84e30480bcf986edb_7602354.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/13/3d355959abdb7eb843335b2d0a0de8f4_36992528.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/13/3c3ca4a32cd87d56b343432f8f54f0b5_93597684.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/13/8d843bac38aa7687bbd8fafd868062ca_9416962.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/13/78b5245fdc5db8c1e68523e9e9124a33_34967946.png change filename to text .imagette277722701760379305/ imagette277722701760379305/1760378844_191215_1389284976_094e5a1ad1cfa491f3adf036c67baa49_rle_crop_3996715113_0.png.png imagette277722701760379305/1760378945_199192_1389285039_b1d22ecd73f72c44900ee442f2f37511_rle_crop_3996715936_0.png.png imagette277722701760379305/1760378785_186590_1389284962_6a416028c93306c0096f2a1ffb9fe6be_rle_crop_3996714081_0.png.png imagette277722701760379305/1760379206_214051_1389285165_87de0442313f30a5bfea86297d23db19_rle_crop_3996718400_0.png.png imagette277722701760379305/1760378945_199192_1389285067_9601e910970fa66d2cc6ffb20d45ff36_rle_crop_3996715884_0.png.png imagette277722701760379305/1760379144_210851_1389285407_657af6378d5f3c68a2f8c9eb04201630_rle_crop_3996718021_0.png.png imagette277722701760379305/1760378844_191215_1389284972_701e3a294a20cd147dcea2ac5951ab0f_rle_crop_3996715131_0.png.png imagette277722701760379305/1760378705_181621_1389284647_c555a3d1178495096326f1080fa8ed1c_rle_crop_3996712359_0.png.png imagette277722701760379305/1760378844_191215_1389284974_0c47b4fbeaadcf9afe6fc5b62fb08f8e_rle_crop_3996715119_0.png.png imagette277722701760379305/1760378785_186590_1389284953_28bc5c4ba40112a5f47430785c19accb_rle_crop_3996714241_0.png.png imagette277722701760379305/1760378705_181621_1389284646_6421893199d84dbc47fbf078add2a31e_rle_crop_3996712417_0.png.png imagette277722701760379305/1760378825_188922_1389284650_6a7898d4004909736ee8a262311a534a_rle_crop_3996714911_0.png.png imagette277722701760379305/1760378825_188922_1389284978_0f7b705ccba4acf6cbecbd5f8a14c350_rle_crop_3996714899_0.png.png imagette277722701760379305/1760378945_199192_1389285053_41905a53901eccb0994245d67ff9dbd2_rle_crop_3996715920_0.png.png imagette277722701760379305/1760378705_181621_1389284644_53967103bdfe2c4a4bfa4ceb3ff3580f_rle_crop_3996712440_0.png.png wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/13/5c9226a692520c40ba447ed3ecd4823c_9831968.png imagette277722701760379305 27772275 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=27772275 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1389285065: '1760378705_181621_1389284646_6421893199d84dbc47fbf078add2a31e_rle_crop_3996712424_0.png', 1389285130: '1760378785_186590_1389284960_f4856d4743e9dc39064965d104baab65_rle_crop_3996714104_0.png', 1389285131: '1760378785_186590_1389284953_28bc5c4ba40112a5f47430785c19accb_rle_crop_3996714250_0.png', 1389285132: '1760378785_186590_1389284953_28bc5c4ba40112a5f47430785c19accb_rle_crop_3996714245_0.png', 1389285258: '1760378825_188922_1389284458_10c44b50f0a68c40725afe4f83509e23_rle_crop_3996714951_0.png', 1389285284: '1760378844_191215_1389284974_0c47b4fbeaadcf9afe6fc5b62fb08f8e_rle_crop_3996715126_0.png', 1389285433: '1760378965_199603_1389285094_7e0e89a9fbeeed312a9a2fde1db4f5b3_rle_crop_3996716055_0.png', 1389286381: '1760379144_210851_1389285410_74a6ef8d4c2eea9b9c2138b703413d38_rle_crop_3996718003_0.png', 1389286382: '1760379144_210851_1389285410_74a6ef8d4c2eea9b9c2138b703413d38_rle_crop_3996718004_0.png', 1389286383: '1760379144_210851_1389285407_657af6378d5f3c68a2f8c9eb04201630_rle_crop_3996718023_0.png', 1389286425: '1760379206_214051_1389285244_b3f015f617cd4b6b7e4179226d5c3a00_rle_crop_3996718350_0.png', 1389286426: '1760379206_214051_1389285231_404896b1a894e7e234ba89916a236c62_rle_crop_3996718367_0.png', 1389286427: '1760379206_214051_1389285184_b7ad42456a89e7ca35dfd5badc9f13ad_rle_crop_3996718390_0.png', 1389286428: '1760379206_214051_1389285184_b7ad42456a89e7ca35dfd5badc9f13ad_rle_crop_3996718396_0.png', 1389286429: '1760379206_214051_1389285165_87de0442313f30a5bfea86297d23db19_rle_crop_3996718407_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/13/2146fff4a3b2ce0c7beead55f1ae3cd1_76389601.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/13/2b3f8d656378bd73ad22b3686788cec9_71847171.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/13/2f4f115130d71e785ba943eace258fac_93936569.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/13/7ce6d41d621f4b2d317c72f34fe64cb2_87720312.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/13/2af62f5de40d23709eb7801390e88af4_21706425.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/13/2146fff4a3b2ce0c7beead55f1ae3cd1_44367781.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/13/5d9b2fdf6993f191780e9035a3607133_80728605.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/13/d46504bf4863c1e839eca0193e502a40_46930004.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/13/c43549e9b5ce44f28cca89463c083dcc_47768651.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/13/a1930b556edb24302bcedf0712cee908_46076955.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/13/7a478e940714493a3636e0645e3046f3_72265865.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/13/e7a464ff04b68d817e59b1ea3fc86399_91196674.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/13/36f186fcf0ce42084f094af6ac6b4572_91412410.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/13/7e2bc262b167a695be181cf6a635b2da_83976980.png change filename to text .imagette277722751760379306/ imagette277722751760379306/1760379206_214051_1389285244_b3f015f617cd4b6b7e4179226d5c3a00_rle_crop_3996718350_0.png.png imagette277722751760379306/1760378785_186590_1389284953_28bc5c4ba40112a5f47430785c19accb_rle_crop_3996714245_0.png.png imagette277722751760379306/1760378785_186590_1389284960_f4856d4743e9dc39064965d104baab65_rle_crop_3996714104_0.png.png imagette277722751760379306/1760379206_214051_1389285165_87de0442313f30a5bfea86297d23db19_rle_crop_3996718407_0.png.png imagette277722751760379306/1760379206_214051_1389285231_404896b1a894e7e234ba89916a236c62_rle_crop_3996718367_0.png.png imagette277722751760379306/1760379144_210851_1389285407_657af6378d5f3c68a2f8c9eb04201630_rle_crop_3996718023_0.png.png imagette277722751760379306/1760379206_214051_1389285184_b7ad42456a89e7ca35dfd5badc9f13ad_rle_crop_3996718396_0.png.png imagette277722751760379306/1760379144_210851_1389285410_74a6ef8d4c2eea9b9c2138b703413d38_rle_crop_3996718004_0.png.png imagette277722751760379306/1760379206_214051_1389285184_b7ad42456a89e7ca35dfd5badc9f13ad_rle_crop_3996718390_0.png.png imagette277722751760379306/1760378844_191215_1389284974_0c47b4fbeaadcf9afe6fc5b62fb08f8e_rle_crop_3996715126_0.png.png imagette277722751760379306/1760378705_181621_1389284646_6421893199d84dbc47fbf078add2a31e_rle_crop_3996712424_0.png.png imagette277722751760379306/1760379144_210851_1389285410_74a6ef8d4c2eea9b9c2138b703413d38_rle_crop_3996718003_0.png.png imagette277722751760379306/1760378785_186590_1389284953_28bc5c4ba40112a5f47430785c19accb_rle_crop_3996714250_0.png.png imagette277722751760379306/1760378825_188922_1389284458_10c44b50f0a68c40725afe4f83509e23_rle_crop_3996714951_0.png.png imagette277722751760379306/1760378965_199603_1389285094_7e0e89a9fbeeed312a9a2fde1db4f5b3_rle_crop_3996716055_0.png.png wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/13/de8f02b91a656e99c8ab1776da5ba934_69779499.png imagette277722751760379306 27772281 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=27772281 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1389285071: '1760378705_181621_1389284647_c555a3d1178495096326f1080fa8ed1c_rle_crop_3996712358_0.png', 1389285136: '1760378785_186590_1389284957_75f903930208052d5708def63a308793_rle_crop_3996714153_0.png', 1389285137: '1760378785_186590_1389284953_28bc5c4ba40112a5f47430785c19accb_rle_crop_3996714246_0.png', 1389285282: '1760378825_188922_1389284458_10c44b50f0a68c40725afe4f83509e23_rle_crop_3996714950_0.png', 1389285289: '1760378844_191215_1389284976_094e5a1ad1cfa491f3adf036c67baa49_rle_crop_3996715112_0.png', 1389285425: '1760378945_199192_1389285053_41905a53901eccb0994245d67ff9dbd2_rle_crop_3996715925_0.png', 1389285426: '1760378945_199192_1389285014_6eb3690e04a7f58fb8d5c228c02b3ca1_rle_crop_3996715950_0.png', 1389285427: '1760378945_199192_1389285014_6eb3690e04a7f58fb8d5c228c02b3ca1_rle_crop_3996715949_0.png', 1389285434: '1760378965_199603_1389284985_0bfeb0dd10cb9072817ce7686475bb88_rle_crop_3996716064_0.png', 1389286392: '1760379144_210851_1389285410_74a6ef8d4c2eea9b9c2138b703413d38_rle_crop_3996718005_0.png', 1389286393: '1760379144_210851_1389285404_d5f974a3c687de66ff1bbecc3175e65c_rle_crop_3996718034_0.png', 1389286394: '1760379144_210851_1389285402_65339af09d24786e21f8f6826ad6d9cf_rle_crop_3996718045_0.png', 1389286435: '1760379206_214051_1389285244_b3f015f617cd4b6b7e4179226d5c3a00_rle_crop_3996718349_0.png', 1389286436: '1760379206_214051_1389285231_404896b1a894e7e234ba89916a236c62_rle_crop_3996718361_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/13/d86111da939ae1071336ebc6e297327a_73263192.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/13/6be2344192f12a9f83a4933efc8cbb32_68976738.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/13/16a40cd9ed71c6c29a3ef4495a63e7e5_95384171.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/13/c1f0ebc25f183a9947ed924e7c6b1270_59162689.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/13/d86111da939ae1071336ebc6e297327a_87450182.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/13/9d49644264876e4f70315ef79947f6de_79229988.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/13/32d3a33b8cc927fc798ae67ba2c42f62_28245543.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/13/ae445544764db3348dd07373b8d4c50d_31224263.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/13/ee15687327c37086f165f4c48af7e4d3_57112901.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/13/a677b3bb9dc296974d6c1534d06e23cf_52516289.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/13/4c39468648fe034e20e2e5b5002a31de_28935045.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/13/45fa1c5c2f4b58290313bea4c50caaea_61057968.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/13/b4ca5e905dd3953cf6f17789894bda2f_6919447.png change filename to text .imagette277722811760379307/ imagette277722811760379307/1760379206_214051_1389285244_b3f015f617cd4b6b7e4179226d5c3a00_rle_crop_3996718349_0.png.png imagette277722811760379307/1760378945_199192_1389285014_6eb3690e04a7f58fb8d5c228c02b3ca1_rle_crop_3996715950_0.png.png imagette277722811760379307/1760378785_186590_1389284953_28bc5c4ba40112a5f47430785c19accb_rle_crop_3996714246_0.png.png imagette277722811760379307/1760378945_199192_1389285014_6eb3690e04a7f58fb8d5c228c02b3ca1_rle_crop_3996715949_0.png.png imagette277722811760379307/1760379144_210851_1389285402_65339af09d24786e21f8f6826ad6d9cf_rle_crop_3996718045_0.png.png imagette277722811760379307/1760378965_199603_1389284985_0bfeb0dd10cb9072817ce7686475bb88_rle_crop_3996716064_0.png.png imagette277722811760379307/1760378825_188922_1389284458_10c44b50f0a68c40725afe4f83509e23_rle_crop_3996714950_0.png.png imagette277722811760379307/1760378945_199192_1389285053_41905a53901eccb0994245d67ff9dbd2_rle_crop_3996715925_0.png.png imagette277722811760379307/1760378705_181621_1389284647_c555a3d1178495096326f1080fa8ed1c_rle_crop_3996712358_0.png.png imagette277722811760379307/1760378785_186590_1389284957_75f903930208052d5708def63a308793_rle_crop_3996714153_0.png.png imagette277722811760379307/1760379144_210851_1389285410_74a6ef8d4c2eea9b9c2138b703413d38_rle_crop_3996718005_0.png.png imagette277722811760379307/1760378844_191215_1389284976_094e5a1ad1cfa491f3adf036c67baa49_rle_crop_3996715112_0.png.png imagette277722811760379307/1760379144_210851_1389285404_d5f974a3c687de66ff1bbecc3175e65c_rle_crop_3996718034_0.png.png imagette277722811760379307/1760379206_214051_1389285231_404896b1a894e7e234ba89916a236c62_rle_crop_3996718361_0.png.png wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/13/821625f33977dc131367d64ac6f225fd_49026351.png imagette277722811760379307 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=27772259 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/27772284,27772285,27772286,27772288,27772289,27772290,27772291,27772292,27772293,27772294,27772296,27772297?tags=Carton_gris,metal,autre_refus,environnement,mal_croppe,Teint_Dans_La_Masse,cartonnette,kraft,papier,flou,Carton_brun,plastique your option no_mail is active, we will not send the real mail to your client args[1389286443] : ('0.05099674471085791',) no score found for photo 1389286443 We are sending mail with results at report@fotonower.com args[1389286440] : ('0.05099674471085791',) no score found for photo 1389286440 We are sending mail with results at report@fotonower.com args[1389286434] : ('0.05099674471085791',) no score found for photo 1389286434 We are sending mail with results at report@fotonower.com args[1389286423] : ('0.05099674471085791',) no score found for photo 1389286423 We are sending mail with results at report@fotonower.com args[1389286418] : ('0.05099674471085791',) no score found for photo 1389286418 We are sending mail with results at report@fotonower.com args[1389286416] : ('0.05099674471085791',) no score found for photo 1389286416 We are sending mail with results at report@fotonower.com args[1389286413] : ('0.05099674471085791',) no score found for photo 1389286413 We are sending mail with results at report@fotonower.com args[1389286409] : ('0.05099674471085791',) no score found for photo 1389286409 We are sending mail with results at report@fotonower.com args[1389286407] : ('0.05099674471085791',) no score found for photo 1389286407 We are sending mail with results at report@fotonower.com args[1389286405] : ('0.05099674471085791',) no score found for photo 1389286405 We are sending mail with results at report@fotonower.com refus_total : 0.05099674471085791 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=27772259 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_P27772259_13-10-2025_20_15_03.pdf results_Auto_P27772259_13-10-2025_20_15_03.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27772259_13-10-2025_20_15_03.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','27772259','results_Auto_P27772259_13-10-2025_20_15_03.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27772259_13-10-2025_20_15_03.pdf','pdf','','0.25','0.05099674471085791') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([27772259]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1389286443, 1389286440, 1389286434, 1389286423, 1389286418, 1389286416, 1389286413, 1389286409, 1389286407, 1389286405] map_info['map_portfolio_photo'] : {27772259: [1389286443, 1389286440, 1389286434, 1389286423, 1389286418, 1389286416, 1389286413, 1389286409, 1389286407, 1389286405, 1389286033, 1389286030, 1389286028, 1389286014, 1389285973, 1389285971, 1389285968, 1389285966, 1389285965, 1389285963, 1389285717, 1389285448, 1389285445, 1389285441, 1389285438, 1389285417, 1389285410, 1389285407, 1389285404, 1389285402, 1389285400, 1389285386, 1389285383, 1389285380, 1389285379, 1389285253, 1389285244, 1389285231, 1389285211, 1389285184, 1389285165, 1389285115, 1389285112, 1389285110, 1389285109, 1389285094, 1389285067, 1389285063, 1389285053, 1389285039, 1389285014, 1389284987, 1389284985, 1389284984, 1389284983, 1389284978, 1389284976, 1389284974, 1389284972, 1389284970, 1389284962, 1389284960, 1389284957, 1389284955, 1389284953, 1389284650, 1389284647, 1389284646, 1389284644, 1389284469, 1389284461, 1389284458, 1389284404, 1389284401]} final : False mtd_id 4302 list_pids : [1389286443, 1389286440, 1389286434, 1389286423, 1389286418, 1389286416, 1389286413, 1389286409, 1389286407, 1389286405] 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, '3935365') ('4302', '27772259', '1389286443', None, None, None, None, None, '3935365') ('4302', None, None, None, None, None, None, None, '3935365') ('4302', '27772259', '1389286440', None, None, None, None, None, '3935365') ('4302', None, None, None, None, None, None, None, '3935365') ('4302', '27772259', '1389286434', None, None, None, None, None, '3935365') ('4302', None, None, None, None, None, None, None, '3935365') ('4302', '27772259', '1389286423', None, None, None, None, None, '3935365') ('4302', None, None, None, None, None, None, None, '3935365') ('4302', '27772259', '1389286418', None, None, None, None, None, '3935365') ('4302', None, None, None, None, None, None, None, '3935365') ('4302', '27772259', '1389286416', None, None, None, None, None, '3935365') ('4302', None, None, None, None, None, None, None, '3935365') ('4302', '27772259', '1389286413', None, None, None, None, None, '3935365') ('4302', None, None, None, None, None, None, None, '3935365') ('4302', '27772259', '1389286409', None, None, None, None, None, '3935365') ('4302', None, None, None, None, None, None, None, '3935365') ('4302', '27772259', '1389286407', None, None, None, None, None, '3935365') ('4302', None, None, None, None, None, None, None, '3935365') ('4302', '27772259', '1389286405', None, None, None, None, None, '3935365') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 10 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', '27772259', '1389286443', None, None, None, None, None, '3935365'), ('4302', '27772259', '1389286440', None, None, None, None, None, '3935365'), ('4302', '27772259', '1389286434', None, None, None, None, None, '3935365'), ('4302', '27772259', '1389286423', None, None, None, None, None, '3935365'), ('4302', '27772259', '1389286418', None, None, None, None, None, '3935365'), ('4302', '27772259', '1389286416', None, None, None, None, None, '3935365'), ('4302', '27772259', '1389286413', None, None, None, None, None, '3935365'), ('4302', '27772259', '1389286409', None, None, None, None, None, '3935365'), ('4302', '27772259', '1389286407', None, None, None, None, None, '3935365'), ('4302', '27772259', '1389286405', None, None, None, None, None, '3935365')] time used for this insertion : 0.03681230545043945 save_final save missing photos in datou_result : time spend for datou_step_exec : 7.510145902633667 time spend to save output : 0.0370330810546875 total time spend for step 4 : 7.5471789836883545 step5:split_time_score Mon Oct 13 20:15:10 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 : ['27772259'] 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 : [('27772259',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (27772259) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1389286443: {'path': 'temp/1760379303_2805390_1389286443_5ac426aa5cc1de440478c72d9503b75d.jpg', 'extension': 'jpg'}, 1389286423: {'path': 'temp/1760379303_2805390_1389286423_9c26224e63939df518a0393028b4c279.jpg', 'extension': 'jpg'}, 1389286434: {'path': 'temp/1760379303_2805390_1389286434_f7312dc3b53548d75cffd510082f252d.jpg', 'extension': 'jpg'}, 1389286440: {'path': 'temp/1760379303_2805390_1389286440_37b1f092cad079a3c33b3e747c71c0df.jpg', 'extension': 'jpg'}, 1389286413: {'path': 'temp/1760379303_2805390_1389286413_dec6af44390320b71ad764f35397b594.jpg', 'extension': 'jpg'}, 1389286416: {'path': 'temp/1760379303_2805390_1389286416_7630739a9bcbbdf3f75c6a210f9ac307.jpg', 'extension': 'jpg'}, 1389286418: {'path': 'temp/1760379303_2805390_1389286418_bbf18003efbd5e82a5636e589a4f6859.jpg', 'extension': 'jpg'}, 1389286405: {'path': 'temp/1760379303_2805390_1389286405_3c23cc2c594cfd9a743a24a71f7279fa.jpg', 'extension': 'jpg'}, 1389286407: {'path': 'temp/1760379303_2805390_1389286407_8ef1ac48258fd5a45d3979ee9f350a03.jpg', 'extension': 'jpg'}, 1389286409: {'path': 'temp/1760379303_2805390_1389286409_273d2ea13da5201ce49a1b7f44ca1d3f.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 = 27772259; (('arc_en_ciel_jrm_live',), ('arc_en_ciel_jrm',)) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos_view ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 27772259 group by h (('20', 74),) 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=27772259 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 (27772259) 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 (27772259) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 13102025 27772259 Nombre de photos uploadées : 74 / 23040 (0%) 13102025 27772259 Nombre de photos taguées (types de déchets): 0 / 74 (0%) 13102025 27772259 Nombre de photos taguées (volume) : 0 / 74 (0%) [{'photo_id': 1389284469, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/13/a0e79156fbcdcc3f759f5664f11fb7c3.jpg', 'username': None, 'uploaded_at': 1760378473, 'text': 'image_13102025_20_00_04_010141m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1389284461, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/13/acdf156672e198e459e2734514ada342.jpg', 'username': None, 'uploaded_at': 1760378473, 'text': 'image_13102025_20_00_15_010136m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1389284458, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/13/10c44b50f0a68c40725afe4f83509e23.jpg', 'username': None, 'uploaded_at': 1760378473, 'text': 'image_13102025_20_00_25_010145m0.jpg 3.0000000000000004e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1389284404, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/13/4a90d509ab7f4d86796d8f1357173be1.jpg', 'username': None, 'uploaded_at': 1760378473, 'text': 'image_13102025_20_00_34_009126m0.jpg 4e-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.00336456298828125 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 27772259, '2025-10-13' ) 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 (2435629,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.7968785762786865 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= 2435629 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2435629, 'dashboard_run_id': 2448687, 'mtr_portfolio_id': 27750139, 'dashboard_result_id': 16339648, '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_P27750139_13-10-2025_10_33_03.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27750143, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27750144, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27750145, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27750146, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27750147, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27750148, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27750149, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27750150, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27750151, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27750152, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27750153, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27750154, 'pht': 3726}}"}, {'dashboat_entry_day': 2435629, 'dashboard_run_id': 2448687, 'mtr_portfolio_id': 27750385, 'dashboard_result_id': 16339649, '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_P27750385_13-10-2025_10_47_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27750424, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27750425, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27750426, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27750427, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27750428, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27750430, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27750431, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27750432, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27750433, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27750434, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27750435, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27750436, 'pht': 3726}}"}, {'dashboat_entry_day': 2435629, 'dashboard_run_id': 2448687, 'mtr_portfolio_id': 27750838, 'dashboard_result_id': 16339650, '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_P27750838_13-10-2025_11_03_06.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27750858, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27750859, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27750860, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27750861, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27750862, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27750868, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27750876, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27750877, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27750878, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27750879, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27750880, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27750881, 'pht': 3726}}"}, {'dashboat_entry_day': 2435629, 'dashboard_run_id': 2448687, 'mtr_portfolio_id': 27751502, 'dashboard_result_id': 16339651, '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_P27751502_13-10-2025_11_17_06.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27751523, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27751524, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27751525, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27751526, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27751527, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27751528, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27751529, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27751530, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27751531, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27751532, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27751533, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27751534, 'pht': 3726}}"}, {'dashboat_entry_day': 2435629, 'dashboard_run_id': 2448687, 'mtr_portfolio_id': 27752181, 'dashboard_result_id': 16339652, '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_P27752181_13-10-2025_11_33_02.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27752201, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27752202, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27752203, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27752204, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27752205, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27752206, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27752207, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27752208, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27752209, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27752210, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27752211, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27752212, 'pht': 3726}}"}, {'dashboat_entry_day': 2435629, 'dashboard_run_id': 2448687, 'mtr_portfolio_id': 27752664, 'dashboard_result_id': 16339653, '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_P27752664_13-10-2025_11_47_04.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27752719, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27752720, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27752721, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27752722, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27752723, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27752724, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27752725, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27752726, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27752727, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27752728, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27752729, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27752730, 'pht': 3726}}"}, {'dashboat_entry_day': 2435629, 'dashboard_run_id': 2448687, 'mtr_portfolio_id': 27753137, 'dashboard_result_id': 16339654, '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_P27753137_13-10-2025_12_03_03.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27753163, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27753164, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27753165, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27753166, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27753167, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27753168, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27753169, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27753170, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27753171, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27753172, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27753173, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27753174, 'pht': 3726}}"}, {'dashboat_entry_day': 2435629, 'dashboard_run_id': 2448687, 'mtr_portfolio_id': 27753667, 'dashboard_result_id': 16339655, '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_P27753667_13-10-2025_12_19_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27753744, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27753745, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27753746, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27753747, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27753748, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27753749, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27753750, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27753751, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27753752, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27753753, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27753754, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27753755, 'pht': 3726}}"}, {'dashboat_entry_day': 2435629, 'dashboard_run_id': 2448687, 'mtr_portfolio_id': 27754565, 'dashboard_result_id': 16339656, '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_P27754565_13-10-2025_15_01_06.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27754577, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27754578, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27754579, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27754580, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27754581, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27754582, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27754583, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27754584, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27754585, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27754586, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27754587, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27754588, 'pht': 3726}}"}, {'dashboat_entry_day': 2435629, 'dashboard_run_id': 2448687, 'mtr_portfolio_id': 27757265, 'dashboard_result_id': 16339657, '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_P27757265_13-10-2025_14_17_07.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27757266, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27757267, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27757268, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27757269, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27757270, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27757271, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27757272, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27757273, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27757274, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27757275, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27757276, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27757277, 'pht': 3726}}"}, {'dashboat_entry_day': 2435629, 'dashboard_run_id': 2448687, 'mtr_portfolio_id': 27757402, 'dashboard_result_id': 16339658, '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_P27757402_13-10-2025_14_33_04.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27757405, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27757406, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27757407, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27757408, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27757409, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27757410, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27757411, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27757412, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27757413, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27757414, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27757415, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27757416, 'pht': 3726}}"}, {'dashboat_entry_day': 2435629, 'dashboard_run_id': 2448687, 'mtr_portfolio_id': 27757779, 'dashboard_result_id': 16339659, '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_P27757779_13-10-2025_14_47_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27757799, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27757800, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27757801, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27757802, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27757803, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27757804, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27757805, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27757806, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27757807, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27757808, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27757809, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27757810, 'pht': 3726}}"}, {'dashboat_entry_day': 2435629, 'dashboard_run_id': 2448687, 'mtr_portfolio_id': 27758232, 'dashboard_result_id': 16339660, '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_P27758232_13-10-2025_15_03_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27758258, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27758259, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27758260, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27758261, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27758262, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27758263, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27758264, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27758265, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27758266, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27758267, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27758268, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27758269, 'pht': 3726}}"}, {'dashboat_entry_day': 2435629, 'dashboard_run_id': 2448687, 'mtr_portfolio_id': 27758860, 'dashboard_result_id': 16339661, '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_P27758860_13-10-2025_15_19_03.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27758929, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27758930, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27758931, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27758932, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27758933, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27758934, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27758935, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27758936, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27758937, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27758938, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27758939, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27758940, 'pht': 3726}}"}, {'dashboat_entry_day': 2435629, 'dashboard_run_id': 2448687, 'mtr_portfolio_id': 27759717, 'dashboard_result_id': 16339662, '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_P27759717_13-10-2025_15_33_06.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27759733, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27759734, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27759735, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27759736, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27759737, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27759738, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27759739, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27759740, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27759741, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27759742, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27759743, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27759744, 'pht': 3726}}"}, {'dashboat_entry_day': 2435629, 'dashboard_run_id': 2448687, 'mtr_portfolio_id': 27760406, 'dashboard_result_id': 16339663, '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_P27760406_13-10-2025_15_49_07.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27760522, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27760523, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27760524, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27760525, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27760526, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27760527, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27760528, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27760529, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27760530, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27760531, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27760532, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27760533, 'pht': 3726}}"}, {'dashboat_entry_day': 2435629, 'dashboard_run_id': 2448687, 'mtr_portfolio_id': 27761259, 'dashboard_result_id': 16339664, '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_P27761259_13-10-2025_16_03_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27761316, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27761317, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27761318, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27761319, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27761320, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27761321, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27761322, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27761323, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27761324, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27761325, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27761326, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27761327, 'pht': 3726}}"}, {'dashboat_entry_day': 2435629, 'dashboard_run_id': 2448687, 'mtr_portfolio_id': 27761798, 'dashboard_result_id': 16339665, '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_P27761798_13-10-2025_16_17_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27761832, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27761833, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27761834, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27761835, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27761836, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27761837, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27761838, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27761839, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27761840, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27761841, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27761842, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27761843, 'pht': 3726}}"}, {'dashboat_entry_day': 2435629, 'dashboard_run_id': 2448687, 'mtr_portfolio_id': 27762393, 'dashboard_result_id': 16339666, '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_P27762393_13-10-2025_16_33_24.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27762422, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27762423, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27762424, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27762425, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27762426, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27762427, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27762428, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27762429, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27762430, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27762431, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27762432, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27762433, 'pht': 3726}}"}, {'dashboat_entry_day': 2435629, 'dashboard_run_id': 2448687, 'mtr_portfolio_id': 27763081, 'dashboard_result_id': 16339667, '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_P27763081_13-10-2025_16_46_32.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27763112, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27763113, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27763114, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27763115, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27763116, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27763117, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27763118, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27763119, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27763120, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27763121, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27763122, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27763123, 'pht': 3726}}"}, {'dashboat_entry_day': 2435629, 'dashboard_run_id': 2448687, 'mtr_portfolio_id': 27763713, 'dashboard_result_id': 16339668, '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_P27763713_13-10-2025_17_03_04.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27763734, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27763735, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27763736, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27763737, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27763738, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27763739, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27763740, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27763741, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27763742, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27763743, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27763744, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27763745, 'pht': 3726}}"}, {'dashboat_entry_day': 2435629, 'dashboard_run_id': 2448687, 'mtr_portfolio_id': 27764465, 'dashboard_result_id': 16339669, '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_P27764465_13-10-2025_17_19_05.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27764531, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27764532, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27764533, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27764534, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27764535, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27764536, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27764537, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27764538, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27764539, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27764540, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27764541, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27764542, 'pht': 3726}}"}, {'dashboat_entry_day': 2435629, 'dashboard_run_id': 2448687, 'mtr_portfolio_id': 27765262, 'dashboard_result_id': 16339670, '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_P27765262_13-10-2025_17_57_02.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27765340, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27765341, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27765342, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27765343, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27765344, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27765345, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27765346, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27765347, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27765348, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27765349, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27765350, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27765351, 'pht': 3726}}"}, {'dashboat_entry_day': 2435629, 'dashboard_run_id': 2448687, 'mtr_portfolio_id': 27768032, 'dashboard_result_id': 16339671, '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_P27768032_13-10-2025_18_49_05.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27768037, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27768038, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27768039, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27768040, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27768041, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27768042, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27768043, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27768044, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27768045, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27768046, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27768047, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27768048, 'pht': 3726}}"}, {'dashboat_entry_day': 2435629, 'dashboard_run_id': 2448687, 'mtr_portfolio_id': 27768625, 'dashboard_result_id': 16339672, '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_P27768625_13-10-2025_19_03_35.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27768662, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27768663, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27768664, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27768665, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27768666, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27768667, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27768668, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27768669, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27768670, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27768671, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27768672, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27768674, 'pht': 3726}}"}, {'dashboat_entry_day': 2435629, 'dashboard_run_id': 2448687, 'mtr_portfolio_id': 27769118, 'dashboard_result_id': 16339673, '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_P27769118_13-10-2025_19_19_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27769128, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27769129, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27769130, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27769131, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27769132, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27769133, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27769135, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27769136, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27769137, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27769138, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27769139, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27769140, 'pht': 3726}}"}, {'dashboat_entry_day': 2435629, 'dashboard_run_id': 2448687, 'mtr_portfolio_id': 27770028, 'dashboard_result_id': 16339674, '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_P27770028_13-10-2025_19_26_35.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27770039, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27770040, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27770041, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27770042, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27770043, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27770044, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27770045, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27770046, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27770047, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27770048, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27770049, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27770050, 'pht': 3726}}"}, {'dashboat_entry_day': 2435629, 'dashboard_run_id': 2448687, 'mtr_portfolio_id': 27770708, 'dashboard_result_id': 16339675, '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_P27770708_13-10-2025_19_49_05.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27770739, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27770740, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27770741, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27770742, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27770743, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27770744, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27770745, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27770746, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27770747, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27770748, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27770749, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27770750, 'pht': 3726}}"}, {'dashboat_entry_day': 2435629, 'dashboard_run_id': 2448687, 'mtr_portfolio_id': 27771552, 'dashboard_result_id': 16339676, '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_P27771552_13-10-2025_20_03_35.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27771642, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27771643, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27771644, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27771645, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27771646, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27771647, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27771648, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27771649, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27771650, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27771651, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27771652, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27771653, 'pht': 3726}}"}, {'dashboat_entry_day': 2435629, 'dashboard_run_id': 2448687, 'mtr_portfolio_id': 27772259, 'dashboard_result_id': 16339677, '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_P27772259_13-10-2025_20_13_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27772270, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27772271, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27772272, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27772273, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27772274, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27772275, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27772276, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27772277, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27772278, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27772279, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27772281, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27772282, '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 = 27750139 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': 3931811, 'mtr_portfolio_id': 27750139, 'created_at': datetime.datetime(2025, 10, 13, 10, 33, 2), 'result': '0.03765313287877257', 'result_long': None, 'result_double': None}] Qualite : 0.03765313287877257 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27750139 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27750139_13-10-2025_10_33_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27750139 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_P27750139_13-10-2025_10_33_03.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27750143, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27750144, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27750145, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27750146, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27750147, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27750148, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27750149, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27750150, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27750151, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27750152, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27750153, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27750154, 'pht': 3726}}" where mtr_portfolio_id = 27750139 and dashboard_run_id = 2448687 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`=27750139 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16339648, 0.03765313287877257, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27750139_13-10-2025_10_33_03.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27750143, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27750144, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27750145, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27750146, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27750147, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27750148, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27750149, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27750150, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27750151, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27750152, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27750153, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27750154, '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 = 27750385 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': 3931975, 'mtr_portfolio_id': 27750385, 'created_at': datetime.datetime(2025, 10, 13, 10, 47, 1), 'result': '0.02959570099247721', 'result_long': None, 'result_double': None}] Qualite : 0.02959570099247721 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27750385 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27750385_13-10-2025_10_47_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27750385 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_P27750385_13-10-2025_10_47_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27750424, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27750425, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27750426, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27750427, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27750428, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27750430, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27750431, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27750432, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27750433, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27750434, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27750435, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27750436, 'pht': 3726}}" where mtr_portfolio_id = 27750385 and dashboard_run_id = 2448687 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`=27750385 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16339649, 0.02959570099247721, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27750385_13-10-2025_10_47_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27750424, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27750425, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27750426, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27750427, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27750428, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27750430, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27750431, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27750432, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27750433, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27750434, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27750435, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27750436, '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 = 27750838 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': 3932061, 'mtr_portfolio_id': 27750838, 'created_at': datetime.datetime(2025, 10, 13, 11, 3, 6), 'result': '0.09167198574857091', 'result_long': None, 'result_double': None}] Qualite : 0.09167198574857091 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27750838 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27750838_13-10-2025_11_03_06.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27750838 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_P27750838_13-10-2025_11_03_06.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27750858, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27750859, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27750860, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27750861, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27750862, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27750868, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27750876, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27750877, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27750878, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27750879, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27750880, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27750881, 'pht': 3726}}" where mtr_portfolio_id = 27750838 and dashboard_run_id = 2448687 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`=27750838 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16339650, 0.09167198574857091, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27750838_13-10-2025_11_03_06.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27750858, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27750859, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27750860, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27750861, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27750862, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27750868, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27750876, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27750877, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27750878, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27750879, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27750880, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27750881, '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 = 27751502 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': 3932193, 'mtr_portfolio_id': 27751502, 'created_at': datetime.datetime(2025, 10, 13, 11, 17, 6), 'result': '0.05081306349443002', 'result_long': None, 'result_double': None}] Qualite : 0.05081306349443002 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27751502 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27751502_13-10-2025_11_17_06.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27751502 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_P27751502_13-10-2025_11_17_06.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27751523, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27751524, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27751525, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27751526, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27751527, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27751528, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27751529, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27751530, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27751531, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27751532, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27751533, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27751534, 'pht': 3726}}" where mtr_portfolio_id = 27751502 and dashboard_run_id = 2448687 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`=27751502 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16339651, 0.05081306349443002, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27751502_13-10-2025_11_17_06.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27751523, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27751524, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27751525, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27751526, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27751527, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27751528, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27751529, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27751530, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27751531, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27751532, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27751533, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27751534, '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 = 27752181 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': 3932329, 'mtr_portfolio_id': 27752181, 'created_at': datetime.datetime(2025, 10, 13, 11, 33, 1), 'result': '0.0303037733730339', 'result_long': None, 'result_double': None}] Qualite : 0.0303037733730339 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27752181 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27752181_13-10-2025_11_33_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27752181 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_P27752181_13-10-2025_11_33_02.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27752201, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27752202, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27752203, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27752204, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27752205, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27752206, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27752207, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27752208, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27752209, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27752210, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27752211, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27752212, 'pht': 3726}}" where mtr_portfolio_id = 27752181 and dashboard_run_id = 2448687 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`=27752181 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16339652, 0.0303037733730339, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27752181_13-10-2025_11_33_02.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27752201, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27752202, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27752203, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27752204, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27752205, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27752206, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27752207, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27752208, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27752209, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27752210, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27752211, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27752212, '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 = 27752664 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': 3932430, 'mtr_portfolio_id': 27752664, 'created_at': datetime.datetime(2025, 10, 13, 11, 47, 4), 'result': '0.037569901543717615', 'result_long': None, 'result_double': None}] Qualite : 0.037569901543717615 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27752664 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27752664_13-10-2025_11_47_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27752664 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_P27752664_13-10-2025_11_47_04.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27752719, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27752720, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27752721, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27752722, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27752723, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27752724, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27752725, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27752726, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27752727, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27752728, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27752729, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27752730, 'pht': 3726}}" where mtr_portfolio_id = 27752664 and dashboard_run_id = 2448687 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`=27752664 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16339653, 0.037569901543717615, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27752664_13-10-2025_11_47_04.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27752719, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27752720, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27752721, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27752722, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27752723, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27752724, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27752725, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27752726, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27752727, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27752728, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27752729, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27752730, '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 = 27753137 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': 3932531, 'mtr_portfolio_id': 27753137, 'created_at': datetime.datetime(2025, 10, 13, 12, 3, 2), 'result': '0.04076401619369733', 'result_long': None, 'result_double': None}] Qualite : 0.04076401619369733 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27753137 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27753137_13-10-2025_12_03_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27753137 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_P27753137_13-10-2025_12_03_03.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27753163, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27753164, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27753165, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27753166, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27753167, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27753168, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27753169, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27753170, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27753171, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27753172, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27753173, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27753174, 'pht': 3726}}" where mtr_portfolio_id = 27753137 and dashboard_run_id = 2448687 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`=27753137 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16339654, 0.04076401619369733, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27753137_13-10-2025_12_03_03.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27753163, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27753164, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27753165, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27753166, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27753167, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27753168, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27753169, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27753170, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27753171, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27753172, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27753173, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27753174, '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 = 27753667 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': 3932669, 'mtr_portfolio_id': 27753667, 'created_at': datetime.datetime(2025, 10, 13, 12, 19), 'result': '0.05600058497762209', 'result_long': None, 'result_double': None}] Qualite : 0.05600058497762209 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27753667 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27753667_13-10-2025_12_19_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27753667 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_P27753667_13-10-2025_12_19_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27753744, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27753745, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27753746, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27753747, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27753748, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27753749, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27753750, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27753751, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27753752, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27753753, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27753754, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27753755, 'pht': 3726}}" where mtr_portfolio_id = 27753667 and dashboard_run_id = 2448687 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`=27753667 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16339655, 0.05600058497762209, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27753667_13-10-2025_12_19_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27753744, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27753745, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27753746, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27753747, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27753748, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27753749, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27753750, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27753751, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27753752, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27753753, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27753754, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27753755, '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 = 27754565 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': 3932801, 'mtr_portfolio_id': 27754565, 'created_at': datetime.datetime(2025, 10, 13, 15, 1, 6), 'result': '0.057838853624455344', 'result_long': None, 'result_double': None}] Qualite : 0.057838853624455344 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27754565 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27754565_13-10-2025_15_01_06.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27754565 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_P27754565_13-10-2025_15_01_06.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27754577, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27754578, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27754579, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27754580, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27754581, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27754582, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27754583, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27754584, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27754585, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27754586, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27754587, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27754588, 'pht': 3726}}" where mtr_portfolio_id = 27754565 and dashboard_run_id = 2448687 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`=27754565 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16339656, 0.057838853624455344, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27754565_13-10-2025_15_01_06.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27754577, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27754578, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27754579, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27754580, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27754581, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27754582, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27754583, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27754584, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27754585, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27754586, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27754587, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27754588, '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 = 27757265 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': 3933204, 'mtr_portfolio_id': 27757265, 'created_at': datetime.datetime(2025, 10, 13, 14, 17, 7), 'result': '0.10866003822241573', 'result_long': None, 'result_double': None}] Qualite : 0.10866003822241573 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27757265 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27757265_13-10-2025_14_17_07.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27757265 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_P27757265_13-10-2025_14_17_07.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27757266, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27757267, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27757268, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27757269, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27757270, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27757271, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27757272, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27757273, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27757274, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27757275, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27757276, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27757277, 'pht': 3726}}" where mtr_portfolio_id = 27757265 and dashboard_run_id = 2448687 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`=27757265 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16339657, 0.10866003822241573, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27757265_13-10-2025_14_17_07.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27757266, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27757267, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27757268, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27757269, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27757270, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27757271, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27757272, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27757273, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27757274, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27757275, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27757276, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27757277, '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 = 27757402 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': 3933214, 'mtr_portfolio_id': 27757402, 'created_at': datetime.datetime(2025, 10, 13, 14, 33, 4), 'result': '0.07203029895235419', 'result_long': None, 'result_double': None}] Qualite : 0.07203029895235419 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27757402 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27757402_13-10-2025_14_33_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27757402 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_P27757402_13-10-2025_14_33_04.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27757405, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27757406, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27757407, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27757408, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27757409, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27757410, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27757411, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27757412, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27757413, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27757414, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27757415, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27757416, 'pht': 3726}}" where mtr_portfolio_id = 27757402 and dashboard_run_id = 2448687 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`=27757402 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16339658, 0.07203029895235419, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27757402_13-10-2025_14_33_04.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27757405, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27757406, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27757407, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27757408, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27757409, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27757410, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27757411, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27757412, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27757413, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27757414, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27757415, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27757416, '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 = 27757779 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': 3933270, 'mtr_portfolio_id': 27757779, 'created_at': datetime.datetime(2025, 10, 13, 14, 47), 'result': '0.043813097921128565', 'result_long': None, 'result_double': None}] Qualite : 0.043813097921128565 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27757779 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27757779_13-10-2025_14_47_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27757779 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_P27757779_13-10-2025_14_47_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27757799, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27757800, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27757801, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27757802, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27757803, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27757804, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27757805, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27757806, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27757807, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27757808, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27757809, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27757810, 'pht': 3726}}" where mtr_portfolio_id = 27757779 and dashboard_run_id = 2448687 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`=27757779 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16339659, 0.043813097921128565, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27757779_13-10-2025_14_47_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27757799, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27757800, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27757801, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27757802, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27757803, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27757804, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27757805, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27757806, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27757807, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27757808, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27757809, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27757810, '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 = 27758232 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': 3933347, 'mtr_portfolio_id': 27758232, 'created_at': datetime.datetime(2025, 10, 13, 15, 3), 'result': '0.054153928973396354', 'result_long': None, 'result_double': None}] Qualite : 0.054153928973396354 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27758232 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27758232_13-10-2025_15_03_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27758232 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_P27758232_13-10-2025_15_03_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27758258, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27758259, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27758260, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27758261, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27758262, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27758263, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27758264, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27758265, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27758266, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27758267, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27758268, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27758269, 'pht': 3726}}" where mtr_portfolio_id = 27758232 and dashboard_run_id = 2448687 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`=27758232 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16339660, 0.054153928973396354, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27758232_13-10-2025_15_03_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27758258, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27758259, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27758260, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27758261, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27758262, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27758263, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27758264, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27758265, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27758266, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27758267, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27758268, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27758269, '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 = 27758860 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': 3933489, 'mtr_portfolio_id': 27758860, 'created_at': datetime.datetime(2025, 10, 13, 15, 19, 2), 'result': '0.034858625092209675', 'result_long': None, 'result_double': None}] Qualite : 0.034858625092209675 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27758860 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27758860_13-10-2025_15_19_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27758860 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_P27758860_13-10-2025_15_19_03.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27758929, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27758930, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27758931, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27758932, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27758933, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27758934, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27758935, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27758936, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27758937, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27758938, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27758939, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27758940, 'pht': 3726}}" where mtr_portfolio_id = 27758860 and dashboard_run_id = 2448687 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`=27758860 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16339661, 0.034858625092209675, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27758860_13-10-2025_15_19_03.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27758929, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27758930, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27758931, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27758932, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27758933, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27758934, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27758935, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27758936, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27758937, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27758938, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27758939, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27758940, '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 = 27759717 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': 3933614, 'mtr_portfolio_id': 27759717, 'created_at': datetime.datetime(2025, 10, 13, 15, 33, 5), 'result': '0.044048282392440276', 'result_long': None, 'result_double': None}] Qualite : 0.044048282392440276 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27759717 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27759717_13-10-2025_15_33_06.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27759717 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_P27759717_13-10-2025_15_33_06.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27759733, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27759734, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27759735, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27759736, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27759737, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27759738, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27759739, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27759740, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27759741, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27759742, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27759743, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27759744, 'pht': 3726}}" where mtr_portfolio_id = 27759717 and dashboard_run_id = 2448687 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`=27759717 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16339662, 0.044048282392440276, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27759717_13-10-2025_15_33_06.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27759733, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27759734, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27759735, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27759736, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27759737, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27759738, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27759739, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27759740, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27759741, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27759742, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27759743, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27759744, '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 = 27760406 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': 3933738, 'mtr_portfolio_id': 27760406, 'created_at': datetime.datetime(2025, 10, 13, 15, 49, 7), 'result': '0.041593711482670624', 'result_long': None, 'result_double': None}] Qualite : 0.041593711482670624 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27760406 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27760406_13-10-2025_15_49_07.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27760406 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_P27760406_13-10-2025_15_49_07.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27760522, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27760523, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27760524, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27760525, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27760526, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27760527, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27760528, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27760529, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27760530, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27760531, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27760532, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27760533, 'pht': 3726}}" where mtr_portfolio_id = 27760406 and dashboard_run_id = 2448687 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`=27760406 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16339663, 0.041593711482670624, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27760406_13-10-2025_15_49_07.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27760522, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27760523, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27760524, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27760525, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27760526, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27760527, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27760528, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27760529, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27760530, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27760531, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27760532, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27760533, '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 = 27761259 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': 3933866, 'mtr_portfolio_id': 27761259, 'created_at': datetime.datetime(2025, 10, 13, 16, 2, 59), 'result': '0.04918907781758394', 'result_long': None, 'result_double': None}] Qualite : 0.04918907781758394 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27761259 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27761259_13-10-2025_16_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27761259 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_P27761259_13-10-2025_16_03_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27761316, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27761317, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27761318, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27761319, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27761320, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27761321, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27761322, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27761323, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27761324, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27761325, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27761326, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27761327, 'pht': 3726}}" where mtr_portfolio_id = 27761259 and dashboard_run_id = 2448687 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`=27761259 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16339664, 0.04918907781758394, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27761259_13-10-2025_16_03_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27761316, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27761317, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27761318, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27761319, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27761320, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27761321, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27761322, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27761323, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27761324, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27761325, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27761326, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27761327, '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 = 27761798 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': 3933971, 'mtr_portfolio_id': 27761798, 'created_at': datetime.datetime(2025, 10, 13, 16, 17, 1), 'result': '0.06450450747349579', 'result_long': None, 'result_double': None}] Qualite : 0.06450450747349579 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27761798 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27761798_13-10-2025_16_17_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27761798 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_P27761798_13-10-2025_16_17_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27761832, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27761833, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27761834, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27761835, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27761836, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27761837, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27761838, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27761839, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27761840, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27761841, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27761842, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27761843, 'pht': 3726}}" where mtr_portfolio_id = 27761798 and dashboard_run_id = 2448687 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`=27761798 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16339665, 0.06450450747349579, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27761798_13-10-2025_16_17_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27761832, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27761833, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27761834, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27761835, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27761836, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27761837, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27761838, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27761839, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27761840, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27761841, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27761842, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27761843, '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 = 27762393 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': 3934082, 'mtr_portfolio_id': 27762393, 'created_at': datetime.datetime(2025, 10, 13, 16, 33, 24), 'result': '0.042169402691871416', 'result_long': None, 'result_double': None}] Qualite : 0.042169402691871416 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27762393 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27762393_13-10-2025_16_33_24.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27762393 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_P27762393_13-10-2025_16_33_24.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27762422, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27762423, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27762424, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27762425, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27762426, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27762427, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27762428, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27762429, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27762430, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27762431, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27762432, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27762433, 'pht': 3726}}" where mtr_portfolio_id = 27762393 and dashboard_run_id = 2448687 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`=27762393 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16339666, 0.042169402691871416, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27762393_13-10-2025_16_33_24.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27762422, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27762423, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27762424, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27762425, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27762426, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27762427, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27762428, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27762429, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27762430, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27762431, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27762432, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27762433, '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 = 27763081 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': 3934194, 'mtr_portfolio_id': 27763081, 'created_at': datetime.datetime(2025, 10, 13, 16, 46, 31), 'result': '0.06781693171488098', 'result_long': None, 'result_double': None}] Qualite : 0.06781693171488098 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27763081 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27763081_13-10-2025_16_46_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27763081 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_P27763081_13-10-2025_16_46_32.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27763112, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27763113, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27763114, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27763115, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27763116, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27763117, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27763118, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27763119, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27763120, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27763121, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27763122, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27763123, 'pht': 3726}}" where mtr_portfolio_id = 27763081 and dashboard_run_id = 2448687 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`=27763081 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16339667, 0.06781693171488098, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27763081_13-10-2025_16_46_32.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27763112, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27763113, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27763114, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27763115, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27763116, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27763117, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27763118, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27763119, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27763120, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27763121, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27763122, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27763123, '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 = 27763713 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': 3934281, 'mtr_portfolio_id': 27763713, 'created_at': datetime.datetime(2025, 10, 13, 17, 3, 4), 'result': '0.039448705985813064', 'result_long': None, 'result_double': None}] Qualite : 0.039448705985813064 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27763713 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27763713_13-10-2025_17_03_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27763713 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_P27763713_13-10-2025_17_03_04.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27763734, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27763735, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27763736, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27763737, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27763738, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27763739, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27763740, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27763741, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27763742, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27763743, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27763744, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27763745, 'pht': 3726}}" where mtr_portfolio_id = 27763713 and dashboard_run_id = 2448687 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`=27763713 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16339668, 0.039448705985813064, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27763713_13-10-2025_17_03_04.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27763734, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27763735, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27763736, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27763737, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27763738, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27763739, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27763740, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27763741, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27763742, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27763743, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27763744, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27763745, '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 = 27764465 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': 3934412, 'mtr_portfolio_id': 27764465, 'created_at': datetime.datetime(2025, 10, 13, 17, 19, 5), 'result': '0.050876330322581424', 'result_long': None, 'result_double': None}] Qualite : 0.050876330322581424 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27764465 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27764465_13-10-2025_17_19_05.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27764465 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_P27764465_13-10-2025_17_19_05.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27764531, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27764532, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27764533, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27764534, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27764535, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27764536, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27764537, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27764538, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27764539, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27764540, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27764541, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27764542, 'pht': 3726}}" where mtr_portfolio_id = 27764465 and dashboard_run_id = 2448687 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`=27764465 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16339669, 0.050876330322581424, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27764465_13-10-2025_17_19_05.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27764531, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27764532, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27764533, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27764534, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27764535, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27764536, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27764537, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27764538, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27764539, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27764540, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27764541, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27764542, '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 = 27765262 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': 3934515, 'mtr_portfolio_id': 27765262, 'created_at': datetime.datetime(2025, 10, 13, 17, 57, 1), 'result': '0.04540260544161482', 'result_long': None, 'result_double': None}] Qualite : 0.04540260544161482 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27765262 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27765262_13-10-2025_17_57_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27765262 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_P27765262_13-10-2025_17_57_02.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27765340, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27765341, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27765342, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27765343, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27765344, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27765345, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27765346, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27765347, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27765348, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27765349, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27765350, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27765351, 'pht': 3726}}" where mtr_portfolio_id = 27765262 and dashboard_run_id = 2448687 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`=27765262 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16339670, 0.04540260544161482, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27765262_13-10-2025_17_57_02.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27765340, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27765341, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27765342, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27765343, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27765344, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27765345, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27765346, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27765347, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27765348, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27765349, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27765350, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27765351, '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 = 27768032 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': 3934824, 'mtr_portfolio_id': 27768032, 'created_at': datetime.datetime(2025, 10, 13, 18, 49, 4), 'result': '0.03976349519331651', 'result_long': None, 'result_double': None}] Qualite : 0.03976349519331651 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27768032 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27768032_13-10-2025_18_49_05.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27768032 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_P27768032_13-10-2025_18_49_05.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27768037, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27768038, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27768039, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27768040, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27768041, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27768042, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27768043, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27768044, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27768045, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27768046, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27768047, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27768048, 'pht': 3726}}" where mtr_portfolio_id = 27768032 and dashboard_run_id = 2448687 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`=27768032 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16339671, 0.03976349519331651, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27768032_13-10-2025_18_49_05.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27768037, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27768038, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27768039, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27768040, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27768041, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27768042, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27768043, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27768044, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27768045, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27768046, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27768047, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27768048, '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 = 27768625 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': 3934864, 'mtr_portfolio_id': 27768625, 'created_at': datetime.datetime(2025, 10, 13, 19, 3, 34), 'result': '0.030419946972035487', 'result_long': None, 'result_double': None}] Qualite : 0.030419946972035487 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27768625 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27768625_13-10-2025_19_03_35.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27768625 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_P27768625_13-10-2025_19_03_35.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27768662, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27768663, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27768664, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27768665, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27768666, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27768667, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27768668, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27768669, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27768670, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27768671, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27768672, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27768674, 'pht': 3726}}" where mtr_portfolio_id = 27768625 and dashboard_run_id = 2448687 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`=27768625 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16339672, 0.030419946972035487, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27768625_13-10-2025_19_03_35.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27768662, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27768663, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27768664, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27768665, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27768666, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27768667, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27768668, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27768669, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27768670, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27768671, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27768672, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27768674, '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 = 27769118 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': 3934932, 'mtr_portfolio_id': 27769118, 'created_at': datetime.datetime(2025, 10, 13, 19, 19, 30), 'result': '0.0980718256631456', 'result_long': None, 'result_double': None}] Qualite : 0.0980718256631456 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27769118 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27769118_13-10-2025_19_19_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27769118 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_P27769118_13-10-2025_19_19_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27769128, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27769129, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27769130, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27769131, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27769132, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27769133, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27769135, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27769136, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27769137, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27769138, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27769139, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27769140, 'pht': 3726}}" where mtr_portfolio_id = 27769118 and dashboard_run_id = 2448687 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`=27769118 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16339673, 0.0980718256631456, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27769118_13-10-2025_19_19_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27769128, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27769129, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27769130, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27769131, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27769132, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27769133, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27769135, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27769136, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27769137, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27769138, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27769139, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27769140, '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 = 27770028 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': 3935031, 'mtr_portfolio_id': 27770028, 'created_at': datetime.datetime(2025, 10, 13, 19, 26, 34), 'result': '0.042155822542421374', 'result_long': None, 'result_double': None}] Qualite : 0.042155822542421374 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27770028 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27770028_13-10-2025_19_26_35.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27770028 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_P27770028_13-10-2025_19_26_35.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27770039, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27770040, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27770041, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27770042, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27770043, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27770044, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27770045, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27770046, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27770047, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27770048, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27770049, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27770050, 'pht': 3726}}" where mtr_portfolio_id = 27770028 and dashboard_run_id = 2448691 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`=27770028 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16339674, 0.042155822542421374, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27770028_13-10-2025_19_26_35.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27770039, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27770040, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27770041, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27770042, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27770043, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27770044, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27770045, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27770046, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27770047, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27770048, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27770049, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27770050, '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 = 27770708 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': 3935125, 'mtr_portfolio_id': 27770708, 'created_at': datetime.datetime(2025, 10, 13, 19, 49, 4), 'result': '0.05930816603634186', 'result_long': None, 'result_double': None}] Qualite : 0.05930816603634186 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27770708 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27770708_13-10-2025_19_49_05.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27770708 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_P27770708_13-10-2025_19_49_05.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27770739, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27770740, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27770741, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27770742, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27770743, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27770744, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27770745, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27770746, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27770747, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27770748, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27770749, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27770750, 'pht': 3726}}" where mtr_portfolio_id = 27770708 and dashboard_run_id = 2448691 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`=27770708 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16339675, 0.05930816603634186, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27770708_13-10-2025_19_49_05.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27770739, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27770740, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27770741, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27770742, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27770743, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27770744, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27770745, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27770746, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27770747, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27770748, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27770749, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27770750, '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 = 27771552 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': 3935258, 'mtr_portfolio_id': 27771552, 'created_at': datetime.datetime(2025, 10, 13, 20, 3, 35), 'result': '0.04773611077474402', 'result_long': None, 'result_double': None}] Qualite : 0.04773611077474402 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27771552 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27771552_13-10-2025_20_03_35.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27771552 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_P27771552_13-10-2025_20_03_35.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27771642, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27771643, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27771644, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27771645, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27771646, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27771647, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27771648, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27771649, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27771650, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27771651, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27771652, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27771653, 'pht': 3726}}" where mtr_portfolio_id = 27771552 and dashboard_run_id = 2448691 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`=27771552 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16339676, 0.04773611077474402, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27771552_13-10-2025_20_03_35.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27771642, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27771643, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27771644, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27771645, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27771646, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27771647, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27771648, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27771649, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27771650, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27771651, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27771652, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27771653, '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 = 27772259 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': 3935365, 'mtr_portfolio_id': 27772259, 'created_at': datetime.datetime(2025, 10, 13, 20, 15, 2), 'result': '0.05099674471085791', 'result_long': None, 'result_double': None}] Qualite : 0.05099674471085791 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27772259 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27772259_13-10-2025_20_15_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27772259 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_P27772259_13-10-2025_20_15_03.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27772270, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27772271, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27772272, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27772273, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27772274, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27772275, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27772276, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27772277, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27772278, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27772279, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27772281, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27772282, 'pht': 3726}}" where mtr_portfolio_id = 27772259 and dashboard_run_id = 2448691 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`=27772259 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16339677, 0.05099674471085791, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27772259_13-10-2025_20_15_03.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27772270, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27772271, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27772272, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27772273, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27772274, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27772275, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27772276, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27772277, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27772278, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27772279, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27772281, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27772282, '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 (27750139,27750385,27750838,27751502,27752181,27752664,27753137,27753667,27754565,27757265,27757402,27757779,27758232,27758860,27759717,27760406,27761259,27761798,27762393,27763081,27763713,27764465,27765262,27768032,27768625,27769118,27770028,27770708,27771552,27772259) result : ((1389193641,), (1389193643,), (1389193711,), (1389193713,), (1389193726,), (1389193774,), (1389193966,), (1389193967,), (1389193969,), (1389193989,), (1389194108,), (1389194110,), (1389194112,), (1389194114,), (1389194138,), (1389194139,), (1389194141,), (1389194225,), (1389194229,), (1389194234,), (1389194309,), (1389194322,), (1389194327,), (1389194332,), (1389194337,), (1389194361,), (1389194364,), (1389194366,), (1389194370,), (1389194373,), (1389194480,), (1389194477,), (1389194492,), (1389194500,), (1389194516,), (1389194541,), (1389194543,), (1389194545,), (1389194550,), (1389194553,), (1389194556,), (1389194602,), (1389194606,), (1389194608,), (1389194626,), (1389194628,), (1389194630,), (1389194633,), (1389194669,), (1389194672,), (1389194674,), (1389194739,), (1389194752,), (1389194754,), (1389194757,), (1389194767,), (1389194815,), (1389194817,), (1389194818,), (1389194821,), (1389194842,), (1389194845,), (1389194848,), (1389194874,), (1389194876,), (1389194878,), (1389194881,), (1389194892,), (1389194893,), (1389194895,), (1389194898,), (1389194902,), (1389194944,), (1389194948,), (1389194951,), (1389194954,), (1389194957,), (1389194960,), (1389194980,), (1389194984,), (1389194990,), (1389194994,), (1389194998,), (1389195002,), (1389195010,), (1389195011,), (1389195013,), (1389195015,), (1389195020,), (1389195022,), (1389195030,), (1389195032,), (1389195040,), (1389195041,), (1389195080,), (1389195082,), (1389195097,), (1389195170,), (1389195165,), (1389195167,), (1389195168,), (1389195217,), (1389195224,), (1389195225,), (1389195386,), (1389195388,), (1389195408,), (1389195409,), (1389195410,), (1389195434,), (1389195440,), (1389195443,), (1389195447,), (1389195451,), (1389195461,), (1389195463,), (1389195465,), (1389195564,), (1389195674,), (1389195676,), (1389195679,), (1389195685,), (1389195694,), (1389195697,), (1389195716,), (1389195748,), (1389195757,), (1389195809,), (1389195813,), (1389195833,), (1389195851,), (1389195875,), (1389195892,), (1389195903,), (1389196415,), (1389196446,), (1389196452,), (1389196458,), (1389196462,), (1389196474,), (1389196475,), (1389197065,), (1389196864,), (1389197060,), (1389197063,), (1389197369,), (1389197385,), (1389197428,), (1389197432,), (1389197436,), (1389198019,), (1389198021,), (1389198023,), (1389198230,), (1389198257,), (1389198262,), (1389198264,), (1389198269,), (1389198317,), (1389198339,), (1389198341,), (1389198344,), (1389198377,), (1389198378,), (1389198379,), (1389198382,), (1389198397,), (1389198398,), (1389198399,), (1389198402,), (1389198407,), (1389198427,), (1389198429,), (1389198432,), (1389198470,), (1389198479,), (1389198598,), (1389198601,), (1389198606,), (1389198618,), (1389198620,), (1389198664,), (1389198688,), (1389198695,), (1389198819,), (1389198826,), (1389198830,), (1389198832,), (1389198863,), (1389198867,), (1389198882,), (1389198918,), (1389199132,), (1389199134,), (1389199136,), (1389199387,), (1389199391,), (1389199850,), (1389199859,), (1389199862,), (1389199867,), (1389199870,), (1389199878,), (1389199879,), (1389199882,), (1389199884,), (1389199888,), (1389199902,), (1389199905,), (1389199920,), (1389199924,), (1389200000,), (1389200001,), (1389200002,), (1389200005,), (1389200058,), (1389200059,), (1389200064,), (1389200070,), (1389200077,), (1389200104,), (1389200120,), (1389200135,), (1389200147,), (1389200148,), (1389200150,), (1389200252,), (1389200262,), (1389200304,), (1389200313,), (1389200353,), (1389200355,), (1389200357,), (1389200387,), (1389200404,), (1389200405,), (1389200408,), (1389200411,), (1389200472,), (1389200473,), (1389200474,), (1389200477,), (1389200481,), (1389200484,), (1389200498,), (1389200503,), (1389200505,), (1389200586,), (1389200587,), (1389200630,), (1389200617,), (1389200620,), (1389200626,), (1389200678,), (1389200679,), (1389200681,), (1389200707,), (1389200715,), (1389200725,), (1389200734,), (1389200749,), (1389200759,), (1389200766,), (1389200768,), (1389200769,), (1389200770,), (1389200771,), (1389200773,), (1389200776,), (1389200802,), (1389200828,), (1389200831,), (1389200833,), (1389200837,), (1389200841,), (1389200869,), (1389200876,), (1389200886,), (1389200890,), (1389200893,), (1389200942,), (1389200950,), (1389200951,), (1389200954,), (1389200996,), (1389200997,), (1389200999,), (1389201002,), (1389201005,), (1389201014,), (1389201015,), (1389201038,), (1389201040,), (1389201074,), (1389201085,), (1389201093,), (1389201099,), (1389201118,), (1389201189,), (1389201191,), (1389201193,), (1389201241,), (1389201242,), (1389201247,), (1389201249,), (1389201258,), (1389201263,), (1389201278,), (1389201279,), (1389201319,), (1389201320,), (1389201324,), (1389201328,), (1389201519,), (1389201523,), (1389201659,), (1389201657,), (1389201658,), (1389202101,), (1389202105,), (1389202106,), (1389202116,), (1389202119,), (1389202174,), (1389202178,), (1389202179,), (1389202182,), (1389202186,), (1389202189,), (1389202202,), (1389202203,), (1389202205,), (1389202207,), (1389202215,), (1389202272,), (1389202287,), (1389202288,), (1389202347,), (1389202349,), (1389202351,), (1389202355,), (1389202419,), (1389202430,), (1389202431,), (1389202434,), (1389202438,), (1389202470,), (1389202491,), (1389202499,), (1389202512,), (1389202515,), (1389202518,), (1389202523,), (1389202525,), (1389202526,), (1389202527,), (1389202528,), (1389202530,), (1389202558,), (1389202567,), (1389202578,), (1389202604,), (1389202654,), (1389202662,), (1389202666,), (1389202671,), (1389202708,), (1389202709,), (1389202710,), (1389202713,), (1389203530,), (1389203533,), (1389203582,), (1389203585,), (1389203587,), (1389203589,), (1389204115,), (1389204100,), (1389204112,), (1389204113,), (1389204500,), (1389204503,), (1389204505,), (1389204506,), (1389204508,), (1389205752,), (1389205753,), (1389205756,), (1389205760,), (1389205770,), (1389205774,), (1389205779,), (1389205781,), (1389205782,), (1389206048,), (1389206107,), (1389206110,), (1389206161,), (1389206185,), (1389206191,), (1389206196,), (1389206198,), (1389206200,), (1389206204,), (1389206590,), (1389206592,), (1389206594,), (1389206694,), (1389206697,), (1389206820,), (1389206840,), (1389206841,), (1389206844,), (1389206904,), (1389206911,), (1389206919,), (1389206923,), (1389206927,), (1389206930,), (1389206939,), (1389206940,), (1389206941,), (1389206944,), (1389206963,), (1389206965,), (1389206966,), (1389207705,), (1389207713,), (1389207714,), (1389208254,), (1389208303,), (1389208306,), (1389208380,), (1389208383,), (1389208388,), (1389208394,), (1389208398,), (1389208401,), (1389208497,), (1389208554,), (1389208556,), (1389208579,), (1389208584,), (1389208617,), (1389208605,), (1389208606,), (1389208607,), (1389208609,), (1389208613,), (1389208642,), (1389208658,), (1389208659,), (1389208713,), (1389208715,), (1389208717,), (1389208720,), (1389208723,), (1389208727,), (1389208739,), (1389208741,), (1389208743,), (1389208746,), (1389208749,), (1389208752,), (1389208759,), (1389208761,), (1389208762,), (1389208784,), (1389208790,), (1389208792,), (1389208801,), (1389208805,), (1389208844,), (1389208851,), (1389208854,), (1389208858,), (1389208860,), (1389208863,), (1389208871,), (1389208872,), (1389208874,), (1389208877,), (1389208882,), (1389208889,), (1389208897,), (1389208898,), (1389208903,), (1389208906,), (1389208909,), (1389208913,), (1389208922,), (1389208924,), (1389208928,), (1389208940,), (1389208941,), (1389208943,), (1389208954,), (1389208958,), (1389208960,), (1389208967,), (1389219317,), (1389219315,), (1389219375,), (1389219385,), (1389219387,), (1389219389,), (1389219407,), (1389219409,), (1389219736,), (1389219735,), (1389219998,), (1389220008,), (1389220209,), (1389220210,), (1389220211,), (1389220213,), (1389220216,), (1389220235,), (1389220236,), (1389220244,), (1389220250,), (1389220293,), (1389220295,), (1389220296,), (1389220298,), (1389220301,), (1389220304,), (1389220313,), (1389220315,), (1389220316,), (1389220332,), (1389220344,), (1389220394,), (1389220480,), (1389220522,), (1389220551,), (1389220552,), (1389220554,), (1389220556,), (1389220559,), (1389220569,), (1389220576,), (1389220578,), (1389220581,), (1389220584,), (1389220588,), (1389220634,), (1389220635,), (1389220729,), (1389220753,), (1389220754,), (1389220756,), (1389220759,), (1389220763,), (1389220766,), (1389220782,), (1389220785,), (1389220790,), (1389220794,), (1389220798,), (1389220814,), (1389220835,), (1389220845,), (1389220846,), (1389220850,), (1389220852,), (1389220855,), (1389220858,), (1389220861,), (1389220908,), (1389220914,), (1389220915,), (1389220918,), (1389220923,), (1389220928,), (1389220948,), (1389220950,), (1389220951,), (1389220954,), (1389221019,), (1389220970,), (1389220972,), (1389221007,), (1389221015,), (1389221091,), (1389221093,), (1389221095,), (1389221097,), (1389221152,), (1389221154,), (1389221204,), (1389221218,), (1389221220,), (1389221221,), (1389221247,), (1389221248,), (1389221249,), (1389221252,), (1389221257,), (1389221323,), (1389221344,), (1389221349,), (1389221387,), (1389221388,), (1389221389,), (1389221392,), (1389221396,), (1389221405,), (1389221408,), (1389221409,), (1389221411,), (1389221448,), (1389221451,), (1389221454,), (1389221456,), (1389221463,), (1389221468,), (1389221481,), (1389221484,), (1389221486,), (1389221489,), (1389221492,), (1389221526,), (1389221533,), (1389221535,), (1389221538,), (1389221542,), (1389221599,), (1389221600,), (1389221602,), (1389221607,), (1389221615,), (1389221621,), (1389221633,), (1389221634,), (1389221635,), (1389221637,), (1389221638,), (1389221640,), (1389221643,), (1389221646,), (1389221650,), (1389221662,), (1389221665,), (1389221667,), (1389221670,), (1389221675,), (1389221679,), (1389221722,), (1389221717,), (1389221718,), (1389221719,), (1389221885,), (1389221887,), (1389221890,), (1389221892,), (1389221896,), (1389221902,), (1389221965,), (1389221966,), (1389221967,), (1389221970,), (1389221998,), (1389222002,), (1389222005,), (1389222012,), (1389222017,), (1389222020,), (1389222175,), (1389222196,), (1389222197,), (1389222200,), (1389222217,), (1389222220,), (1389222223,), (1389222226,), (1389222229,), (1389222231,), (1389222271,), (1389222273,), (1389222274,), (1389222460,), (1389222461,), (1389222493,), (1389222498,), (1389222516,), (1389222522,), (1389222531,), (1389222550,), (1389222552,), (1389222554,), (1389222555,), (1389222557,), (1389222560,), (1389222563,), (1389222567,), (1389222624,), (1389222627,), (1389222628,), (1389222783,), (1389222802,), (1389222804,), (1389222806,), (1389222838,), (1389222843,), (1389222845,), (1389222847,), (1389222916,), (1389222922,), (1389223246,), (1389223834,), (1389223894,), (1389223897,), (1389224399,), (1389224405,), (1389224410,), (1389224416,), (1389224420,), (1389224423,), (1389224427,), (1389224429,), (1389224432,), (1389224435,), (1389224443,), (1389224448,), (1389224464,), (1389224467,), (1389224598,), (1389224453,), (1389224455,), (1389224459,), (1389224461,), (1389225243,), (1389225370,), (1389225457,), (1389225459,), (1389225824,), (1389225826,), (1389225889,), (1389225892,), (1389225942,), (1389225949,), (1389225962,), (1389225963,), (1389225965,), (1389225968,), (1389225995,), (1389225998,), (1389226006,), (1389226179,), (1389226185,), (1389226233,), (1389226371,), (1389226379,), (1389226393,), (1389226398,), (1389226420,), (1389226421,), (1389226423,), (1389226436,), (1389226441,), (1389226447,), (1389226494,), (1389226496,), (1389226498,), (1389226501,), (1389226504,), (1389226523,), (1389226524,), (1389226525,), (1389226528,), (1389226533,), (1389226555,), (1389226563,), (1389226570,), (1389226573,), (1389226578,), (1389226607,), (1389226608,), (1389226695,), (1389226698,), (1389226702,), (1389226823,), (1389226825,), (1389226826,), (1389226829,), (1389226833,), (1389226836,), (1389226872,), (1389226873,), (1389226875,), (1389226878,), (1389226881,), (1389226884,), (1389226893,), (1389226895,), (1389226897,), (1389226899,), (1389226902,), (1389226904,), (1389226907,), (1389226911,), (1389226914,), (1389226918,), (1389226927,), (1389226929,), (1389226930,), (1389226933,), (1389226936,), (1389226970,), (1389226957,), (1389226959,), (1389226960,), (1389226963,), (1389226967,), (1389227018,), (1389227041,), (1389227053,), (1389227055,), (1389227075,), (1389227078,), (1389227435,), (1389227437,), (1389227438,), (1389227441,), (1389227445,), (1389227459,), (1389227460,), (1389227462,), (1389227465,), (1389227468,), (1389227471,), (1389227925,), (1389227976,), (1389227981,), (1389228011,), (1389228147,), (1389228172,), (1389228178,), (1389228182,), (1389228185,), (1389228234,), (1389228244,), (1389228245,), (1389228248,), (1389228252,), (1389228625,), (1389228630,), (1389228634,), (1389228643,), (1389228647,), (1389228650,), (1389228654,), (1389228655,), (1389228656,), (1389228657,), (1389228658,), (1389228660,), (1389228663,), (1389228666,), (1389228669,), (1389228692,), (1389228694,), (1389228695,), (1389228698,), (1389228849,), (1389228896,), (1389228898,), (1389228901,), (1389228903,), (1389228905,), (1389228938,), (1389228941,), (1389228942,), (1389228944,), (1389228947,), (1389228996,), (1389229003,), (1389229005,), (1389229009,), (1389229014,), (1389229017,), (1389229203,), (1389229230,), (1389229231,), (1389229233,), (1389229236,), (1389229242,), (1389229262,), (1389229265,), (1389229266,), (1389229268,), (1389229305,), (1389229293,), (1389229294,), (1389229295,), (1389229297,), (1389229301,), (1389229441,), (1389229532,), (1389229557,), (1389229568,), (1389229634,), (1389229635,), (1389229637,), (1389229642,), (1389229645,), (1389229648,), (1389229652,), (1389229654,), (1389229655,), (1389229656,), (1389229677,), (1389229679,), (1389229682,), (1389229686,), (1389229692,), (1389229704,), (1389229709,), (1389229713,), (1389229718,), (1389229723,), (1389229736,), (1389229739,), (1389229741,), (1389230222,), (1389230231,), (1389230245,), (1389230502,), (1389230639,), (1389230675,), (1389230786,), (1389231352,), (1389231355,), (1389231468,), (1389231634,), (1389231636,), (1389231675,), (1389231794,), (1389231795,), (1389231796,), (1389231798,), (1389231801,), (1389231867,), (1389231876,), (1389231889,), (1389231892,), (1389231894,), (1389232102,), (1389232324,), (1389232338,), (1389232349,), (1389232407,), (1389232417,), (1389232562,), (1389232563,), (1389232565,), (1389232567,), (1389232903,), (1389232854,), (1389232888,), (1389232896,), (1389232899,), (1389232973,), (1389232980,), (1389232981,), (1389232984,), (1389232988,), (1389232996,), (1389233024,), (1389233038,), (1389233043,), (1389233046,), (1389233069,), (1389233122,), (1389233125,), (1389233144,), (1389233147,), (1389233159,), (1389233161,), (1389233163,), (1389233167,), (1389233172,), (1389233175,), (1389233191,), (1389233192,), (1389233193,), (1389233196,), (1389233245,), (1389233247,), (1389233256,), (1389233263,), (1389233270,), (1389233283,), (1389233284,), (1389233286,), (1389233289,), (1389233293,), (1389233300,), (1389233305,), (1389233306,), (1389233307,), (1389233308,), (1389233311,), (1389233312,), (1389233314,), (1389233317,), (1389233320,), (1389233333,), (1389233337,), (1389233351,), (1389233369,), (1389233371,), (1389233372,), (1389233402,), (1389233467,), (1389233510,), (1389233513,), (1389233516,), (1389233571,), (1389233573,), (1389233575,), (1389233578,), (1389234330,), (1389234335,), (1389234342,), (1389234358,), (1389234363,), (1389234422,), (1389234406,), (1389234413,), (1389235093,), (1389235102,), (1389235113,), (1389235504,), (1389235519,), (1389235545,), (1389235687,), (1389235688,), (1389235690,), (1389235693,), (1389235704,), (1389235708,), (1389235713,), (1389235715,), (1389235716,), (1389235717,), (1389235728,), (1389235744,), (1389235747,), (1389235751,), (1389235772,), (1389235774,), (1389235775,), (1389235777,), (1389235782,), (1389235788,), (1389235800,), (1389235802,), (1389235804,), (1389235807,), (1389235811,), (1389235814,), (1389235879,), (1389235886,), (1389235917,), (1389235918,), (1389236073,), (1389236075,), (1389236078,), (1389236099,), (1389236100,), (1389236115,), (1389236117,), (1389236119,), (1389236122,), (1389236126,), (1389236167,), (1389236169,), (1389236172,), (1389236177,), (1389236238,), (1389236242,), (1389236250,), (1389236255,), (1389236259,), (1389236262,), (1389236278,), (1389236280,), (1389236281,), (1389236284,), (1389236288,), (1389236297,), (1389236299,), (1389236300,), (1389236331,), (1389236329,), (1389236330,), (1389236369,), (1389236388,), (1389236390,), (1389236497,), (1389236498,), (1389236499,), (1389236513,), (1389236576,), (1389236582,), (1389236586,), (1389236595,), (1389236641,), (1389236642,), (1389236643,), (1389236645,), (1389236649,), (1389236652,), (1389236674,), (1389236678,), (1389236687,), (1389236690,), (1389236693,), (1389236720,), (1389236737,), (1389236738,), (1389236740,), (1389236776,), (1389236777,), (1389236779,), (1389236784,), (1389236788,), (1389236791,), (1389236796,), (1389236798,), (1389236800,), (1389236801,), (1389236802,), (1389236804,), (1389236807,), (1389236824,), (1389236828,), (1389236829,), (1389236846,), (1389236849,), (1389236866,), (1389236867,), (1389236868,), (1389236871,), (1389236912,), (1389236916,), (1389236917,), (1389236920,), (1389236924,), (1389236927,), (1389236944,), (1389236945,), (1389236946,), (1389236970,), (1389236979,), (1389236983,), (1389236990,), (1389236992,), (1389236997,), (1389237063,), (1389237066,), (1389237067,), (1389237071,), (1389237074,), (1389237096,), (1389237087,), (1389237089,), (1389237091,), (1389237093,), (1389237129,), (1389237130,), (1389237132,), (1389237135,), (1389237138,), (1389237160,), (1389237161,), (1389237163,), (1389237166,), (1389237169,), (1389237178,), (1389237194,), (1389237196,), (1389237197,), (1389237199,), (1389237200,), (1389237201,), (1389237205,), (1389237208,), (1389237223,), (1389237226,), (1389237256,), (1389237258,), (1389237259,), (1389237320,), (1389237352,), (1389237416,), (1389237417,), (1389237418,), (1389237421,), (1389237425,), (1389237459,), (1389237460,), (1389237461,), (1389237525,), (1389237533,), (1389237539,), (1389237564,), (1389237566,), (1389237568,), (1389237586,), (1389237587,), (1389237590,), (1389237595,), (1389237599,), (1389237601,), (1389237695,), (1389237711,), (1389237715,), (1389237719,), (1389237723,), (1389237771,), (1389237772,), (1389237774,), (1389237778,), (1389237784,), (1389237794,), (1389237823,), (1389237825,), (1389237882,), (1389237883,), (1389237911,), (1389237914,), (1389237947,), (1389237971,), (1389238187,), (1389238220,), (1389238228,), (1389238466,), (1389238441,), (1389238442,), (1389238604,), (1389238804,), (1389238821,), (1389238869,), (1389238880,), (1389238893,), (1389238896,), (1389239223,), (1389239225,), (1389239226,), (1389239236,), (1389239238,), (1389239312,), (1389239329,), (1389239335,), (1389239471,), (1389239535,), (1389239539,), (1389239543,), (1389239678,), (1389239777,), (1389239783,), (1389239845,), (1389239847,), (1389239856,), (1389239858,), (1389239859,), (1389239860,), (1389239862,), (1389239865,), (1389239868,), (1389239883,), (1389239890,), (1389239894,), (1389239919,), (1389240002,), (1389240005,), (1389240113,), (1389240163,), (1389240166,), (1389240169,), (1389240381,), (1389240412,), (1389240415,), (1389240463,), (1389240821,), (1389240827,), (1389240830,), (1389241059,), (1389241191,), (1389241229,), (1389241233,), (1389241267,), (1389241270,), (1389241275,), (1389241282,), (1389241284,), (1389241286,), (1389241289,), (1389241292,), (1389241316,), (1389241308,), (1389241310,), (1389241312,), (1389241471,), (1389242091,), (1389242256,), (1389242273,), (1389242276,), (1389242308,), (1389242372,), (1389242594,), (1389242596,), (1389242601,), (1389242680,), (1389242702,), (1389242756,), (1389242757,), (1389242758,), (1389242759,), (1389242762,), (1389242766,), (1389242769,), (1389242775,), (1389242784,), (1389242791,), (1389242794,), (1389242796,), (1389242797,), (1389242886,), (1389242914,), (1389243174,), (1389243232,), (1389243242,), (1389243245,), (1389243285,), (1389243307,), (1389243310,), (1389243312,), (1389243315,), (1389243317,), (1389243361,), (1389243501,), (1389243502,), (1389243504,), (1389243605,), (1389244559,), (1389244561,), (1389244564,), (1389244566,), (1389244570,), (1389244573,), (1389244591,), (1389244592,), (1389244766,), (1389245270,), (1389245271,), (1389245273,), (1389245276,), (1389245279,), (1389245282,), (1389245601,), (1389245612,), (1389245619,), (1389245653,), (1389245654,), (1389245656,), (1389245659,), (1389245666,), (1389245672,), (1389245745,), (1389245762,), (1389245763,), (1389245765,), (1389245766,), (1389245768,), (1389245771,), (1389245774,), (1389245789,), (1389245791,), (1389245793,), (1389245796,), (1389245833,), (1389245821,), (1389245822,), (1389245824,), (1389245827,), (1389245830,), (1389245962,), (1389245966,), (1389245970,), (1389245975,), (1389245979,), (1389246024,), (1389246034,), (1389246035,), (1389246038,), (1389246042,), (1389246070,), (1389246084,), (1389246085,), (1389246087,), (1389246091,), (1389246097,), (1389246251,), (1389246279,), (1389246280,), (1389246282,), (1389246302,), (1389246305,), (1389246306,), (1389246308,), (1389246310,), (1389246312,), (1389246366,), (1389246367,), (1389246369,), (1389246372,), (1389246412,), (1389246416,), (1389246421,), (1389246425,), (1389246433,), (1389246437,), (1389246466,), (1389246472,), (1389246476,), (1389246478,), (1389246483,), (1389246485,), (1389246487,), (1389246491,), (1389246520,), (1389246521,), (1389246522,), (1389246525,), (1389246529,), (1389246534,), (1389246656,), (1389246657,), (1389246708,), (1389246724,), (1389246755,), (1389246758,), (1389246793,), (1389246800,), (1389247882,), (1389247883,), (1389247885,), (1389247889,), (1389247892,), (1389248489,), (1389248495,), (1389248498,), (1389248502,), (1389248529,), (1389248792,), (1389253339,), (1389262742,), (1389262746,), (1389262748,), (1389262750,), (1389262753,), (1389262756,), (1389262811,), (1389262812,), (1389262813,), (1389262988,), (1389262990,), (1389262991,), (1389263142,), (1389263143,), (1389263179,), (1389263181,), (1389263360,), (1389263446,), (1389263448,), (1389263532,), (1389264148,), (1389264425,), (1389264981,), (1389265014,), (1389265019,), (1389265044,), (1389265434,), (1389265435,), (1389265437,), (1389265440,), (1389265443,), (1389265479,), (1389265480,), (1389265482,), (1389265485,), (1389265494,), (1389265497,), (1389265509,), (1389265628,), (1389265629,), (1389265663,), (1389265705,), (1389265708,), (1389265710,), (1389265713,), (1389265717,), (1389265721,), (1389265730,), (1389265733,), (1389265734,), (1389265738,), (1389265774,), (1389265762,), (1389265763,), (1389265765,), (1389265768,), (1389265771,), (1389265947,), (1389265952,), (1389265980,), (1389265982,), (1389265987,), (1389266034,), (1389266035,), (1389266036,), (1389266039,), (1389266043,), (1389266065,), (1389266068,), (1389266069,), (1389266072,), (1389266096,), (1389266097,), (1389266281,), (1389266284,), (1389266334,), (1389266387,), (1389266392,), (1389266394,), (1389266422,), (1389266426,), (1389266465,), (1389266466,), (1389266467,), (1389266470,), (1389266509,), (1389266516,), (1389266525,), (1389266530,), (1389266534,), (1389266537,), (1389266542,), (1389266544,), (1389266545,), (1389266546,), (1389266553,), (1389266555,), (1389266893,), (1389267019,), (1389267023,), (1389267026,), (1389267160,), (1389267225,), (1389267227,), (1389267229,), (1389267372,), (1389267374,), (1389267552,), (1389267554,), (1389267558,), (1389267611,), (1389267666,), (1389267685,), (1389267687,), (1389267735,), (1389267736,), (1389267737,), (1389267740,), (1389268461,), (1389268465,), (1389268846,), (1389269014,), (1389269037,), (1389269041,), (1389269082,), (1389269083,), (1389269236,), (1389269314,), (1389269298,), (1389269302,), (1389269306,), (1389269311,), (1389269313,), (1389269326,), (1389269329,), (1389269336,), (1389269343,), (1389269348,), (1389269350,), (1389269400,), (1389269406,), (1389269410,), (1389269432,), (1389269745,), (1389269886,), (1389269896,), (1389269897,), (1389269898,), (1389270026,), (1389270032,), (1389270035,), (1389270037,), (1389270128,), (1389270131,), (1389270134,), (1389270292,), (1389270294,), (1389270296,), (1389270298,), (1389270334,), (1389270335,), (1389270336,), (1389270566,), (1389270749,), (1389270901,), (1389270909,), (1389270910,), (1389270911,), (1389270913,), (1389270943,), (1389270945,), (1389270947,), (1389270948,), (1389270950,), (1389271341,), (1389271343,), (1389271371,), (1389271378,), (1389271380,), (1389271437,), (1389271438,), (1389271440,), (1389271442,), (1389271444,), (1389271446,), (1389271598,), (1389271612,), (1389271630,), (1389271632,), (1389271663,), (1389271664,), (1389271666,), (1389271714,), (1389271728,), (1389271732,), (1389271749,), (1389271750,), (1389271751,), (1389271753,), (1389271776,), (1389271786,), (1389271793,), (1389271795,), (1389271796,), (1389271797,), (1389271798,), (1389271799,), (1389271800,), (1389271957,), (1389271959,), (1389272346,), (1389272349,), (1389272350,), (1389272352,), (1389272354,), (1389272828,), (1389272756,), (1389272757,), (1389272759,), (1389272825,), (1389272922,), (1389272949,), (1389272953,), (1389272956,), (1389272964,), (1389273010,), (1389273013,), (1389273017,), (1389273020,), (1389273022,), (1389273024,), (1389273034,), (1389273038,), (1389273039,), (1389273041,), (1389273063,), (1389273064,), (1389273181,), (1389273272,), (1389273861,), (1389274117,), (1389274123,), (1389274125,), (1389274126,), (1389274127,), (1389274519,), (1389274521,), (1389274522,), (1389274524,), (1389274528,), (1389274812,), (1389274814,), (1389274991,), (1389274992,), (1389274995,), (1389275164,), (1389275165,), (1389275166,), (1389275168,), (1389275218,), (1389275225,), (1389275226,), (1389275228,), (1389275232,), (1389275234,), (1389275549,), (1389275550,), (1389275551,), (1389275660,), (1389275826,), (1389275828,), (1389275829,), (1389275831,), (1389275837,), (1389275854,), (1389275871,), (1389275883,), (1389275894,), (1389275901,), (1389275909,), (1389276044,), (1389276045,), (1389276086,), (1389276108,), (1389276109,), (1389276170,), (1389276171,), (1389276173,), (1389276175,), (1389276235,), (1389276183,), (1389276214,), (1389276223,), (1389276232,), (1389276240,), (1389276370,), (1389276371,), (1389276373,), (1389276430,), (1389276523,), (1389276525,), (1389276526,), (1389276528,), (1389276530,), (1389276540,), (1389276548,), (1389276558,), (1389276560,), (1389276561,), (1389276562,), (1389276563,), (1389276565,), (1389276567,), (1389276569,), (1389276580,), (1389276582,), (1389276583,), (1389276584,), (1389276607,), (1389276609,), (1389276610,), (1389276611,), (1389276613,), (1389276616,), (1389276623,), (1389276628,), (1389276637,), (1389276638,), (1389276654,), (1389276703,), (1389276704,), (1389276705,), (1389276707,), (1389276713,), (1389276729,), (1389276734,), (1389276942,), (1389277516,), (1389277697,), (1389277710,), (1389277711,), (1389277713,), (1389277715,), (1389277717,), (1389277724,), (1389278094,), (1389278216,), (1389278239,), (1389278240,), (1389278627,), (1389278633,), (1389278650,), (1389278661,), (1389278664,), (1389278666,), (1389278863,), (1389278864,), (1389278905,), (1389278907,), (1389278976,), (1389278978,), (1389279074,), (1389279075,), (1389279086,), (1389279161,), (1389279182,), (1389279183,), (1389279185,), (1389279187,), (1389279190,), (1389279193,), (1389279201,), (1389279204,), (1389279205,), (1389279208,), (1389279240,), (1389279229,), (1389279231,), (1389279233,), (1389279235,), (1389279238,), (1389279255,), (1389279407,), (1389279423,), (1389279429,), (1389279633,), (1389279656,), (1389279708,), (1389279710,), (1389279712,), (1389279806,), (1389279817,), (1389279819,), (1389279822,), (1389279827,), (1389280243,), (1389280321,), (1389280323,), (1389280324,), (1389280327,), (1389280340,), (1389280342,), (1389280343,), (1389280355,), (1389280358,), (1389280382,), (1389280383,), (1389280385,), (1389280386,), (1389280435,), (1389280436,), (1389280437,), (1389280440,), (1389280445,), (1389280448,), (1389280451,), (1389280452,), (1389280453,), (1389280454,), (1389280459,), (1389280782,), (1389280791,), (1389280793,), (1389280909,), (1389280911,), (1389280912,), (1389280913,), (1389280915,), (1389280920,), (1389280927,), (1389280928,), (1389280929,), (1389280930,), (1389280976,), (1389281004,), (1389281007,), (1389281009,), (1389281375,), (1389281415,), (1389281446,), (1389281449,), (1389281451,), (1389281453,), (1389282670,), (1389282676,), (1389282681,), (1389282684,), (1389282687,), (1389283734,), (1389283808,), (1389283814,), (1389283852,), (1389284471,), (1389284401,), (1389284404,), (1389284458,), (1389284461,), (1389284469,), (1389284644,), (1389284646,), (1389284647,), (1389284650,), (1389284953,), (1389284955,), (1389284957,), (1389284960,), (1389284962,), (1389284970,), (1389284972,), (1389284974,), (1389284976,), (1389284978,), (1389284983,), (1389284984,), (1389284985,), (1389284987,), (1389285014,), (1389285039,), (1389285053,), (1389285063,), (1389285067,), (1389285094,), (1389285109,), (1389285110,), (1389285112,), (1389285115,), (1389285165,), (1389285184,), (1389285211,), (1389285231,), (1389285244,), (1389285253,), (1389285379,), (1389285380,), (1389285383,), (1389285386,), (1389285400,), (1389285402,), (1389285404,), (1389285407,), (1389285410,), (1389285417,), (1389285438,), (1389285441,), (1389285445,), (1389285448,), (1389285717,), (1389285963,), (1389285965,), (1389285966,), (1389285968,), (1389285971,), (1389285973,), (1389286014,), (1389286028,), (1389286030,), (1389286033,), (1389286405,), (1389286407,), (1389286409,), (1389286413,), (1389286416,), (1389286418,), (1389286423,), (1389286434,), (1389286440,), (1389286443,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'13102025': {'nb_upload': 74, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([27772259]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1389286443, 1389286440, 1389286434, 1389286423, 1389286418, 1389286416, 1389286413, 1389286409, 1389286407, 1389286405] map_info['map_portfolio_photo'] : {27772259: [1389286443, 1389286440, 1389286434, 1389286423, 1389286418, 1389286416, 1389286413, 1389286409, 1389286407, 1389286405, 1389286033, 1389286030, 1389286028, 1389286014, 1389285973, 1389285971, 1389285968, 1389285966, 1389285965, 1389285963, 1389285717, 1389285448, 1389285445, 1389285441, 1389285438, 1389285417, 1389285410, 1389285407, 1389285404, 1389285402, 1389285400, 1389285386, 1389285383, 1389285380, 1389285379, 1389285253, 1389285244, 1389285231, 1389285211, 1389285184, 1389285165, 1389285115, 1389285112, 1389285110, 1389285109, 1389285094, 1389285067, 1389285063, 1389285053, 1389285039, 1389285014, 1389284987, 1389284985, 1389284984, 1389284983, 1389284978, 1389284976, 1389284974, 1389284972, 1389284970, 1389284962, 1389284960, 1389284957, 1389284955, 1389284953, 1389284650, 1389284647, 1389284646, 1389284644, 1389284469, 1389284461, 1389284458, 1389284404, 1389284401]} final : True mtd_id 4302 list_pids : [1389286443, 1389286440, 1389286434, 1389286423, 1389286418, 1389286416, 1389286413, 1389286409, 1389286407, 1389286405] Looping around the photos to save general results len do output : 1 /27772259Didn'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, '3935365') ('4302', '27772259', '1389286443', None, None, None, None, None, '3935365') ('4302', None, None, None, None, None, None, None, '3935365') ('4302', '27772259', '1389286440', None, None, None, None, None, '3935365') ('4302', None, None, None, None, None, None, None, '3935365') ('4302', '27772259', '1389286434', None, None, None, None, None, '3935365') ('4302', None, None, None, None, None, None, None, '3935365') ('4302', '27772259', '1389286423', None, None, None, None, None, '3935365') ('4302', None, None, None, None, None, None, None, '3935365') ('4302', '27772259', '1389286418', None, None, None, None, None, '3935365') ('4302', None, None, None, None, None, None, None, '3935365') ('4302', '27772259', '1389286416', None, None, None, None, None, '3935365') ('4302', None, None, None, None, None, None, None, '3935365') ('4302', '27772259', '1389286413', None, None, None, None, None, '3935365') ('4302', None, None, None, None, None, None, None, '3935365') ('4302', '27772259', '1389286409', None, None, None, None, None, '3935365') ('4302', None, None, None, None, None, None, None, '3935365') ('4302', '27772259', '1389286407', None, None, None, None, None, '3935365') ('4302', None, None, None, None, None, None, None, '3935365') ('4302', '27772259', '1389286405', None, None, None, None, None, '3935365') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 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, '27772259', 'None', None, None, None, None, '3935365'), ('4302', '27772259', '1389286443', None, None, None, None, None, '3935365'), ('4302', '27772259', '1389286440', None, None, None, None, None, '3935365'), ('4302', '27772259', '1389286434', None, None, None, None, None, '3935365'), ('4302', '27772259', '1389286423', None, None, None, None, None, '3935365'), ('4302', '27772259', '1389286418', None, None, None, None, None, '3935365'), ('4302', '27772259', '1389286416', None, None, None, None, None, '3935365'), ('4302', '27772259', '1389286413', None, None, None, None, None, '3935365'), ('4302', '27772259', '1389286409', None, None, None, None, None, '3935365'), ('4302', '27772259', '1389286407', None, None, None, None, None, '3935365'), ('4302', '27772259', '1389286405', None, None, None, None, None, '3935365')] time used for this insertion : 0.038117408752441406 save_final save missing photos in datou_result : time spend for datou_step_exec : 7.337510585784912 time spend to save output : 0.03832364082336426 total time spend for step 5 : 7.375834226608276 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 (3935365) 2.14user 2.48system 0:21.78elapsed 21%CPU (0avgtext+0avgdata 159860maxresident)k 104inputs+15224outputs (15major+69780minor)pagefaults 0swaps