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 : 3354189 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 (4246264) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (4246264) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29544201 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['4246264'] with mtr_portfolio_ids : ['29544201'] and first list_photo_ids : [] new path : /proc/3354189/ Name: python3 Umask: 0002 State: R (running) Tgid: 3354189 Ngid: 0 Pid: 3354189 PPid: 3354188 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 3354189 NSpid: 3354189 NSpgid: 3352939 NSsid: 3352939 VmPeak: 1113364 kB VmSize: 1113364 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 105436 kB VmRSS: 105436 kB RssAnon: 66296 kB RssFile: 39140 kB RssShmem: 0 kB VmData: 872092 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130476 kB VmPTE: 620 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63019 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 55 nonvoluntary_ctxt_switches: 140 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '3354189', 'Ngid': '0', 'Pid': '3354189', 'PPid': '3354188', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '3354189', 'NSpid': '3354189', 'NSpgid': '3352939', 'NSsid': '3352939', 'VmPeak': '1113364 kB', 'VmSize': '1113364 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '105436 kB', 'VmRSS': '105436 kB', 'RssAnon': '66296 kB', 'RssFile': '39140 kB', 'RssShmem': '0 kB', 'VmData': '872092 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130476 kB', 'VmPTE': '620 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63019', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '55', 'nonvoluntary_ctxt_switches': '140'} ('datou_batch_current', '3354189', '1113364', '0', '1113364', '872092', '105436', b'', 'marlene', '4246264') 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 (29544201) 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 (4246264 ) ) 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 (29544201) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1399972004, 'portfolio_id': 29544201}, {'photo_id': 1399972001, 'portfolio_id': 29544201}, {'photo_id': 1399971998, 'portfolio_id': 29544201}, {'photo_id': 1399971996, 'portfolio_id': 29544201}, {'photo_id': 1399971990, 'portfolio_id': 29544201}, {'photo_id': 1399971939, 'portfolio_id': 29544201}, {'photo_id': 1399971936, 'portfolio_id': 29544201}, {'photo_id': 1399971935, 'portfolio_id': 29544201}, {'photo_id': 1399971928, 'portfolio_id': 29544201}, {'photo_id': 1399971926, 'portfolio_id': 29544201}, {'photo_id': 1399971613, 'portfolio_id': 29544201}, {'photo_id': 1399971577, 'portfolio_id': 29544201}, {'photo_id': 1399971533, 'portfolio_id': 29544201}, {'photo_id': 1399971489, 'portfolio_id': 29544201}, {'photo_id': 1399971167, 'portfolio_id': 29544201}, {'photo_id': 1399971164, 'portfolio_id': 29544201}, {'photo_id': 1399971161, 'portfolio_id': 29544201}, {'photo_id': 1399971158, 'portfolio_id': 29544201}, {'photo_id': 1399971149, 'portfolio_id': 29544201}, {'photo_id': 1399971116, 'portfolio_id': 29544201}, {'photo_id': 1399971037, 'portfolio_id': 29544201}, {'photo_id': 1399971002, 'portfolio_id': 29544201}, {'photo_id': 1399970999, 'portfolio_id': 29544201}, {'photo_id': 1399970980, 'portfolio_id': 29544201}, {'photo_id': 1399970848, 'portfolio_id': 29544201}, {'photo_id': 1399970800, 'portfolio_id': 29544201}, {'photo_id': 1399970761, 'portfolio_id': 29544201}, {'photo_id': 1399970725, 'portfolio_id': 29544201}, {'photo_id': 1399970690, 'portfolio_id': 29544201}, {'photo_id': 1399970653, 'portfolio_id': 29544201}, {'photo_id': 1399970156, 'portfolio_id': 29544201}, {'photo_id': 1399970121, 'portfolio_id': 29544201}, {'photo_id': 1399970087, 'portfolio_id': 29544201}, {'photo_id': 1399970085, 'portfolio_id': 29544201}, {'photo_id': 1399970083, 'portfolio_id': 29544201}, {'photo_id': 1399970081, 'portfolio_id': 29544201}, {'photo_id': 1399970052, 'portfolio_id': 29544201}, {'photo_id': 1399970050, 'portfolio_id': 29544201}, {'photo_id': 1399970021, 'portfolio_id': 29544201}, {'photo_id': 1399970008, 'portfolio_id': 29544201}, {'photo_id': 1399969992, 'portfolio_id': 29544201}, {'photo_id': 1399969882, 'portfolio_id': 29544201}, {'photo_id': 1399969880, 'portfolio_id': 29544201}, {'photo_id': 1399969877, 'portfolio_id': 29544201}, {'photo_id': 1399969874, 'portfolio_id': 29544201}, {'photo_id': 1399969872, 'portfolio_id': 29544201}, {'photo_id': 1399969871, 'portfolio_id': 29544201}, {'photo_id': 1399969867, 'portfolio_id': 29544201}, {'photo_id': 1399969866, 'portfolio_id': 29544201}, {'photo_id': 1399969846, 'portfolio_id': 29544201}, {'photo_id': 1399969839, 'portfolio_id': 29544201}, {'photo_id': 1399969806, 'portfolio_id': 29544201}, {'photo_id': 1399969803, 'portfolio_id': 29544201}, {'photo_id': 1399969775, 'portfolio_id': 29544201}, {'photo_id': 1399969754, 'portfolio_id': 29544201}, {'photo_id': 1399969544, 'portfolio_id': 29544201}, {'photo_id': 1399969541, 'portfolio_id': 29544201}, {'photo_id': 1399969524, 'portfolio_id': 29544201}, {'photo_id': 1399969481, 'portfolio_id': 29544201}, {'photo_id': 1399968992, 'portfolio_id': 29544201}, {'photo_id': 1399968929, 'portfolio_id': 29544201}, {'photo_id': 1399968868, 'portfolio_id': 29544201}, {'photo_id': 1399968801, 'portfolio_id': 29544201}, {'photo_id': 1399968736, 'portfolio_id': 29544201}, {'photo_id': 1399968431, 'portfolio_id': 29544201}, {'photo_id': 1399968430, 'portfolio_id': 29544201}, {'photo_id': 1399968428, 'portfolio_id': 29544201}, {'photo_id': 1399968426, 'portfolio_id': 29544201}, {'photo_id': 1399968424, 'portfolio_id': 29544201}, {'photo_id': 1399968422, 'portfolio_id': 29544201}, {'photo_id': 1399968298, 'portfolio_id': 29544201}, {'photo_id': 1399968268, 'portfolio_id': 29544201}, {'photo_id': 1399968236, 'portfolio_id': 29544201}, {'photo_id': 1399968195, 'portfolio_id': 29544201}, {'photo_id': 1399967806, 'portfolio_id': 29544201}, {'photo_id': 1399967740, 'portfolio_id': 29544201}, {'photo_id': 1399967671, 'portfolio_id': 29544201}, {'photo_id': 1399967606, 'portfolio_id': 29544201}, {'photo_id': 1399967571, 'portfolio_id': 29544201}] map_portfolio_id_photo_id: {29544201: [1399972004, 1399972001, 1399971998, 1399971996, 1399971990, 1399971939, 1399971936, 1399971935, 1399971928, 1399971926, 1399971613, 1399971577, 1399971533, 1399971489, 1399971167, 1399971164, 1399971161, 1399971158, 1399971149, 1399971116, 1399971037, 1399971002, 1399970999, 1399970980, 1399970848, 1399970800, 1399970761, 1399970725, 1399970690, 1399970653, 1399970156, 1399970121, 1399970087, 1399970085, 1399970083, 1399970081, 1399970052, 1399970050, 1399970021, 1399970008, 1399969992, 1399969882, 1399969880, 1399969877, 1399969874, 1399969872, 1399969871, 1399969867, 1399969866, 1399969846, 1399969839, 1399969806, 1399969803, 1399969775, 1399969754, 1399969544, 1399969541, 1399969524, 1399969481, 1399968992, 1399968929, 1399968868, 1399968801, 1399968736, 1399968431, 1399968430, 1399968428, 1399968426, 1399968424, 1399968422, 1399968298, 1399968268, 1399968236, 1399968195, 1399967806, 1399967740, 1399967671, 1399967606, 1399967571]} ##### 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.020244359970092773 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Thu Dec 18 14:14:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29544201) 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 : 29544201 get user id for portfolio 29544201 get sub ptf for main ptf 29544201, type 3726 and hashtags ['Teint_Dans_La_Masse', 'kraft', 'plastique', 'mal_croppe', 'Carton_gris', 'metal', 'papier', 'autre_refus', 'environnement', 'flou', 'cartonnette', 'Carton_brun'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29544201 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','kraft','plastique','mal_croppe','Carton_gris','metal','papier','autre_refus','environnement','flou','cartonnette','Carton_brun')) 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`=29544201 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','kraft','plastique','mal_croppe','Carton_gris','metal','papier','autre_refus','environnement','flou','cartonnette','Carton_brun')) AND mptpi.`min_score`=0.5 To do returned map {'autre_refus': {'main_port_id': 29544201, 'sub_port_id': 29544228, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20155286, 'last_updated_at': datetime.datetime(2025, 12, 18, 14, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 12, 18, 14, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 12, 18, 14, 3, 27)}, 'Carton_brun': {'main_port_id': 29544201, 'sub_port_id': 29544229, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20155287, 'last_updated_at': datetime.datetime(2025, 12, 18, 14, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 12, 18, 14, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 12, 18, 14, 3, 27)}, 'Carton_gris': {'main_port_id': 29544201, 'sub_port_id': 29544230, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20155288, 'last_updated_at': datetime.datetime(2025, 12, 18, 14, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 12, 18, 14, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 12, 18, 14, 3, 27)}, 'Teint_Dans_La_Masse': {'main_port_id': 29544201, 'sub_port_id': 29544231, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20155289, 'last_updated_at': datetime.datetime(2025, 12, 18, 14, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 12, 18, 14, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 12, 18, 14, 3, 27)}, 'flou': {'main_port_id': 29544201, 'sub_port_id': 29544232, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20155290, 'last_updated_at': datetime.datetime(2025, 12, 18, 14, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 12, 18, 14, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 12, 18, 14, 3, 27)}, 'environnement': {'main_port_id': 29544201, 'sub_port_id': 29544233, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20155291, 'last_updated_at': datetime.datetime(2025, 12, 18, 14, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 12, 18, 14, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 12, 18, 14, 3, 27)}, 'plastique': {'main_port_id': 29544201, 'sub_port_id': 29544234, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20155292, 'last_updated_at': datetime.datetime(2025, 12, 18, 14, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 12, 18, 14, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 12, 18, 14, 3, 27)}, 'cartonnette': {'main_port_id': 29544201, 'sub_port_id': 29544235, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20155293, 'last_updated_at': datetime.datetime(2025, 12, 18, 14, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 12, 18, 14, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 12, 18, 14, 3, 27)}, 'kraft': {'main_port_id': 29544201, 'sub_port_id': 29544236, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20155294, 'last_updated_at': datetime.datetime(2025, 12, 18, 14, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 12, 18, 14, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 12, 18, 14, 3, 27)}, 'metal': {'main_port_id': 29544201, 'sub_port_id': 29544237, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20155295, 'last_updated_at': datetime.datetime(2025, 12, 18, 14, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 12, 18, 14, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 12, 18, 14, 3, 27)}, 'mal_croppe': {'main_port_id': 29544201, 'sub_port_id': 29544238, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20155296, 'last_updated_at': datetime.datetime(2025, 12, 18, 14, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 12, 18, 14, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 12, 18, 14, 3, 27)}, 'papier': {'main_port_id': 29544201, 'sub_port_id': 29544239, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20155297, 'last_updated_at': datetime.datetime(2025, 12, 18, 14, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 12, 18, 14, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 12, 18, 14, 3, 27)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29544228 , 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=29544201 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 (29544228) result : ((1399969885,), (1399970251,), (1399971168,), (1399971169,), (1399971170,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29544201) result : ((1399967571,), (1399967606,), (1399967671,), (1399967740,), (1399967806,), (1399968195,), (1399968236,), (1399968268,), (1399968298,), (1399968422,), (1399968424,), (1399968426,), (1399968428,), (1399968430,), (1399968431,), (1399968736,), (1399968801,), (1399968868,), (1399968929,), (1399968992,), (1399969481,), (1399969524,), (1399969541,), (1399969544,), (1399969754,), (1399969775,), (1399969803,), (1399969806,), (1399969839,), (1399969846,), (1399969866,), (1399969867,), (1399969871,), (1399969872,), (1399969874,), (1399969877,), (1399969880,), (1399969882,), (1399969992,), (1399970008,), (1399970021,), (1399970050,), (1399970052,), (1399970081,), (1399970083,), (1399970085,), (1399970087,), (1399970121,), (1399970156,), (1399970653,), (1399970690,), (1399970725,), (1399970761,), (1399970800,), (1399970848,), (1399970980,), (1399970999,), (1399971002,), (1399971037,), (1399971116,), (1399971149,), (1399971158,), (1399971161,), (1399971164,), (1399971167,), (1399971489,), (1399971533,), (1399971577,), (1399971613,), (1399971926,), (1399971928,), (1399971935,), (1399971936,), (1399971939,), (1399971990,), (1399971996,), (1399971998,), (1399972001,), (1399972004,)) 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 (1399970800) 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 29544229 , 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=29544201 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 (29544229) result : ((1399969893,), (1399970333,), (1399971183,), (1399971185,), (1399971187,), (1399971406,), (1399971992,), (1399971993,), (1399971999,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29544201) result : ((1399967571,), (1399967606,), (1399967671,), (1399967740,), (1399967806,), (1399968195,), (1399968236,), (1399968268,), (1399968298,), (1399968422,), (1399968424,), (1399968426,), (1399968428,), (1399968430,), (1399968431,), (1399968736,), (1399968801,), (1399968868,), (1399968929,), (1399968992,), (1399969481,), (1399969524,), (1399969541,), (1399969544,), (1399969754,), (1399969775,), (1399969803,), (1399969806,), (1399969839,), (1399969846,), (1399969866,), (1399969867,), (1399969871,), (1399969872,), (1399969874,), (1399969877,), (1399969880,), (1399969882,), (1399969992,), (1399970008,), (1399970021,), (1399970050,), (1399970052,), (1399970081,), (1399970083,), (1399970085,), (1399970087,), (1399970121,), (1399970156,), (1399970653,), (1399970690,), (1399970725,), (1399970761,), (1399970800,), (1399970848,), (1399970980,), (1399970999,), (1399971002,), (1399971037,), (1399971116,), (1399971149,), (1399971158,), (1399971161,), (1399971164,), (1399971167,), (1399971489,), (1399971533,), (1399971577,), (1399971613,), (1399971926,), (1399971928,), (1399971935,), (1399971936,), (1399971939,), (1399971990,), (1399971996,), (1399971998,), (1399972001,), (1399972004,)) 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 (1399970800) 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 29544230 , 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=29544201 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 (29544230) result : ((1399969578,), (1399969579,), (1399969886,), (1399969887,), (1399969888,), (1399969889,), (1399969890,), (1399970288,), (1399970291,), (1399970294,), (1399970297,), (1399970300,), (1399971171,), (1399971362,), (1399971365,), (1399971369,), (1399971985,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29544201) result : ((1399967571,), (1399967606,), (1399967671,), (1399967740,), (1399967806,), (1399968195,), (1399968236,), (1399968268,), (1399968298,), (1399968422,), (1399968424,), (1399968426,), (1399968428,), (1399968430,), (1399968431,), (1399968736,), (1399968801,), (1399968868,), (1399968929,), (1399968992,), (1399969481,), (1399969524,), (1399969541,), (1399969544,), (1399969754,), (1399969775,), (1399969803,), (1399969806,), (1399969839,), (1399969846,), (1399969866,), (1399969867,), (1399969871,), (1399969872,), (1399969874,), (1399969877,), (1399969880,), (1399969882,), (1399969992,), (1399970008,), (1399970021,), (1399970050,), (1399970052,), (1399970081,), (1399970083,), (1399970085,), (1399970087,), (1399970121,), (1399970156,), (1399970653,), (1399970690,), (1399970725,), (1399970761,), (1399970800,), (1399970848,), (1399970980,), (1399970999,), (1399971002,), (1399971037,), (1399971116,), (1399971149,), (1399971158,), (1399971161,), (1399971164,), (1399971167,), (1399971489,), (1399971533,), (1399971577,), (1399971613,), (1399971926,), (1399971928,), (1399971935,), (1399971936,), (1399971939,), (1399971990,), (1399971996,), (1399971998,), (1399972001,), (1399972004,)) 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 (1399970800) 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 29544231 , 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=29544201 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 (29544231) result : ((1399969883,), (1399970239,), (1399971343,), (1399971980,), (1399971981,), (1399971982,), (1399971983,), (1399971984,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29544201) result : ((1399967571,), (1399967606,), (1399967671,), (1399967740,), (1399967806,), (1399968195,), (1399968236,), (1399968268,), (1399968298,), (1399968422,), (1399968424,), (1399968426,), (1399968428,), (1399968430,), (1399968431,), (1399968736,), (1399968801,), (1399968868,), (1399968929,), (1399968992,), (1399969481,), (1399969524,), (1399969541,), (1399969544,), (1399969754,), (1399969775,), (1399969803,), (1399969806,), (1399969839,), (1399969846,), (1399969866,), (1399969867,), (1399969871,), (1399969872,), (1399969874,), (1399969877,), (1399969880,), (1399969882,), (1399969992,), (1399970008,), (1399970021,), (1399970050,), (1399970052,), (1399970081,), (1399970083,), (1399970085,), (1399970087,), (1399970121,), (1399970156,), (1399970653,), (1399970690,), (1399970725,), (1399970761,), (1399970800,), (1399970848,), (1399970980,), (1399970999,), (1399971002,), (1399971037,), (1399971116,), (1399971149,), (1399971158,), (1399971161,), (1399971164,), (1399971167,), (1399971489,), (1399971533,), (1399971577,), (1399971613,), (1399971926,), (1399971928,), (1399971935,), (1399971936,), (1399971939,), (1399971990,), (1399971996,), (1399971998,), (1399972001,), (1399972004,)) 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 (1399970800) 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 29544232 , 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=29544201 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 (29544232) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29544201) result : ((1399967571,), (1399967606,), (1399967671,), (1399967740,), (1399967806,), (1399968195,), (1399968236,), (1399968268,), (1399968298,), (1399968422,), (1399968424,), (1399968426,), (1399968428,), (1399968430,), (1399968431,), (1399968736,), (1399968801,), (1399968868,), (1399968929,), (1399968992,), (1399969481,), (1399969524,), (1399969541,), (1399969544,), (1399969754,), (1399969775,), (1399969803,), (1399969806,), (1399969839,), (1399969846,), (1399969866,), (1399969867,), (1399969871,), (1399969872,), (1399969874,), (1399969877,), (1399969880,), (1399969882,), (1399969992,), (1399970008,), (1399970021,), (1399970050,), (1399970052,), (1399970081,), (1399970083,), (1399970085,), (1399970087,), (1399970121,), (1399970156,), (1399970653,), (1399970690,), (1399970725,), (1399970761,), (1399970800,), (1399970848,), (1399970980,), (1399970999,), (1399971002,), (1399971037,), (1399971116,), (1399971149,), (1399971158,), (1399971161,), (1399971164,), (1399971167,), (1399971489,), (1399971533,), (1399971577,), (1399971613,), (1399971926,), (1399971928,), (1399971935,), (1399971936,), (1399971939,), (1399971990,), (1399971996,), (1399971998,), (1399972001,), (1399972004,)) 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 (1399970800) 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 29544233 , 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=29544201 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 (29544233) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29544201) result : ((1399967571,), (1399967606,), (1399967671,), (1399967740,), (1399967806,), (1399968195,), (1399968236,), (1399968268,), (1399968298,), (1399968422,), (1399968424,), (1399968426,), (1399968428,), (1399968430,), (1399968431,), (1399968736,), (1399968801,), (1399968868,), (1399968929,), (1399968992,), (1399969481,), (1399969524,), (1399969541,), (1399969544,), (1399969754,), (1399969775,), (1399969803,), (1399969806,), (1399969839,), (1399969846,), (1399969866,), (1399969867,), (1399969871,), (1399969872,), (1399969874,), (1399969877,), (1399969880,), (1399969882,), (1399969992,), (1399970008,), (1399970021,), (1399970050,), (1399970052,), (1399970081,), (1399970083,), (1399970085,), (1399970087,), (1399970121,), (1399970156,), (1399970653,), (1399970690,), (1399970725,), (1399970761,), (1399970800,), (1399970848,), (1399970980,), (1399970999,), (1399971002,), (1399971037,), (1399971116,), (1399971149,), (1399971158,), (1399971161,), (1399971164,), (1399971167,), (1399971489,), (1399971533,), (1399971577,), (1399971613,), (1399971926,), (1399971928,), (1399971935,), (1399971936,), (1399971939,), (1399971990,), (1399971996,), (1399971998,), (1399972001,), (1399972004,)) 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 (1399970800) 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 29544234 , 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=29544201 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 (29544234) result : ((1399969587,), (1399969895,), (1399970352,), (1399971205,), (1399971207,), (1399971209,), (1399971211,), (1399971428,), (1399971431,), (1399971434,), (1399971994,), (1399971995,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29544201) result : ((1399967571,), (1399967606,), (1399967671,), (1399967740,), (1399967806,), (1399968195,), (1399968236,), (1399968268,), (1399968298,), (1399968422,), (1399968424,), (1399968426,), (1399968428,), (1399968430,), (1399968431,), (1399968736,), (1399968801,), (1399968868,), (1399968929,), (1399968992,), (1399969481,), (1399969524,), (1399969541,), (1399969544,), (1399969754,), (1399969775,), (1399969803,), (1399969806,), (1399969839,), (1399969846,), (1399969866,), (1399969867,), (1399969871,), (1399969872,), (1399969874,), (1399969877,), (1399969880,), (1399969882,), (1399969992,), (1399970008,), (1399970021,), (1399970050,), (1399970052,), (1399970081,), (1399970083,), (1399970085,), (1399970087,), (1399970121,), (1399970156,), (1399970653,), (1399970690,), (1399970725,), (1399970761,), (1399970800,), (1399970848,), (1399970980,), (1399970999,), (1399971002,), (1399971037,), (1399971116,), (1399971149,), (1399971158,), (1399971161,), (1399971164,), (1399971167,), (1399971489,), (1399971533,), (1399971577,), (1399971613,), (1399971926,), (1399971928,), (1399971935,), (1399971936,), (1399971939,), (1399971990,), (1399971996,), (1399971998,), (1399972001,), (1399972004,)) 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 (1399970800) 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 29544235 , 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=29544201 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 (29544235) result : ((1399969582,), (1399969583,), (1399969585,), (1399969891,), (1399970317,), (1399971388,), (1399971391,), (1399971986,), (1399971987,), (1399971988,), (1399971989,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29544201) result : ((1399967571,), (1399967606,), (1399967671,), (1399967740,), (1399967806,), (1399968195,), (1399968236,), (1399968268,), (1399968298,), (1399968422,), (1399968424,), (1399968426,), (1399968428,), (1399968430,), (1399968431,), (1399968736,), (1399968801,), (1399968868,), (1399968929,), (1399968992,), (1399969481,), (1399969524,), (1399969541,), (1399969544,), (1399969754,), (1399969775,), (1399969803,), (1399969806,), (1399969839,), (1399969846,), (1399969866,), (1399969867,), (1399969871,), (1399969872,), (1399969874,), (1399969877,), (1399969880,), (1399969882,), (1399969992,), (1399970008,), (1399970021,), (1399970050,), (1399970052,), (1399970081,), (1399970083,), (1399970085,), (1399970087,), (1399970121,), (1399970156,), (1399970653,), (1399970690,), (1399970725,), (1399970761,), (1399970800,), (1399970848,), (1399970980,), (1399970999,), (1399971002,), (1399971037,), (1399971116,), (1399971149,), (1399971158,), (1399971161,), (1399971164,), (1399971167,), (1399971489,), (1399971533,), (1399971577,), (1399971613,), (1399971926,), (1399971928,), (1399971935,), (1399971936,), (1399971939,), (1399971990,), (1399971996,), (1399971998,), (1399972001,), (1399972004,)) 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 (1399970800) 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 29544236 , 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=29544201 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 (29544236) result : ((1399971220,), (1399971453,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29544201) result : ((1399967571,), (1399967606,), (1399967671,), (1399967740,), (1399967806,), (1399968195,), (1399968236,), (1399968268,), (1399968298,), (1399968422,), (1399968424,), (1399968426,), (1399968428,), (1399968430,), (1399968431,), (1399968736,), (1399968801,), (1399968868,), (1399968929,), (1399968992,), (1399969481,), (1399969524,), (1399969541,), (1399969544,), (1399969754,), (1399969775,), (1399969803,), (1399969806,), (1399969839,), (1399969846,), (1399969866,), (1399969867,), (1399969871,), (1399969872,), (1399969874,), (1399969877,), (1399969880,), (1399969882,), (1399969992,), (1399970008,), (1399970021,), (1399970050,), (1399970052,), (1399970081,), (1399970083,), (1399970085,), (1399970087,), (1399970121,), (1399970156,), (1399970653,), (1399970690,), (1399970725,), (1399970761,), (1399970800,), (1399970848,), (1399970980,), (1399970999,), (1399971002,), (1399971037,), (1399971116,), (1399971149,), (1399971158,), (1399971161,), (1399971164,), (1399971167,), (1399971489,), (1399971533,), (1399971577,), (1399971613,), (1399971926,), (1399971928,), (1399971935,), (1399971936,), (1399971939,), (1399971990,), (1399971996,), (1399971998,), (1399972001,), (1399972004,)) 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 (1399970800) 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 29544237 , 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=29544201 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 (29544237) result : ((1399969897,), (1399970372,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29544201) result : ((1399967571,), (1399967606,), (1399967671,), (1399967740,), (1399967806,), (1399968195,), (1399968236,), (1399968268,), (1399968298,), (1399968422,), (1399968424,), (1399968426,), (1399968428,), (1399968430,), (1399968431,), (1399968736,), (1399968801,), (1399968868,), (1399968929,), (1399968992,), (1399969481,), (1399969524,), (1399969541,), (1399969544,), (1399969754,), (1399969775,), (1399969803,), (1399969806,), (1399969839,), (1399969846,), (1399969866,), (1399969867,), (1399969871,), (1399969872,), (1399969874,), (1399969877,), (1399969880,), (1399969882,), (1399969992,), (1399970008,), (1399970021,), (1399970050,), (1399970052,), (1399970081,), (1399970083,), (1399970085,), (1399970087,), (1399970121,), (1399970156,), (1399970653,), (1399970690,), (1399970725,), (1399970761,), (1399970800,), (1399970848,), (1399970980,), (1399970999,), (1399971002,), (1399971037,), (1399971116,), (1399971149,), (1399971158,), (1399971161,), (1399971164,), (1399971167,), (1399971489,), (1399971533,), (1399971577,), (1399971613,), (1399971926,), (1399971928,), (1399971935,), (1399971936,), (1399971939,), (1399971990,), (1399971996,), (1399971998,), (1399972001,), (1399972004,)) 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 (1399970800) 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 29544238 , 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=29544201 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 (29544238) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29544201) result : ((1399967571,), (1399967606,), (1399967671,), (1399967740,), (1399967806,), (1399968195,), (1399968236,), (1399968268,), (1399968298,), (1399968422,), (1399968424,), (1399968426,), (1399968428,), (1399968430,), (1399968431,), (1399968736,), (1399968801,), (1399968868,), (1399968929,), (1399968992,), (1399969481,), (1399969524,), (1399969541,), (1399969544,), (1399969754,), (1399969775,), (1399969803,), (1399969806,), (1399969839,), (1399969846,), (1399969866,), (1399969867,), (1399969871,), (1399969872,), (1399969874,), (1399969877,), (1399969880,), (1399969882,), (1399969992,), (1399970008,), (1399970021,), (1399970050,), (1399970052,), (1399970081,), (1399970083,), (1399970085,), (1399970087,), (1399970121,), (1399970156,), (1399970653,), (1399970690,), (1399970725,), (1399970761,), (1399970800,), (1399970848,), (1399970980,), (1399970999,), (1399971002,), (1399971037,), (1399971116,), (1399971149,), (1399971158,), (1399971161,), (1399971164,), (1399971167,), (1399971489,), (1399971533,), (1399971577,), (1399971613,), (1399971926,), (1399971928,), (1399971935,), (1399971936,), (1399971939,), (1399971990,), (1399971996,), (1399971998,), (1399972001,), (1399972004,)) 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 (1399970800) 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 29544239 , 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=29544201 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 (29544239) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29544201) result : ((1399967571,), (1399967606,), (1399967671,), (1399967740,), (1399967806,), (1399968195,), (1399968236,), (1399968268,), (1399968298,), (1399968422,), (1399968424,), (1399968426,), (1399968428,), (1399968430,), (1399968431,), (1399968736,), (1399968801,), (1399968868,), (1399968929,), (1399968992,), (1399969481,), (1399969524,), (1399969541,), (1399969544,), (1399969754,), (1399969775,), (1399969803,), (1399969806,), (1399969839,), (1399969846,), (1399969866,), (1399969867,), (1399969871,), (1399969872,), (1399969874,), (1399969877,), (1399969880,), (1399969882,), (1399969992,), (1399970008,), (1399970021,), (1399970050,), (1399970052,), (1399970081,), (1399970083,), (1399970085,), (1399970087,), (1399970121,), (1399970156,), (1399970653,), (1399970690,), (1399970725,), (1399970761,), (1399970800,), (1399970848,), (1399970980,), (1399970999,), (1399971002,), (1399971037,), (1399971116,), (1399971149,), (1399971158,), (1399971161,), (1399971164,), (1399971167,), (1399971489,), (1399971533,), (1399971577,), (1399971613,), (1399971926,), (1399971928,), (1399971935,), (1399971936,), (1399971939,), (1399971990,), (1399971996,), (1399971998,), (1399972001,), (1399972004,)) 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 (1399970800) 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`=29544201 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','kraft','plastique','mal_croppe','Carton_gris','metal','papier','autre_refus','environnement','flou','cartonnette','Carton_brun')) 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`=29544201 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','kraft','plastique','mal_croppe','Carton_gris','metal','papier','autre_refus','environnement','flou','cartonnette','Carton_brun')) AND mptpi.`min_score`=0.5 To do returned map {'autre_refus': {'main_port_id': 29544201, 'sub_port_id': 29544240, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20155298, 'last_updated_at': datetime.datetime(2025, 12, 18, 14, 3, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 18, 14, 3, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 18, 14, 3, 29)}, 'Carton_brun': {'main_port_id': 29544201, 'sub_port_id': 29544241, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20155299, 'last_updated_at': datetime.datetime(2025, 12, 18, 14, 3, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 18, 14, 3, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 18, 14, 3, 29)}, 'Carton_gris': {'main_port_id': 29544201, 'sub_port_id': 29544242, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20155300, 'last_updated_at': datetime.datetime(2025, 12, 18, 14, 3, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 18, 14, 3, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 18, 14, 3, 29)}, 'Teint_Dans_La_Masse': {'main_port_id': 29544201, 'sub_port_id': 29544243, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20155301, 'last_updated_at': datetime.datetime(2025, 12, 18, 14, 3, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 18, 14, 3, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 18, 14, 3, 29)}, 'flou': {'main_port_id': 29544201, 'sub_port_id': 29544244, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20155302, 'last_updated_at': datetime.datetime(2025, 12, 18, 14, 3, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 18, 14, 3, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 18, 14, 3, 29)}, 'environnement': {'main_port_id': 29544201, 'sub_port_id': 29544245, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20155303, 'last_updated_at': datetime.datetime(2025, 12, 18, 14, 3, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 18, 14, 3, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 18, 14, 3, 29)}, 'plastique': {'main_port_id': 29544201, 'sub_port_id': 29544246, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20155304, 'last_updated_at': datetime.datetime(2025, 12, 18, 14, 3, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 18, 14, 3, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 18, 14, 3, 29)}, 'cartonnette': {'main_port_id': 29544201, 'sub_port_id': 29544247, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20155305, 'last_updated_at': datetime.datetime(2025, 12, 18, 14, 3, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 18, 14, 3, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 18, 14, 3, 29)}, 'kraft': {'main_port_id': 29544201, 'sub_port_id': 29544248, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20155306, 'last_updated_at': datetime.datetime(2025, 12, 18, 14, 3, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 18, 14, 3, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 18, 14, 3, 29)}, 'metal': {'main_port_id': 29544201, 'sub_port_id': 29544249, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20155307, 'last_updated_at': datetime.datetime(2025, 12, 18, 14, 3, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 18, 14, 3, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 18, 14, 3, 29)}, 'mal_croppe': {'main_port_id': 29544201, 'sub_port_id': 29544250, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20155308, 'last_updated_at': datetime.datetime(2025, 12, 18, 14, 3, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 18, 14, 3, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 18, 14, 3, 29)}, 'papier': {'main_port_id': 29544201, 'sub_port_id': 29544251, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20155309, 'last_updated_at': datetime.datetime(2025, 12, 18, 14, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 12, 18, 14, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 12, 18, 14, 3, 29)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29544240,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29544228 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29544241,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29544229 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29544242,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29544230 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29544243,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29544231 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29544244,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29544232 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29544245,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29544233 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29544246,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29544234 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29544247,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29544235 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29544248,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29544236 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29544249,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29544237 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29544250,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29544238 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29544251,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29544239 lien utilise dans velours : https://marlene.fotonower.com/velours/29544240,29544241,29544242,29544243,29544244,29544245,29544246,29544247,29544248,29544249,29544250,29544251?tags=autre_refus,Carton_brun,Carton_gris,Teint_Dans_La_Masse,flou,environnement,plastique,cartonnette,kraft,metal,mal_croppe,papier After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29544201]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1399972004, 1399972001, 1399971998, 1399971996, 1399971990, 1399971939, 1399971936, 1399971935, 1399971928, 1399971926] map_info['map_portfolio_photo'] : {29544201: [1399972004, 1399972001, 1399971998, 1399971996, 1399971990, 1399971939, 1399971936, 1399971935, 1399971928, 1399971926, 1399971613, 1399971577, 1399971533, 1399971489, 1399971167, 1399971164, 1399971161, 1399971158, 1399971149, 1399971116, 1399971037, 1399971002, 1399970999, 1399970980, 1399970848, 1399970800, 1399970761, 1399970725, 1399970690, 1399970653, 1399970156, 1399970121, 1399970087, 1399970085, 1399970083, 1399970081, 1399970052, 1399970050, 1399970021, 1399970008, 1399969992, 1399969882, 1399969880, 1399969877, 1399969874, 1399969872, 1399969871, 1399969867, 1399969866, 1399969846, 1399969839, 1399969806, 1399969803, 1399969775, 1399969754, 1399969544, 1399969541, 1399969524, 1399969481, 1399968992, 1399968929, 1399968868, 1399968801, 1399968736, 1399968431, 1399968430, 1399968428, 1399968426, 1399968424, 1399968422, 1399968298, 1399968268, 1399968236, 1399968195, 1399967806, 1399967740, 1399967671, 1399967606, 1399967571]} final : False mtd_id 4302 list_pids : [1399972004, 1399972001, 1399971998, 1399971996, 1399971990, 1399971939, 1399971936, 1399971935, 1399971928, 1399971926] Looping around the photos to save general results len do output : 1 /29544201. 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, '4246264') ('4302', '29544201', '1399972004', None, None, None, None, None, '4246264') ('4302', None, None, None, None, None, None, None, '4246264') ('4302', '29544201', '1399972001', None, None, None, None, None, '4246264') ('4302', None, None, None, None, None, None, None, '4246264') ('4302', '29544201', '1399971998', None, None, None, None, None, '4246264') ('4302', None, None, None, None, None, None, None, '4246264') ('4302', '29544201', '1399971996', None, None, None, None, None, '4246264') ('4302', None, None, None, None, None, None, None, '4246264') ('4302', '29544201', '1399971990', None, None, None, None, None, '4246264') ('4302', None, None, None, None, None, None, None, '4246264') ('4302', '29544201', '1399971939', None, None, None, None, None, '4246264') ('4302', None, None, None, None, None, None, None, '4246264') ('4302', '29544201', '1399971936', None, None, None, None, None, '4246264') ('4302', None, None, None, None, None, None, None, '4246264') ('4302', '29544201', '1399971935', None, None, None, None, None, '4246264') ('4302', None, None, None, None, None, None, None, '4246264') ('4302', '29544201', '1399971928', None, None, None, None, None, '4246264') ('4302', None, None, None, None, None, None, None, '4246264') ('4302', '29544201', '1399971926', None, None, None, None, None, '4246264') 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, '29544201', "{'autre_refus': 29544228, 'Carton_brun': 29544229, 'Carton_gris': 29544230, 'Teint_Dans_La_Masse': 29544231, 'flou': 29544232, 'environnement': 29544233, 'plastique': 29544234, 'cartonnette': 29544235, 'kraft': 29544236, 'metal': 29544237, 'mal_croppe': 29544238, 'papier': 29544239}", None, None, None, None, '4246264'), ('4302', '29544201', '1399972004', None, None, None, None, None, '4246264'), ('4302', '29544201', '1399972001', None, None, None, None, None, '4246264'), ('4302', '29544201', '1399971998', None, None, None, None, None, '4246264'), ('4302', '29544201', '1399971996', None, None, None, None, None, '4246264'), ('4302', '29544201', '1399971990', None, None, None, None, None, '4246264'), ('4302', '29544201', '1399971939', None, None, None, None, None, '4246264'), ('4302', '29544201', '1399971936', None, None, None, None, None, '4246264'), ('4302', '29544201', '1399971935', None, None, None, None, None, '4246264'), ('4302', '29544201', '1399971928', None, None, None, None, None, '4246264'), ('4302', '29544201', '1399971926', None, None, None, None, None, '4246264')] time used for this insertion : 0.018648624420166016 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.5801987648010254 time spend to save output : 0.018963336944580078 total time spend for step 1 : 0.5991621017456055 step2:final Thu Dec 18 14:14:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec 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 (29544201) 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 29544201 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1399967806,1399967740,1399967671,1399967606,1399967571,1399968298,1399968268,1399968236,1399968195,1399968431,1399968430,1399968428,1399968426,1399968424,1399968422,1399968992,1399968929,1399968868,1399968801,1399968736,1399969867,1399969544,1399969541,1399969866,1399969524,1399969846,1399969839,1399969481,1399969806,1399969803,1399969775,1399969754,1399969882,1399969880,1399969877,1399969874,1399969872,1399969871,1399970052,1399970050,1399970021,1399970008,1399969992,1399970156,1399971037,1399970121,1399971002,1399970087,1399970999,1399970085,1399970980,1399970083,1399970848,1399970081,1399970800,1399970761,1399970725,1399970690,1399970653,1399971167,1399971164,1399971161,1399971158,1399971149,1399971116,1399971613,1399971577,1399971533,1399971489,1399971939,1399971936,1399971935,1399971928,1399971926,1399972004,1399972001,1399971998,1399971996,1399971990); 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([29544201]) Inside saveOutput : final : False verbose : True original output for save of step final : {1399972004: ('0.04816952740624493',), 1399972001: ('0.04816952740624493',), 1399971998: ('0.04816952740624493',), 1399971996: ('0.04816952740624493',), 1399971990: ('0.04816952740624493',), 1399971939: ('0.04816952740624493',), 1399971936: ('0.04816952740624493',), 1399971935: ('0.04816952740624493',), 1399971928: ('0.04816952740624493',), 1399971926: ('0.04816952740624493',)} new output for save of step final : {1399972004: ('0.04816952740624493',), 1399972001: ('0.04816952740624493',), 1399971998: ('0.04816952740624493',), 1399971996: ('0.04816952740624493',), 1399971990: ('0.04816952740624493',), 1399971939: ('0.04816952740624493',), 1399971936: ('0.04816952740624493',), 1399971935: ('0.04816952740624493',), 1399971928: ('0.04816952740624493',), 1399971926: ('0.04816952740624493',)} [1399972004, 1399972001, 1399971998, 1399971996, 1399971990, 1399971939, 1399971936, 1399971935, 1399971928, 1399971926] map_info['map_portfolio_photo'] : {29544201: [1399972004, 1399972001, 1399971998, 1399971996, 1399971990, 1399971939, 1399971936, 1399971935, 1399971928, 1399971926, 1399971613, 1399971577, 1399971533, 1399971489, 1399971167, 1399971164, 1399971161, 1399971158, 1399971149, 1399971116, 1399971037, 1399971002, 1399970999, 1399970980, 1399970848, 1399970800, 1399970761, 1399970725, 1399970690, 1399970653, 1399970156, 1399970121, 1399970087, 1399970085, 1399970083, 1399970081, 1399970052, 1399970050, 1399970021, 1399970008, 1399969992, 1399969882, 1399969880, 1399969877, 1399969874, 1399969872, 1399969871, 1399969867, 1399969866, 1399969846, 1399969839, 1399969806, 1399969803, 1399969775, 1399969754, 1399969544, 1399969541, 1399969524, 1399969481, 1399968992, 1399968929, 1399968868, 1399968801, 1399968736, 1399968431, 1399968430, 1399968428, 1399968426, 1399968424, 1399968422, 1399968298, 1399968268, 1399968236, 1399968195, 1399967806, 1399967740, 1399967671, 1399967606, 1399967571]} final : False mtd_id 4302 list_pids : [1399972004, 1399972001, 1399971998, 1399971996, 1399971990, 1399971939, 1399971936, 1399971935, 1399971928, 1399971926] Looping around the photos to save general results len do output : 10 /1399972004.Didn't retrieve data . /1399972001.Didn't retrieve data . /1399971998.Didn't retrieve data . /1399971996.Didn't retrieve data . /1399971990.Didn't retrieve data . /1399971939.Didn't retrieve data . /1399971936.Didn't retrieve data . /1399971935.Didn't retrieve data . /1399971928.Didn't retrieve data . /1399971926.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, '4246264') ('4302', '29544201', '1399972004', None, None, None, None, None, '4246264') ('4302', None, None, None, None, None, None, None, '4246264') ('4302', '29544201', '1399972001', None, None, None, None, None, '4246264') ('4302', None, None, None, None, None, None, None, '4246264') ('4302', '29544201', '1399971998', None, None, None, None, None, '4246264') ('4302', None, None, None, None, None, None, None, '4246264') ('4302', '29544201', '1399971996', None, None, None, None, None, '4246264') ('4302', None, None, None, None, None, None, None, '4246264') ('4302', '29544201', '1399971990', None, None, None, None, None, '4246264') ('4302', None, None, None, None, None, None, None, '4246264') ('4302', '29544201', '1399971939', None, None, None, None, None, '4246264') ('4302', None, None, None, None, None, None, None, '4246264') ('4302', '29544201', '1399971936', None, None, None, None, None, '4246264') ('4302', None, None, None, None, None, None, None, '4246264') ('4302', '29544201', '1399971935', None, None, None, None, None, '4246264') ('4302', None, None, None, None, None, None, None, '4246264') ('4302', '29544201', '1399971928', None, None, None, None, None, '4246264') ('4302', None, None, None, None, None, None, None, '4246264') ('4302', '29544201', '1399971926', None, None, None, None, None, '4246264') 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', '29544201', '1399972004', '0.04816952740624493', None, None, None, None, '4246264'), ('4302', '29544201', '1399972001', '0.04816952740624493', None, None, None, None, '4246264'), ('4302', '29544201', '1399971998', '0.04816952740624493', None, None, None, None, '4246264'), ('4302', '29544201', '1399971996', '0.04816952740624493', None, None, None, None, '4246264'), ('4302', '29544201', '1399971990', '0.04816952740624493', None, None, None, None, '4246264'), ('4302', '29544201', '1399971939', '0.04816952740624493', None, None, None, None, '4246264'), ('4302', '29544201', '1399971936', '0.04816952740624493', None, None, None, None, '4246264'), ('4302', '29544201', '1399971935', '0.04816952740624493', None, None, None, None, '4246264'), ('4302', '29544201', '1399971928', '0.04816952740624493', None, None, None, None, '4246264'), ('4302', '29544201', '1399971926', '0.04816952740624493', None, None, None, None, '4246264')] time used for this insertion : 0.017513513565063477 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.08306050300598145 time spend to save output : 0.018024682998657227 total time spend for step 2 : 0.10108518600463867 step3:velours_tree Thu Dec 18 14:14:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec 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 : {29544201: [{'autre_refus': 29544228, 'Carton_brun': 29544229, 'Carton_gris': 29544230, 'Teint_Dans_La_Masse': 29544231, 'flou': 29544232, 'environnement': 29544233, 'plastique': 29544234, 'cartonnette': 29544235, 'kraft': 29544236, 'metal': 29544237, 'mal_croppe': 29544238, 'papier': 29544239}]} input_args_next_step : {29544201: ()} output_args : {29544201: [{'autre_refus': 29544228, 'Carton_brun': 29544229, 'Carton_gris': 29544230, 'Teint_Dans_La_Masse': 29544231, 'flou': 29544232, 'environnement': 29544233, 'plastique': 29544234, 'cartonnette': 29544235, 'kraft': 29544236, 'metal': 29544237, 'mal_croppe': 29544238, 'papier': 29544239}]} args : 29544201 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 : ({'autre_refus': 29544228, 'Carton_brun': 29544229, 'Carton_gris': 29544230, 'Teint_Dans_La_Masse': 29544231, 'flou': 29544232, 'environnement': 29544233, 'plastique': 29544234, 'cartonnette': 29544235, 'kraft': 29544236, 'metal': 29544237, 'mal_croppe': 29544238, 'papier': 29544239},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29544201) 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([29544201]) 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.26847171783447266 time spend to save output : 7.128715515136719e-05 total time spend for step 3 : 0.268543004989624 step4:send_mail_cod Thu Dec 18 14:14:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1399972004: ('0.04816952740624493',), 1399972001: ('0.04816952740624493',), 1399971998: ('0.04816952740624493',), 1399971996: ('0.04816952740624493',), 1399971990: ('0.04816952740624493',), 1399971939: ('0.04816952740624493',), 1399971936: ('0.04816952740624493',), 1399971935: ('0.04816952740624493',), 1399971928: ('0.04816952740624493',), 1399971926: ('0.04816952740624493',)} input_args_next_step : {1399972004: ()} output_args : {1399972004: ('0.04816952740624493',), 1399972001: ('0.04816952740624493',), 1399971998: ('0.04816952740624493',), 1399971996: ('0.04816952740624493',), 1399971990: ('0.04816952740624493',), 1399971939: ('0.04816952740624493',), 1399971936: ('0.04816952740624493',), 1399971935: ('0.04816952740624493',), 1399971928: ('0.04816952740624493',), 1399971926: ('0.04816952740624493',)} args : 1399972004 depend.output_id : 0 input_args_next_step : {1399972004: ('0.04816952740624493',), 1399972001: ()} output_args : {1399972004: ('0.04816952740624493',), 1399972001: ('0.04816952740624493',), 1399971998: ('0.04816952740624493',), 1399971996: ('0.04816952740624493',), 1399971990: ('0.04816952740624493',), 1399971939: ('0.04816952740624493',), 1399971936: ('0.04816952740624493',), 1399971935: ('0.04816952740624493',), 1399971928: ('0.04816952740624493',), 1399971926: ('0.04816952740624493',)} args : 1399972001 depend.output_id : 0 input_args_next_step : {1399972004: ('0.04816952740624493',), 1399972001: ('0.04816952740624493',), 1399971998: ()} output_args : {1399972004: ('0.04816952740624493',), 1399972001: ('0.04816952740624493',), 1399971998: ('0.04816952740624493',), 1399971996: ('0.04816952740624493',), 1399971990: ('0.04816952740624493',), 1399971939: ('0.04816952740624493',), 1399971936: ('0.04816952740624493',), 1399971935: ('0.04816952740624493',), 1399971928: ('0.04816952740624493',), 1399971926: ('0.04816952740624493',)} args : 1399971998 depend.output_id : 0 input_args_next_step : {1399972004: ('0.04816952740624493',), 1399972001: ('0.04816952740624493',), 1399971998: ('0.04816952740624493',), 1399971996: ()} output_args : {1399972004: ('0.04816952740624493',), 1399972001: ('0.04816952740624493',), 1399971998: ('0.04816952740624493',), 1399971996: ('0.04816952740624493',), 1399971990: ('0.04816952740624493',), 1399971939: ('0.04816952740624493',), 1399971936: ('0.04816952740624493',), 1399971935: ('0.04816952740624493',), 1399971928: ('0.04816952740624493',), 1399971926: ('0.04816952740624493',)} args : 1399971996 depend.output_id : 0 input_args_next_step : {1399972004: ('0.04816952740624493',), 1399972001: ('0.04816952740624493',), 1399971998: ('0.04816952740624493',), 1399971996: ('0.04816952740624493',), 1399971990: ()} output_args : {1399972004: ('0.04816952740624493',), 1399972001: ('0.04816952740624493',), 1399971998: ('0.04816952740624493',), 1399971996: ('0.04816952740624493',), 1399971990: ('0.04816952740624493',), 1399971939: ('0.04816952740624493',), 1399971936: ('0.04816952740624493',), 1399971935: ('0.04816952740624493',), 1399971928: ('0.04816952740624493',), 1399971926: ('0.04816952740624493',)} args : 1399971990 depend.output_id : 0 input_args_next_step : {1399972004: ('0.04816952740624493',), 1399972001: ('0.04816952740624493',), 1399971998: ('0.04816952740624493',), 1399971996: ('0.04816952740624493',), 1399971990: ('0.04816952740624493',), 1399971939: ()} output_args : {1399972004: ('0.04816952740624493',), 1399972001: ('0.04816952740624493',), 1399971998: ('0.04816952740624493',), 1399971996: ('0.04816952740624493',), 1399971990: ('0.04816952740624493',), 1399971939: ('0.04816952740624493',), 1399971936: ('0.04816952740624493',), 1399971935: ('0.04816952740624493',), 1399971928: ('0.04816952740624493',), 1399971926: ('0.04816952740624493',)} args : 1399971939 depend.output_id : 0 input_args_next_step : {1399972004: ('0.04816952740624493',), 1399972001: ('0.04816952740624493',), 1399971998: ('0.04816952740624493',), 1399971996: ('0.04816952740624493',), 1399971990: ('0.04816952740624493',), 1399971939: ('0.04816952740624493',), 1399971936: ()} output_args : {1399972004: ('0.04816952740624493',), 1399972001: ('0.04816952740624493',), 1399971998: ('0.04816952740624493',), 1399971996: ('0.04816952740624493',), 1399971990: ('0.04816952740624493',), 1399971939: ('0.04816952740624493',), 1399971936: ('0.04816952740624493',), 1399971935: ('0.04816952740624493',), 1399971928: ('0.04816952740624493',), 1399971926: ('0.04816952740624493',)} args : 1399971936 depend.output_id : 0 input_args_next_step : {1399972004: ('0.04816952740624493',), 1399972001: ('0.04816952740624493',), 1399971998: ('0.04816952740624493',), 1399971996: ('0.04816952740624493',), 1399971990: ('0.04816952740624493',), 1399971939: ('0.04816952740624493',), 1399971936: ('0.04816952740624493',), 1399971935: ()} output_args : {1399972004: ('0.04816952740624493',), 1399972001: ('0.04816952740624493',), 1399971998: ('0.04816952740624493',), 1399971996: ('0.04816952740624493',), 1399971990: ('0.04816952740624493',), 1399971939: ('0.04816952740624493',), 1399971936: ('0.04816952740624493',), 1399971935: ('0.04816952740624493',), 1399971928: ('0.04816952740624493',), 1399971926: ('0.04816952740624493',)} args : 1399971935 depend.output_id : 0 input_args_next_step : {1399972004: ('0.04816952740624493',), 1399972001: ('0.04816952740624493',), 1399971998: ('0.04816952740624493',), 1399971996: ('0.04816952740624493',), 1399971990: ('0.04816952740624493',), 1399971939: ('0.04816952740624493',), 1399971936: ('0.04816952740624493',), 1399971935: ('0.04816952740624493',), 1399971928: ()} output_args : {1399972004: ('0.04816952740624493',), 1399972001: ('0.04816952740624493',), 1399971998: ('0.04816952740624493',), 1399971996: ('0.04816952740624493',), 1399971990: ('0.04816952740624493',), 1399971939: ('0.04816952740624493',), 1399971936: ('0.04816952740624493',), 1399971935: ('0.04816952740624493',), 1399971928: ('0.04816952740624493',), 1399971926: ('0.04816952740624493',)} args : 1399971928 depend.output_id : 0 input_args_next_step : {1399972004: ('0.04816952740624493',), 1399972001: ('0.04816952740624493',), 1399971998: ('0.04816952740624493',), 1399971996: ('0.04816952740624493',), 1399971990: ('0.04816952740624493',), 1399971939: ('0.04816952740624493',), 1399971936: ('0.04816952740624493',), 1399971935: ('0.04816952740624493',), 1399971928: ('0.04816952740624493',), 1399971926: ()} output_args : {1399972004: ('0.04816952740624493',), 1399972001: ('0.04816952740624493',), 1399971998: ('0.04816952740624493',), 1399971996: ('0.04816952740624493',), 1399971990: ('0.04816952740624493',), 1399971939: ('0.04816952740624493',), 1399971936: ('0.04816952740624493',), 1399971935: ('0.04816952740624493',), 1399971928: ('0.04816952740624493',), 1399971926: ('0.04816952740624493',)} args : 1399971926 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 : {29544201: [{'autre_refus': 29544228, 'Carton_brun': 29544229, 'Carton_gris': 29544230, 'Teint_Dans_La_Masse': 29544231, 'flou': 29544232, 'environnement': 29544233, 'plastique': 29544234, 'cartonnette': 29544235, 'kraft': 29544236, 'metal': 29544237, 'mal_croppe': 29544238, 'papier': 29544239}]} input_args_next_step : {1399972004: ('0.04816952740624493',), 1399972001: ('0.04816952740624493',), 1399971998: ('0.04816952740624493',), 1399971996: ('0.04816952740624493',), 1399971990: ('0.04816952740624493',), 1399971939: ('0.04816952740624493',), 1399971936: ('0.04816952740624493',), 1399971935: ('0.04816952740624493',), 1399971928: ('0.04816952740624493',), 1399971926: ('0.04816952740624493',), 29544201: ()} output_args : {29544201: [{'autre_refus': 29544228, 'Carton_brun': 29544229, 'Carton_gris': 29544230, 'Teint_Dans_La_Masse': 29544231, 'flou': 29544232, 'environnement': 29544233, 'plastique': 29544234, 'cartonnette': 29544235, 'kraft': 29544236, 'metal': 29544237, 'mal_croppe': 29544238, 'papier': 29544239}]} args : 29544201 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.04816952740624493',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29544201) 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 (1399972004,1399972001,1399971998,1399971996,1399971990,1399971939,1399971936,1399971935,1399971928,1399971926) Found this number of photos: 10 ##### Call download_photos : nb_thread : 5 begin to download photo : 1399971926 begin to download photo : 1399971936 begin to download photo : 1399971996 begin to download photo : 1399972004 download finish for photo 1399971996 begin to download photo : 1399971998 download finish for photo 1399971936 begin to download photo : 1399971939 download finish for photo 1399972004 download finish for photo 1399971926 begin to download photo : 1399971928 download finish for photo 1399971998 begin to download photo : 1399972001 download finish for photo 1399971939 begin to download photo : 1399971990 download finish for photo 1399971928 begin to download photo : 1399971935 download finish for photo 1399971990 download finish for photo 1399972001 download finish for photo 1399971935 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 10 ; length of list_pids : 10 ; length of list_args : 10 results_Auto_P29544201_18-12-2025_14_14_59.pdf 29544228 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=29544228 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1399969885: '1766063225_614770_1399968736_f17636a1de6a7b89cd218848722825e7_rle_crop_4074184470_0.png', 1399970251: '1766063346_620823_1399968736_f17636a1de6a7b89cd218848722825e7_rle_crop_4074184470_0.png', 1399971168: '1766063465_627127_1399969880_a0064471dc025d468a8f6df1fcbd686f_rle_crop_4074187999_0.png', 1399971169: '1766063465_627127_1399969874_9cacb0363171ecaca91faea57383335a_rle_crop_4074188032_0.png', 1399971170: '1766063465_627127_1399969871_77e9c97aecdc264af7a74c99cfdf2061_rle_crop_4074188062_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/0fc68372f1e8daac1875ebc311d6c2fb_43604885.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/0fc68372f1e8daac1875ebc311d6c2fb_19035025.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/419560f391ec1b2971a75da345bb86d1_54726168.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/25ce56dafc92b12b1a26c9d87511f0cb_17526162.png change filename to text .imagette295442281766063699/ imagette295442281766063699/1766063346_620823_1399968736_f17636a1de6a7b89cd218848722825e7_rle_crop_4074184470_0.png.png imagette295442281766063699/1766063465_627127_1399969880_a0064471dc025d468a8f6df1fcbd686f_rle_crop_4074187999_0.png.png imagette295442281766063699/1766063225_614770_1399968736_f17636a1de6a7b89cd218848722825e7_rle_crop_4074184470_0.png.png imagette295442281766063699/1766063465_627127_1399969871_77e9c97aecdc264af7a74c99cfdf2061_rle_crop_4074188062_0.png.png imagette295442281766063699/1766063465_627127_1399969874_9cacb0363171ecaca91faea57383335a_rle_crop_4074188032_0.png.png imagette295442321766063700/ wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/4273ddd0faaf8e28340302f0a94df495_7944544.png imagette295442281766063699 29544232 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=29544232 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette295442321766063700 29544234 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=29544234 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1399969587: '1766063107_607936_1399968195_fce8a7b1190b13a9680ff175637f7eb7_rle_crop_4074178925_0.png', 1399969895: '1766063225_614770_1399968868_3e13b19f39dd14404909448f8b716d8c_rle_crop_4074183844_0.png', 1399970352: '1766063346_620823_1399968868_3e13b19f39dd14404909448f8b716d8c_rle_crop_4074183844_0.png', 1399971205: '1766063465_627127_1399969880_a0064471dc025d468a8f6df1fcbd686f_rle_crop_4074188007_0.png', 1399971207: '1766063465_627127_1399969880_a0064471dc025d468a8f6df1fcbd686f_rle_crop_4074188005_0.png', 1399971209: '1766063465_627127_1399969877_c652d54bbb4ea984a64907b14562894a_rle_crop_4074188015_0.png', 1399971211: '1766063465_627127_1399969874_9cacb0363171ecaca91faea57383335a_rle_crop_4074188031_0.png', 1399971428: '1766063487_628357_1399969882_d73f6e911e2b396bda1bdf641bafe6be_rle_crop_4074188192_0.png', 1399971431: '1766063487_628357_1399969882_d73f6e911e2b396bda1bdf641bafe6be_rle_crop_4074188195_0.png', 1399971434: '1766063487_628357_1399969803_0ca9225cabde5280b11317109e8132d1_rle_crop_4074188206_0.png', 1399971994: '1766063585_635130_1399970085_9a157342a466bb3a107e90e693556696_rle_crop_4074190825_0.png', 1399971995: '1766063585_635130_1399970083_7920ab94c2597e540fb287f3df8cff10_rle_crop_4074190919_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/02b2671f6967bcba52daa431a49e51ce_50682974.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/9bd9fd8a5e12d9d449067a0e87fef378_58898724.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/9bd9fd8a5e12d9d449067a0e87fef378_40950016.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/bb2d5f1b40a7ecb47a8a79adb0f8626e_52470733.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/d7e72f3b1aceb696a00360569822b544_48915868.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/45407ded6aa80dc49f76113efe2a2732_39747844.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/c2397d24d3c01b887950c95eadf9e775_61256604.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/6f824b73e0c3a73565bc6d8b0f54f8cc_61407821.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/678e771845bd18f1a5dd998c0410d84c_79681530.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/064fa42c87282a606a44d7b6cc99b014_91510349.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/0bf40c2de7dbe901283691dc9a8e9c5f_78274947.png change filename to text .imagette295442341766063700/ imagette295442341766063700/1766063487_628357_1399969882_d73f6e911e2b396bda1bdf641bafe6be_rle_crop_4074188195_0.png.png imagette295442341766063700/1766063107_607936_1399968195_fce8a7b1190b13a9680ff175637f7eb7_rle_crop_4074178925_0.png.png imagette295442341766063700/1766063487_628357_1399969882_d73f6e911e2b396bda1bdf641bafe6be_rle_crop_4074188192_0.png.png imagette295442341766063700/1766063465_627127_1399969877_c652d54bbb4ea984a64907b14562894a_rle_crop_4074188015_0.png.png imagette295442341766063700/1766063225_614770_1399968868_3e13b19f39dd14404909448f8b716d8c_rle_crop_4074183844_0.png.png imagette295442341766063700/1766063487_628357_1399969803_0ca9225cabde5280b11317109e8132d1_rle_crop_4074188206_0.png.png imagette295442341766063700/1766063465_627127_1399969880_a0064471dc025d468a8f6df1fcbd686f_rle_crop_4074188007_0.png.png imagette295442341766063700/1766063465_627127_1399969880_a0064471dc025d468a8f6df1fcbd686f_rle_crop_4074188005_0.png.png imagette295442341766063700/1766063585_635130_1399970085_9a157342a466bb3a107e90e693556696_rle_crop_4074190825_0.png.png imagette295442341766063700/1766063585_635130_1399970083_7920ab94c2597e540fb287f3df8cff10_rle_crop_4074190919_0.png.png imagette295442341766063700/1766063346_620823_1399968868_3e13b19f39dd14404909448f8b716d8c_rle_crop_4074183844_0.png.png imagette295442341766063700/1766063465_627127_1399969874_9cacb0363171ecaca91faea57383335a_rle_crop_4074188031_0.png.png wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/60f1bc5a75e313c3b1a866585f6de770_4786543.png imagette295442341766063700 29544235 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=29544235 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1399969582: '1766063107_607936_1399968268_fe4525b2240ff973b36e344011946520_rle_crop_4074178898_0.png', 1399969583: '1766063107_607936_1399968236_b681bd395f05391a040b06d61b8e4282_rle_crop_4074178907_0.png', 1399969585: '1766063107_607936_1399968195_fce8a7b1190b13a9680ff175637f7eb7_rle_crop_4074178926_0.png', 1399969891: '1766063225_614770_1399968801_f8718420344f6735fa67c8c774ce83ed_rle_crop_4074184342_0.png', 1399970317: '1766063346_620823_1399968801_f8718420344f6735fa67c8c774ce83ed_rle_crop_4074184342_0.png', 1399971388: '1766063487_628357_1399969803_0ca9225cabde5280b11317109e8132d1_rle_crop_4074188204_0.png', 1399971391: '1766063487_628357_1399969775_e6275f61cd1ec96dded76fc225a16389_rle_crop_4074188220_0.png', 1399971986: '1766063585_635130_1399970121_87e1ef0ffee36092d3d76370c1086768_rle_crop_4074190790_0.png', 1399971987: '1766063585_635130_1399970087_f0393ad2207f2148be562684d200f6ea_rle_crop_4074190804_0.png', 1399971988: '1766063585_635130_1399970085_9a157342a466bb3a107e90e693556696_rle_crop_4074190823_0.png', 1399971989: '1766063585_635130_1399970081_06f2cde41b6d78000af462640a08c881_rle_crop_4074191079_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/3cfeef1070c340d7b1f8f1b332d506f6_61124059.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/5b1bfbf75f1abf437a890ab8624e1452_64662145.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/c1926010312b6d805e49b3a38bff258c_9486545.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/5ab5663b9a497acba5938edcef200489_72512219.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/5ab5663b9a497acba5938edcef200489_64428121.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/7e3e5ee9b4eb93e83b65be0127134646_99761774.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/3c747183a941466e19fd642d2ec6030a_76384770.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/a53c16274653a9fa815f8f4305b97e29_12305985.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/26528ac13a19b8b7440d44785e6efdbe_52632479.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/683fa1c997b585251bd631cd251183d0_63637993.png change filename to text .imagette295442351766063701/ imagette295442351766063701/1766063585_635130_1399970085_9a157342a466bb3a107e90e693556696_rle_crop_4074190823_0.png.png imagette295442351766063701/1766063346_620823_1399968801_f8718420344f6735fa67c8c774ce83ed_rle_crop_4074184342_0.png.png imagette295442351766063701/1766063487_628357_1399969803_0ca9225cabde5280b11317109e8132d1_rle_crop_4074188204_0.png.png imagette295442351766063701/1766063225_614770_1399968801_f8718420344f6735fa67c8c774ce83ed_rle_crop_4074184342_0.png.png imagette295442351766063701/1766063585_635130_1399970081_06f2cde41b6d78000af462640a08c881_rle_crop_4074191079_0.png.png imagette295442351766063701/1766063585_635130_1399970121_87e1ef0ffee36092d3d76370c1086768_rle_crop_4074190790_0.png.png imagette295442351766063701/1766063487_628357_1399969775_e6275f61cd1ec96dded76fc225a16389_rle_crop_4074188220_0.png.png imagette295442351766063701/1766063585_635130_1399970087_f0393ad2207f2148be562684d200f6ea_rle_crop_4074190804_0.png.png imagette295442351766063701/1766063107_607936_1399968195_fce8a7b1190b13a9680ff175637f7eb7_rle_crop_4074178926_0.png.png imagette295442351766063701/1766063107_607936_1399968236_b681bd395f05391a040b06d61b8e4282_rle_crop_4074178907_0.png.png imagette295442351766063701/1766063107_607936_1399968268_fe4525b2240ff973b36e344011946520_rle_crop_4074178898_0.png.png wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/ccefd301e0ed2f9b96d0a24570187a76_64517530.png imagette295442351766063701 29544236 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=29544236 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1399971220: '1766063465_627127_1399969877_c652d54bbb4ea984a64907b14562894a_rle_crop_4074188027_0.png', 1399971453: '1766063487_628357_1399969882_d73f6e911e2b396bda1bdf641bafe6be_rle_crop_4074188193_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/813b110df3403ed5cc92570990fdfccf_76933870.png change filename to text .imagette295442361766063701/ imagette295442361766063701/1766063465_627127_1399969877_c652d54bbb4ea984a64907b14562894a_rle_crop_4074188027_0.png.png imagette295442361766063701/1766063487_628357_1399969882_d73f6e911e2b396bda1bdf641bafe6be_rle_crop_4074188193_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/1a8d2948bf5dfa4cdfe9618e8cc17003_42819744.png imagette295442361766063701 29544237 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=29544237 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1399969897: '1766063225_614770_1399968801_f8718420344f6735fa67c8c774ce83ed_rle_crop_4074184339_0.png', 1399970372: '1766063346_620823_1399968801_f8718420344f6735fa67c8c774ce83ed_rle_crop_4074184339_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/91eec4ebee05477693a3c9045697dc61_22161655.png change filename to text .imagette295442371766063702/ imagette295442371766063702/1766063346_620823_1399968801_f8718420344f6735fa67c8c774ce83ed_rle_crop_4074184339_0.png.png imagette295442371766063702/1766063225_614770_1399968801_f8718420344f6735fa67c8c774ce83ed_rle_crop_4074184339_0.png.png imagette295442381766063702/ wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/91eec4ebee05477693a3c9045697dc61_57028082.png imagette295442371766063702 29544238 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=29544238 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette295442381766063702 29544229 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=29544229 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1399969893: '1766063225_614770_1399968736_f17636a1de6a7b89cd218848722825e7_rle_crop_4074184472_0.png', 1399970333: '1766063346_620823_1399968736_f17636a1de6a7b89cd218848722825e7_rle_crop_4074184472_0.png', 1399971183: '1766063465_627127_1399969874_9cacb0363171ecaca91faea57383335a_rle_crop_4074188038_0.png', 1399971185: '1766063465_627127_1399969872_a621e6050efdf4d8a18d1f94557bd517_rle_crop_4074188048_0.png', 1399971187: '1766063465_627127_1399969872_a621e6050efdf4d8a18d1f94557bd517_rle_crop_4074188050_0.png', 1399971406: '1766063487_628357_1399969775_e6275f61cd1ec96dded76fc225a16389_rle_crop_4074188223_0.png', 1399971992: '1766063585_635130_1399970085_9a157342a466bb3a107e90e693556696_rle_crop_4074190828_0.png', 1399971993: '1766063585_635130_1399970081_06f2cde41b6d78000af462640a08c881_rle_crop_4074191083_0.png', 1399971999: '1766063607_635883_1399970050_648533bdbadbfa0c3e6aee34ef8ec096_rle_crop_4074191739_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/bf50ee2917603668449ddfca3a80fdec_30843142.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/bf50ee2917603668449ddfca3a80fdec_76426186.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/8a8501bf59f56debd0a964e11a2e5bca_4258915.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/16c5536cd75811ed3c27d3aec8ed6822_84440385.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/0ffc5ad8f24e2e39e4bfaa9a9d7ae8c9_16476467.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/90fb3da8db89722a12559acf471b0544_33614157.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/f9c1c3385153e2a33eae921adf47ad36_75664170.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/f438fc706dc70e39086b56ae5d8717ec_90392471.png change filename to text .imagette295442291766063702/ imagette295442291766063702/1766063465_627127_1399969872_a621e6050efdf4d8a18d1f94557bd517_rle_crop_4074188050_0.png.png imagette295442291766063702/1766063465_627127_1399969874_9cacb0363171ecaca91faea57383335a_rle_crop_4074188038_0.png.png imagette295442291766063702/1766063585_635130_1399970081_06f2cde41b6d78000af462640a08c881_rle_crop_4074191083_0.png.png imagette295442291766063702/1766063585_635130_1399970085_9a157342a466bb3a107e90e693556696_rle_crop_4074190828_0.png.png imagette295442291766063702/1766063487_628357_1399969775_e6275f61cd1ec96dded76fc225a16389_rle_crop_4074188223_0.png.png imagette295442291766063702/1766063465_627127_1399969872_a621e6050efdf4d8a18d1f94557bd517_rle_crop_4074188048_0.png.png imagette295442291766063702/1766063225_614770_1399968736_f17636a1de6a7b89cd218848722825e7_rle_crop_4074184472_0.png.png imagette295442291766063702/1766063607_635883_1399970050_648533bdbadbfa0c3e6aee34ef8ec096_rle_crop_4074191739_0.png.png imagette295442291766063702/1766063346_620823_1399968736_f17636a1de6a7b89cd218848722825e7_rle_crop_4074184472_0.png.png wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/1694a93a4c6a036873eb7109a4b6a8dc_48094099.png imagette295442291766063702 29544230 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=29544230 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1399970291: '1766063346_620823_1399968868_3e13b19f39dd14404909448f8b716d8c_rle_crop_4074183836_0.png', 1399971985: '1766063585_635130_1399970081_06f2cde41b6d78000af462640a08c881_rle_crop_4074191080_0.png', 1399971369: '1766063487_628357_1399969775_e6275f61cd1ec96dded76fc225a16389_rle_crop_4074188221_0.png', 1399971365: '1766063487_628357_1399969775_e6275f61cd1ec96dded76fc225a16389_rle_crop_4074188225_0.png', 1399971362: '1766063487_628357_1399969803_0ca9225cabde5280b11317109e8132d1_rle_crop_4074188200_0.png', 1399971171: '1766063465_627127_1399969872_a621e6050efdf4d8a18d1f94557bd517_rle_crop_4074188044_0.png', 1399970300: '1766063346_620823_1399968736_f17636a1de6a7b89cd218848722825e7_rle_crop_4074184465_0.png', 1399970297: '1766063346_620823_1399968736_f17636a1de6a7b89cd218848722825e7_rle_crop_4074184467_0.png', 1399970294: '1766063346_620823_1399968801_f8718420344f6735fa67c8c774ce83ed_rle_crop_4074184343_0.png', 1399969578: '1766063107_607936_1399968195_fce8a7b1190b13a9680ff175637f7eb7_rle_crop_4074178921_0.png', 1399970288: '1766063346_620823_1399968929_3525b6721852ae3a1ccd0c22a2c9b543_rle_crop_4074183603_0.png', 1399969890: '1766063225_614770_1399968736_f17636a1de6a7b89cd218848722825e7_rle_crop_4074184465_0.png', 1399969889: '1766063225_614770_1399968736_f17636a1de6a7b89cd218848722825e7_rle_crop_4074184467_0.png', 1399969888: '1766063225_614770_1399968801_f8718420344f6735fa67c8c774ce83ed_rle_crop_4074184343_0.png', 1399969887: '1766063225_614770_1399968868_3e13b19f39dd14404909448f8b716d8c_rle_crop_4074183836_0.png', 1399969886: '1766063225_614770_1399968929_3525b6721852ae3a1ccd0c22a2c9b543_rle_crop_4074183603_0.png', 1399969579: '1766063107_607936_1399968195_fce8a7b1190b13a9680ff175637f7eb7_rle_crop_4074178924_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/c5a582353daee522d346e580208172a8_86796891.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/581e7ac563f0f01ccaf79d5315a58d9d_84715886.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/65cb1c97821baf93adda5dff3df7e8e7_98874349.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/aa0ba9fd5db90f4859f740b7b3f112c3_29981797.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/c487b43a90738add5ab479ca654e1cf3_32395135.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/fa600708ab0c469a8adbf032b1b4bb48_61773731.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/252abf6c8c673856642869c6b45ef7cc_826633.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/c9fa78224d18da6f05c7a4e0a69d156f_11931233.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/5fb80d71b8dafe7b406bbdc3321f8cdb_49199416.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/fe34233f6e27d2a48f3d3e269aeebc45_23694137.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/a86fa69388deeb760f54eb0fd044f791_53403497.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/252abf6c8c673856642869c6b45ef7cc_68255224.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/c9fa78224d18da6f05c7a4e0a69d156f_78513983.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/5fb80d71b8dafe7b406bbdc3321f8cdb_32481159.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/c5a582353daee522d346e580208172a8_23913250.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/a86fa69388deeb760f54eb0fd044f791_75792707.png change filename to text .imagette295442301766063702/ imagette295442301766063702/1766063346_620823_1399968929_3525b6721852ae3a1ccd0c22a2c9b543_rle_crop_4074183603_0.png.png imagette295442301766063702/1766063487_628357_1399969775_e6275f61cd1ec96dded76fc225a16389_rle_crop_4074188221_0.png.png imagette295442301766063702/1766063487_628357_1399969775_e6275f61cd1ec96dded76fc225a16389_rle_crop_4074188225_0.png.png imagette295442301766063702/1766063465_627127_1399969872_a621e6050efdf4d8a18d1f94557bd517_rle_crop_4074188044_0.png.png imagette295442301766063702/1766063346_620823_1399968801_f8718420344f6735fa67c8c774ce83ed_rle_crop_4074184343_0.png.png imagette295442301766063702/1766063225_614770_1399968929_3525b6721852ae3a1ccd0c22a2c9b543_rle_crop_4074183603_0.png.png imagette295442301766063702/1766063585_635130_1399970081_06f2cde41b6d78000af462640a08c881_rle_crop_4074191080_0.png.png imagette295442301766063702/1766063107_607936_1399968195_fce8a7b1190b13a9680ff175637f7eb7_rle_crop_4074178921_0.png.png imagette295442301766063702/1766063346_620823_1399968736_f17636a1de6a7b89cd218848722825e7_rle_crop_4074184467_0.png.png imagette295442301766063702/1766063107_607936_1399968195_fce8a7b1190b13a9680ff175637f7eb7_rle_crop_4074178924_0.png.png imagette295442301766063702/1766063346_620823_1399968868_3e13b19f39dd14404909448f8b716d8c_rle_crop_4074183836_0.png.png imagette295442301766063702/1766063225_614770_1399968801_f8718420344f6735fa67c8c774ce83ed_rle_crop_4074184343_0.png.png imagette295442301766063702/1766063225_614770_1399968736_f17636a1de6a7b89cd218848722825e7_rle_crop_4074184467_0.png.png imagette295442301766063702/1766063225_614770_1399968868_3e13b19f39dd14404909448f8b716d8c_rle_crop_4074183836_0.png.png imagette295442301766063702/1766063225_614770_1399968736_f17636a1de6a7b89cd218848722825e7_rle_crop_4074184465_0.png.png imagette295442301766063702/1766063346_620823_1399968736_f17636a1de6a7b89cd218848722825e7_rle_crop_4074184465_0.png.png imagette295442301766063702/1766063487_628357_1399969803_0ca9225cabde5280b11317109e8132d1_rle_crop_4074188200_0.png.png wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/f164c94a6f6c8d08b144e54d85a2755a_17279745.png imagette295442301766063702 29544231 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=29544231 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1399969883: '1766063225_614770_1399968736_f17636a1de6a7b89cd218848722825e7_rle_crop_4074184468_0.png', 1399970239: '1766063346_620823_1399968736_f17636a1de6a7b89cd218848722825e7_rle_crop_4074184468_0.png', 1399971343: '1766063487_628357_1399969803_0ca9225cabde5280b11317109e8132d1_rle_crop_4074188208_0.png', 1399971980: '1766063585_635130_1399970121_87e1ef0ffee36092d3d76370c1086768_rle_crop_4074190794_0.png', 1399971981: '1766063585_635130_1399970121_87e1ef0ffee36092d3d76370c1086768_rle_crop_4074190792_0.png', 1399971982: '1766063585_635130_1399970087_f0393ad2207f2148be562684d200f6ea_rle_crop_4074190814_0.png', 1399971983: '1766063585_635130_1399970087_f0393ad2207f2148be562684d200f6ea_rle_crop_4074190813_0.png', 1399971984: '1766063585_635130_1399970085_9a157342a466bb3a107e90e693556696_rle_crop_4074190827_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/c1e3b69afbeb9ff3e3406e0fb8191df1_92002365.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/c1e3b69afbeb9ff3e3406e0fb8191df1_88495014.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/f621eaaf1fbeef6a9698810e47444127_54651245.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/e5f8cf99686d1ff43e0b6c7c28648e5c_56054460.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/100f567f8c333f2a13763226fbf411e1_88670595.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/ddb14d1a498ec995ec9303c63b1fc42a_13680971.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/1baf968f9d78fb1c80ddd2d42824ff5d_80361931.png change filename to text .imagette295442311766063704/ imagette295442311766063704/1766063585_635130_1399970087_f0393ad2207f2148be562684d200f6ea_rle_crop_4074190814_0.png.png imagette295442311766063704/1766063346_620823_1399968736_f17636a1de6a7b89cd218848722825e7_rle_crop_4074184468_0.png.png imagette295442311766063704/1766063225_614770_1399968736_f17636a1de6a7b89cd218848722825e7_rle_crop_4074184468_0.png.png imagette295442311766063704/1766063585_635130_1399970121_87e1ef0ffee36092d3d76370c1086768_rle_crop_4074190792_0.png.png imagette295442311766063704/1766063585_635130_1399970121_87e1ef0ffee36092d3d76370c1086768_rle_crop_4074190794_0.png.png imagette295442311766063704/1766063585_635130_1399970087_f0393ad2207f2148be562684d200f6ea_rle_crop_4074190813_0.png.png imagette295442311766063704/1766063585_635130_1399970085_9a157342a466bb3a107e90e693556696_rle_crop_4074190827_0.png.png imagette295442311766063704/1766063487_628357_1399969803_0ca9225cabde5280b11317109e8132d1_rle_crop_4074188208_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/2c4ea0d8858196b25c174c54e6879458_41734070.png imagette295442311766063704 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=29544201 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/29544240,29544241,29544242,29544243,29544244,29544245,29544246,29544247,29544248,29544249,29544250,29544251?tags=autre_refus,Carton_brun,Carton_gris,Teint_Dans_La_Masse,flou,environnement,plastique,cartonnette,kraft,metal,mal_croppe,papier your option no_mail is active, we will not send the real mail to your client args[1399972004] : ('0.04816952740624493',) no score found for photo 1399972004 We are sending mail with results at report@fotonower.com args[1399972001] : ('0.04816952740624493',) no score found for photo 1399972001 We are sending mail with results at report@fotonower.com args[1399971998] : ('0.04816952740624493',) no score found for photo 1399971998 We are sending mail with results at report@fotonower.com args[1399971996] : ('0.04816952740624493',) no score found for photo 1399971996 We are sending mail with results at report@fotonower.com args[1399971990] : ('0.04816952740624493',) no score found for photo 1399971990 We are sending mail with results at report@fotonower.com args[1399971939] : ('0.04816952740624493',) no score found for photo 1399971939 We are sending mail with results at report@fotonower.com args[1399971936] : ('0.04816952740624493',) no score found for photo 1399971936 We are sending mail with results at report@fotonower.com args[1399971935] : ('0.04816952740624493',) no score found for photo 1399971935 We are sending mail with results at report@fotonower.com args[1399971928] : ('0.04816952740624493',) no score found for photo 1399971928 We are sending mail with results at report@fotonower.com args[1399971926] : ('0.04816952740624493',) no score found for photo 1399971926 We are sending mail with results at report@fotonower.com refus_total : 0.04816952740624493 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=29544201 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_P29544201_18-12-2025_14_14_59.pdf results_Auto_P29544201_18-12-2025_14_14_59.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29544201_18-12-2025_14_14_59.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','29544201','results_Auto_P29544201_18-12-2025_14_14_59.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29544201_18-12-2025_14_14_59.pdf','pdf','','0.27','0.04816952740624493') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29544201]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1399972004, 1399972001, 1399971998, 1399971996, 1399971990, 1399971939, 1399971936, 1399971935, 1399971928, 1399971926] map_info['map_portfolio_photo'] : {29544201: [1399972004, 1399972001, 1399971998, 1399971996, 1399971990, 1399971939, 1399971936, 1399971935, 1399971928, 1399971926, 1399971613, 1399971577, 1399971533, 1399971489, 1399971167, 1399971164, 1399971161, 1399971158, 1399971149, 1399971116, 1399971037, 1399971002, 1399970999, 1399970980, 1399970848, 1399970800, 1399970761, 1399970725, 1399970690, 1399970653, 1399970156, 1399970121, 1399970087, 1399970085, 1399970083, 1399970081, 1399970052, 1399970050, 1399970021, 1399970008, 1399969992, 1399969882, 1399969880, 1399969877, 1399969874, 1399969872, 1399969871, 1399969867, 1399969866, 1399969846, 1399969839, 1399969806, 1399969803, 1399969775, 1399969754, 1399969544, 1399969541, 1399969524, 1399969481, 1399968992, 1399968929, 1399968868, 1399968801, 1399968736, 1399968431, 1399968430, 1399968428, 1399968426, 1399968424, 1399968422, 1399968298, 1399968268, 1399968236, 1399968195, 1399967806, 1399967740, 1399967671, 1399967606, 1399967571]} final : False mtd_id 4302 list_pids : [1399972004, 1399972001, 1399971998, 1399971996, 1399971990, 1399971939, 1399971936, 1399971935, 1399971928, 1399971926] 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, '4246264') ('4302', '29544201', '1399972004', None, None, None, None, None, '4246264') ('4302', None, None, None, None, None, None, None, '4246264') ('4302', '29544201', '1399972001', None, None, None, None, None, '4246264') ('4302', None, None, None, None, None, None, None, '4246264') ('4302', '29544201', '1399971998', None, None, None, None, None, '4246264') ('4302', None, None, None, None, None, None, None, '4246264') ('4302', '29544201', '1399971996', None, None, None, None, None, '4246264') ('4302', None, None, None, None, None, None, None, '4246264') ('4302', '29544201', '1399971990', None, None, None, None, None, '4246264') ('4302', None, None, None, None, None, None, None, '4246264') ('4302', '29544201', '1399971939', None, None, None, None, None, '4246264') ('4302', None, None, None, None, None, None, None, '4246264') ('4302', '29544201', '1399971936', None, None, None, None, None, '4246264') ('4302', None, None, None, None, None, None, None, '4246264') ('4302', '29544201', '1399971935', None, None, None, None, None, '4246264') ('4302', None, None, None, None, None, None, None, '4246264') ('4302', '29544201', '1399971928', None, None, None, None, None, '4246264') ('4302', None, None, None, None, None, None, None, '4246264') ('4302', '29544201', '1399971926', None, None, None, None, None, '4246264') 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', '29544201', '1399972004', None, None, None, None, None, '4246264'), ('4302', '29544201', '1399972001', None, None, None, None, None, '4246264'), ('4302', '29544201', '1399971998', None, None, None, None, None, '4246264'), ('4302', '29544201', '1399971996', None, None, None, None, None, '4246264'), ('4302', '29544201', '1399971990', None, None, None, None, None, '4246264'), ('4302', '29544201', '1399971939', None, None, None, None, None, '4246264'), ('4302', '29544201', '1399971936', None, None, None, None, None, '4246264'), ('4302', '29544201', '1399971935', None, None, None, None, None, '4246264'), ('4302', '29544201', '1399971928', None, None, None, None, None, '4246264'), ('4302', '29544201', '1399971926', None, None, None, None, None, '4246264')] time used for this insertion : 0.018610715866088867 save_final save missing photos in datou_result : time spend for datou_step_exec : 7.143652439117432 time spend to save output : 0.01878666877746582 total time spend for step 4 : 7.1624391078948975 step5:split_time_score Thu Dec 18 14:15:06 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 : ['29544201'] 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 : [('29544201',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29544201) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1399972004: {'path': 'temp/1766063699_3354189_1399972004_15b2c46906a6fd0e6a7545fec18a74c3.jpg', 'extension': 'jpg'}, 1399971936: {'path': 'temp/1766063699_3354189_1399971936_e1f32b96ca6d2a94e356be2c24fe34ae.jpg', 'extension': 'jpg'}, 1399971939: {'path': 'temp/1766063699_3354189_1399971939_7e204123adec5392f6ca53217a3836a6.jpg', 'extension': 'jpg'}, 1399971990: {'path': 'temp/1766063699_3354189_1399971990_217b92992dac7a470fed304d706b596c.jpg', 'extension': 'jpg'}, 1399971996: {'path': 'temp/1766063699_3354189_1399971996_72e3e9e256ccbda4efb2d949bf8d824c.jpg', 'extension': 'jpg'}, 1399971998: {'path': 'temp/1766063699_3354189_1399971998_83ed6fbd41e5acac7e2797e93b5e9979.jpg', 'extension': 'jpg'}, 1399972001: {'path': 'temp/1766063699_3354189_1399972001_70fb10541e7677dcd6e18b4949bfd723.jpg', 'extension': 'jpg'}, 1399971926: {'path': 'temp/1766063699_3354189_1399971926_fdc896140fcd648b6b96ef283bf7f44a.jpg', 'extension': 'jpg'}, 1399971928: {'path': 'temp/1766063699_3354189_1399971928_3d47667ffe9386d692f3c161f0f268ef.jpg', 'extension': 'jpg'}, 1399971935: {'path': 'temp/1766063699_3354189_1399971935_2fba34b10e0ef05d79f6d864577b745b.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 = 29544201; (('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 = 29544201 group by h (('14', 79),) 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=29544201 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 (29544201) 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 (29544201) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 18122025 29544201 Nombre de photos uploadées : 79 / 23040 (0%) 18122025 29544201 Nombre de photos taguées (types de déchets): 0 / 79 (0%) 18122025 29544201 Nombre de photos taguées (volume) : 0 / 79 (0%) [{'photo_id': 1399967806, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/bf218712674fc65224b17379854a3d15.jpg', 'username': None, 'uploaded_at': 1766062877, 'text': 'image_18122025_14_00_04_10146.jpg'}, {'photo_id': 1399967740, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/117b4e8cda6facd00bcfc9cd050280cf.jpg', 'username': None, 'uploaded_at': 1766062877, 'text': 'image_18122025_14_00_14_10134.jpg'}, {'photo_id': 1399967671, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/7204de867fb5b8b41aaa0ee4612e5303.jpg', 'username': None, 'uploaded_at': 1766062877, 'text': 'image_18122025_14_00_24_10135.jpg'}, {'photo_id': 1399967606, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/18/1ea5793cc79890e63d5a7490868ed210.jpg', 'username': None, 'uploaded_at': 1766062877, 'text': 'image_18122025_14_00_33_9124.jpg'}] 0 [] elapsed_time : load_data_split_time_score 3.337860107421875e-06 elapsed_time : order_list_meta_photo_and_scores 9.059906005859375e-06 ??????????????????????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.002241849899291992 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 29544201, '2025-12-18' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); Catched exception ! Connect or reconnect ! SELECT id FROM MTRPhoto.dashboard_entry_day where dashboard_place_id = 10 and date = '2025-12-18' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2754916,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.2501969337463379 We will return after consolidate but for now we need the day, how to get it, for now depending on the previous heavy steps SELECT dri.dashboard_entry_day, dr.dashboard_run_id, dr.mtr_portfolio_id, dr.id, dr.hashtag, dr.completion_json FROM MTRPhoto.dashboard_results dr, MTRPhoto.dashboard_run_ids dri, MTRPhoto.dashboard_entry_day ded WHERE ded.id= 2754916 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2754916, 'dashboard_run_id': 2765571, 'mtr_portfolio_id': 29518047, 'dashboard_result_id': 18521112, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29518047_18-12-2025_06_08_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29518048, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29518049, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29518050, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29518051, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29518052, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29518053, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29518054, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29518055, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29518056, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29518057, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29518058, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29518059, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2765571, 'mtr_portfolio_id': 29518739, 'dashboard_result_id': 18521113, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29518739_18-12-2025_06_09_03.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29518743, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29518744, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29518745, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29518746, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29518747, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29518748, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29518749, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29518750, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29518751, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29518752, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29518753, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29518754, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2765571, 'mtr_portfolio_id': 29519140, 'dashboard_result_id': 18521114, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29519140_18-12-2025_06_09_34.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29519145, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29519146, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29519147, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29519148, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29519149, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29519150, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29519151, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29519152, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29519153, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29519154, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29519155, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29519156, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2765571, 'mtr_portfolio_id': 29519795, 'dashboard_result_id': 18521115, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29519795_18-12-2025_06_10_04.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29519800, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29519801, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29519802, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29519803, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29519804, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29519805, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29519806, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29519807, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29519808, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29519809, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29519810, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29519811, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2765571, 'mtr_portfolio_id': 29520859, 'dashboard_result_id': 18521116, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29520859_18-12-2025_06_10_34.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29520862, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29520863, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29520864, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29520865, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29520866, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29520867, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29520868, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29520869, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29520870, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29520871, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29520872, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29520873, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2765571, 'mtr_portfolio_id': 29521041, 'dashboard_result_id': 18521117, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29521041_18-12-2025_02_01_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29521046, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29521047, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29521048, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29521049, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29521050, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29521051, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29521052, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29521053, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29521054, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29521055, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29521056, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29521057, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2765571, 'mtr_portfolio_id': 29521390, 'dashboard_result_id': 18521118, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29521390_18-12-2025_06_11_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29521402, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29521403, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29521404, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29521405, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29521406, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29521407, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29521408, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29521409, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29521410, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29521411, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29521412, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29521413, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2765571, 'mtr_portfolio_id': 29521664, 'dashboard_result_id': 18521119, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29521664_18-12-2025_06_11_11.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29521670, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29521671, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29521672, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29521673, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29521674, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29521675, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29521676, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29521677, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29521678, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29521679, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29521680, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29521681, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2765571, 'mtr_portfolio_id': 29522214, 'dashboard_result_id': 18521120, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29522214_18-12-2025_06_11_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29522222, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29522223, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29522224, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29522225, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29522226, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29522227, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29522228, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29522229, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29522230, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29522231, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29522232, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29522233, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2765571, 'mtr_portfolio_id': 29522701, 'dashboard_result_id': 18521121, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29522701_18-12-2025_06_12_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29522709, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29522710, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29522711, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29522712, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29522713, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29522714, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29522715, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29522716, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29522717, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29522718, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29522719, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29522720, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2765571, 'mtr_portfolio_id': 29523037, 'dashboard_result_id': 18521122, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29523037_18-12-2025_06_12_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29523065, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29523066, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29523067, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29523068, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29523069, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29523070, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29523071, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29523072, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29523073, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29523074, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29523075, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29523076, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2765571, 'mtr_portfolio_id': 29523671, 'dashboard_result_id': 18521123, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29523671_18-12-2025_06_13_33.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29523679, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29523680, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29523681, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29523682, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29523683, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29523684, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29523685, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29523686, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29523687, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29523688, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29523689, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29523690, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2765571, 'mtr_portfolio_id': 29524171, 'dashboard_result_id': 18521124, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29524171_18-12-2025_06_14_04.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29524175, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29524176, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29524177, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29524178, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29524179, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29524180, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29524181, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29524182, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29524183, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29524184, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29524185, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29524186, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2765571, 'mtr_portfolio_id': 29524599, 'dashboard_result_id': 18521125, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29524599_18-12-2025_06_14_34.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29524607, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29524608, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29524609, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29524610, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29524611, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29524612, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29524613, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29524614, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29524615, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29524616, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29524617, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29524618, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2765571, 'mtr_portfolio_id': 29525105, 'dashboard_result_id': 18521126, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29525105_18-12-2025_06_15_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29525110, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29525111, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29525112, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29525113, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29525114, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29525115, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29525116, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29525117, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29525118, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29525119, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29525120, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29525121, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2765571, 'mtr_portfolio_id': 29525978, 'dashboard_result_id': 18521127, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29525978_18-12-2025_06_15_34.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29525982, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29525983, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29525984, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29525985, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29525986, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29525987, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29525988, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29525989, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29525990, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29525991, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29525992, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29525993, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2765571, 'mtr_portfolio_id': 29526227, 'dashboard_result_id': 18521128, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29526227_18-12-2025_05_40_42.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29526232, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29526233, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29526234, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29526235, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29526236, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29526237, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29526238, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29526239, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29526240, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29526241, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29526242, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29526243, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2765571, 'mtr_portfolio_id': 29526571, 'dashboard_result_id': 18521129, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29526571_18-12-2025_05_47_02.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29526577, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29526578, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29526579, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29526580, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29526581, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29526582, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29526583, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29526584, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29526585, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29526586, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29526587, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29526588, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2765571, 'mtr_portfolio_id': 29526944, 'dashboard_result_id': 18521130, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29526944_18-12-2025_06_03_33.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29526953, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29526954, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29526955, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29526956, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29526957, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29526958, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29526959, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29526960, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29526961, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29526962, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29526963, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29526964, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2765571, 'mtr_portfolio_id': 29527309, 'dashboard_result_id': 18521131, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29527309_18-12-2025_06_17_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29527313, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29527314, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29527315, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29527316, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29527317, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29527318, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29527319, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29527320, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29527321, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29527322, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29527323, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29527324, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2765571, 'mtr_portfolio_id': 29527635, 'dashboard_result_id': 18521132, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29527635_18-12-2025_06_33_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29527638, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29527639, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29527640, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29527641, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29527642, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29527643, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29527644, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29527646, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29527647, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29527648, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29527649, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29527650, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2765571, 'mtr_portfolio_id': 29528012, 'dashboard_result_id': 18521133, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29528012_18-12-2025_08_16_03.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29528017, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29528018, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29528019, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29528020, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29528021, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29528022, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29528023, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29528024, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29528025, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29528026, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29528027, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29528028, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2765571, 'mtr_portfolio_id': 29528449, 'dashboard_result_id': 18521134, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29528449_18-12-2025_07_02_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29528462, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29528463, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29528464, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29528465, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29528466, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29528467, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29528468, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29528469, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29528470, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29528471, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29528472, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29528473, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2765571, 'mtr_portfolio_id': 29528882, 'dashboard_result_id': 18521135, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29528882_18-12-2025_07_18_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29528899, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29528900, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29528901, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29528902, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29528903, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29528904, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29528905, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29528906, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29528907, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29528908, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29528909, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29528910, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2765571, 'mtr_portfolio_id': 29529672, 'dashboard_result_id': 18521136, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29529672_18-12-2025_07_33_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29529680, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29529681, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29529682, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29529683, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29529684, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29529685, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29529686, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29529687, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29529688, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29529689, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29529690, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29529691, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2765571, 'mtr_portfolio_id': 29530097, 'dashboard_result_id': 18521137, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29530097_18-12-2025_07_49_02.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29530105, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29530106, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29530107, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29530108, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29530109, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29530110, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29530111, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29530112, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29530113, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29530114, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29530115, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29530116, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2765571, 'mtr_portfolio_id': 29530582, 'dashboard_result_id': 18521138, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29530582_18-12-2025_08_03_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29530607, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29530608, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29530609, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29530610, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29530611, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29530612, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29530613, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29530614, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29530615, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29530616, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29530617, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29530618, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2765571, 'mtr_portfolio_id': 29531020, 'dashboard_result_id': 18521139, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29531020_18-12-2025_08_18_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29531035, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29531036, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29531037, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29531038, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29531039, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29531040, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29531041, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29531042, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29531043, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29531044, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29531045, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29531046, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2765571, 'mtr_portfolio_id': 29531694, 'dashboard_result_id': 18521140, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29531694_18-12-2025_08_33_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29531726, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29531727, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29531728, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29531729, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29531730, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29531731, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29531732, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29531733, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29531734, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29531735, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29531736, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29531737, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2765571, 'mtr_portfolio_id': 29532246, 'dashboard_result_id': 18521141, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29532246_18-12-2025_08_46_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29532258, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29532259, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29532260, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29532261, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29532262, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29532263, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29532264, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29532265, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29532266, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29532267, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29532268, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29532269, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2765571, 'mtr_portfolio_id': 29532732, 'dashboard_result_id': 18521142, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29532732_18-12-2025_09_02_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29532740, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29532741, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29532742, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29532743, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29532744, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29532745, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29532746, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29532747, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29532748, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29532749, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29532752, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29532753, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2765571, 'mtr_portfolio_id': 29534702, 'dashboard_result_id': 18521143, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29534702_18-12-2025_09_49_02.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29534735, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29534736, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29534737, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29534738, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29534739, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29534740, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29534741, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29534742, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29534743, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29534744, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29534745, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29534746, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2765571, 'mtr_portfolio_id': 29535436, 'dashboard_result_id': 18521144, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29535436_18-12-2025_10_03_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29535496, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29535497, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29535498, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29535499, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29535500, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29535501, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29535502, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29535503, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29535504, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29535505, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29535506, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29535507, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2765571, 'mtr_portfolio_id': 29536076, 'dashboard_result_id': 18521145, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29536076_18-12-2025_10_19_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29536092, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29536093, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29536094, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29536095, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29536096, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29536097, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29536098, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29536099, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29536100, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29536101, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29536102, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29536103, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2765571, 'mtr_portfolio_id': 29536806, 'dashboard_result_id': 18521146, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29536806_18-12-2025_10_32_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29536814, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29536815, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29536816, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29536817, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29536818, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29536819, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29536820, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29536821, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29536822, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29536823, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29536824, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29536825, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2765571, 'mtr_portfolio_id': 29537598, 'dashboard_result_id': 18521147, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29537598_18-12-2025_10_48_56.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29537644, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29537645, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29537646, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29537647, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29537648, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29537649, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29537650, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29537651, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29537653, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29537656, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29537658, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29537660, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2765571, 'mtr_portfolio_id': 29538418, 'dashboard_result_id': 18521148, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29538418_18-12-2025_11_03_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29538443, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29538444, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29538445, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29538446, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29538447, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29538448, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29538449, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29538450, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29538451, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29538452, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29538453, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29538454, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2765571, 'mtr_portfolio_id': 29539090, 'dashboard_result_id': 18521149, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29539090_18-12-2025_11_18_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29539197, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29539198, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29539199, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29539200, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29539201, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29539202, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29539203, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29539204, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29539205, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29539206, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29539207, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29539208, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2765571, 'mtr_portfolio_id': 29540060, 'dashboard_result_id': 18521150, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29540060_18-12-2025_11_33_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29540068, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29540069, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29540070, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29540071, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29540072, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29540073, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29540074, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29540075, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29540076, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29540077, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29540078, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29540079, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2765571, 'mtr_portfolio_id': 29540604, 'dashboard_result_id': 18521151, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29540604_18-12-2025_11_48_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29540618, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29540619, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29540620, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29540621, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29540622, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29540623, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29540624, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29540625, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29540626, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29540627, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29540628, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29540629, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2765571, 'mtr_portfolio_id': 29541128, 'dashboard_result_id': 18521152, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29541128_18-12-2025_12_02_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29541161, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29541162, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29541163, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29541164, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29541165, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29541166, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29541167, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29541168, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29541169, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29541170, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29541171, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29541172, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2765571, 'mtr_portfolio_id': 29541476, 'dashboard_result_id': 18521153, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29541476_18-12-2025_12_33_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29541511, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29541512, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29541513, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29541514, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29541515, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29541516, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29541517, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29541518, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29541519, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29541520, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29541521, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29541522, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2765571, 'mtr_portfolio_id': 29542319, 'dashboard_result_id': 18521154, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29542319_18-12-2025_14_00_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29542330, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29542331, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29542332, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29542333, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29542334, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29542335, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29542336, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29542337, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29542338, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29542339, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29542340, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29542341, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2765571, 'mtr_portfolio_id': 29543553, 'dashboard_result_id': 18521155, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29543553_18-12-2025_13_46_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29543554, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29543555, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29543556, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29543557, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29543558, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29543559, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29543560, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29543561, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29543562, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29543563, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29543564, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29543565, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2765571, 'mtr_portfolio_id': 29543827, 'dashboard_result_id': 18521156, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29543827_18-12-2025_14_03_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29543831, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29543832, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29543833, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29543834, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29543835, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29543836, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29543837, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29543838, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29543839, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29543840, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29543841, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29543842, 'pht': 3726}}"}, {'dashboat_entry_day': 2754916, 'dashboard_run_id': 2765571, 'mtr_portfolio_id': 29544201, 'dashboard_result_id': 18521157, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29544201_18-12-2025_14_12_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29544228, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29544229, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29544230, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29544231, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29544232, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29544233, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29544234, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29544235, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29544236, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29544237, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29544238, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29544239, 'pht': 3726}}"}] SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29518047 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4244016, 'mtr_portfolio_id': 29518047, 'created_at': datetime.datetime(2025, 12, 18, 6, 8, 30), 'result': '0.03160039577318933', 'result_long': None, 'result_double': None}] Qualite : 0.03160039577318933 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29518047 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29518047_18-12-2025_06_08_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29518047 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29518047_18-12-2025_06_08_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29518048, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29518049, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29518050, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29518051, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29518052, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29518053, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29518054, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29518055, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29518056, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29518057, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29518058, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29518059, 'pht': 3726}}" where mtr_portfolio_id = 29518047 and dashboard_run_id = 2765571 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29518047 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18521112, 0.03160039577318933, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29518047_18-12-2025_06_08_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29518048, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29518049, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29518050, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29518051, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29518052, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29518053, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29518054, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29518055, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29518056, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29518057, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29518058, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29518059, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29518739 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4244017, 'mtr_portfolio_id': 29518739, 'created_at': datetime.datetime(2025, 12, 18, 6, 9), 'result': '0.06084823724062575', 'result_long': None, 'result_double': None}] Qualite : 0.06084823724062575 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29518739 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29518739_18-12-2025_06_09_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29518739 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29518739_18-12-2025_06_09_03.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29518743, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29518744, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29518745, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29518746, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29518747, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29518748, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29518749, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29518750, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29518751, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29518752, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29518753, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29518754, 'pht': 3726}}" where mtr_portfolio_id = 29518739 and dashboard_run_id = 2765571 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29518739 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18521113, 0.06084823724062575, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29518739_18-12-2025_06_09_03.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29518743, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29518744, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29518745, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29518746, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29518747, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29518748, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29518749, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29518750, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29518751, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29518752, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29518753, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29518754, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29519140 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4244018, 'mtr_portfolio_id': 29519140, 'created_at': datetime.datetime(2025, 12, 18, 6, 9, 30), 'result': '0.05106015840957442', 'result_long': None, 'result_double': None}] Qualite : 0.05106015840957442 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29519140 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29519140_18-12-2025_06_09_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29519140 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29519140_18-12-2025_06_09_34.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29519145, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29519146, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29519147, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29519148, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29519149, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29519150, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29519151, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29519152, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29519153, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29519154, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29519155, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29519156, 'pht': 3726}}" where mtr_portfolio_id = 29519140 and dashboard_run_id = 2765571 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29519140 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18521114, 0.05106015840957442, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29519140_18-12-2025_06_09_34.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29519145, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29519146, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29519147, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29519148, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29519149, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29519150, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29519151, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29519152, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29519153, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29519154, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29519155, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29519156, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29519795 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4244019, 'mtr_portfolio_id': 29519795, 'created_at': datetime.datetime(2025, 12, 18, 6, 10), 'result': '0.054834556193236', 'result_long': None, 'result_double': None}] Qualite : 0.054834556193236 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29519795 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29519795_18-12-2025_06_10_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29519795 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29519795_18-12-2025_06_10_04.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29519800, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29519801, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29519802, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29519803, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29519804, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29519805, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29519806, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29519807, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29519808, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29519809, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29519810, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29519811, 'pht': 3726}}" where mtr_portfolio_id = 29519795 and dashboard_run_id = 2765571 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29519795 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18521115, 0.054834556193236, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29519795_18-12-2025_06_10_04.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29519800, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29519801, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29519802, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29519803, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29519804, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29519805, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29519806, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29519807, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29519808, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29519809, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29519810, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29519811, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29520859 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4244020, 'mtr_portfolio_id': 29520859, 'created_at': datetime.datetime(2025, 12, 18, 6, 10, 32), 'result': '0.0755093911554323', 'result_long': None, 'result_double': None}] Qualite : 0.0755093911554323 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29520859 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29520859_18-12-2025_06_10_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29520859 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29520859_18-12-2025_06_10_34.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29520862, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29520863, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29520864, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29520865, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29520866, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29520867, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29520868, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29520869, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29520870, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29520871, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29520872, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29520873, 'pht': 3726}}" where mtr_portfolio_id = 29520859 and dashboard_run_id = 2765571 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29520859 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18521116, 0.0755093911554323, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29520859_18-12-2025_06_10_34.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29520862, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29520863, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29520864, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29520865, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29520866, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29520867, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29520868, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29520869, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29520870, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29520871, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29520872, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29520873, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29521041 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4244021, 'mtr_portfolio_id': 29521041, 'created_at': datetime.datetime(2025, 12, 18, 6, 10, 38), 'result': '0.0626906800236694', 'result_long': None, 'result_double': None}] Qualite : 0.0626906800236694 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29521041 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29521041_18-12-2025_02_01_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29521041 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29521041_18-12-2025_02_01_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29521046, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29521047, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29521048, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29521049, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29521050, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29521051, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29521052, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29521053, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29521054, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29521055, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29521056, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29521057, 'pht': 3726}}" where mtr_portfolio_id = 29521041 and dashboard_run_id = 2765571 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29521041 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18521117, 0.0626906800236694, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29521041_18-12-2025_02_01_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29521046, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29521047, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29521048, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29521049, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29521050, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29521051, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29521052, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29521053, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29521054, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29521055, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29521056, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29521057, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29521390 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4244022, 'mtr_portfolio_id': 29521390, 'created_at': datetime.datetime(2025, 12, 18, 6, 10, 59), 'result': '0.03601307954338611', 'result_long': None, 'result_double': None}] Qualite : 0.03601307954338611 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29521390 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29521390_18-12-2025_06_11_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29521390 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29521390_18-12-2025_06_11_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29521402, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29521403, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29521404, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29521405, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29521406, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29521407, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29521408, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29521409, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29521410, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29521411, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29521412, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29521413, 'pht': 3726}}" where mtr_portfolio_id = 29521390 and dashboard_run_id = 2765571 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29521390 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18521118, 0.03601307954338611, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29521390_18-12-2025_06_11_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29521402, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29521403, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29521404, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29521405, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29521406, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29521407, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29521408, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29521409, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29521410, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29521411, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29521412, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29521413, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29521664 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4244023, 'mtr_portfolio_id': 29521664, 'created_at': datetime.datetime(2025, 12, 18, 6, 11, 7), 'result': '0.05224710201661981', 'result_long': None, 'result_double': None}] Qualite : 0.05224710201661981 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29521664 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29521664_18-12-2025_06_11_11.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29521664 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29521664_18-12-2025_06_11_11.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29521670, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29521671, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29521672, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29521673, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29521674, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29521675, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29521676, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29521677, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29521678, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29521679, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29521680, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29521681, 'pht': 3726}}" where mtr_portfolio_id = 29521664 and dashboard_run_id = 2765571 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29521664 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18521119, 0.05224710201661981, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29521664_18-12-2025_06_11_11.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29521670, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29521671, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29521672, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29521673, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29521674, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29521675, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29521676, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29521677, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29521678, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29521679, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29521680, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29521681, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29522214 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4244024, 'mtr_portfolio_id': 29522214, 'created_at': datetime.datetime(2025, 12, 18, 6, 11, 27), 'result': '0.04940413964377284', 'result_long': None, 'result_double': None}] Qualite : 0.04940413964377284 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29522214 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29522214_18-12-2025_06_11_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29522214 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29522214_18-12-2025_06_11_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29522222, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29522223, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29522224, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29522225, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29522226, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29522227, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29522228, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29522229, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29522230, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29522231, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29522232, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29522233, 'pht': 3726}}" where mtr_portfolio_id = 29522214 and dashboard_run_id = 2765571 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29522214 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18521120, 0.04940413964377284, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29522214_18-12-2025_06_11_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29522222, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29522223, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29522224, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29522225, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29522226, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29522227, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29522228, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29522229, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29522230, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29522231, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29522232, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29522233, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29522701 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4244025, 'mtr_portfolio_id': 29522701, 'created_at': datetime.datetime(2025, 12, 18, 6, 11, 57), 'result': '0.05754232575898655', 'result_long': None, 'result_double': None}] Qualite : 0.05754232575898655 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29522701 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29522701_18-12-2025_06_12_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29522701 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29522701_18-12-2025_06_12_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29522709, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29522710, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29522711, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29522712, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29522713, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29522714, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29522715, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29522716, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29522717, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29522718, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29522719, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29522720, 'pht': 3726}}" where mtr_portfolio_id = 29522701 and dashboard_run_id = 2765571 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29522701 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18521121, 0.05754232575898655, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29522701_18-12-2025_06_12_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29522709, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29522710, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29522711, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29522712, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29522713, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29522714, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29522715, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29522716, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29522717, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29522718, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29522719, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29522720, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29523037 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4244026, 'mtr_portfolio_id': 29523037, 'created_at': datetime.datetime(2025, 12, 18, 6, 12, 27), 'result': '0.04587231639916059', 'result_long': None, 'result_double': None}] Qualite : 0.04587231639916059 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29523037 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29523037_18-12-2025_06_12_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29523037 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29523037_18-12-2025_06_12_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29523065, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29523066, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29523067, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29523068, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29523069, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29523070, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29523071, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29523072, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29523073, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29523074, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29523075, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29523076, 'pht': 3726}}" where mtr_portfolio_id = 29523037 and dashboard_run_id = 2765571 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29523037 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18521122, 0.04587231639916059, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29523037_18-12-2025_06_12_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29523065, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29523066, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29523067, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29523068, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29523069, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29523070, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29523071, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29523072, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29523073, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29523074, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29523075, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29523076, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29523671 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4244027, 'mtr_portfolio_id': 29523671, 'created_at': datetime.datetime(2025, 12, 18, 6, 13, 29), 'result': '0.0382293432947963', 'result_long': None, 'result_double': None}] Qualite : 0.0382293432947963 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29523671 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29523671_18-12-2025_06_13_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29523671 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29523671_18-12-2025_06_13_33.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29523679, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29523680, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29523681, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29523682, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29523683, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29523684, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29523685, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29523686, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29523687, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29523688, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29523689, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29523690, 'pht': 3726}}" where mtr_portfolio_id = 29523671 and dashboard_run_id = 2765571 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29523671 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18521123, 0.0382293432947963, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29523671_18-12-2025_06_13_33.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29523679, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29523680, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29523681, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29523682, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29523683, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29523684, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29523685, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29523686, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29523687, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29523688, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29523689, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29523690, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29524171 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4244028, 'mtr_portfolio_id': 29524171, 'created_at': datetime.datetime(2025, 12, 18, 6, 14, 1), 'result': '0.04929941874328893', 'result_long': None, 'result_double': None}] Qualite : 0.04929941874328893 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29524171 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29524171_18-12-2025_06_14_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29524171 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29524171_18-12-2025_06_14_04.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29524175, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29524176, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29524177, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29524178, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29524179, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29524180, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29524181, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29524182, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29524183, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29524184, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29524185, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29524186, 'pht': 3726}}" where mtr_portfolio_id = 29524171 and dashboard_run_id = 2765571 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29524171 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18521124, 0.04929941874328893, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29524171_18-12-2025_06_14_04.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29524175, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29524176, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29524177, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29524178, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29524179, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29524180, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29524181, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29524182, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29524183, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29524184, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29524185, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29524186, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29524599 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4244029, 'mtr_portfolio_id': 29524599, 'created_at': datetime.datetime(2025, 12, 18, 6, 14, 32), 'result': '0.03584565775001134', 'result_long': None, 'result_double': None}] Qualite : 0.03584565775001134 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29524599 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29524599_18-12-2025_06_14_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29524599 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29524599_18-12-2025_06_14_34.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29524607, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29524608, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29524609, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29524610, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29524611, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29524612, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29524613, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29524614, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29524615, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29524616, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29524617, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29524618, 'pht': 3726}}" where mtr_portfolio_id = 29524599 and dashboard_run_id = 2765571 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29524599 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18521125, 0.03584565775001134, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29524599_18-12-2025_06_14_34.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29524607, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29524608, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29524609, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29524610, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29524611, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29524612, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29524613, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29524614, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29524615, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29524616, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29524617, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29524618, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29525105 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4244030, 'mtr_portfolio_id': 29525105, 'created_at': datetime.datetime(2025, 12, 18, 6, 15), 'result': '0.052551474443826615', 'result_long': None, 'result_double': None}] Qualite : 0.052551474443826615 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29525105 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29525105_18-12-2025_06_15_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29525105 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29525105_18-12-2025_06_15_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29525110, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29525111, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29525112, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29525113, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29525114, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29525115, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29525116, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29525117, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29525118, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29525119, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29525120, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29525121, 'pht': 3726}}" where mtr_portfolio_id = 29525105 and dashboard_run_id = 2765571 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29525105 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18521126, 0.052551474443826615, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29525105_18-12-2025_06_15_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29525110, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29525111, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29525112, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29525113, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29525114, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29525115, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29525116, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29525117, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29525118, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29525119, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29525120, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29525121, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29525978 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4244031, 'mtr_portfolio_id': 29525978, 'created_at': datetime.datetime(2025, 12, 18, 6, 15, 31), 'result': '0.07086307058103226', 'result_long': None, 'result_double': None}] Qualite : 0.07086307058103226 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29525978 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29525978_18-12-2025_06_15_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29525978 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29525978_18-12-2025_06_15_34.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29525982, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29525983, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29525984, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29525985, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29525986, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29525987, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29525988, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29525989, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29525990, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29525991, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29525992, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29525993, 'pht': 3726}}" where mtr_portfolio_id = 29525978 and dashboard_run_id = 2765571 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29525978 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18521127, 0.07086307058103226, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29525978_18-12-2025_06_15_34.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29525982, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29525983, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29525984, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29525985, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29525986, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29525987, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29525988, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29525989, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29525990, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29525991, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29525992, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29525993, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29526227 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4244032, 'mtr_portfolio_id': 29526227, 'created_at': datetime.datetime(2025, 12, 18, 5, 40, 38), 'result': '0.05295123788686618', 'result_long': None, 'result_double': None}] Qualite : 0.05295123788686618 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29526227 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29526227_18-12-2025_05_40_42.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29526227 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29526227_18-12-2025_05_40_42.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29526232, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29526233, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29526234, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29526235, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29526236, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29526237, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29526238, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29526239, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29526240, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29526241, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29526242, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29526243, 'pht': 3726}}" where mtr_portfolio_id = 29526227 and dashboard_run_id = 2765571 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29526227 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18521128, 0.05295123788686618, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29526227_18-12-2025_05_40_42.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29526232, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29526233, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29526234, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29526235, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29526236, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29526237, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29526238, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29526239, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29526240, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29526241, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29526242, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29526243, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29526571 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4243940, 'mtr_portfolio_id': 29526571, 'created_at': datetime.datetime(2025, 12, 18, 5, 47, 2), 'result': '0.062067327390015706', 'result_long': None, 'result_double': None}] Qualite : 0.062067327390015706 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29526571 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29526571_18-12-2025_05_47_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29526571 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29526571_18-12-2025_05_47_02.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29526577, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29526578, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29526579, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29526580, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29526581, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29526582, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29526583, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29526584, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29526585, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29526586, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29526587, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29526588, 'pht': 3726}}" where mtr_portfolio_id = 29526571 and dashboard_run_id = 2765571 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29526571 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18521129, 0.062067327390015706, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29526571_18-12-2025_05_47_02.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29526577, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29526578, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29526579, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29526580, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29526581, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29526582, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29526583, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29526584, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29526585, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29526586, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29526587, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29526588, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29526944 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4244144, 'mtr_portfolio_id': 29526944, 'created_at': datetime.datetime(2025, 12, 18, 6, 3, 33), 'result': '0.04189129800959036', 'result_long': None, 'result_double': None}] Qualite : 0.04189129800959036 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29526944 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29526944_18-12-2025_06_03_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29526944 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29526944_18-12-2025_06_03_33.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29526953, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29526954, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29526955, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29526956, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29526957, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29526958, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29526959, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29526960, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29526961, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29526962, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29526963, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29526964, 'pht': 3726}}" where mtr_portfolio_id = 29526944 and dashboard_run_id = 2765571 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29526944 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18521130, 0.04189129800959036, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29526944_18-12-2025_06_03_33.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29526953, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29526954, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29526955, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29526956, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29526957, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29526958, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29526959, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29526960, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29526961, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29526962, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29526963, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29526964, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29527309 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4244213, 'mtr_portfolio_id': 29527309, 'created_at': datetime.datetime(2025, 12, 18, 6, 17), 'result': '0.061390788419819', 'result_long': None, 'result_double': None}] Qualite : 0.061390788419819 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29527309 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29527309_18-12-2025_06_17_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29527309 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29527309_18-12-2025_06_17_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29527313, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29527314, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29527315, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29527316, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29527317, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29527318, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29527319, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29527320, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29527321, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29527322, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29527323, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29527324, 'pht': 3726}}" where mtr_portfolio_id = 29527309 and dashboard_run_id = 2765571 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29527309 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18521131, 0.061390788419819, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29527309_18-12-2025_06_17_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29527313, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29527314, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29527315, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29527316, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29527317, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29527318, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29527319, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29527320, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29527321, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29527322, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29527323, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29527324, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29527635 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4244258, 'mtr_portfolio_id': 29527635, 'created_at': datetime.datetime(2025, 12, 18, 6, 33, 2), 'result': '0.03759320880475477', 'result_long': None, 'result_double': None}] Qualite : 0.03759320880475477 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29527635 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29527635_18-12-2025_06_33_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29527635 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29527635_18-12-2025_06_33_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29527638, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29527639, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29527640, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29527641, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29527642, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29527643, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29527644, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29527646, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29527647, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29527648, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29527649, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29527650, 'pht': 3726}}" where mtr_portfolio_id = 29527635 and dashboard_run_id = 2765571 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29527635 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18521132, 0.03759320880475477, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29527635_18-12-2025_06_33_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29527638, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29527639, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29527640, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29527641, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29527642, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29527643, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29527644, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29527646, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29527647, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29527648, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29527649, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29527650, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29528012 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4244312, 'mtr_portfolio_id': 29528012, 'created_at': datetime.datetime(2025, 12, 18, 8, 16, 1), 'result': '0.03786383384521478', 'result_long': None, 'result_double': None}] Qualite : 0.03786383384521478 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29528012 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29528012_18-12-2025_08_16_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29528012 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29528012_18-12-2025_08_16_03.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29528017, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29528018, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29528019, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29528020, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29528021, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29528022, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29528023, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29528024, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29528025, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29528026, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29528027, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29528028, 'pht': 3726}}" where mtr_portfolio_id = 29528012 and dashboard_run_id = 2765571 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29528012 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18521133, 0.03786383384521478, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29528012_18-12-2025_08_16_03.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29528017, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29528018, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29528019, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29528020, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29528021, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29528022, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29528023, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29528024, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29528025, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29528026, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29528027, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29528028, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29528449 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4244382, 'mtr_portfolio_id': 29528449, 'created_at': datetime.datetime(2025, 12, 18, 7, 2, 58), 'result': '0.054285139060117615', 'result_long': None, 'result_double': None}] Qualite : 0.054285139060117615 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29528449 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29528449_18-12-2025_07_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29528449 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29528449_18-12-2025_07_02_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29528462, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29528463, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29528464, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29528465, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29528466, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29528467, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29528468, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29528469, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29528470, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29528471, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29528472, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29528473, 'pht': 3726}}" where mtr_portfolio_id = 29528449 and dashboard_run_id = 2765571 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29528449 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18521134, 0.054285139060117615, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29528449_18-12-2025_07_02_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29528462, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29528463, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29528464, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29528465, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29528466, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29528467, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29528468, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29528469, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29528470, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29528471, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29528472, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29528473, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29528882 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4244448, 'mtr_portfolio_id': 29528882, 'created_at': datetime.datetime(2025, 12, 18, 7, 18, 59), 'result': '0.03658198401281332', 'result_long': None, 'result_double': None}] Qualite : 0.03658198401281332 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29528882 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29528882_18-12-2025_07_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29528882 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29528882_18-12-2025_07_18_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29528899, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29528900, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29528901, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29528902, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29528903, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29528904, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29528905, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29528906, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29528907, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29528908, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29528909, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29528910, 'pht': 3726}}" where mtr_portfolio_id = 29528882 and dashboard_run_id = 2765571 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29528882 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18521135, 0.03658198401281332, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29528882_18-12-2025_07_18_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29528899, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29528900, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29528901, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29528902, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29528903, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29528904, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29528905, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29528906, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29528907, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29528908, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29528909, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29528910, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29529672 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4244524, 'mtr_portfolio_id': 29529672, 'created_at': datetime.datetime(2025, 12, 18, 7, 32, 59), 'result': '0.05840643824752703', 'result_long': None, 'result_double': None}] Qualite : 0.05840643824752703 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29529672 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29529672_18-12-2025_07_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29529672 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29529672_18-12-2025_07_33_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29529680, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29529681, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29529682, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29529683, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29529684, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29529685, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29529686, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29529687, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29529688, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29529689, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29529690, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29529691, 'pht': 3726}}" where mtr_portfolio_id = 29529672 and dashboard_run_id = 2765571 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29529672 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18521136, 0.05840643824752703, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29529672_18-12-2025_07_33_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29529680, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29529681, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29529682, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29529683, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29529684, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29529685, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29529686, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29529687, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29529688, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29529689, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29529690, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29529691, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29530097 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4244580, 'mtr_portfolio_id': 29530097, 'created_at': datetime.datetime(2025, 12, 18, 7, 49, 1), 'result': '0.05377956909572141', 'result_long': None, 'result_double': None}] Qualite : 0.05377956909572141 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29530097 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29530097_18-12-2025_07_49_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29530097 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29530097_18-12-2025_07_49_02.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29530105, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29530106, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29530107, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29530108, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29530109, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29530110, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29530111, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29530112, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29530113, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29530114, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29530115, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29530116, 'pht': 3726}}" where mtr_portfolio_id = 29530097 and dashboard_run_id = 2765571 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29530097 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18521137, 0.05377956909572141, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29530097_18-12-2025_07_49_02.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29530105, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29530106, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29530107, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29530108, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29530109, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29530110, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29530111, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29530112, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29530113, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29530114, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29530115, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29530116, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29530582 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4244649, 'mtr_portfolio_id': 29530582, 'created_at': datetime.datetime(2025, 12, 18, 8, 2, 59), 'result': '0.03928558192464546', 'result_long': None, 'result_double': None}] Qualite : 0.03928558192464546 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29530582 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29530582_18-12-2025_08_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29530582 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29530582_18-12-2025_08_03_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29530607, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29530608, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29530609, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29530610, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29530611, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29530612, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29530613, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29530614, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29530615, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29530616, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29530617, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29530618, 'pht': 3726}}" where mtr_portfolio_id = 29530582 and dashboard_run_id = 2765571 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29530582 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18521138, 0.03928558192464546, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29530582_18-12-2025_08_03_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29530607, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29530608, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29530609, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29530610, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29530611, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29530612, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29530613, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29530614, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29530615, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29530616, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29530617, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29530618, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29531020 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4244712, 'mtr_portfolio_id': 29531020, 'created_at': datetime.datetime(2025, 12, 18, 8, 18, 59), 'result': '0.04236134745840149', 'result_long': None, 'result_double': None}] Qualite : 0.04236134745840149 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29531020 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29531020_18-12-2025_08_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29531020 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29531020_18-12-2025_08_18_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29531035, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29531036, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29531037, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29531038, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29531039, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29531040, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29531041, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29531042, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29531043, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29531044, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29531045, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29531046, 'pht': 3726}}" where mtr_portfolio_id = 29531020 and dashboard_run_id = 2765571 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29531020 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18521139, 0.04236134745840149, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29531020_18-12-2025_08_18_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29531035, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29531036, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29531037, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29531038, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29531039, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29531040, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29531041, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29531042, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29531043, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29531044, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29531045, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29531046, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29531694 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4244802, 'mtr_portfolio_id': 29531694, 'created_at': datetime.datetime(2025, 12, 18, 8, 33), 'result': '0.08133664011743781', 'result_long': None, 'result_double': None}] Qualite : 0.08133664011743781 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29531694 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29531694_18-12-2025_08_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29531694 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29531694_18-12-2025_08_33_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29531726, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29531727, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29531728, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29531729, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29531730, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29531731, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29531732, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29531733, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29531734, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29531735, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29531736, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29531737, 'pht': 3726}}" where mtr_portfolio_id = 29531694 and dashboard_run_id = 2765571 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29531694 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18521140, 0.08133664011743781, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29531694_18-12-2025_08_33_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29531726, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29531727, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29531728, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29531729, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29531730, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29531731, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29531732, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29531733, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29531734, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29531735, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29531736, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29531737, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29532246 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4244870, 'mtr_portfolio_id': 29532246, 'created_at': datetime.datetime(2025, 12, 18, 8, 46, 57), 'result': '0.05542506373220876', 'result_long': None, 'result_double': None}] Qualite : 0.05542506373220876 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29532246 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29532246_18-12-2025_08_46_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29532246 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29532246_18-12-2025_08_46_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29532258, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29532259, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29532260, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29532261, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29532262, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29532263, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29532264, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29532265, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29532266, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29532267, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29532268, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29532269, 'pht': 3726}}" where mtr_portfolio_id = 29532246 and dashboard_run_id = 2765571 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29532246 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18521141, 0.05542506373220876, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29532246_18-12-2025_08_46_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29532258, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29532259, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29532260, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29532261, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29532262, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29532263, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29532264, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29532265, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29532266, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29532267, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29532268, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29532269, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29532732 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4244936, 'mtr_portfolio_id': 29532732, 'created_at': datetime.datetime(2025, 12, 18, 9, 2, 59), 'result': '0.047884727407653836', 'result_long': None, 'result_double': None}] Qualite : 0.047884727407653836 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29532732 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29532732_18-12-2025_09_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29532732 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29532732_18-12-2025_09_02_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29532740, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29532741, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29532742, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29532743, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29532744, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29532745, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29532746, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29532747, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29532748, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29532749, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29532752, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29532753, 'pht': 3726}}" where mtr_portfolio_id = 29532732 and dashboard_run_id = 2765571 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29532732 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18521142, 0.047884727407653836, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29532732_18-12-2025_09_02_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29532740, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29532741, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29532742, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29532743, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29532744, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29532745, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29532746, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29532747, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29532748, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29532749, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29532752, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29532753, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29534702 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4245160, 'mtr_portfolio_id': 29534702, 'created_at': datetime.datetime(2025, 12, 18, 9, 49, 1), 'result': '0.06325621807706587', 'result_long': None, 'result_double': None}] Qualite : 0.06325621807706587 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29534702 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29534702_18-12-2025_09_49_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29534702 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29534702_18-12-2025_09_49_02.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29534735, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29534736, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29534737, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29534738, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29534739, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29534740, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29534741, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29534742, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29534743, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29534744, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29534745, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29534746, 'pht': 3726}}" where mtr_portfolio_id = 29534702 and dashboard_run_id = 2765571 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29534702 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18521143, 0.06325621807706587, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29534702_18-12-2025_09_49_02.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29534735, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29534736, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29534737, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29534738, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29534739, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29534740, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29534741, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29534742, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29534743, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29534744, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29534745, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29534746, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29535436 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4245218, 'mtr_portfolio_id': 29535436, 'created_at': datetime.datetime(2025, 12, 18, 10, 3), 'result': '0.042799872508664114', 'result_long': None, 'result_double': None}] Qualite : 0.042799872508664114 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29535436 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29535436_18-12-2025_10_03_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29535436 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29535436_18-12-2025_10_03_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29535496, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29535497, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29535498, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29535499, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29535500, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29535501, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29535502, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29535503, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29535504, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29535505, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29535506, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29535507, 'pht': 3726}}" where mtr_portfolio_id = 29535436 and dashboard_run_id = 2765571 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29535436 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18521144, 0.042799872508664114, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29535436_18-12-2025_10_03_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29535496, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29535497, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29535498, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29535499, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29535500, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29535501, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29535502, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29535503, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29535504, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29535505, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29535506, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29535507, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29536076 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4245297, 'mtr_portfolio_id': 29536076, 'created_at': datetime.datetime(2025, 12, 18, 10, 19), 'result': '0.05470350695505103', 'result_long': None, 'result_double': None}] Qualite : 0.05470350695505103 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29536076 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29536076_18-12-2025_10_19_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29536076 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29536076_18-12-2025_10_19_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29536092, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29536093, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29536094, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29536095, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29536096, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29536097, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29536098, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29536099, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29536100, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29536101, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29536102, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29536103, 'pht': 3726}}" where mtr_portfolio_id = 29536076 and dashboard_run_id = 2765571 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29536076 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18521145, 0.05470350695505103, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29536076_18-12-2025_10_19_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29536092, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29536093, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29536094, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29536095, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29536096, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29536097, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29536098, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29536099, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29536100, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29536101, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29536102, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29536103, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29536806 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4245371, 'mtr_portfolio_id': 29536806, 'created_at': datetime.datetime(2025, 12, 18, 10, 32, 58), 'result': '0.04716405841383832', 'result_long': None, 'result_double': None}] Qualite : 0.04716405841383832 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29536806 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29536806_18-12-2025_10_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29536806 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29536806_18-12-2025_10_32_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29536814, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29536815, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29536816, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29536817, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29536818, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29536819, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29536820, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29536821, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29536822, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29536823, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29536824, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29536825, 'pht': 3726}}" where mtr_portfolio_id = 29536806 and dashboard_run_id = 2765571 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29536806 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18521146, 0.04716405841383832, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29536806_18-12-2025_10_32_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29536814, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29536815, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29536816, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29536817, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29536818, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29536819, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29536820, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29536821, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29536822, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29536823, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29536824, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29536825, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29537598 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4245451, 'mtr_portfolio_id': 29537598, 'created_at': datetime.datetime(2025, 12, 18, 10, 48, 56), 'result': '0.04849076799267783', 'result_long': None, 'result_double': None}] Qualite : 0.04849076799267783 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29537598 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29537598_18-12-2025_10_48_56.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29537598 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29537598_18-12-2025_10_48_56.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29537644, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29537645, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29537646, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29537647, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29537648, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29537649, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29537650, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29537651, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29537653, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29537656, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29537658, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29537660, 'pht': 3726}}" where mtr_portfolio_id = 29537598 and dashboard_run_id = 2765571 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29537598 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18521147, 0.04849076799267783, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29537598_18-12-2025_10_48_56.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29537644, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29537645, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29537646, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29537647, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29537648, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29537649, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29537650, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29537651, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29537653, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29537656, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29537658, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29537660, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29538418 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4245550, 'mtr_portfolio_id': 29538418, 'created_at': datetime.datetime(2025, 12, 18, 11, 3), 'result': '0.06064088875154784', 'result_long': None, 'result_double': None}] Qualite : 0.06064088875154784 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29538418 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29538418_18-12-2025_11_03_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29538418 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29538418_18-12-2025_11_03_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29538443, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29538444, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29538445, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29538446, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29538447, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29538448, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29538449, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29538450, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29538451, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29538452, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29538453, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29538454, 'pht': 3726}}" where mtr_portfolio_id = 29538418 and dashboard_run_id = 2765571 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29538418 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18521148, 0.06064088875154784, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29538418_18-12-2025_11_03_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29538443, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29538444, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29538445, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29538446, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29538447, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29538448, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29538449, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29538450, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29538451, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29538452, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29538453, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29538454, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29539090 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4245620, 'mtr_portfolio_id': 29539090, 'created_at': datetime.datetime(2025, 12, 18, 11, 18, 59), 'result': '0.03947901485097099', 'result_long': None, 'result_double': None}] Qualite : 0.03947901485097099 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29539090 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29539090_18-12-2025_11_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29539090 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29539090_18-12-2025_11_18_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29539197, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29539198, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29539199, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29539200, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29539201, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29539202, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29539203, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29539204, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29539205, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29539206, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29539207, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29539208, 'pht': 3726}}" where mtr_portfolio_id = 29539090 and dashboard_run_id = 2765571 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29539090 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18521149, 0.03947901485097099, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29539090_18-12-2025_11_18_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29539197, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29539198, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29539199, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29539200, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29539201, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29539202, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29539203, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29539204, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29539205, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29539206, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29539207, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29539208, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29540060 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4245688, 'mtr_portfolio_id': 29540060, 'created_at': datetime.datetime(2025, 12, 18, 11, 33), 'result': '0.043750455768051665', 'result_long': None, 'result_double': None}] Qualite : 0.043750455768051665 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29540060 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29540060_18-12-2025_11_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29540060 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29540060_18-12-2025_11_33_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29540068, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29540069, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29540070, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29540071, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29540072, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29540073, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29540074, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29540075, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29540076, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29540077, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29540078, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29540079, 'pht': 3726}}" where mtr_portfolio_id = 29540060 and dashboard_run_id = 2765571 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29540060 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18521150, 0.043750455768051665, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29540060_18-12-2025_11_33_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29540068, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29540069, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29540070, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29540071, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29540072, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29540073, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29540074, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29540075, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29540076, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29540077, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29540078, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29540079, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29540604 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4245777, 'mtr_portfolio_id': 29540604, 'created_at': datetime.datetime(2025, 12, 18, 11, 48, 58), 'result': '0.07513198831648656', 'result_long': None, 'result_double': None}] Qualite : 0.07513198831648656 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29540604 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29540604_18-12-2025_11_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29540604 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29540604_18-12-2025_11_48_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29540618, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29540619, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29540620, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29540621, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29540622, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29540623, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29540624, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29540625, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29540626, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29540627, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29540628, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29540629, 'pht': 3726}}" where mtr_portfolio_id = 29540604 and dashboard_run_id = 2765571 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29540604 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18521151, 0.07513198831648656, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29540604_18-12-2025_11_48_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29540618, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29540619, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29540620, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29540621, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29540622, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29540623, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29540624, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29540625, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29540626, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29540627, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29540628, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29540629, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29541128 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4245850, 'mtr_portfolio_id': 29541128, 'created_at': datetime.datetime(2025, 12, 18, 12, 2, 59), 'result': '0.042059493124240004', 'result_long': None, 'result_double': None}] Qualite : 0.042059493124240004 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29541128 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29541128_18-12-2025_12_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29541128 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29541128_18-12-2025_12_02_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29541161, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29541162, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29541163, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29541164, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29541165, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29541166, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29541167, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29541168, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29541169, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29541170, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29541171, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29541172, 'pht': 3726}}" where mtr_portfolio_id = 29541128 and dashboard_run_id = 2765571 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29541128 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18521152, 0.042059493124240004, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29541128_18-12-2025_12_02_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29541161, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29541162, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29541163, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29541164, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29541165, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29541166, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29541167, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29541168, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29541169, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29541170, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29541171, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29541172, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29541476 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4245914, 'mtr_portfolio_id': 29541476, 'created_at': datetime.datetime(2025, 12, 18, 12, 33), 'result': '0.043502423146565265', 'result_long': None, 'result_double': None}] Qualite : 0.043502423146565265 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29541476 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29541476_18-12-2025_12_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29541476 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29541476_18-12-2025_12_33_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29541511, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29541512, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29541513, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29541514, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29541515, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29541516, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29541517, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29541518, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29541519, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29541520, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29541521, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29541522, 'pht': 3726}}" where mtr_portfolio_id = 29541476 and dashboard_run_id = 2765571 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29541476 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18521153, 0.043502423146565265, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29541476_18-12-2025_12_33_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29541511, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29541512, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29541513, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29541514, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29541515, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29541516, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29541517, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29541518, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29541519, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29541520, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29541521, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29541522, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29542319 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4246020, 'mtr_portfolio_id': 29542319, 'created_at': datetime.datetime(2025, 12, 18, 14, 0, 58), 'result': '0.05136734799353996', 'result_long': None, 'result_double': None}] Qualite : 0.05136734799353996 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29542319 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29542319_18-12-2025_14_00_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29542319 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29542319_18-12-2025_14_00_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29542330, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29542331, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29542332, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29542333, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29542334, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29542335, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29542336, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29542337, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29542338, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29542339, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29542340, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29542341, 'pht': 3726}}" where mtr_portfolio_id = 29542319 and dashboard_run_id = 2765571 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29542319 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18521154, 0.05136734799353996, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29542319_18-12-2025_14_00_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29542330, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29542331, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29542332, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29542333, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29542334, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29542335, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29542336, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29542337, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29542338, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29542339, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29542340, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29542341, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29543553 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4246180, 'mtr_portfolio_id': 29543553, 'created_at': datetime.datetime(2025, 12, 18, 13, 46, 59), 'result': '0.047113267037903', 'result_long': None, 'result_double': None}] Qualite : 0.047113267037903 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29543553 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29543553_18-12-2025_13_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29543553 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29543553_18-12-2025_13_46_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29543554, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29543555, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29543556, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29543557, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29543558, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29543559, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29543560, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29543561, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29543562, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29543563, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29543564, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29543565, 'pht': 3726}}" where mtr_portfolio_id = 29543553 and dashboard_run_id = 2765575 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29543553 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18521155, 0.047113267037903, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29543553_18-12-2025_13_46_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29543554, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29543555, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29543556, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29543557, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29543558, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29543559, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29543560, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29543561, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29543562, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29543563, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29543564, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29543565, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29543827 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4246194, 'mtr_portfolio_id': 29543827, 'created_at': datetime.datetime(2025, 12, 18, 14, 2, 59), 'result': '0.050112884805389786', 'result_long': None, 'result_double': None}] Qualite : 0.050112884805389786 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29543827 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29543827_18-12-2025_14_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29543827 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29543827_18-12-2025_14_03_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29543831, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29543832, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29543833, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29543834, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29543835, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29543836, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29543837, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29543838, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29543839, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29543840, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29543841, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29543842, 'pht': 3726}}" where mtr_portfolio_id = 29543827 and dashboard_run_id = 2765575 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29543827 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18521156, 0.050112884805389786, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29543827_18-12-2025_14_03_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29543831, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29543832, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29543833, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29543834, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29543835, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29543836, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29543837, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29543838, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29543839, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29543840, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29543841, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29543842, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29544201 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4246264, 'mtr_portfolio_id': 29544201, 'created_at': datetime.datetime(2025, 12, 18, 14, 14, 58), 'result': '0.04816952740624493', 'result_long': None, 'result_double': None}] Qualite : 0.04816952740624493 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29544201 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29544201_18-12-2025_14_14_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29544201 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29544201_18-12-2025_14_14_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29544228, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29544229, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29544230, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29544231, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29544232, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29544233, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29544234, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29544235, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29544236, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29544237, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29544238, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29544239, 'pht': 3726}}" where mtr_portfolio_id = 29544201 and dashboard_run_id = 2765575 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29544201 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18521157, 0.04816952740624493, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29544201_18-12-2025_14_14_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29544228, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29544229, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29544230, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29544231, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29544232, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29544233, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29544234, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29544235, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29544236, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29544237, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29544238, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29544239, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29518047,29518739,29519140,29519795,29520859,29521041,29521390,29521664,29522214,29522701,29523037,29523671,29524171,29524599,29525105,29525978,29526227,29526571,29526944,29527309,29527635,29528012,29528449,29528882,29529672,29530097,29530582,29531020,29531694,29532246,29532732,29534702,29535436,29536076,29536806,29537598,29538418,29539090,29540060,29540604,29541128,29541476,29542319,29543553,29543827,29544201) result : ((1399862066,), (1399862100,), (1399862137,), (1399862172,), (1399862203,), (1399862461,), (1399862509,), (1399862581,), (1399862647,), (1399862712,), (1399862777,), (1399863346,), (1399863401,), (1399864109,), (1399864190,), (1399864229,), (1399864263,), (1399864298,), (1399864481,), (1399864513,), (1399864546,), (1399864578,), (1399864601,), (1399864602,), (1399864716,), (1399865151,), (1399865152,), (1399865985,), (1399866386,), (1399866332,), (1399866335,), (1399866356,), (1399866621,), (1399866661,), (1399866695,), (1399866729,), (1399866764,), (1399867132,), (1399867134,), (1399867136,), (1399867140,), (1399867144,), (1399867171,), (1399867203,), (1399867238,), (1399867275,), (1399867312,), (1399867506,), (1399867537,), (1399867555,), (1399867571,), (1399867575,), (1399867577,), (1399867600,), (1399867603,), (1399867606,), (1399867609,), (1399867617,), (1399867619,), (1399867622,), (1399867624,), (1399867626,), (1399867633,), (1399867639,), (1399867648,), (1399867655,), (1399867658,), (1399867661,), (1399867664,), (1399867666,), (1399867671,), (1399867673,), (1399867700,), (1399867702,), (1399867710,), (1399867712,), (1399867715,), (1399867718,), (1399867723,), (1399867724,), (1399867726,), (1399867729,), (1399867732,), (1399867735,), (1399867802,), (1399867815,), (1399867816,), (1399867817,), (1399867818,), (1399867820,), (1399868158,), (1399868194,), (1399868226,), (1399868256,), (1399868289,), (1399868321,), (1399868616,), (1399868919,), (1399869017,), (1399869018,), (1399868446,), (1399868482,), (1399868516,), (1399868548,), (1399868583,), (1399868743,), (1399868778,), (1399868811,), (1399868848,), (1399868884,), (1399869019,), (1399869020,), (1399869021,), (1399869022,), (1399869025,), (1399869289,), (1399869297,), (1399869301,), (1399869302,), (1399869305,), (1399869339,), (1399869426,), (1399869430,), (1399869432,), (1399869436,), (1399869444,), (1399869449,), (1399869455,), (1399869459,), (1399869460,), (1399869461,), (1399869463,), (1399869466,), (1399869469,), (1399869472,), (1399869476,), (1399869483,), (1399869484,), (1399869485,), (1399869486,), (1399869499,), (1399869536,), (1399869858,), (1399869895,), (1399869931,), (1399869967,), (1399870008,), (1399870248,), (1399870272,), (1399870305,), (1399870343,), (1399870357,), (1399870360,), (1399870405,), (1399870432,), (1399870443,), (1399870444,), (1399870445,), (1399870446,), (1399870449,), (1399870462,), (1399870464,), (1399870466,), (1399870470,), (1399870483,), (1399870484,), (1399870485,), (1399870486,), (1399870489,), (1399870492,), (1399870495,), (1399870498,), (1399870500,), (1399870501,), (1399870502,), (1399870505,), (1399870507,), (1399870509,), (1399870534,), (1399870542,), (1399870544,), (1399870545,), (1399870548,), (1399870551,), (1399870559,), (1399870561,), (1399870562,), (1399870605,), (1399870767,), (1399870584,), (1399870586,), (1399870589,), (1399870591,), (1399870594,), (1399870595,), (1399870598,), (1399870600,), (1399870602,), (1399870603,), (1399870619,), (1399870625,), (1399870629,), (1399870632,), (1399870635,), (1399870636,), (1399870640,), (1399870643,), (1399870646,), (1399870649,), (1399870651,), (1399870652,), (1399870665,), (1399870668,), (1399870672,), (1399870675,), (1399870677,), (1399870680,), (1399870684,), (1399870687,), (1399870690,), (1399870692,), (1399870694,), (1399870697,), (1399870702,), (1399870704,), (1399870705,), (1399870707,), (1399870709,), (1399870711,), (1399870722,), (1399870726,), (1399870727,), (1399870728,), (1399870729,), (1399870730,), (1399870756,), (1399870758,), (1399870760,), (1399870762,), (1399870765,), (1399870773,), (1399870774,), (1399870777,), (1399870780,), (1399870783,), (1399870788,), (1399870909,), (1399870943,), (1399870976,), (1399871010,), (1399871042,), (1399871379,), (1399871415,), (1399871445,), (1399871477,), (1399871509,), (1399871543,), (1399871858,), (1399871872,), (1399871873,), (1399871874,), (1399871876,), (1399871878,), (1399871987,), (1399872024,), (1399872056,), (1399872114,), (1399872322,), (1399872323,), (1399872326,), (1399872329,), (1399872332,), (1399872353,), (1399872355,), (1399872358,), (1399872362,), (1399872363,), (1399872365,), (1399872370,), (1399872371,), (1399872374,), (1399872377,), (1399872380,), (1399872383,), (1399872400,), (1399872407,), (1399872412,), (1399872413,), (1399872414,), (1399872415,), (1399872461,), (1399872464,), (1399876930,), (1399876926,), (1399876928,), (1399876948,), (1399876950,), (1399876952,), (1399876954,), (1399876957,), (1399876970,), (1399876971,), (1399876972,), (1399876976,), (1399876980,), (1399876982,), (1399876989,), (1399876991,), (1399877005,), (1399877033,), (1399877034,), (1399877049,), (1399877051,), (1399877070,), (1399877071,), (1399877072,), (1399877073,), (1399877076,), (1399877085,), (1399877088,), (1399877090,), (1399877094,), (1399877101,), (1399877117,), (1399877112,), (1399877113,), (1399877114,), (1399877146,), (1399877147,), (1399877148,), (1399877161,), (1399877162,), (1399877163,), (1399877164,), (1399877167,), (1399877170,), (1399877181,), (1399877182,), (1399877183,), (1399877184,), (1399877193,), (1399877195,), (1399877197,), (1399877217,), (1399877219,), (1399877221,), (1399877225,), (1399877229,), (1399877236,), (1399877237,), (1399877238,), (1399877239,), (1399877241,), (1399877242,), (1399877271,), (1399877272,), (1399877273,), (1399877274,), (1399877277,), (1399877287,), (1399877288,), (1399877289,), (1399877290,), (1399877316,), (1399877317,), (1399877318,), (1399877319,), (1399877325,), (1399877327,), (1399877329,), (1399877333,), (1399877337,), (1399877348,), (1399877349,), (1399877350,), (1399877376,), (1399877378,), (1399877382,), (1399877385,), (1399877387,), (1399877389,), (1399877393,), (1399877396,), (1399877400,), (1399877403,), (1399877405,), (1399877418,), (1399877410,), (1399877411,), (1399877412,), (1399877413,), (1399877416,), (1399877423,), (1399878139,), (1399878158,), (1399878159,), (1399878161,), (1399878165,), (1399878166,), (1399878169,), (1399878172,), (1399878280,), (1399878329,), (1399878366,), (1399878482,), (1399878532,), (1399878626,), (1399878813,), (1399878958,), (1399879037,), (1399879119,), (1399879206,), (1399879276,), (1399879460,), (1399879515,), (1399879550,), (1399879590,), (1399879630,), (1399879668,), (1399879769,), (1399879771,), (1399879772,), (1399879774,), (1399879776,), (1399879911,), (1399879958,), (1399879997,), (1399880036,), (1399880098,), (1399880176,), (1399880404,), (1399880450,), (1399880474,), (1399880683,), (1399880689,), (1399880786,), (1399881612,), (1399881613,), (1399881615,), (1399881616,), (1399881619,), (1399881623,), (1399881640,), (1399881636,), (1399881638,), (1399882198,), (1399882208,), (1399882210,), (1399882214,), (1399882218,), (1399882238,), (1399882240,), (1399882242,), (1399882246,), (1399882249,), (1399882261,), (1399882263,), (1399882267,), (1399882271,), (1399882275,), (1399882281,), (1399882290,), (1399882292,), (1399882294,), (1399882297,), (1399882300,), (1399882303,), (1399882307,), (1399882314,), (1399882315,), (1399882316,), (1399882385,), (1399882391,), (1399882399,), (1399882408,), (1399882424,), (1399882425,), (1399882426,), (1399882427,), (1399882430,), (1399882447,), (1399882448,), (1399882449,), (1399882461,), (1399882462,), (1399882463,), (1399882484,), (1399882485,), (1399882486,), (1399882487,), (1399882488,), (1399882500,), (1399882501,), (1399882502,), (1399882503,), (1399882506,), (1399882521,), (1399882522,), (1399882523,), (1399882524,), (1399882538,), (1399882539,), (1399882540,), (1399882543,), (1399882546,), (1399882553,), (1399882555,), (1399882556,), (1399882557,), (1399882558,), (1399882560,), (1399882561,), (1399882564,), (1399882568,), (1399882583,), (1399882632,), (1399882577,), (1399882578,), (1399882579,), (1399882580,), (1399882610,), (1399882611,), (1399882612,), (1399882615,), (1399882617,), (1399882619,), (1399882624,), (1399882626,), (1399882628,), (1399882630,), (1399882634,), (1399882637,), (1399882640,), (1399882653,), (1399882654,), (1399882655,), (1399882656,), (1399882659,), (1399882662,), (1399882668,), (1399882669,), (1399882670,), (1399882671,), (1399882674,), (1399882695,), (1399882696,), (1399882697,), (1399882722,), (1399882728,), (1399882729,), (1399882730,), (1399882733,), (1399882745,), (1399882746,), (1399882747,), (1399882761,), (1399882773,), (1399882794,), (1399882795,), (1399882796,), (1399882799,), (1399882802,), (1399882805,), (1399882815,), (1399882816,), (1399882820,), (1399882827,), (1399882828,), (1399882829,), (1399882832,), (1399882835,), (1399882858,), (1399882860,), (1399882864,), (1399882868,), (1399882877,), (1399882882,), (1399882884,), (1399882885,), (1399882886,), (1399882887,), (1399882892,), (1399882893,), (1399882896,), (1399882897,), (1399882899,), (1399882900,), (1399882903,), (1399882904,), (1399882907,), (1399882908,), (1399882919,), (1399882920,), (1399882921,), (1399882922,), (1399882947,), (1399882954,), (1399882955,), (1399882967,), (1399882968,), (1399882969,), (1399882970,), (1399882974,), (1399882975,), (1399883005,), (1399882995,), (1399883000,), (1399883001,), (1399883002,), (1399883013,), (1399883014,), (1399883015,), (1399883033,), (1399883034,), (1399883040,), (1399883049,), (1399883051,), (1399883068,), (1399883069,), (1399883070,), (1399883073,), (1399883076,), (1399883077,), (1399883095,), (1399883103,), (1399883104,), (1399883105,), (1399883108,), (1399883109,), (1399883112,), (1399883115,), (1399883124,), (1399883126,), (1399883128,), (1399883132,), (1399883136,), (1399883143,), (1399883159,), (1399883160,), (1399883161,), (1399883162,), (1399883165,), (1399883168,), (1399883174,), (1399883175,), (1399883204,), (1399883205,), (1399883206,), (1399883207,), (1399883209,), (1399883231,), (1399883233,), (1399883235,), (1399883237,), (1399883240,), (1399883263,), (1399883264,), (1399883265,), (1399883276,), (1399883277,), (1399883278,), (1399883302,), (1399883303,), (1399883304,), (1399883305,), (1399883308,), (1399883311,), (1399883614,), (1399883652,), (1399883731,), (1399883802,), (1399883851,), (1399883889,), (1399884027,), (1399884062,), (1399884097,), (1399884155,), (1399884230,), (1399884302,), (1399884656,), (1399884509,), (1399884572,), (1399884613,), (1399884705,), (1399884736,), (1399884768,), (1399885423,), (1399885488,), (1399885535,), (1399885566,), (1399885611,), (1399885656,), (1399886533,), (1399886535,), (1399886536,), (1399886917,), (1399886918,), (1399886919,), (1399886920,), (1399886923,), (1399886951,), (1399886952,), (1399886953,), (1399886954,), (1399886957,), (1399886960,), (1399886975,), (1399886977,), (1399886978,), (1399886979,), (1399887000,), (1399887001,), (1399887002,), (1399887015,), (1399887016,), (1399887017,), (1399887018,), (1399887021,), (1399887046,), (1399887047,), (1399887048,), (1399887049,), (1399887052,), (1399887067,), (1399887069,), (1399887092,), (1399887094,), (1399887096,), (1399887100,), (1399887104,), (1399887118,), (1399887119,), (1399887120,), (1399887121,), (1399887144,), (1399887149,), (1399887150,), (1399887151,), (1399887154,), (1399887157,), (1399887178,), (1399887179,), (1399887181,), (1399887214,), (1399887205,), (1399887207,), (1399887209,), (1399887211,), (1399887226,), (1399887227,), (1399887228,), (1399887229,), (1399887245,), (1399887249,), (1399887251,), (1399887253,), (1399887255,), (1399887257,), (1399887269,), (1399887272,), (1399887275,), (1399887280,), (1399887283,), (1399887287,), (1399887302,), (1399887304,), (1399887305,), (1399887307,), (1399887310,), (1399887326,), (1399887362,), (1399887364,), (1399887365,), (1399887366,), (1399887369,), (1399887380,), (1399887382,), (1399887386,), (1399887388,), (1399887410,), (1399887411,), (1399887412,), (1399887413,), (1399887428,), (1399887431,), (1399887434,), (1399887438,), (1399887463,), (1399887470,), (1399887484,), (1399887490,), (1399887491,), (1399887494,), (1399887496,), (1399887523,), (1399887524,), (1399887525,), (1399887526,), (1399887528,), (1399887531,), (1399887548,), (1399887550,), (1399887552,), (1399887555,), (1399887558,), (1399887560,), (1399887568,), (1399887569,), (1399887571,), (1399887573,), (1399887575,), (1399887577,), (1399887585,), (1399887586,), (1399887590,), (1399887591,), (1399887594,), (1399887595,), (1399887610,), (1399887604,), (1399887605,), (1399887606,), (1399887607,), (1399887622,), (1399887624,), (1399887626,), (1399887628,), (1399887631,), (1399887634,), (1399887643,), (1399887644,), (1399887645,), (1399887648,), (1399887653,), (1399887656,), (1399887663,), (1399887670,), (1399887672,), (1399887674,), (1399887676,), (1399887679,), (1399887692,), (1399887693,), (1399887694,), (1399887695,), (1399887717,), (1399887719,), (1399887721,), (1399887723,), (1399887738,), (1399887739,), (1399887740,), (1399887741,), (1399887774,), (1399887782,), (1399887784,), (1399887786,), (1399887808,), (1399887809,), (1399887810,), (1399887813,), (1399887816,), (1399887821,), (1399887827,), (1399887829,), (1399887831,), (1399887839,), (1399887840,), (1399887841,), (1399887844,), (1399887856,), (1399887858,), (1399887860,), (1399887862,), (1399887910,), (1399887913,), (1399887914,), (1399887929,), (1399887930,), (1399887933,), (1399887935,), (1399887937,), (1399887940,), (1399887966,), (1399887967,), (1399887968,), (1399887969,), (1399887972,), (1399887988,), (1399887990,), (1399887993,), (1399887995,), (1399887997,), (1399887998,), (1399888026,), (1399888024,), (1399888025,), (1399888040,), (1399888042,), (1399888044,), (1399888046,), (1399888067,), (1399888068,), (1399888069,), (1399888083,), (1399888085,), (1399888087,), (1399888089,), (1399888092,), (1399888116,), (1399888117,), (1399888118,), (1399888121,), (1399888124,), (1399888126,), (1399888133,), (1399888135,), (1399888136,), (1399888149,), (1399888166,), (1399888168,), (1399888170,), (1399888186,), (1399888187,), (1399888188,), (1399888189,), (1399888220,), (1399888221,), (1399888223,), (1399888225,), (1399888238,), (1399888239,), (1399888240,), (1399888241,), (1399888242,), (1399888270,), (1399888272,), (1399888337,), (1399888338,), (1399888355,), (1399888357,), (1399888360,), (1399888392,), (1399888386,), (1399888388,), (1399888390,), (1399888418,), (1399888420,), (1399888422,), (1399888516,), (1399888548,), (1399888579,), (1399888612,), (1399889047,), (1399889080,), (1399889113,), (1399889148,), (1399889187,), (1399889219,), (1399889331,), (1399889368,), (1399889409,), (1399889443,), (1399889445,), (1399889447,), (1399889450,), (1399889452,), (1399889456,), (1399889482,), (1399889515,), (1399889550,), (1399889582,), (1399889807,), (1399889840,), (1399889872,), (1399889896,), (1399890035,), (1399890037,), (1399890064,), (1399890066,), (1399890068,), (1399890072,), (1399890088,), (1399890093,), (1399890103,), (1399890106,), (1399890124,), (1399890125,), (1399890126,), (1399890147,), (1399890165,), (1399892241,), (1399892237,), (1399894026,), (1399894063,), (1399894513,), (1399894514,), (1399894516,), (1399894518,), (1399894521,), (1399894524,), (1399894649,), (1399894683,), (1399894713,), (1399894743,), (1399894758,), (1399894851,), (1399894853,), (1399894854,), (1399894856,), (1399894858,), (1399894860,), (1399894868,), (1399894870,), (1399894872,), (1399894874,), (1399894879,), (1399894883,), (1399894887,), (1399894893,), (1399894898,), (1399894904,), (1399894906,), (1399894908,), (1399894909,), (1399894911,), (1399894925,), (1399894926,), (1399894927,), (1399894928,), (1399894959,), (1399894960,), (1399894961,), (1399894962,), (1399894965,), (1399894968,), (1399894978,), (1399894980,), (1399894982,), (1399895012,), (1399895004,), (1399895005,), (1399895006,), (1399895007,), (1399895010,), (1399895021,), (1399895022,), (1399895023,), (1399895047,), (1399895056,), (1399895058,), (1399895059,), (1399895062,), (1399895079,), (1399895081,), (1399895082,), (1399895083,), (1399895085,), (1399895087,), (1399895121,), (1399895122,), (1399895123,), (1399895126,), (1399895129,), (1399895132,), (1399895139,), (1399895141,), (1399895143,), (1399895145,), (1399895149,), (1399895152,), (1399895154,), (1399895157,), (1399895173,), (1399895202,), (1399895208,), (1399895211,), (1399895217,), (1399895222,), (1399895290,), (1399895293,), (1399895296,), (1399895299,), (1399895304,), (1399895319,), (1399895320,), (1399895321,), (1399895322,), (1399895324,), (1399895351,), (1399895353,), (1399895354,), (1399895357,), (1399895360,), (1399895371,), (1399895372,), (1399895373,), (1399895374,), (1399895377,), (1399895392,), (1399895393,), (1399895394,), (1399895395,), (1399895399,), (1399895410,), (1399895412,), (1399895414,), (1399895418,), (1399895422,), (1399895426,), (1399895449,), (1399895453,), (1399895457,), (1399895460,), (1399895462,), (1399895464,), (1399895477,), (1399895512,), (1399895513,), (1399895514,), (1399895515,), (1399895465,), (1399895466,), (1399895468,), (1399895473,), (1399895475,), (1399895522,), (1399895525,), (1399895528,), (1399895532,), (1399895534,), (1399895537,), (1399895538,), (1399895539,), (1399895540,), (1399895543,), (1399895564,), (1399895565,), (1399895566,), (1399895567,), (1399895569,), (1399895589,), (1399895591,), (1399895592,), (1399895594,), (1399895618,), (1399895620,), (1399895621,), (1399895622,), (1399895625,), (1399895628,), (1399895641,), (1399895642,), (1399895643,), (1399895667,), (1399895669,), (1399895671,), (1399895673,), (1399895676,), (1399895678,), (1399895689,), (1399895690,), (1399895691,), (1399895692,), (1399895717,), (1399895719,), (1399895721,), (1399895724,), (1399895727,), (1399895729,), (1399895735,), (1399895736,), (1399895737,), (1399895739,), (1399895744,), (1399895746,), (1399895748,), (1399895754,), (1399895757,), (1399895771,), (1399895774,), (1399895775,), (1399895796,), (1399895797,), (1399895798,), (1399895799,), (1399895802,), (1399895803,), (1399895831,), (1399895832,), (1399895833,), (1399895834,), (1399895837,), (1399895849,), (1399895850,), (1399895852,), (1399895853,), (1399895856,), (1399895883,), (1399895877,), (1399895878,), (1399895879,), (1399895880,), (1399895893,), (1399895895,), (1399895897,), (1399895901,), (1399895905,), (1399895922,), (1399895924,), (1399895926,), (1399895930,), (1399895934,), (1399895938,), (1399895951,), (1399895952,), (1399895953,), (1399895954,), (1399895957,), (1399895981,), (1399895982,), (1399895983,), (1399895986,), (1399895989,), (1399895990,), (1399895999,), (1399896002,), (1399896004,), (1399896006,), (1399896008,), (1399896055,), (1399896238,), (1399896229,), (1399896232,), (1399896235,), (1399896258,), (1399896260,), (1399896262,), (1399896456,), (1399896489,), (1399896957,), (1399896991,), (1399897024,), (1399897335,), (1399897819,), (1399897864,), (1399897865,), (1399897867,), (1399897868,), (1399897894,), (1399897892,), (1399897893,), (1399897906,), (1399897907,), (1399897925,), (1399897926,), (1399897927,), (1399897928,), (1399897930,), (1399897932,), (1399897950,), (1399897951,), (1399897952,), (1399897953,), (1399897955,), (1399897976,), (1399897978,), (1399897980,), (1399897982,), (1399897984,), (1399897985,), (1399897990,), (1399897993,), (1399897995,), (1399897997,), (1399897999,), (1399898002,), (1399898004,), (1399898009,), (1399898013,), (1399898024,), (1399898025,), (1399898026,), (1399898027,), (1399898043,), (1399898045,), (1399898046,), (1399898047,), (1399898050,), (1399898052,), (1399898075,), (1399898076,), (1399898077,), (1399898078,), (1399898090,), (1399898092,), (1399898094,), (1399898098,), (1399898102,), (1399898116,), (1399898117,), (1399898118,), (1399898119,), (1399898122,), (1399898125,), (1399898135,), (1399898136,), (1399898137,), (1399898138,), (1399898172,), (1399898181,), (1399898183,), (1399898184,), (1399898187,), (1399898189,), (1399898205,), (1399898206,), (1399898207,), (1399898208,), (1399898229,), (1399898231,), (1399898233,), (1399898235,), (1399898238,), (1399898240,), (1399898247,), (1399898249,), (1399898251,), (1399898253,), (1399898263,), (1399898256,), (1399898257,), (1399898260,), (1399898283,), (1399898284,), (1399898285,), (1399898286,), (1399898289,), (1399898304,), (1399898305,), (1399898306,), (1399898307,), (1399898322,), (1399898323,), (1399898324,), (1399898325,), (1399898342,), (1399898344,), (1399898346,), (1399898350,), (1399898354,), (1399898378,), (1399898386,), (1399898387,), (1399898388,), (1399898391,), (1399898405,), (1399898406,), (1399898407,), (1399898434,), (1399898436,), (1399898437,), (1399898438,), (1399898441,), (1399898443,), (1399898460,), (1399898461,), (1399898462,), (1399898463,), (1399898466,), (1399898469,), (1399898485,), (1399898486,), (1399898487,), (1399898490,), (1399898492,), (1399898494,), (1399898503,), (1399898506,), (1399898507,), (1399898508,), (1399898509,), (1399898510,), (1399898513,), (1399898516,), (1399898521,), (1399898534,), (1399898535,), (1399898536,), (1399898537,), (1399898540,), (1399898543,), (1399898561,), (1399898565,), (1399898566,), (1399898567,), (1399898585,), (1399898593,), (1399898601,), (1399898602,), (1399898605,), (1399898607,), (1399898620,), (1399898621,), (1399898622,), (1399898643,), (1399898637,), (1399898638,), (1399898639,), (1399898640,), (1399898654,), (1399898655,), (1399898656,), (1399898657,), (1399898673,), (1399898674,), (1399898675,), (1399898676,), (1399898677,), (1399898680,), (1399898693,), (1399898694,), (1399898695,), (1399898696,), (1399898699,), (1399898722,), (1399898723,), (1399898724,), (1399898726,), (1399898728,), (1399898731,), (1399898740,), (1399898743,), (1399898745,), (1399898751,), (1399898753,), (1399898756,), (1399898758,), (1399898760,), (1399898762,), (1399898783,), (1399898784,), (1399898785,), (1399898786,), (1399898809,), (1399898811,), (1399898813,), (1399898817,), (1399898821,), (1399898823,), (1399898845,), (1399898846,), (1399898847,), (1399898848,), (1399898851,), (1399898871,), (1399898872,), (1399898873,), (1399898874,), (1399898877,), (1399898880,), (1399898904,), (1399898905,), (1399898906,), (1399898907,), (1399898920,), (1399898922,), (1399898923,), (1399898949,), (1399899300,), (1399899302,), (1399899308,), (1399899310,), (1399899313,), (1399899314,), (1399899315,), (1399899660,), (1399899482,), (1399899519,), (1399899553,), (1399899593,), (1399900177,), (1399900218,), (1399900250,), (1399900284,), (1399900342,), (1399900673,), (1399900676,), (1399900677,), (1399900681,), (1399900716,), (1399900961,), (1399900972,), (1399900992,), (1399900997,), (1399901000,), (1399901002,), (1399901192,), (1399901221,), (1399901254,), (1399901285,), (1399901323,), (1399901713,), (1399901737,), (1399901738,), (1399901739,), (1399901742,), (1399901760,), (1399902076,), (1399902271,), (1399902321,), (1399902357,), (1399902768,), (1399902784,), (1399902785,), (1399903389,), (1399903411,), (1399903415,), (1399903416,), (1399903428,), (1399903445,), (1399903475,), (1399903513,), (1399903580,), (1399903622,), (1399903819,), (1399903838,), (1399903860,), (1399903867,), (1399903870,), (1399903880,), (1399903881,), (1399903883,), (1399903884,), (1399903887,), (1399903890,), (1399903925,), (1399903913,), (1399903914,), (1399903915,), (1399903916,), (1399903957,), (1399903958,), (1399903959,), (1399903960,), (1399903963,), (1399903965,), (1399903995,), (1399903996,), (1399903997,), (1399903998,), (1399904001,), (1399904012,), (1399904013,), (1399904014,), (1399904015,), (1399904017,), (1399904019,), (1399904326,), (1399904327,), (1399904331,), (1399904333,), (1399904365,), (1399904404,), (1399904477,), (1399904478,), (1399904482,), (1399904491,), (1399904492,), (1399904494,), (1399904496,), (1399904498,), (1399904504,), (1399904506,), (1399904510,), (1399904529,), (1399904531,), (1399904532,), (1399904534,), (1399904549,), (1399904550,), (1399904551,), (1399904552,), (1399904555,), (1399904560,), (1399904574,), (1399904577,), (1399904578,), (1399904579,), (1399904582,), (1399904608,), (1399904609,), (1399904613,), (1399904620,), (1399904652,), (1399904783,), (1399904784,), (1399904785,), (1399904790,), (1399904800,), (1399904821,), (1399904901,), (1399904912,), (1399904916,), (1399904917,), (1399904919,), (1399904979,), (1399904980,), (1399904981,), (1399904982,), (1399904985,), (1399904988,), (1399905000,), (1399905002,), (1399905004,), (1399905005,), (1399905030,), (1399905032,), (1399905033,), (1399905036,), (1399905039,), (1399905040,), (1399905048,), (1399905049,), (1399905050,), (1399905063,), (1399905051,), (1399905052,), (1399905055,), (1399905060,), (1399905077,), (1399905081,), (1399905082,), (1399905096,), (1399905097,), (1399905098,), (1399905099,), (1399905102,), (1399905105,), (1399905119,), (1399905121,), (1399905129,), (1399905138,), (1399905161,), (1399905163,), (1399905184,), (1399905222,), (1399905268,), (1399905369,), (1399905371,), (1399905372,), (1399905513,), (1399905514,), (1399905515,), (1399905516,), (1399905519,), (1399905547,), (1399905548,), (1399905549,), (1399905550,), (1399905569,), (1399905570,), (1399905601,), (1399905602,), (1399905603,), (1399905605,), (1399905607,), (1399905632,), (1399905633,), (1399905662,), (1399905664,), (1399905666,), (1399905670,), (1399905673,), (1399905684,), (1399905685,), (1399905686,), (1399905689,), (1399905692,), (1399905695,), (1399905703,), (1399905704,), (1399905705,), (1399905706,), (1399905707,), (1399905710,), (1399905712,), (1399905714,), (1399905726,), (1399905728,), (1399905730,), (1399905734,), (1399905753,), (1399905747,), (1399905748,), (1399905749,), (1399905750,), (1399905779,), (1399905780,), (1399905781,), (1399905782,), (1399905785,), (1399905815,), (1399905850,), (1399905852,), (1399905872,), (1399905873,), (1399905874,), (1399905877,), (1399905880,), (1399905889,), (1399905890,), (1399905893,), (1399905896,), (1399905899,), (1399905906,), (1399905915,), (1399905916,), (1399905941,), (1399905944,), (1399905959,), (1399905967,), (1399906017,), (1399906018,), (1399906019,), (1399906020,), (1399906023,), (1399906332,), (1399906582,), (1399906584,), (1399906586,), (1399906715,), (1399906716,), (1399906718,), (1399906734,), (1399906745,), (1399906757,), (1399906768,), (1399906770,), (1399906772,), (1399906777,), (1399906781,), (1399906784,), (1399906804,), (1399906805,), (1399906806,), (1399906807,), (1399906824,), (1399906828,), (1399906830,), (1399906831,), (1399906834,), (1399906836,), (1399906854,), (1399906897,), (1399906939,), (1399906995,), (1399906845,), (1399906848,), (1399906850,), (1399906852,), (1399906853,), (1399907270,), (1399907335,), (1399907404,), (1399907467,), (1399907530,), (1399907597,), (1399908130,), (1399908192,), (1399908624,), (1399908656,), (1399908691,), (1399908728,), (1399908962,), (1399908994,), (1399909026,), (1399909058,), (1399909093,), (1399909309,), (1399909349,), (1399909356,), (1399909375,), (1399909400,), (1399909462,), (1399909464,), (1399909466,), (1399909486,), (1399909487,), (1399909488,), (1399909489,), (1399909491,), (1399909493,), (1399909520,), (1399909527,), (1399909529,), (1399909534,), (1399909536,), (1399909538,), (1399909564,), (1399909565,), (1399909566,), (1399909567,), (1399909569,), (1399909588,), (1399909593,), (1399909597,), (1399909600,), (1399909633,), (1399909667,), (1399909697,), (1399909713,), (1399909714,), (1399909743,), (1399909746,), (1399909748,), (1399909749,), (1399909752,), (1399909754,), (1399909770,), (1399909772,), (1399909773,), (1399909774,), (1399909814,), (1399909843,), (1399909871,), (1399909886,), (1399909983,), (1399909991,), (1399909993,), (1399909996,), (1399910000,), (1399910004,), (1399910028,), (1399910022,), (1399910023,), (1399910024,), (1399910025,), (1399910046,), (1399910047,), (1399910059,), (1399910060,), (1399910063,), (1399910066,), (1399910412,), (1399910446,), (1399910472,), (1399910474,), (1399910477,), (1399910480,), (1399910555,), (1399910589,), (1399910628,), (1399910815,), (1399910817,), (1399910818,), (1399910820,), (1399910822,), (1399910823,), (1399910831,), (1399910840,), (1399910847,), (1399910906,), (1399910907,), (1399910910,), (1399910922,), (1399910943,), (1399910985,), (1399910993,), (1399910994,), (1399910995,), (1399911007,), (1399911009,), (1399911010,), (1399911011,), (1399911013,), (1399911015,), (1399911036,), (1399911037,), (1399911038,), (1399911053,), (1399911054,), (1399911055,), (1399911056,), (1399911059,), (1399911061,), (1399911084,), (1399911086,), (1399911088,), (1399911090,), (1399911093,), (1399911094,), (1399911110,), (1399911113,), (1399911115,), (1399911143,), (1399911144,), (1399911145,), (1399911146,), (1399911149,), (1399911152,), (1399911164,), (1399911166,), (1399911168,), (1399911170,), (1399911199,), (1399911201,), (1399911202,), (1399911205,), (1399911208,), (1399911210,), (1399911223,), (1399911224,), (1399911227,), (1399911230,), (1399911266,), (1399911249,), (1399911252,), (1399911254,), (1399911256,), (1399911262,), (1399911271,), (1399911273,), (1399911274,), (1399911275,), (1399911285,), (1399911287,), (1399911289,), (1399911291,), (1399911294,), (1399911320,), (1399911322,), (1399911323,), (1399911324,), (1399911326,), (1399911328,), (1399911347,), (1399911348,), (1399911349,), (1399911391,), (1399911394,), (1399911395,), (1399911396,), (1399911399,), (1399911402,), (1399911423,), (1399911425,), (1399911427,), (1399911429,), (1399911484,), (1399911495,), (1399911505,), (1399911507,), (1399911510,), (1399911513,), (1399911535,), (1399911537,), (1399911539,), (1399911543,), (1399911547,), (1399911777,), (1399911780,), (1399911784,), (1399911824,), (1399911827,), (1399911832,), (1399911857,), (1399911867,), (1399911925,), (1399911928,), (1399911948,), (1399911949,), (1399911966,), (1399911968,), (1399911970,), (1399911972,), (1399911975,), (1399911977,), (1399912000,), (1399912003,), (1399912004,), (1399912005,), (1399912020,), (1399912021,), (1399912022,), (1399912024,), (1399912112,), (1399912103,), (1399912105,), (1399912107,), (1399912109,), (1399912135,), (1399912138,), (1399912140,), (1399912238,), (1399912240,), (1399912291,), (1399912292,), (1399912293,), (1399912294,), (1399912296,), (1399912315,), (1399912316,), (1399912317,), (1399912318,), (1399912321,), (1399912347,), (1399912349,), (1399912351,), (1399912353,), (1399912378,), (1399912379,), (1399912380,), (1399912381,), (1399912396,), (1399912397,), (1399912398,), (1399912401,), (1399912404,), (1399912406,), (1399912451,), (1399912487,), (1399912518,), (1399912551,), (1399912617,), (1399912642,), (1399912676,), (1399912685,), (1399912813,), (1399912815,), (1399912817,), (1399912819,), (1399912822,), (1399912825,), (1399912976,), (1399912981,), (1399912984,), (1399912989,), (1399913019,), (1399918101,), (1399918159,), (1399918323,), (1399918359,), (1399918372,), (1399918471,), (1399918472,), (1399918473,), (1399918474,), (1399918477,), (1399918480,), (1399918517,), (1399918519,), (1399918521,), (1399918523,), (1399918526,), (1399918613,), (1399918643,), (1399918656,), (1399918664,), (1399918686,), (1399918750,), (1399918752,), (1399918754,), (1399918756,), (1399918759,), (1399918850,), (1399918933,), (1399918972,), (1399918979,), (1399919004,), (1399919146,), (1399919147,), (1399919148,), (1399919151,), (1399919159,), (1399919166,), (1399919177,), (1399919178,), (1399919181,), (1399919183,), (1399919220,), (1399919221,), (1399919222,), (1399919225,), (1399919228,), (1399919231,), (1399919265,), (1399919270,), (1399919281,), (1399919323,), (1399919488,), (1399919524,), (1399919557,), (1399919591,), (1399919970,), (1399920163,), (1399920196,), (1399920232,), (1399920244,), (1399920246,), (1399920559,), (1399920654,), (1399920729,), (1399920788,), (1399921197,), (1399921235,), (1399921252,), (1399921259,), (1399921262,), (1399921622,), (1399921666,), (1399921751,), (1399921818,), (1399921891,), (1399922160,), (1399922178,), (1399922213,), (1399922391,), (1399922392,), (1399922395,), (1399922149,), (1399922155,), (1399922157,), (1399922643,), (1399922679,), (1399922713,), (1399922748,), (1399922815,), (1399922865,), (1399922977,), (1399922978,), (1399922979,), (1399922980,), (1399923039,), (1399923040,), (1399923041,), (1399923042,), (1399923045,), (1399923048,), (1399923178,), (1399923189,), (1399923190,), (1399923214,), (1399923230,), (1399923237,), (1399923273,), (1399923275,), (1399923277,), (1399923279,), (1399923306,), (1399923449,), (1399923485,), (1399923517,), (1399923556,), (1399923573,), (1399923576,), (1399923579,), (1399923580,), (1399923582,), (1399923584,), (1399923903,), (1399923907,), (1399923908,), (1399923909,), (1399923919,), (1399924310,), (1399924322,), (1399924324,), (1399924326,), (1399924329,), (1399924344,), (1399924492,), (1399924497,), (1399924531,), (1399924569,), (1399924699,), (1399924727,), (1399924777,), (1399924779,), (1399924780,), (1399924781,), (1399924782,), (1399924784,), (1399924786,), (1399924789,), (1399924790,), (1399924794,), (1399924810,), (1399924811,), (1399924812,), (1399924816,), (1399924825,), (1399924828,), (1399924829,), (1399924830,), (1399924831,), (1399925317,), (1399925321,), (1399925341,), (1399925380,), (1399925415,), (1399925454,), (1399925732,), (1399925768,), (1399925801,), (1399926031,), (1399925854,), (1399925934,), (1399926025,), (1399926449,), (1399926450,), (1399926452,), (1399926454,), (1399926458,), (1399926462,), (1399926476,), (1399926479,), (1399926481,), (1399926484,), (1399926951,), (1399927064,), (1399927122,), (1399927155,), (1399927189,), (1399927226,), (1399927665,), (1399927667,), (1399927670,), (1399927707,), (1399927801,), (1399928261,), (1399928285,), (1399928327,), (1399928361,), (1399928373,), (1399928395,), (1399928531,), (1399928532,), (1399928569,), (1399928572,), (1399928607,), (1399928615,), (1399928618,), (1399928620,), (1399928622,), (1399928624,), (1399928635,), (1399928636,), (1399928642,), (1399928643,), (1399928645,), (1399928669,), (1399928671,), (1399928673,), (1399928675,), (1399928678,), (1399928701,), (1399928703,), (1399928705,), (1399928708,), (1399928711,), (1399928714,), (1399928811,), (1399928845,), (1399928877,), (1399928909,), (1399929047,), (1399929078,), (1399929112,), (1399929146,), (1399929175,), (1399929213,), (1399929394,), (1399929427,), (1399929434,), (1399929435,), (1399929439,), (1399929486,), (1399929492,), (1399929525,), (1399929564,), (1399929620,), (1399929892,), (1399929895,), (1399929925,), (1399929945,), (1399929961,), (1399929993,), (1399930349,), (1399930386,), (1399930457,), (1399930587,), (1399931503,), (1399931626,), (1399931639,), (1399931697,), (1399931731,), (1399931360,), (1399931451,), (1399931486,), (1399931499,), (1399931501,), (1399932088,), (1399932122,), (1399932175,), (1399932227,), (1399932881,), (1399933029,), (1399933126,), (1399933187,), (1399933257,), (1399933325,), (1399933736,), (1399933792,), (1399933824,), (1399933856,), (1399934104,), (1399934107,), (1399934148,), (1399934196,), (1399934235,), (1399934299,), (1399934377,), (1399934412,), (1399934421,), (1399934424,), (1399934477,), (1399934479,), (1399934481,), (1399934687,), (1399934688,), (1399934689,), (1399934690,), (1399934693,), (1399934785,), (1399934803,), (1399934805,), (1399934832,), (1399934838,), (1399934898,), (1399934900,), (1399934902,), (1399934904,), (1399934907,), (1399934928,), (1399934929,), (1399934931,), (1399934932,), (1399934936,), (1399934962,), (1399934963,), (1399934964,), (1399934967,), (1399934970,), (1399934973,), (1399935087,), (1399935114,), (1399935117,), (1399935123,), (1399935154,), (1399935312,), (1399935350,), (1399935384,), (1399935418,), (1399935539,), (1399935610,), (1399935646,), (1399935666,), (1399935669,), (1399935672,), (1399935775,), (1399935777,), (1399935779,), (1399935781,), (1399936175,), (1399936180,), (1399936215,), (1399936224,), (1399936227,), (1399936231,), (1399936308,), (1399936309,), (1399936310,), (1399936312,), (1399936409,), (1399936317,), (1399936320,), (1399936322,), (1399936332,), (1399936585,), (1399936588,), (1399936611,), (1399936621,), (1399936700,), (1399936702,), (1399936704,), (1399936706,), (1399936709,), (1399936730,), (1399936731,), (1399936732,), (1399936733,), (1399936759,), (1399936772,), (1399936775,), (1399936778,), (1399936781,), (1399936783,), (1399936803,), (1399936804,), (1399936805,), (1399936808,), (1399936811,), (1399936814,), (1399936835,), (1399936836,), (1399936837,), (1399936845,), (1399936978,), (1399937034,), (1399937036,), (1399937038,), (1399937059,), (1399937113,), (1399937410,), (1399937452,), (1399937488,), (1399937524,), (1399937813,), (1399937815,), (1399937820,), (1399937853,), (1399937887,), (1399938120,), (1399938121,), (1399938122,), (1399938126,), (1399938164,), (1399938198,), (1399938321,), (1399938335,), (1399938336,), (1399938378,), (1399938411,), (1399938648,), (1399938649,), (1399939173,), (1399939287,), (1399939305,), (1399939563,), (1399939653,), (1399939727,), (1399939755,), (1399939759,), (1399939768,), (1399940075,), (1399940107,), (1399940162,), (1399940166,), (1399940440,), (1399940333,), (1399940334,), (1399940335,), (1399940336,), (1399940364,), (1399940539,), (1399940542,), (1399940544,), (1399940584,), (1399940585,), (1399940586,), (1399940588,), (1399940627,), (1399940666,), (1399940924,), (1399940926,), (1399940931,), (1399940933,), (1399941236,), (1399941257,), (1399941285,), (1399941288,), (1399941305,), (1399941323,), (1399941458,), (1399941459,), (1399941460,), (1399941462,), (1399941533,), (1399941608,), (1399941675,), (1399941720,), (1399941752,), (1399941976,), (1399941978,), (1399941980,), (1399942014,), (1399942017,), (1399942027,), (1399942057,), (1399942058,), (1399942059,), (1399942060,), (1399942232,), (1399942239,), (1399942241,), (1399942243,), (1399942246,), (1399942248,), (1399942543,), (1399942576,), (1399942612,), (1399942645,), (1399943017,), (1399943030,), (1399943067,), (1399943111,), (1399943133,), (1399943150,), (1399943272,), (1399943303,), (1399943326,), (1399943328,), (1399943331,), (1399943340,), (1399943378,), (1399943411,), (1399943444,), (1399943510,), (1399943512,), (1399943514,), (1399943516,), (1399943520,), (1399943522,), (1399943712,), (1399943715,), (1399943718,), (1399943744,), (1399943741,), (1399943743,), (1399944271,), (1399944329,), (1399944404,), (1399944466,), (1399944548,), (1399944600,), (1399944997,), (1399945029,), (1399945063,), (1399945087,), (1399945126,), (1399945127,), (1399945128,), (1399945129,), (1399945132,), (1399945166,), (1399945465,), (1399945474,), (1399945499,), (1399945536,), (1399945586,), (1399945740,), (1399945743,), (1399945745,), (1399945749,), (1399945752,), (1399945754,), (1399945768,), (1399945771,), (1399945773,), (1399945796,), (1399945894,), (1399946015,), (1399946017,), (1399946036,), (1399946092,), (1399946174,), (1399946208,), (1399946226,), (1399946228,), (1399946255,), (1399946260,), (1399946297,), (1399946298,), (1399946299,), (1399946300,), (1399946471,), (1399946503,), (1399946536,), (1399946569,), (1399946609,), (1399946666,), (1399946701,), (1399946702,), (1399946704,), (1399946706,), (1399946745,), (1399946791,), (1399946850,), (1399946884,), (1399946918,), (1399946944,), (1399946945,), (1399946946,), (1399946947,), (1399947328,), (1399947329,), (1399947365,), (1399947395,), (1399947613,), (1399947629,), (1399947633,), (1399947656,), (1399947659,), (1399947662,), (1399947693,), (1399947700,), (1399947701,), (1399947702,), (1399947908,), (1399947910,), (1399948014,), (1399948037,), (1399948076,), (1399947889,), (1399947891,), (1399947892,), (1399947898,), (1399948163,), (1399948187,), (1399948210,), (1399948214,), (1399948215,), (1399948218,), (1399948225,), (1399948234,), (1399948239,), (1399948241,), (1399948244,), (1399948258,), (1399948259,), (1399948261,), (1399948263,), (1399948266,), (1399948368,), (1399948401,), (1399948435,), (1399948467,), (1399948493,), (1399948495,), (1399948502,), (1399948504,), (1399948506,), (1399948608,), (1399948644,), (1399948677,), (1399948713,), (1399948752,), (1399948785,), (1399948872,), (1399948874,), (1399948876,), (1399948903,), (1399948910,), (1399948922,), (1399948926,), (1399948981,), (1399948986,), (1399948989,), (1399948991,), (1399949013,), (1399949015,), (1399949049,), (1399949051,), (1399949055,), (1399949057,), (1399949059,), (1399949061,), (1399949069,), (1399949073,), (1399949074,), (1399949075,), (1399949076,), (1399949129,), (1399949131,), (1399949134,), (1399949136,), (1399949139,), (1399949153,), (1399949154,), (1399949155,), (1399949156,), (1399949159,), (1399949162,), (1399949187,), (1399949188,), (1399949190,), (1399949193,), (1399949197,), (1399949198,), (1399949257,), (1399949260,), (1399949264,), (1399949265,), (1399949269,), (1399949270,), (1399949273,), (1399949274,), (1399949276,), (1399949277,), (1399949250,), (1399949251,), (1399949295,), (1399949296,), (1399949297,), (1399949299,), (1399949301,), (1399949320,), (1399949321,), (1399949322,), (1399949323,), (1399949326,), (1399949344,), (1399949346,), (1399949348,), (1399949350,), (1399949371,), (1399949373,), (1399949375,), (1399949379,), (1399949383,), (1399949407,), (1399949410,), (1399949413,), (1399949418,), (1399949432,), (1399949446,), (1399949462,), (1399949463,), (1399949464,), (1399949465,), (1399949485,), (1399949487,), (1399949488,), (1399949490,), (1399949493,), (1399949514,), (1399949515,), (1399949517,), (1399949519,), (1399949522,), (1399949557,), (1399949558,), (1399949559,), (1399949562,), (1399949565,), (1399949567,), (1399949578,), (1399949579,), (1399949581,), (1399949583,), (1399949586,), (1399949587,), (1399949590,), (1399949593,), (1399949596,), (1399949611,), (1399949613,), (1399949615,), (1399949617,), (1399949619,), (1399949622,), (1399949640,), (1399949643,), (1399949644,), (1399949646,), (1399949674,), (1399949675,), (1399949676,), (1399949677,), (1399949680,), (1399949704,), (1399949706,), (1399949724,), (1399949726,), (1399949729,), (1399949776,), (1399949779,), (1399949782,), (1399949791,), (1399949792,), (1399949793,), (1399949771,), (1399949772,), (1399949773,), (1399949799,), (1399949802,), (1399949806,), (1399949809,), (1399949812,), (1399949815,), (1399949851,), (1399949858,), (1399949867,), (1399949868,), (1399949870,), (1399949886,), (1399949887,), (1399949888,), (1399949889,), (1399949892,), (1399949895,), (1399949907,), (1399949909,), (1399949911,), (1399949914,), (1399949917,), (1399949919,), (1399949927,), (1399949928,), (1399949930,), (1399949933,), (1399949942,), (1399949943,), (1399949946,), (1399949949,), (1399949952,), (1399949960,), (1399949973,), (1399949975,), (1399949978,), (1399949981,), (1399949984,), (1399949988,), (1399950003,), (1399950005,), (1399950007,), (1399950045,), (1399950047,), (1399950049,), (1399950051,), (1399950054,), (1399950080,), (1399950081,), (1399950082,), (1399950083,), (1399950111,), (1399950112,), (1399950116,), (1399950127,), (1399950136,), (1399950139,), (1399950148,), (1399950149,), (1399950152,), (1399950153,), (1399950155,), (1399950157,), (1399950160,), (1399950187,), (1399950195,), (1399950206,), (1399950236,), (1399950239,), (1399950242,), (1399950246,), (1399950278,), (1399950269,), (1399950271,), (1399950273,), (1399950275,), (1399950288,), (1399950291,), (1399950294,), (1399950297,), (1399950300,), (1399950302,), (1399950325,), (1399950327,), (1399950329,), (1399950332,), (1399950361,), (1399950364,), (1399950367,), (1399950375,), (1399950379,), (1399950412,), (1399950413,), (1399950415,), (1399950420,), (1399950465,), (1399950466,), (1399950477,), (1399950480,), (1399950521,), (1399950524,), (1399950525,), (1399950526,), (1399950528,), (1399950530,), (1399950589,), (1399950590,), (1399950599,), (1399950656,), (1399950657,), (1399950659,), (1399950661,), (1399950664,), (1399950667,), (1399950704,), (1399950705,), (1399950707,), (1399950710,), (1399950713,), (1399950715,), (1399950740,), (1399950741,), (1399950743,), (1399950745,), (1399950748,), (1399950750,), (1399950763,), (1399950765,), (1399950785,), (1399950923,), (1399950926,), (1399952368,), (1399952399,), (1399952402,), (1399952404,), (1399952420,), (1399952446,), (1399952448,), (1399952450,), (1399952533,), (1399965798,), (1399965921,), (1399965898,), (1399965900,), (1399966049,), (1399966055,), (1399966056,), (1399966302,), (1399966333,), (1399966400,), (1399966402,), (1399966404,), (1399966422,), (1399966425,), (1399966446,), (1399966447,), (1399966449,), (1399966450,), (1399966452,), (1399966454,), (1399966498,), (1399966492,), (1399966494,), (1399966496,), (1399966515,), (1399966516,), (1399966517,), (1399966518,), (1399966545,), (1399966547,), (1399966549,), (1399966551,), (1399966571,), (1399966573,), (1399966575,), (1399966579,), (1399966583,), (1399966609,), (1399966611,), (1399966615,), (1399966619,), (1399966621,), (1399966624,), (1399966633,), (1399966635,), (1399966639,), (1399966643,), (1399966647,), (1399966651,), (1399966655,), (1399966670,), (1399966672,), (1399966674,), (1399966676,), (1399966693,), (1399966694,), (1399966728,), (1399966730,), (1399966732,), (1399966734,), (1399966766,), (1399966768,), (1399966770,), (1399966797,), (1399966798,), (1399966801,), (1399966804,), (1399966806,), (1399966808,), (1399966816,), (1399966824,), (1399966826,), (1399966828,), (1399966829,), (1399966832,), (1399966874,), (1399966877,), (1399966880,), (1399966882,), (1399966884,), (1399966886,), (1399967237,), (1399967275,), (1399967310,), (1399967348,), (1399967386,), (1399967421,), (1399967506,), (1399967512,), (1399967531,), (1399967533,), (1399967866,), (1399967571,), (1399967606,), (1399967671,), (1399967740,), (1399967806,), (1399968195,), (1399968236,), (1399968268,), (1399968298,), (1399968422,), (1399968424,), (1399968426,), (1399968428,), (1399968430,), (1399968431,), (1399968736,), (1399968801,), (1399968868,), (1399968929,), (1399968992,), (1399969481,), (1399969524,), (1399969541,), (1399969544,), (1399969754,), (1399969775,), (1399969803,), (1399969806,), (1399969839,), (1399969846,), (1399969866,), (1399969867,), (1399969871,), (1399969872,), (1399969874,), (1399969877,), (1399969880,), (1399969882,), (1399969992,), (1399970008,), (1399970021,), (1399970050,), (1399970052,), (1399970081,), (1399970083,), (1399970085,), (1399970087,), (1399970121,), (1399970156,), (1399970653,), (1399970690,), (1399970725,), (1399970761,), (1399970800,), (1399970848,), (1399970980,), (1399970999,), (1399971002,), (1399971037,), (1399971116,), (1399971149,), (1399971158,), (1399971161,), (1399971164,), (1399971167,), (1399971489,), (1399971533,), (1399971577,), (1399971613,), (1399971926,), (1399971928,), (1399971935,), (1399971936,), (1399971939,), (1399971990,), (1399971996,), (1399971998,), (1399972001,), (1399972004,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'18122025': {'nb_upload': 79, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29544201]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1399972004, 1399972001, 1399971998, 1399971996, 1399971990, 1399971939, 1399971936, 1399971935, 1399971928, 1399971926] map_info['map_portfolio_photo'] : {29544201: [1399972004, 1399972001, 1399971998, 1399971996, 1399971990, 1399971939, 1399971936, 1399971935, 1399971928, 1399971926, 1399971613, 1399971577, 1399971533, 1399971489, 1399971167, 1399971164, 1399971161, 1399971158, 1399971149, 1399971116, 1399971037, 1399971002, 1399970999, 1399970980, 1399970848, 1399970800, 1399970761, 1399970725, 1399970690, 1399970653, 1399970156, 1399970121, 1399970087, 1399970085, 1399970083, 1399970081, 1399970052, 1399970050, 1399970021, 1399970008, 1399969992, 1399969882, 1399969880, 1399969877, 1399969874, 1399969872, 1399969871, 1399969867, 1399969866, 1399969846, 1399969839, 1399969806, 1399969803, 1399969775, 1399969754, 1399969544, 1399969541, 1399969524, 1399969481, 1399968992, 1399968929, 1399968868, 1399968801, 1399968736, 1399968431, 1399968430, 1399968428, 1399968426, 1399968424, 1399968422, 1399968298, 1399968268, 1399968236, 1399968195, 1399967806, 1399967740, 1399967671, 1399967606, 1399967571]} final : True mtd_id 4302 list_pids : [1399972004, 1399972001, 1399971998, 1399971996, 1399971990, 1399971939, 1399971936, 1399971935, 1399971928, 1399971926] Looping around the photos to save general results len do output : 1 /29544201Didn'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, '4246264') ('4302', '29544201', '1399972004', None, None, None, None, None, '4246264') ('4302', None, None, None, None, None, None, None, '4246264') ('4302', '29544201', '1399972001', None, None, None, None, None, '4246264') ('4302', None, None, None, None, None, None, None, '4246264') ('4302', '29544201', '1399971998', None, None, None, None, None, '4246264') ('4302', None, None, None, None, None, None, None, '4246264') ('4302', '29544201', '1399971996', None, None, None, None, None, '4246264') ('4302', None, None, None, None, None, None, None, '4246264') ('4302', '29544201', '1399971990', None, None, None, None, None, '4246264') ('4302', None, None, None, None, None, None, None, '4246264') ('4302', '29544201', '1399971939', None, None, None, None, None, '4246264') ('4302', None, None, None, None, None, None, None, '4246264') ('4302', '29544201', '1399971936', None, None, None, None, None, '4246264') ('4302', None, None, None, None, None, None, None, '4246264') ('4302', '29544201', '1399971935', None, None, None, None, None, '4246264') ('4302', None, None, None, None, None, None, None, '4246264') ('4302', '29544201', '1399971928', None, None, None, None, None, '4246264') ('4302', None, None, None, None, None, None, None, '4246264') ('4302', '29544201', '1399971926', None, None, None, None, None, '4246264') 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, '29544201', 'None', None, None, None, None, '4246264'), ('4302', '29544201', '1399972004', None, None, None, None, None, '4246264'), ('4302', '29544201', '1399972001', None, None, None, None, None, '4246264'), ('4302', '29544201', '1399971998', None, None, None, None, None, '4246264'), ('4302', '29544201', '1399971996', None, None, None, None, None, '4246264'), ('4302', '29544201', '1399971990', None, None, None, None, None, '4246264'), ('4302', '29544201', '1399971939', None, None, None, None, None, '4246264'), ('4302', '29544201', '1399971936', None, None, None, None, None, '4246264'), ('4302', '29544201', '1399971935', None, None, None, None, None, '4246264'), ('4302', '29544201', '1399971928', None, None, None, None, None, '4246264'), ('4302', '29544201', '1399971926', None, None, None, None, None, '4246264')] time used for this insertion : 0.018762826919555664 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.5334339141845703 time spend to save output : 0.019072771072387695 total time spend for step 5 : 3.552506685256958 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 (4246264) 2.33user 2.53system 0:14.01elapsed 34%CPU (0avgtext+0avgdata 166876maxresident)k 336inputs+18736outputs (3major+78855minor)pagefaults 0swaps