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 : 3392984 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 (4289248) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (4289248) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29810418 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['4289248'] with mtr_portfolio_ids : ['29810418'] and first list_photo_ids : [] new path : /proc/3392984/ Name: python3 Umask: 0002 State: R (running) Tgid: 3392984 Ngid: 0 Pid: 3392984 PPid: 3392983 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 3392984 NSpid: 3392984 NSpgid: 3391296 NSsid: 3391296 VmPeak: 1113368 kB VmSize: 1113368 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 104308 kB VmRSS: 104308 kB RssAnon: 66304 kB RssFile: 38004 kB RssShmem: 0 kB VmData: 872096 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130476 kB VmPTE: 624 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: 48 nonvoluntary_ctxt_switches: 87 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '3392984', 'Ngid': '0', 'Pid': '3392984', 'PPid': '3392983', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '3392984', 'NSpid': '3392984', 'NSpgid': '3391296', 'NSsid': '3391296', 'VmPeak': '1113368 kB', 'VmSize': '1113368 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '104308 kB', 'VmRSS': '104308 kB', 'RssAnon': '66304 kB', 'RssFile': '38004 kB', 'RssShmem': '0 kB', 'VmData': '872096 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130476 kB', 'VmPTE': '624 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': '48', 'nonvoluntary_ctxt_switches': '87'} ('datou_batch_current', '3392984', '1113368', '0', '1113368', '872096', '104308', b'', 'marlene', '4289248') 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 (29810418) 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 (4289248 ) ) 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 (29810418) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1401696586, 'portfolio_id': 29810418}, {'photo_id': 1401696584, 'portfolio_id': 29810418}, {'photo_id': 1401696581, 'portfolio_id': 29810418}, {'photo_id': 1401696561, 'portfolio_id': 29810418}, {'photo_id': 1401696558, 'portfolio_id': 29810418}, {'photo_id': 1401696555, 'portfolio_id': 29810418}, {'photo_id': 1401696550, 'portfolio_id': 29810418}, {'photo_id': 1401696546, 'portfolio_id': 29810418}, {'photo_id': 1401696542, 'portfolio_id': 29810418}, {'photo_id': 1401696374, 'portfolio_id': 29810418}, {'photo_id': 1401696337, 'portfolio_id': 29810418}, {'photo_id': 1401696301, 'portfolio_id': 29810418}, {'photo_id': 1401696265, 'portfolio_id': 29810418}, {'photo_id': 1401696230, 'portfolio_id': 29810418}, {'photo_id': 1401696226, 'portfolio_id': 29810418}, {'photo_id': 1401696190, 'portfolio_id': 29810418}, {'photo_id': 1401696187, 'portfolio_id': 29810418}, {'photo_id': 1401696183, 'portfolio_id': 29810418}, {'photo_id': 1401696181, 'portfolio_id': 29810418}, {'photo_id': 1401696180, 'portfolio_id': 29810418}, {'photo_id': 1401696177, 'portfolio_id': 29810418}, {'photo_id': 1401696155, 'portfolio_id': 29810418}, {'photo_id': 1401696151, 'portfolio_id': 29810418}, {'photo_id': 1401696148, 'portfolio_id': 29810418}, {'photo_id': 1401696145, 'portfolio_id': 29810418}, {'photo_id': 1401696118, 'portfolio_id': 29810418}, {'photo_id': 1401696113, 'portfolio_id': 29810418}, {'photo_id': 1401696110, 'portfolio_id': 29810418}, {'photo_id': 1401696108, 'portfolio_id': 29810418}, {'photo_id': 1401696106, 'portfolio_id': 29810418}, {'photo_id': 1401696084, 'portfolio_id': 29810418}, {'photo_id': 1401696079, 'portfolio_id': 29810418}, {'photo_id': 1401696075, 'portfolio_id': 29810418}, {'photo_id': 1401696073, 'portfolio_id': 29810418}, {'photo_id': 1401696072, 'portfolio_id': 29810418}, {'photo_id': 1401696047, 'portfolio_id': 29810418}, {'photo_id': 1401696043, 'portfolio_id': 29810418}, {'photo_id': 1401696041, 'portfolio_id': 29810418}, {'photo_id': 1401696040, 'portfolio_id': 29810418}, {'photo_id': 1401696039, 'portfolio_id': 29810418}, {'photo_id': 1401695967, 'portfolio_id': 29810418}, {'photo_id': 1401695919, 'portfolio_id': 29810418}, {'photo_id': 1401695889, 'portfolio_id': 29810418}, {'photo_id': 1401695885, 'portfolio_id': 29810418}, {'photo_id': 1401695882, 'portfolio_id': 29810418}] map_portfolio_id_photo_id: {29810418: [1401696586, 1401696584, 1401696581, 1401696561, 1401696558, 1401696555, 1401696550, 1401696546, 1401696542, 1401696374, 1401696337, 1401696301, 1401696265, 1401696230, 1401696226, 1401696190, 1401696187, 1401696183, 1401696181, 1401696180, 1401696177, 1401696155, 1401696151, 1401696148, 1401696145, 1401696118, 1401696113, 1401696110, 1401696108, 1401696106, 1401696084, 1401696079, 1401696075, 1401696073, 1401696072, 1401696047, 1401696043, 1401696041, 1401696040, 1401696039, 1401695967, 1401695919, 1401695889, 1401695885, 1401695882]} ##### 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.018428802490234375 #### 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 Tue Dec 30 15:54: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 (29810418) 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 : 29810418 get user id for portfolio 29810418 get sub ptf for main ptf 29810418, type 3726 and hashtags ['Teint_Dans_La_Masse', 'flou', 'kraft', 'papier', 'Carton_brun', 'metal', 'mal_croppe', 'cartonnette', 'plastique', 'autre_refus', 'environnement', 'Carton_gris'] 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`=29810418 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','flou','kraft','papier','Carton_brun','metal','mal_croppe','cartonnette','plastique','autre_refus','environnement','Carton_gris')) 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`=29810418 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','flou','kraft','papier','Carton_brun','metal','mal_croppe','cartonnette','plastique','autre_refus','environnement','Carton_gris')) AND mptpi.`min_score`=0.5 To do returned map {'metal': {'main_port_id': 29810418, 'sub_port_id': 29810452, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20384005, 'last_updated_at': datetime.datetime(2025, 12, 30, 15, 52, 58), 'last_updated_at_desc': datetime.datetime(2025, 12, 30, 15, 52, 58), 'last_updated_at_asc': datetime.datetime(2025, 12, 30, 15, 49, 28)}, 'flou': {'main_port_id': 29810418, 'sub_port_id': 29810453, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20384006, 'last_updated_at': datetime.datetime(2025, 12, 30, 15, 52, 58), 'last_updated_at_desc': datetime.datetime(2025, 12, 30, 15, 52, 58), 'last_updated_at_asc': datetime.datetime(2025, 12, 30, 15, 49, 28)}, 'autre_refus': {'main_port_id': 29810418, 'sub_port_id': 29810454, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20384007, 'last_updated_at': datetime.datetime(2025, 12, 30, 15, 52, 58), 'last_updated_at_desc': datetime.datetime(2025, 12, 30, 15, 52, 58), 'last_updated_at_asc': datetime.datetime(2025, 12, 30, 15, 49, 28)}, 'environnement': {'main_port_id': 29810418, 'sub_port_id': 29810455, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20384008, 'last_updated_at': datetime.datetime(2025, 12, 30, 15, 52, 58), 'last_updated_at_desc': datetime.datetime(2025, 12, 30, 15, 52, 58), 'last_updated_at_asc': datetime.datetime(2025, 12, 30, 15, 49, 28)}, 'Teint_Dans_La_Masse': {'main_port_id': 29810418, 'sub_port_id': 29810456, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20384009, 'last_updated_at': datetime.datetime(2025, 12, 30, 15, 52, 58), 'last_updated_at_desc': datetime.datetime(2025, 12, 30, 15, 52, 58), 'last_updated_at_asc': datetime.datetime(2025, 12, 30, 15, 49, 28)}, 'kraft': {'main_port_id': 29810418, 'sub_port_id': 29810457, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20384010, 'last_updated_at': datetime.datetime(2025, 12, 30, 15, 52, 58), 'last_updated_at_desc': datetime.datetime(2025, 12, 30, 15, 52, 58), 'last_updated_at_asc': datetime.datetime(2025, 12, 30, 15, 49, 28)}, 'mal_croppe': {'main_port_id': 29810418, 'sub_port_id': 29810458, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20384011, 'last_updated_at': datetime.datetime(2025, 12, 30, 15, 52, 58), 'last_updated_at_desc': datetime.datetime(2025, 12, 30, 15, 52, 58), 'last_updated_at_asc': datetime.datetime(2025, 12, 30, 15, 49, 28)}, 'Carton_gris': {'main_port_id': 29810418, 'sub_port_id': 29810459, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20384012, 'last_updated_at': datetime.datetime(2025, 12, 30, 15, 52, 58), 'last_updated_at_desc': datetime.datetime(2025, 12, 30, 15, 52, 58), 'last_updated_at_asc': datetime.datetime(2025, 12, 30, 15, 49, 28)}, 'papier': {'main_port_id': 29810418, 'sub_port_id': 29810460, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20384013, 'last_updated_at': datetime.datetime(2025, 12, 30, 15, 52, 58), 'last_updated_at_desc': datetime.datetime(2025, 12, 30, 15, 52, 58), 'last_updated_at_asc': datetime.datetime(2025, 12, 30, 15, 49, 28)}, 'plastique': {'main_port_id': 29810418, 'sub_port_id': 29810461, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20384014, 'last_updated_at': datetime.datetime(2025, 12, 30, 15, 52, 58), 'last_updated_at_desc': datetime.datetime(2025, 12, 30, 15, 52, 58), 'last_updated_at_asc': datetime.datetime(2025, 12, 30, 15, 49, 28)}, 'Carton_brun': {'main_port_id': 29810418, 'sub_port_id': 29810462, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20384015, 'last_updated_at': datetime.datetime(2025, 12, 30, 15, 52, 58), 'last_updated_at_desc': datetime.datetime(2025, 12, 30, 15, 52, 58), 'last_updated_at_asc': datetime.datetime(2025, 12, 30, 15, 49, 28)}, 'cartonnette': {'main_port_id': 29810418, 'sub_port_id': 29810463, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20384016, 'last_updated_at': datetime.datetime(2025, 12, 30, 15, 52, 58), 'last_updated_at_desc': datetime.datetime(2025, 12, 30, 15, 52, 58), 'last_updated_at_asc': datetime.datetime(2025, 12, 30, 15, 49, 28)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29810452 , 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=29810418 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 (29810452) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29810418) result : ((1401695882,), (1401695885,), (1401695889,), (1401695919,), (1401695967,), (1401696039,), (1401696040,), (1401696041,), (1401696043,), (1401696047,), (1401696072,), (1401696073,), (1401696075,), (1401696079,), (1401696084,), (1401696106,), (1401696108,), (1401696110,), (1401696113,), (1401696118,), (1401696145,), (1401696148,), (1401696151,), (1401696155,), (1401696177,), (1401696180,), (1401696181,), (1401696183,), (1401696187,), (1401696190,), (1401696226,), (1401696230,), (1401696265,), (1401696301,), (1401696337,), (1401696374,), (1401696542,), (1401696546,), (1401696550,), (1401696555,), (1401696558,), (1401696561,), (1401696581,), (1401696584,), (1401696586,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29810453 , 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=29810418 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 (29810453) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29810418) result : ((1401695882,), (1401695885,), (1401695889,), (1401695919,), (1401695967,), (1401696039,), (1401696040,), (1401696041,), (1401696043,), (1401696047,), (1401696072,), (1401696073,), (1401696075,), (1401696079,), (1401696084,), (1401696106,), (1401696108,), (1401696110,), (1401696113,), (1401696118,), (1401696145,), (1401696148,), (1401696151,), (1401696155,), (1401696177,), (1401696180,), (1401696181,), (1401696183,), (1401696187,), (1401696190,), (1401696226,), (1401696230,), (1401696265,), (1401696301,), (1401696337,), (1401696374,), (1401696542,), (1401696546,), (1401696550,), (1401696555,), (1401696558,), (1401696561,), (1401696581,), (1401696584,), (1401696586,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29810454 , 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=29810418 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 (29810454) result : ((1401696571,), (1401696572,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29810418) result : ((1401695882,), (1401695885,), (1401695889,), (1401695919,), (1401695967,), (1401696039,), (1401696040,), (1401696041,), (1401696043,), (1401696047,), (1401696072,), (1401696073,), (1401696075,), (1401696079,), (1401696084,), (1401696106,), (1401696108,), (1401696110,), (1401696113,), (1401696118,), (1401696145,), (1401696148,), (1401696151,), (1401696155,), (1401696177,), (1401696180,), (1401696181,), (1401696183,), (1401696187,), (1401696190,), (1401696226,), (1401696230,), (1401696265,), (1401696301,), (1401696337,), (1401696374,), (1401696542,), (1401696546,), (1401696550,), (1401696555,), (1401696558,), (1401696561,), (1401696581,), (1401696584,), (1401696586,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29810455 , 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=29810418 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 (29810455) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29810418) result : ((1401695882,), (1401695885,), (1401695889,), (1401695919,), (1401695967,), (1401696039,), (1401696040,), (1401696041,), (1401696043,), (1401696047,), (1401696072,), (1401696073,), (1401696075,), (1401696079,), (1401696084,), (1401696106,), (1401696108,), (1401696110,), (1401696113,), (1401696118,), (1401696145,), (1401696148,), (1401696151,), (1401696155,), (1401696177,), (1401696180,), (1401696181,), (1401696183,), (1401696187,), (1401696190,), (1401696226,), (1401696230,), (1401696265,), (1401696301,), (1401696337,), (1401696374,), (1401696542,), (1401696546,), (1401696550,), (1401696555,), (1401696558,), (1401696561,), (1401696581,), (1401696584,), (1401696586,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29810456 , 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=29810418 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 (29810456) result : ((1401696534,), (1401696565,), (1401696566,), (1401696567,), (1401696568,), (1401696569,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29810418) result : ((1401695882,), (1401695885,), (1401695889,), (1401695919,), (1401695967,), (1401696039,), (1401696040,), (1401696041,), (1401696043,), (1401696047,), (1401696072,), (1401696073,), (1401696075,), (1401696079,), (1401696084,), (1401696106,), (1401696108,), (1401696110,), (1401696113,), (1401696118,), (1401696145,), (1401696148,), (1401696151,), (1401696155,), (1401696177,), (1401696180,), (1401696181,), (1401696183,), (1401696187,), (1401696190,), (1401696226,), (1401696230,), (1401696265,), (1401696301,), (1401696337,), (1401696374,), (1401696542,), (1401696546,), (1401696550,), (1401696555,), (1401696558,), (1401696561,), (1401696581,), (1401696584,), (1401696586,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29810457 , 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=29810418 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 (29810457) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29810418) result : ((1401695882,), (1401695885,), (1401695889,), (1401695919,), (1401695967,), (1401696039,), (1401696040,), (1401696041,), (1401696043,), (1401696047,), (1401696072,), (1401696073,), (1401696075,), (1401696079,), (1401696084,), (1401696106,), (1401696108,), (1401696110,), (1401696113,), (1401696118,), (1401696145,), (1401696148,), (1401696151,), (1401696155,), (1401696177,), (1401696180,), (1401696181,), (1401696183,), (1401696187,), (1401696190,), (1401696226,), (1401696230,), (1401696265,), (1401696301,), (1401696337,), (1401696374,), (1401696542,), (1401696546,), (1401696550,), (1401696555,), (1401696558,), (1401696561,), (1401696581,), (1401696584,), (1401696586,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29810458 , 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=29810418 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 (29810458) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29810418) result : ((1401695882,), (1401695885,), (1401695889,), (1401695919,), (1401695967,), (1401696039,), (1401696040,), (1401696041,), (1401696043,), (1401696047,), (1401696072,), (1401696073,), (1401696075,), (1401696079,), (1401696084,), (1401696106,), (1401696108,), (1401696110,), (1401696113,), (1401696118,), (1401696145,), (1401696148,), (1401696151,), (1401696155,), (1401696177,), (1401696180,), (1401696181,), (1401696183,), (1401696187,), (1401696190,), (1401696226,), (1401696230,), (1401696265,), (1401696301,), (1401696337,), (1401696374,), (1401696542,), (1401696546,), (1401696550,), (1401696555,), (1401696558,), (1401696561,), (1401696581,), (1401696584,), (1401696586,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29810459 , 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=29810418 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 (29810459) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29810418) result : ((1401695882,), (1401695885,), (1401695889,), (1401695919,), (1401695967,), (1401696039,), (1401696040,), (1401696041,), (1401696043,), (1401696047,), (1401696072,), (1401696073,), (1401696075,), (1401696079,), (1401696084,), (1401696106,), (1401696108,), (1401696110,), (1401696113,), (1401696118,), (1401696145,), (1401696148,), (1401696151,), (1401696155,), (1401696177,), (1401696180,), (1401696181,), (1401696183,), (1401696187,), (1401696190,), (1401696226,), (1401696230,), (1401696265,), (1401696301,), (1401696337,), (1401696374,), (1401696542,), (1401696546,), (1401696550,), (1401696555,), (1401696558,), (1401696561,), (1401696581,), (1401696584,), (1401696586,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29810460 , 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=29810418 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 (29810460) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29810418) result : ((1401695882,), (1401695885,), (1401695889,), (1401695919,), (1401695967,), (1401696039,), (1401696040,), (1401696041,), (1401696043,), (1401696047,), (1401696072,), (1401696073,), (1401696075,), (1401696079,), (1401696084,), (1401696106,), (1401696108,), (1401696110,), (1401696113,), (1401696118,), (1401696145,), (1401696148,), (1401696151,), (1401696155,), (1401696177,), (1401696180,), (1401696181,), (1401696183,), (1401696187,), (1401696190,), (1401696226,), (1401696230,), (1401696265,), (1401696301,), (1401696337,), (1401696374,), (1401696542,), (1401696546,), (1401696550,), (1401696555,), (1401696558,), (1401696561,), (1401696581,), (1401696584,), (1401696586,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29810461 , 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=29810418 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 (29810461) result : ((1401696536,), (1401696578,), (1401696580,), (1401696582,), (1401696583,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29810418) result : ((1401695882,), (1401695885,), (1401695889,), (1401695919,), (1401695967,), (1401696039,), (1401696040,), (1401696041,), (1401696043,), (1401696047,), (1401696072,), (1401696073,), (1401696075,), (1401696079,), (1401696084,), (1401696106,), (1401696108,), (1401696110,), (1401696113,), (1401696118,), (1401696145,), (1401696148,), (1401696151,), (1401696155,), (1401696177,), (1401696180,), (1401696181,), (1401696183,), (1401696187,), (1401696190,), (1401696226,), (1401696230,), (1401696265,), (1401696301,), (1401696337,), (1401696374,), (1401696542,), (1401696546,), (1401696550,), (1401696555,), (1401696558,), (1401696561,), (1401696581,), (1401696584,), (1401696586,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29810462 , 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=29810418 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 (29810462) result : ((1401696576,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29810418) result : ((1401695882,), (1401695885,), (1401695889,), (1401695919,), (1401695967,), (1401696039,), (1401696040,), (1401696041,), (1401696043,), (1401696047,), (1401696072,), (1401696073,), (1401696075,), (1401696079,), (1401696084,), (1401696106,), (1401696108,), (1401696110,), (1401696113,), (1401696118,), (1401696145,), (1401696148,), (1401696151,), (1401696155,), (1401696177,), (1401696180,), (1401696181,), (1401696183,), (1401696187,), (1401696190,), (1401696226,), (1401696230,), (1401696265,), (1401696301,), (1401696337,), (1401696374,), (1401696542,), (1401696546,), (1401696550,), (1401696555,), (1401696558,), (1401696561,), (1401696581,), (1401696584,), (1401696586,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29810463 , 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=29810418 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 (29810463) result : ((1401696535,), (1401696573,), (1401696574,), (1401696575,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29810418) result : ((1401695882,), (1401695885,), (1401695889,), (1401695919,), (1401695967,), (1401696039,), (1401696040,), (1401696041,), (1401696043,), (1401696047,), (1401696072,), (1401696073,), (1401696075,), (1401696079,), (1401696084,), (1401696106,), (1401696108,), (1401696110,), (1401696113,), (1401696118,), (1401696145,), (1401696148,), (1401696151,), (1401696155,), (1401696177,), (1401696180,), (1401696181,), (1401696183,), (1401696187,), (1401696190,), (1401696226,), (1401696230,), (1401696265,), (1401696301,), (1401696337,), (1401696374,), (1401696542,), (1401696546,), (1401696550,), (1401696555,), (1401696558,), (1401696561,), (1401696581,), (1401696584,), (1401696586,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") To do ! Use context local managing function ! SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29810418 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','flou','kraft','papier','Carton_brun','metal','mal_croppe','cartonnette','plastique','autre_refus','environnement','Carton_gris')) 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`=29810418 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','flou','kraft','papier','Carton_brun','metal','mal_croppe','cartonnette','plastique','autre_refus','environnement','Carton_gris')) AND mptpi.`min_score`=0.5 To do returned map {'metal': {'main_port_id': 29810418, 'sub_port_id': 29810464, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20384017, 'last_updated_at': datetime.datetime(2025, 12, 30, 15, 49, 34), 'last_updated_at_desc': datetime.datetime(2025, 12, 30, 15, 49, 34), 'last_updated_at_asc': datetime.datetime(2025, 12, 30, 15, 49, 34)}, 'flou': {'main_port_id': 29810418, 'sub_port_id': 29810465, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20384018, 'last_updated_at': datetime.datetime(2025, 12, 30, 15, 49, 34), 'last_updated_at_desc': datetime.datetime(2025, 12, 30, 15, 49, 34), 'last_updated_at_asc': datetime.datetime(2025, 12, 30, 15, 49, 34)}, 'autre_refus': {'main_port_id': 29810418, 'sub_port_id': 29810466, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20384019, 'last_updated_at': datetime.datetime(2025, 12, 30, 15, 49, 34), 'last_updated_at_desc': datetime.datetime(2025, 12, 30, 15, 49, 34), 'last_updated_at_asc': datetime.datetime(2025, 12, 30, 15, 49, 34)}, 'environnement': {'main_port_id': 29810418, 'sub_port_id': 29810467, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20384020, 'last_updated_at': datetime.datetime(2025, 12, 30, 15, 49, 34), 'last_updated_at_desc': datetime.datetime(2025, 12, 30, 15, 49, 34), 'last_updated_at_asc': datetime.datetime(2025, 12, 30, 15, 49, 34)}, 'Teint_Dans_La_Masse': {'main_port_id': 29810418, 'sub_port_id': 29810468, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20384021, 'last_updated_at': datetime.datetime(2025, 12, 30, 15, 49, 34), 'last_updated_at_desc': datetime.datetime(2025, 12, 30, 15, 49, 34), 'last_updated_at_asc': datetime.datetime(2025, 12, 30, 15, 49, 34)}, 'kraft': {'main_port_id': 29810418, 'sub_port_id': 29810469, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20384022, 'last_updated_at': datetime.datetime(2025, 12, 30, 15, 49, 34), 'last_updated_at_desc': datetime.datetime(2025, 12, 30, 15, 49, 34), 'last_updated_at_asc': datetime.datetime(2025, 12, 30, 15, 49, 34)}, 'mal_croppe': {'main_port_id': 29810418, 'sub_port_id': 29810470, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20384023, 'last_updated_at': datetime.datetime(2025, 12, 30, 15, 49, 34), 'last_updated_at_desc': datetime.datetime(2025, 12, 30, 15, 49, 34), 'last_updated_at_asc': datetime.datetime(2025, 12, 30, 15, 49, 34)}, 'Carton_gris': {'main_port_id': 29810418, 'sub_port_id': 29810471, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20384024, 'last_updated_at': datetime.datetime(2025, 12, 30, 15, 49, 34), 'last_updated_at_desc': datetime.datetime(2025, 12, 30, 15, 49, 34), 'last_updated_at_asc': datetime.datetime(2025, 12, 30, 15, 49, 34)}, 'papier': {'main_port_id': 29810418, 'sub_port_id': 29810472, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20384025, 'last_updated_at': datetime.datetime(2025, 12, 30, 15, 49, 34), 'last_updated_at_desc': datetime.datetime(2025, 12, 30, 15, 49, 34), 'last_updated_at_asc': datetime.datetime(2025, 12, 30, 15, 49, 34)}, 'plastique': {'main_port_id': 29810418, 'sub_port_id': 29810473, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20384026, 'last_updated_at': datetime.datetime(2025, 12, 30, 15, 49, 34), 'last_updated_at_desc': datetime.datetime(2025, 12, 30, 15, 49, 34), 'last_updated_at_asc': datetime.datetime(2025, 12, 30, 15, 49, 34)}, 'Carton_brun': {'main_port_id': 29810418, 'sub_port_id': 29810474, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20384027, 'last_updated_at': datetime.datetime(2025, 12, 30, 15, 49, 34), 'last_updated_at_desc': datetime.datetime(2025, 12, 30, 15, 49, 34), 'last_updated_at_asc': datetime.datetime(2025, 12, 30, 15, 49, 34)}, 'cartonnette': {'main_port_id': 29810418, 'sub_port_id': 29810475, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20384028, 'last_updated_at': datetime.datetime(2025, 12, 30, 15, 52, 58), 'last_updated_at_desc': datetime.datetime(2025, 12, 30, 15, 52, 58), 'last_updated_at_asc': datetime.datetime(2025, 12, 30, 15, 49, 34)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29810464,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29810452 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29810465,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29810453 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29810466,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29810454 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29810467,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29810455 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29810468,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29810456 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29810469,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29810457 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29810470,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29810458 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29810471,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29810459 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29810472,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29810460 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29810473,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29810461 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29810474,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29810462 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29810475,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29810463 lien utilise dans velours : https://marlene.fotonower.com/velours/29810464,29810465,29810466,29810467,29810468,29810469,29810470,29810471,29810472,29810473,29810474,29810475?tags=metal,flou,autre_refus,environnement,Teint_Dans_La_Masse,kraft,mal_croppe,Carton_gris,papier,plastique,Carton_brun,cartonnette After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29810418]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1401696586, 1401696584, 1401696581, 1401696561, 1401696558, 1401696555, 1401696550, 1401696546, 1401696542, 1401696374, 1401696337, 1401696301, 1401696265, 1401696230, 1401696226] map_info['map_portfolio_photo'] : {29810418: [1401696586, 1401696584, 1401696581, 1401696561, 1401696558, 1401696555, 1401696550, 1401696546, 1401696542, 1401696374, 1401696337, 1401696301, 1401696265, 1401696230, 1401696226, 1401696190, 1401696187, 1401696183, 1401696181, 1401696180, 1401696177, 1401696155, 1401696151, 1401696148, 1401696145, 1401696118, 1401696113, 1401696110, 1401696108, 1401696106, 1401696084, 1401696079, 1401696075, 1401696073, 1401696072, 1401696047, 1401696043, 1401696041, 1401696040, 1401696039, 1401695967, 1401695919, 1401695889, 1401695885, 1401695882]} final : False mtd_id 4302 list_pids : [1401696586, 1401696584, 1401696581, 1401696561, 1401696558, 1401696555, 1401696550, 1401696546, 1401696542, 1401696374, 1401696337, 1401696301, 1401696265, 1401696230, 1401696226] Looping around the photos to save general results len do output : 1 /29810418. 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, '4289248') ('4302', '29810418', '1401696586', None, None, None, None, None, '4289248') ('4302', None, None, None, None, None, None, None, '4289248') ('4302', '29810418', '1401696584', None, None, None, None, None, '4289248') ('4302', None, None, None, None, None, None, None, '4289248') ('4302', '29810418', '1401696581', None, None, None, None, None, '4289248') ('4302', None, None, None, None, None, None, None, '4289248') ('4302', '29810418', '1401696561', None, None, None, None, None, '4289248') ('4302', None, None, None, None, None, None, None, '4289248') ('4302', '29810418', '1401696558', None, None, None, None, None, '4289248') ('4302', None, None, None, None, None, None, None, '4289248') ('4302', '29810418', '1401696555', None, None, None, None, None, '4289248') ('4302', None, None, None, None, None, None, None, '4289248') ('4302', '29810418', '1401696550', None, None, None, None, None, '4289248') ('4302', None, None, None, None, None, None, None, '4289248') ('4302', '29810418', '1401696546', None, None, None, None, None, '4289248') ('4302', None, None, None, None, None, None, None, '4289248') ('4302', '29810418', '1401696542', None, None, None, None, None, '4289248') ('4302', None, None, None, None, None, None, None, '4289248') ('4302', '29810418', '1401696374', None, None, None, None, None, '4289248') ('4302', None, None, None, None, None, None, None, '4289248') ('4302', '29810418', '1401696337', None, None, None, None, None, '4289248') ('4302', None, None, None, None, None, None, None, '4289248') ('4302', '29810418', '1401696301', None, None, None, None, None, '4289248') ('4302', None, None, None, None, None, None, None, '4289248') ('4302', '29810418', '1401696265', None, None, None, None, None, '4289248') ('4302', None, None, None, None, None, None, None, '4289248') ('4302', '29810418', '1401696230', None, None, None, None, None, '4289248') ('4302', None, None, None, None, None, None, None, '4289248') ('4302', '29810418', '1401696226', None, None, None, None, None, '4289248') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 16 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '29810418', "{'metal': 29810452, 'flou': 29810453, 'autre_refus': 29810454, 'environnement': 29810455, 'Teint_Dans_La_Masse': 29810456, 'kraft': 29810457, 'mal_croppe': 29810458, 'Carton_gris': 29810459, 'papier': 29810460, 'plastique': 29810461, 'Carton_brun': 29810462, 'cartonnette': 29810463}", None, None, None, None, '4289248'), ('4302', '29810418', '1401696586', None, None, None, None, None, '4289248'), ('4302', '29810418', '1401696584', None, None, None, None, None, '4289248'), ('4302', '29810418', '1401696581', None, None, None, None, None, '4289248'), ('4302', '29810418', '1401696561', None, None, None, None, None, '4289248'), ('4302', '29810418', '1401696558', None, None, None, None, None, '4289248'), ('4302', '29810418', '1401696555', None, None, None, None, None, '4289248'), ('4302', '29810418', '1401696550', None, None, None, None, None, '4289248'), ('4302', '29810418', '1401696546', None, None, None, None, None, '4289248'), ('4302', '29810418', '1401696542', None, None, None, None, None, '4289248'), ('4302', '29810418', '1401696374', None, None, None, None, None, '4289248'), ('4302', '29810418', '1401696337', None, None, None, None, None, '4289248'), ('4302', '29810418', '1401696301', None, None, None, None, None, '4289248'), ('4302', '29810418', '1401696265', None, None, None, None, None, '4289248'), ('4302', '29810418', '1401696230', None, None, None, None, None, '4289248'), ('4302', '29810418', '1401696226', None, None, None, None, None, '4289248')] time used for this insertion : 0.015482187271118164 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.9460372924804688 time spend to save output : 0.015887737274169922 total time spend for step 1 : 1.9619250297546387 step2:final Tue Dec 30 15:55:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29810418) 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 29810418 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1401695967,1401695919,1401695889,1401695885,1401695882,1401696047,1401696043,1401696041,1401696040,1401696039,1401696084,1401696079,1401696075,1401696073,1401696072,1401696118,1401696113,1401696110,1401696108,1401696106,1401696155,1401696151,1401696148,1401696145,1401696190,1401696187,1401696183,1401696181,1401696180,1401696177,1401696586,1401696374,1401696337,1401696584,1401696301,1401696581,1401696265,1401696561,1401696230,1401696558,1401696555,1401696226,1401696550,1401696546,1401696542); 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([29810418]) Inside saveOutput : final : False verbose : True original output for save of step final : {1401696586: ('0.03734028426986902',), 1401696584: ('0.03734028426986902',), 1401696581: ('0.03734028426986902',), 1401696561: ('0.03734028426986902',), 1401696558: ('0.03734028426986902',), 1401696555: ('0.03734028426986902',), 1401696550: ('0.03734028426986902',), 1401696546: ('0.03734028426986902',), 1401696542: ('0.03734028426986902',), 1401696374: ('0.03734028426986902',), 1401696337: ('0.03734028426986902',), 1401696301: ('0.03734028426986902',), 1401696265: ('0.03734028426986902',), 1401696230: ('0.03734028426986902',), 1401696226: ('0.03734028426986902',)} new output for save of step final : {1401696586: ('0.03734028426986902',), 1401696584: ('0.03734028426986902',), 1401696581: ('0.03734028426986902',), 1401696561: ('0.03734028426986902',), 1401696558: ('0.03734028426986902',), 1401696555: ('0.03734028426986902',), 1401696550: ('0.03734028426986902',), 1401696546: ('0.03734028426986902',), 1401696542: ('0.03734028426986902',), 1401696374: ('0.03734028426986902',), 1401696337: ('0.03734028426986902',), 1401696301: ('0.03734028426986902',), 1401696265: ('0.03734028426986902',), 1401696230: ('0.03734028426986902',), 1401696226: ('0.03734028426986902',)} [1401696586, 1401696584, 1401696581, 1401696561, 1401696558, 1401696555, 1401696550, 1401696546, 1401696542, 1401696374, 1401696337, 1401696301, 1401696265, 1401696230, 1401696226] map_info['map_portfolio_photo'] : {29810418: [1401696586, 1401696584, 1401696581, 1401696561, 1401696558, 1401696555, 1401696550, 1401696546, 1401696542, 1401696374, 1401696337, 1401696301, 1401696265, 1401696230, 1401696226, 1401696190, 1401696187, 1401696183, 1401696181, 1401696180, 1401696177, 1401696155, 1401696151, 1401696148, 1401696145, 1401696118, 1401696113, 1401696110, 1401696108, 1401696106, 1401696084, 1401696079, 1401696075, 1401696073, 1401696072, 1401696047, 1401696043, 1401696041, 1401696040, 1401696039, 1401695967, 1401695919, 1401695889, 1401695885, 1401695882]} final : False mtd_id 4302 list_pids : [1401696586, 1401696584, 1401696581, 1401696561, 1401696558, 1401696555, 1401696550, 1401696546, 1401696542, 1401696374, 1401696337, 1401696301, 1401696265, 1401696230, 1401696226] Looping around the photos to save general results len do output : 15 /1401696586.Didn't retrieve data . /1401696584.Didn't retrieve data . /1401696581.Didn't retrieve data . /1401696561.Didn't retrieve data . /1401696558.Didn't retrieve data . /1401696555.Didn't retrieve data . /1401696550.Didn't retrieve data . /1401696546.Didn't retrieve data . /1401696542.Didn't retrieve data . /1401696374.Didn't retrieve data . /1401696337.Didn't retrieve data . /1401696301.Didn't retrieve data . /1401696265.Didn't retrieve data . /1401696230.Didn't retrieve data . /1401696226.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, '4289248') ('4302', '29810418', '1401696586', None, None, None, None, None, '4289248') ('4302', None, None, None, None, None, None, None, '4289248') ('4302', '29810418', '1401696584', None, None, None, None, None, '4289248') ('4302', None, None, None, None, None, None, None, '4289248') ('4302', '29810418', '1401696581', None, None, None, None, None, '4289248') ('4302', None, None, None, None, None, None, None, '4289248') ('4302', '29810418', '1401696561', None, None, None, None, None, '4289248') ('4302', None, None, None, None, None, None, None, '4289248') ('4302', '29810418', '1401696558', None, None, None, None, None, '4289248') ('4302', None, None, None, None, None, None, None, '4289248') ('4302', '29810418', '1401696555', None, None, None, None, None, '4289248') ('4302', None, None, None, None, None, None, None, '4289248') ('4302', '29810418', '1401696550', None, None, None, None, None, '4289248') ('4302', None, None, None, None, None, None, None, '4289248') ('4302', '29810418', '1401696546', None, None, None, None, None, '4289248') ('4302', None, None, None, None, None, None, None, '4289248') ('4302', '29810418', '1401696542', None, None, None, None, None, '4289248') ('4302', None, None, None, None, None, None, None, '4289248') ('4302', '29810418', '1401696374', None, None, None, None, None, '4289248') ('4302', None, None, None, None, None, None, None, '4289248') ('4302', '29810418', '1401696337', None, None, None, None, None, '4289248') ('4302', None, None, None, None, None, None, None, '4289248') ('4302', '29810418', '1401696301', None, None, None, None, None, '4289248') ('4302', None, None, None, None, None, None, None, '4289248') ('4302', '29810418', '1401696265', None, None, None, None, None, '4289248') ('4302', None, None, None, None, None, None, None, '4289248') ('4302', '29810418', '1401696230', None, None, None, None, None, '4289248') ('4302', None, None, None, None, None, None, None, '4289248') ('4302', '29810418', '1401696226', None, None, None, None, None, '4289248') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 45 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '29810418', '1401696586', '0.03734028426986902', None, None, None, None, '4289248'), ('4302', '29810418', '1401696584', '0.03734028426986902', None, None, None, None, '4289248'), ('4302', '29810418', '1401696581', '0.03734028426986902', None, None, None, None, '4289248'), ('4302', '29810418', '1401696561', '0.03734028426986902', None, None, None, None, '4289248'), ('4302', '29810418', '1401696558', '0.03734028426986902', None, None, None, None, '4289248'), ('4302', '29810418', '1401696555', '0.03734028426986902', None, None, None, None, '4289248'), ('4302', '29810418', '1401696550', '0.03734028426986902', None, None, None, None, '4289248'), ('4302', '29810418', '1401696546', '0.03734028426986902', None, None, None, None, '4289248'), ('4302', '29810418', '1401696542', '0.03734028426986902', None, None, None, None, '4289248'), ('4302', '29810418', '1401696374', '0.03734028426986902', None, None, None, None, '4289248'), ('4302', '29810418', '1401696337', '0.03734028426986902', None, None, None, None, '4289248'), ('4302', '29810418', '1401696301', '0.03734028426986902', None, None, None, None, '4289248'), ('4302', '29810418', '1401696265', '0.03734028426986902', None, None, None, None, '4289248'), ('4302', '29810418', '1401696230', '0.03734028426986902', None, None, None, None, '4289248'), ('4302', '29810418', '1401696226', '0.03734028426986902', None, None, None, None, '4289248')] time used for this insertion : 0.017180919647216797 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07897448539733887 time spend to save output : 0.017986059188842773 total time spend for step 2 : 0.09696054458618164 step3:velours_tree Tue Dec 30 15:55:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {29810418: [{'metal': 29810452, 'flou': 29810453, 'autre_refus': 29810454, 'environnement': 29810455, 'Teint_Dans_La_Masse': 29810456, 'kraft': 29810457, 'mal_croppe': 29810458, 'Carton_gris': 29810459, 'papier': 29810460, 'plastique': 29810461, 'Carton_brun': 29810462, 'cartonnette': 29810463}]} input_args_next_step : {29810418: ()} output_args : {29810418: [{'metal': 29810452, 'flou': 29810453, 'autre_refus': 29810454, 'environnement': 29810455, 'Teint_Dans_La_Masse': 29810456, 'kraft': 29810457, 'mal_croppe': 29810458, 'Carton_gris': 29810459, 'papier': 29810460, 'plastique': 29810461, 'Carton_brun': 29810462, 'cartonnette': 29810463}]} args : 29810418 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'metal': 29810452, 'flou': 29810453, 'autre_refus': 29810454, 'environnement': 29810455, 'Teint_Dans_La_Masse': 29810456, 'kraft': 29810457, 'mal_croppe': 29810458, 'Carton_gris': 29810459, 'papier': 29810460, 'plastique': 29810461, 'Carton_brun': 29810462, 'cartonnette': 29810463},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29810418) 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([29810418]) 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.2953667640686035 time spend to save output : 7.557868957519531e-05 total time spend for step 3 : 0.2954423427581787 step4:send_mail_cod Tue Dec 30 15:55:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1401696586: ('0.03734028426986902',), 1401696584: ('0.03734028426986902',), 1401696581: ('0.03734028426986902',), 1401696561: ('0.03734028426986902',), 1401696558: ('0.03734028426986902',), 1401696555: ('0.03734028426986902',), 1401696550: ('0.03734028426986902',), 1401696546: ('0.03734028426986902',), 1401696542: ('0.03734028426986902',), 1401696374: ('0.03734028426986902',), 1401696337: ('0.03734028426986902',), 1401696301: ('0.03734028426986902',), 1401696265: ('0.03734028426986902',), 1401696230: ('0.03734028426986902',), 1401696226: ('0.03734028426986902',)} input_args_next_step : {1401696586: ()} output_args : {1401696586: ('0.03734028426986902',), 1401696584: ('0.03734028426986902',), 1401696581: ('0.03734028426986902',), 1401696561: ('0.03734028426986902',), 1401696558: ('0.03734028426986902',), 1401696555: ('0.03734028426986902',), 1401696550: ('0.03734028426986902',), 1401696546: ('0.03734028426986902',), 1401696542: ('0.03734028426986902',), 1401696374: ('0.03734028426986902',), 1401696337: ('0.03734028426986902',), 1401696301: ('0.03734028426986902',), 1401696265: ('0.03734028426986902',), 1401696230: ('0.03734028426986902',), 1401696226: ('0.03734028426986902',)} args : 1401696586 depend.output_id : 0 input_args_next_step : {1401696586: ('0.03734028426986902',), 1401696584: ()} output_args : {1401696586: ('0.03734028426986902',), 1401696584: ('0.03734028426986902',), 1401696581: ('0.03734028426986902',), 1401696561: ('0.03734028426986902',), 1401696558: ('0.03734028426986902',), 1401696555: ('0.03734028426986902',), 1401696550: ('0.03734028426986902',), 1401696546: ('0.03734028426986902',), 1401696542: ('0.03734028426986902',), 1401696374: ('0.03734028426986902',), 1401696337: ('0.03734028426986902',), 1401696301: ('0.03734028426986902',), 1401696265: ('0.03734028426986902',), 1401696230: ('0.03734028426986902',), 1401696226: ('0.03734028426986902',)} args : 1401696584 depend.output_id : 0 input_args_next_step : {1401696586: ('0.03734028426986902',), 1401696584: ('0.03734028426986902',), 1401696581: ()} output_args : {1401696586: ('0.03734028426986902',), 1401696584: ('0.03734028426986902',), 1401696581: ('0.03734028426986902',), 1401696561: ('0.03734028426986902',), 1401696558: ('0.03734028426986902',), 1401696555: ('0.03734028426986902',), 1401696550: ('0.03734028426986902',), 1401696546: ('0.03734028426986902',), 1401696542: ('0.03734028426986902',), 1401696374: ('0.03734028426986902',), 1401696337: ('0.03734028426986902',), 1401696301: ('0.03734028426986902',), 1401696265: ('0.03734028426986902',), 1401696230: ('0.03734028426986902',), 1401696226: ('0.03734028426986902',)} args : 1401696581 depend.output_id : 0 input_args_next_step : {1401696586: ('0.03734028426986902',), 1401696584: ('0.03734028426986902',), 1401696581: ('0.03734028426986902',), 1401696561: ()} output_args : {1401696586: ('0.03734028426986902',), 1401696584: ('0.03734028426986902',), 1401696581: ('0.03734028426986902',), 1401696561: ('0.03734028426986902',), 1401696558: ('0.03734028426986902',), 1401696555: ('0.03734028426986902',), 1401696550: ('0.03734028426986902',), 1401696546: ('0.03734028426986902',), 1401696542: ('0.03734028426986902',), 1401696374: ('0.03734028426986902',), 1401696337: ('0.03734028426986902',), 1401696301: ('0.03734028426986902',), 1401696265: ('0.03734028426986902',), 1401696230: ('0.03734028426986902',), 1401696226: ('0.03734028426986902',)} args : 1401696561 depend.output_id : 0 input_args_next_step : {1401696586: ('0.03734028426986902',), 1401696584: ('0.03734028426986902',), 1401696581: ('0.03734028426986902',), 1401696561: ('0.03734028426986902',), 1401696558: ()} output_args : {1401696586: ('0.03734028426986902',), 1401696584: ('0.03734028426986902',), 1401696581: ('0.03734028426986902',), 1401696561: ('0.03734028426986902',), 1401696558: ('0.03734028426986902',), 1401696555: ('0.03734028426986902',), 1401696550: ('0.03734028426986902',), 1401696546: ('0.03734028426986902',), 1401696542: ('0.03734028426986902',), 1401696374: ('0.03734028426986902',), 1401696337: ('0.03734028426986902',), 1401696301: ('0.03734028426986902',), 1401696265: ('0.03734028426986902',), 1401696230: ('0.03734028426986902',), 1401696226: ('0.03734028426986902',)} args : 1401696558 depend.output_id : 0 input_args_next_step : {1401696586: ('0.03734028426986902',), 1401696584: ('0.03734028426986902',), 1401696581: ('0.03734028426986902',), 1401696561: ('0.03734028426986902',), 1401696558: ('0.03734028426986902',), 1401696555: ()} output_args : {1401696586: ('0.03734028426986902',), 1401696584: ('0.03734028426986902',), 1401696581: ('0.03734028426986902',), 1401696561: ('0.03734028426986902',), 1401696558: ('0.03734028426986902',), 1401696555: ('0.03734028426986902',), 1401696550: ('0.03734028426986902',), 1401696546: ('0.03734028426986902',), 1401696542: ('0.03734028426986902',), 1401696374: ('0.03734028426986902',), 1401696337: ('0.03734028426986902',), 1401696301: ('0.03734028426986902',), 1401696265: ('0.03734028426986902',), 1401696230: ('0.03734028426986902',), 1401696226: ('0.03734028426986902',)} args : 1401696555 depend.output_id : 0 input_args_next_step : {1401696586: ('0.03734028426986902',), 1401696584: ('0.03734028426986902',), 1401696581: ('0.03734028426986902',), 1401696561: ('0.03734028426986902',), 1401696558: ('0.03734028426986902',), 1401696555: ('0.03734028426986902',), 1401696550: ()} output_args : {1401696586: ('0.03734028426986902',), 1401696584: ('0.03734028426986902',), 1401696581: ('0.03734028426986902',), 1401696561: ('0.03734028426986902',), 1401696558: ('0.03734028426986902',), 1401696555: ('0.03734028426986902',), 1401696550: ('0.03734028426986902',), 1401696546: ('0.03734028426986902',), 1401696542: ('0.03734028426986902',), 1401696374: ('0.03734028426986902',), 1401696337: ('0.03734028426986902',), 1401696301: ('0.03734028426986902',), 1401696265: ('0.03734028426986902',), 1401696230: ('0.03734028426986902',), 1401696226: ('0.03734028426986902',)} args : 1401696550 depend.output_id : 0 input_args_next_step : {1401696586: ('0.03734028426986902',), 1401696584: ('0.03734028426986902',), 1401696581: ('0.03734028426986902',), 1401696561: ('0.03734028426986902',), 1401696558: ('0.03734028426986902',), 1401696555: ('0.03734028426986902',), 1401696550: ('0.03734028426986902',), 1401696546: ()} output_args : {1401696586: ('0.03734028426986902',), 1401696584: ('0.03734028426986902',), 1401696581: ('0.03734028426986902',), 1401696561: ('0.03734028426986902',), 1401696558: ('0.03734028426986902',), 1401696555: ('0.03734028426986902',), 1401696550: ('0.03734028426986902',), 1401696546: ('0.03734028426986902',), 1401696542: ('0.03734028426986902',), 1401696374: ('0.03734028426986902',), 1401696337: ('0.03734028426986902',), 1401696301: ('0.03734028426986902',), 1401696265: ('0.03734028426986902',), 1401696230: ('0.03734028426986902',), 1401696226: ('0.03734028426986902',)} args : 1401696546 depend.output_id : 0 input_args_next_step : {1401696586: ('0.03734028426986902',), 1401696584: ('0.03734028426986902',), 1401696581: ('0.03734028426986902',), 1401696561: ('0.03734028426986902',), 1401696558: ('0.03734028426986902',), 1401696555: ('0.03734028426986902',), 1401696550: ('0.03734028426986902',), 1401696546: ('0.03734028426986902',), 1401696542: ()} output_args : {1401696586: ('0.03734028426986902',), 1401696584: ('0.03734028426986902',), 1401696581: ('0.03734028426986902',), 1401696561: ('0.03734028426986902',), 1401696558: ('0.03734028426986902',), 1401696555: ('0.03734028426986902',), 1401696550: ('0.03734028426986902',), 1401696546: ('0.03734028426986902',), 1401696542: ('0.03734028426986902',), 1401696374: ('0.03734028426986902',), 1401696337: ('0.03734028426986902',), 1401696301: ('0.03734028426986902',), 1401696265: ('0.03734028426986902',), 1401696230: ('0.03734028426986902',), 1401696226: ('0.03734028426986902',)} args : 1401696542 depend.output_id : 0 input_args_next_step : {1401696586: ('0.03734028426986902',), 1401696584: ('0.03734028426986902',), 1401696581: ('0.03734028426986902',), 1401696561: ('0.03734028426986902',), 1401696558: ('0.03734028426986902',), 1401696555: ('0.03734028426986902',), 1401696550: ('0.03734028426986902',), 1401696546: ('0.03734028426986902',), 1401696542: ('0.03734028426986902',), 1401696374: ()} output_args : {1401696586: ('0.03734028426986902',), 1401696584: ('0.03734028426986902',), 1401696581: ('0.03734028426986902',), 1401696561: ('0.03734028426986902',), 1401696558: ('0.03734028426986902',), 1401696555: ('0.03734028426986902',), 1401696550: ('0.03734028426986902',), 1401696546: ('0.03734028426986902',), 1401696542: ('0.03734028426986902',), 1401696374: ('0.03734028426986902',), 1401696337: ('0.03734028426986902',), 1401696301: ('0.03734028426986902',), 1401696265: ('0.03734028426986902',), 1401696230: ('0.03734028426986902',), 1401696226: ('0.03734028426986902',)} args : 1401696374 depend.output_id : 0 input_args_next_step : {1401696586: ('0.03734028426986902',), 1401696584: ('0.03734028426986902',), 1401696581: ('0.03734028426986902',), 1401696561: ('0.03734028426986902',), 1401696558: ('0.03734028426986902',), 1401696555: ('0.03734028426986902',), 1401696550: ('0.03734028426986902',), 1401696546: ('0.03734028426986902',), 1401696542: ('0.03734028426986902',), 1401696374: ('0.03734028426986902',), 1401696337: ()} output_args : {1401696586: ('0.03734028426986902',), 1401696584: ('0.03734028426986902',), 1401696581: ('0.03734028426986902',), 1401696561: ('0.03734028426986902',), 1401696558: ('0.03734028426986902',), 1401696555: ('0.03734028426986902',), 1401696550: ('0.03734028426986902',), 1401696546: ('0.03734028426986902',), 1401696542: ('0.03734028426986902',), 1401696374: ('0.03734028426986902',), 1401696337: ('0.03734028426986902',), 1401696301: ('0.03734028426986902',), 1401696265: ('0.03734028426986902',), 1401696230: ('0.03734028426986902',), 1401696226: ('0.03734028426986902',)} args : 1401696337 depend.output_id : 0 input_args_next_step : {1401696586: ('0.03734028426986902',), 1401696584: ('0.03734028426986902',), 1401696581: ('0.03734028426986902',), 1401696561: ('0.03734028426986902',), 1401696558: ('0.03734028426986902',), 1401696555: ('0.03734028426986902',), 1401696550: ('0.03734028426986902',), 1401696546: ('0.03734028426986902',), 1401696542: ('0.03734028426986902',), 1401696374: ('0.03734028426986902',), 1401696337: ('0.03734028426986902',), 1401696301: ()} output_args : {1401696586: ('0.03734028426986902',), 1401696584: ('0.03734028426986902',), 1401696581: ('0.03734028426986902',), 1401696561: ('0.03734028426986902',), 1401696558: ('0.03734028426986902',), 1401696555: ('0.03734028426986902',), 1401696550: ('0.03734028426986902',), 1401696546: ('0.03734028426986902',), 1401696542: ('0.03734028426986902',), 1401696374: ('0.03734028426986902',), 1401696337: ('0.03734028426986902',), 1401696301: ('0.03734028426986902',), 1401696265: ('0.03734028426986902',), 1401696230: ('0.03734028426986902',), 1401696226: ('0.03734028426986902',)} args : 1401696301 depend.output_id : 0 input_args_next_step : {1401696586: ('0.03734028426986902',), 1401696584: ('0.03734028426986902',), 1401696581: ('0.03734028426986902',), 1401696561: ('0.03734028426986902',), 1401696558: ('0.03734028426986902',), 1401696555: ('0.03734028426986902',), 1401696550: ('0.03734028426986902',), 1401696546: ('0.03734028426986902',), 1401696542: ('0.03734028426986902',), 1401696374: ('0.03734028426986902',), 1401696337: ('0.03734028426986902',), 1401696301: ('0.03734028426986902',), 1401696265: ()} output_args : {1401696586: ('0.03734028426986902',), 1401696584: ('0.03734028426986902',), 1401696581: ('0.03734028426986902',), 1401696561: ('0.03734028426986902',), 1401696558: ('0.03734028426986902',), 1401696555: ('0.03734028426986902',), 1401696550: ('0.03734028426986902',), 1401696546: ('0.03734028426986902',), 1401696542: ('0.03734028426986902',), 1401696374: ('0.03734028426986902',), 1401696337: ('0.03734028426986902',), 1401696301: ('0.03734028426986902',), 1401696265: ('0.03734028426986902',), 1401696230: ('0.03734028426986902',), 1401696226: ('0.03734028426986902',)} args : 1401696265 depend.output_id : 0 input_args_next_step : {1401696586: ('0.03734028426986902',), 1401696584: ('0.03734028426986902',), 1401696581: ('0.03734028426986902',), 1401696561: ('0.03734028426986902',), 1401696558: ('0.03734028426986902',), 1401696555: ('0.03734028426986902',), 1401696550: ('0.03734028426986902',), 1401696546: ('0.03734028426986902',), 1401696542: ('0.03734028426986902',), 1401696374: ('0.03734028426986902',), 1401696337: ('0.03734028426986902',), 1401696301: ('0.03734028426986902',), 1401696265: ('0.03734028426986902',), 1401696230: ()} output_args : {1401696586: ('0.03734028426986902',), 1401696584: ('0.03734028426986902',), 1401696581: ('0.03734028426986902',), 1401696561: ('0.03734028426986902',), 1401696558: ('0.03734028426986902',), 1401696555: ('0.03734028426986902',), 1401696550: ('0.03734028426986902',), 1401696546: ('0.03734028426986902',), 1401696542: ('0.03734028426986902',), 1401696374: ('0.03734028426986902',), 1401696337: ('0.03734028426986902',), 1401696301: ('0.03734028426986902',), 1401696265: ('0.03734028426986902',), 1401696230: ('0.03734028426986902',), 1401696226: ('0.03734028426986902',)} args : 1401696230 depend.output_id : 0 input_args_next_step : {1401696586: ('0.03734028426986902',), 1401696584: ('0.03734028426986902',), 1401696581: ('0.03734028426986902',), 1401696561: ('0.03734028426986902',), 1401696558: ('0.03734028426986902',), 1401696555: ('0.03734028426986902',), 1401696550: ('0.03734028426986902',), 1401696546: ('0.03734028426986902',), 1401696542: ('0.03734028426986902',), 1401696374: ('0.03734028426986902',), 1401696337: ('0.03734028426986902',), 1401696301: ('0.03734028426986902',), 1401696265: ('0.03734028426986902',), 1401696230: ('0.03734028426986902',), 1401696226: ()} output_args : {1401696586: ('0.03734028426986902',), 1401696584: ('0.03734028426986902',), 1401696581: ('0.03734028426986902',), 1401696561: ('0.03734028426986902',), 1401696558: ('0.03734028426986902',), 1401696555: ('0.03734028426986902',), 1401696550: ('0.03734028426986902',), 1401696546: ('0.03734028426986902',), 1401696542: ('0.03734028426986902',), 1401696374: ('0.03734028426986902',), 1401696337: ('0.03734028426986902',), 1401696301: ('0.03734028426986902',), 1401696265: ('0.03734028426986902',), 1401696230: ('0.03734028426986902',), 1401696226: ('0.03734028426986902',)} args : 1401696226 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 : {29810418: [{'metal': 29810452, 'flou': 29810453, 'autre_refus': 29810454, 'environnement': 29810455, 'Teint_Dans_La_Masse': 29810456, 'kraft': 29810457, 'mal_croppe': 29810458, 'Carton_gris': 29810459, 'papier': 29810460, 'plastique': 29810461, 'Carton_brun': 29810462, 'cartonnette': 29810463}]} input_args_next_step : {1401696586: ('0.03734028426986902',), 1401696584: ('0.03734028426986902',), 1401696581: ('0.03734028426986902',), 1401696561: ('0.03734028426986902',), 1401696558: ('0.03734028426986902',), 1401696555: ('0.03734028426986902',), 1401696550: ('0.03734028426986902',), 1401696546: ('0.03734028426986902',), 1401696542: ('0.03734028426986902',), 1401696374: ('0.03734028426986902',), 1401696337: ('0.03734028426986902',), 1401696301: ('0.03734028426986902',), 1401696265: ('0.03734028426986902',), 1401696230: ('0.03734028426986902',), 1401696226: ('0.03734028426986902',), 29810418: ()} output_args : {29810418: [{'metal': 29810452, 'flou': 29810453, 'autre_refus': 29810454, 'environnement': 29810455, 'Teint_Dans_La_Masse': 29810456, 'kraft': 29810457, 'mal_croppe': 29810458, 'Carton_gris': 29810459, 'papier': 29810460, 'plastique': 29810461, 'Carton_brun': 29810462, 'cartonnette': 29810463}]} args : 29810418 depend.output_id : 0 We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :16, first value : ('0.03734028426986902',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29810418) 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 (1401696586,1401696584,1401696581,1401696561,1401696558,1401696555,1401696550,1401696546,1401696542,1401696374,1401696337,1401696301,1401696265,1401696230,1401696226) Found this number of photos: 15 ##### Call download_photos : nb_thread : 5 begin to download photo : 1401696226 begin to download photo : 1401696337 begin to download photo : 1401696550 begin to download photo : 1401696581 download finish for photo 1401696581 begin to download photo : 1401696584 download finish for photo 1401696337 begin to download photo : 1401696374 download finish for photo 1401696550 begin to download photo : 1401696555 download finish for photo 1401696226 begin to download photo : 1401696230 download finish for photo 1401696584 begin to download photo : 1401696586 download finish for photo 1401696230 begin to download photo : 1401696265 download finish for photo 1401696555 begin to download photo : 1401696558 download finish for photo 1401696374 begin to download photo : 1401696542 download finish for photo 1401696586 download finish for photo 1401696265 begin to download photo : 1401696301 download finish for photo 1401696558 begin to download photo : 1401696561 download finish for photo 1401696542 begin to download photo : 1401696546 download finish for photo 1401696301 download finish for photo 1401696561 download finish for photo 1401696546 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette298104521767106501/ imagette298104531767106501/ length of list_filenames : 15 ; length of list_pids : 15 ; length of list_args : 15 results_Auto_P29810418_30-12-2025_15_55_01.pdf 29810452 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=29810452 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette298104521767106501 29810453 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=29810453 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette298104531767106501 29810454 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=29810454 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1401696571: '1767106386_3341104_1401696113_7002e06cfcb5f7902bed4880555aeced_rle_crop_4085589955_0.png', 1401696572: '1767106386_3341104_1401696110_110b2da6a4474d0e546f92603a8e06eb_rle_crop_4085589970_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/30/f523d1213c28ad6b5c184659548e5568_50777582.png change filename to text .imagette298104541767106501/ imagette298104541767106501/1767106386_3341104_1401696110_110b2da6a4474d0e546f92603a8e06eb_rle_crop_4085589970_0.png.png imagette298104541767106501/1767106386_3341104_1401696113_7002e06cfcb5f7902bed4880555aeced_rle_crop_4085589955_0.png.png imagette298104571767106501/ imagette298104581767106501/ wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/30/b315d950234ded35ef2b4714da98d774_81456549.png imagette298104541767106501 29810457 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=29810457 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette298104571767106501 29810458 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=29810458 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette298104581767106501 29810461 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=29810461 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1401696536: '1767106346_3340434_1401696148_78fcd5efa12a461c16df6febee9e4909_rle_crop_4085589755_0.png', 1401696578: '1767106386_3341104_1401696113_7002e06cfcb5f7902bed4880555aeced_rle_crop_4085589959_0.png', 1401696580: '1767106386_3341104_1401696113_7002e06cfcb5f7902bed4880555aeced_rle_crop_4085589961_0.png', 1401696582: '1767106386_3341104_1401696110_110b2da6a4474d0e546f92603a8e06eb_rle_crop_4085589979_0.png', 1401696583: '1767106386_3341104_1401696108_ddd9a0863ec2174e883d84cd86cbf2f5_rle_crop_4085589990_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/30/1d723e76fae091e0809df584a7ac06e6_53402465.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/30/2bf8895e0997a06cc86bea1b444b23fd_97024085.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/30/d5501bc9c55099f7f24e3a230600ffd7_63604120.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/30/98699c609d2c52ce4585689ef13ccb0f_81353665.png change filename to text .imagette298104611767106501/ imagette298104611767106501/1767106386_3341104_1401696108_ddd9a0863ec2174e883d84cd86cbf2f5_rle_crop_4085589990_0.png.png imagette298104611767106501/1767106386_3341104_1401696113_7002e06cfcb5f7902bed4880555aeced_rle_crop_4085589959_0.png.png imagette298104611767106501/1767106386_3341104_1401696113_7002e06cfcb5f7902bed4880555aeced_rle_crop_4085589961_0.png.png imagette298104611767106501/1767106346_3340434_1401696148_78fcd5efa12a461c16df6febee9e4909_rle_crop_4085589755_0.png.png imagette298104611767106501/1767106386_3341104_1401696110_110b2da6a4474d0e546f92603a8e06eb_rle_crop_4085589979_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/30/cce556e67d2f0581c4105bf3454f52bc_83824589.png imagette298104611767106501 29810463 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=29810463 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1401696535: '1767106346_3340434_1401696151_630e963ccaa57319ca1ce4cea07bfa3c_rle_crop_4085589746_0.png', 1401696573: '1767106386_3341104_1401696155_084b687010a283698cb1bf6e361c8f80_rle_crop_4085589938_0.png', 1401696574: '1767106386_3341104_1401696113_7002e06cfcb5f7902bed4880555aeced_rle_crop_4085589960_0.png', 1401696575: '1767106386_3341104_1401696106_b7a9f9d4528c7c790173d5a05c07f02e_rle_crop_4085590000_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/30/d5dd04cd2e8ac8ccd6254d7c175b7f0e_90873360.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/30/76eb7777856a40f21bd7f7e4fed99094_51643791.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/30/544494a5a069d96b43dc7202a52c95b0_501593.png change filename to text .imagette298104631767106502/ imagette298104631767106502/1767106386_3341104_1401696106_b7a9f9d4528c7c790173d5a05c07f02e_rle_crop_4085590000_0.png.png imagette298104631767106502/1767106386_3341104_1401696113_7002e06cfcb5f7902bed4880555aeced_rle_crop_4085589960_0.png.png imagette298104631767106502/1767106386_3341104_1401696155_084b687010a283698cb1bf6e361c8f80_rle_crop_4085589938_0.png.png imagette298104631767106502/1767106346_3340434_1401696151_630e963ccaa57319ca1ce4cea07bfa3c_rle_crop_4085589746_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/30/e94854d16cd1a58469d9d04d17e09bf9_46525521.png imagette298104631767106502 29810456 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=29810456 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1401696534: '1767106346_3340434_1401696151_630e963ccaa57319ca1ce4cea07bfa3c_rle_crop_4085589743_0.png', 1401696565: '1767106386_3341104_1401696155_084b687010a283698cb1bf6e361c8f80_rle_crop_4085589945_0.png', 1401696566: '1767106386_3341104_1401696155_084b687010a283698cb1bf6e361c8f80_rle_crop_4085589942_0.png', 1401696567: '1767106386_3341104_1401696110_110b2da6a4474d0e546f92603a8e06eb_rle_crop_4085589975_0.png', 1401696568: '1767106386_3341104_1401696106_b7a9f9d4528c7c790173d5a05c07f02e_rle_crop_4085590010_0.png', 1401696569: '1767106386_3341104_1401696106_b7a9f9d4528c7c790173d5a05c07f02e_rle_crop_4085590009_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/30/807971b9a17e87b7786141e58703f59d_32395676.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/30/95fcda52fdb414a02ce27704a3f88e19_904971.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/30/37dee21154af068860827019fea0bd38_28069998.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/30/38896ef02d6c5fda1c78003e3fb2285b_58453161.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/30/0f46c2b5078e3920a56be4bd12a6a821_97693973.png change filename to text .imagette298104561767106502/ imagette298104561767106502/1767106386_3341104_1401696155_084b687010a283698cb1bf6e361c8f80_rle_crop_4085589945_0.png.png imagette298104561767106502/1767106386_3341104_1401696106_b7a9f9d4528c7c790173d5a05c07f02e_rle_crop_4085590009_0.png.png imagette298104561767106502/1767106346_3340434_1401696151_630e963ccaa57319ca1ce4cea07bfa3c_rle_crop_4085589743_0.png.png imagette298104561767106502/1767106386_3341104_1401696110_110b2da6a4474d0e546f92603a8e06eb_rle_crop_4085589975_0.png.png imagette298104561767106502/1767106386_3341104_1401696155_084b687010a283698cb1bf6e361c8f80_rle_crop_4085589942_0.png.png imagette298104561767106502/1767106386_3341104_1401696106_b7a9f9d4528c7c790173d5a05c07f02e_rle_crop_4085590010_0.png.png imagette298104591767106502/ wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/30/acbb093f4a10a5cd8f6929c6267d2de8_44986171.png imagette298104561767106502 29810459 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=29810459 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette298104591767106502 29810462 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=29810462 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1401696576: '1767106386_3341104_1401696106_b7a9f9d4528c7c790173d5a05c07f02e_rle_crop_4085590014_0.png'} change filename to text .imagette298104621767106502/ imagette298104621767106502/1767106386_3341104_1401696106_b7a9f9d4528c7c790173d5a05c07f02e_rle_crop_4085590014_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/30/b4f07b2b5b216fa469ec22b4d6e43d1a_11206611.png imagette298104621767106502 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=29810418 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/29810464,29810465,29810466,29810467,29810468,29810469,29810470,29810471,29810472,29810473,29810474,29810475?tags=metal,flou,autre_refus,environnement,Teint_Dans_La_Masse,kraft,mal_croppe,Carton_gris,papier,plastique,Carton_brun,cartonnette your option no_mail is active, we will not send the real mail to your client args[1401696586] : ('0.03734028426986902',) no score found for photo 1401696586 We are sending mail with results at report@fotonower.com args[1401696584] : ('0.03734028426986902',) no score found for photo 1401696584 We are sending mail with results at report@fotonower.com args[1401696581] : ('0.03734028426986902',) no score found for photo 1401696581 We are sending mail with results at report@fotonower.com args[1401696561] : ('0.03734028426986902',) no score found for photo 1401696561 We are sending mail with results at report@fotonower.com args[1401696558] : ('0.03734028426986902',) no score found for photo 1401696558 We are sending mail with results at report@fotonower.com args[1401696555] : ('0.03734028426986902',) no score found for photo 1401696555 We are sending mail with results at report@fotonower.com args[1401696550] : ('0.03734028426986902',) no score found for photo 1401696550 We are sending mail with results at report@fotonower.com args[1401696546] : ('0.03734028426986902',) no score found for photo 1401696546 We are sending mail with results at report@fotonower.com args[1401696542] : ('0.03734028426986902',) no score found for photo 1401696542 We are sending mail with results at report@fotonower.com args[1401696374] : ('0.03734028426986902',) no score found for photo 1401696374 We are sending mail with results at report@fotonower.com args[1401696337] : ('0.03734028426986902',) no score found for photo 1401696337 We are sending mail with results at report@fotonower.com args[1401696301] : ('0.03734028426986902',) no score found for photo 1401696301 We are sending mail with results at report@fotonower.com args[1401696265] : ('0.03734028426986902',) no score found for photo 1401696265 We are sending mail with results at report@fotonower.com args[1401696230] : ('0.03734028426986902',) no score found for photo 1401696230 We are sending mail with results at report@fotonower.com args[1401696226] : ('0.03734028426986902',) no score found for photo 1401696226 We are sending mail with results at report@fotonower.com refus_total : 0.03734028426986902 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=29810418 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_P29810418_30-12-2025_15_55_01.pdf results_Auto_P29810418_30-12-2025_15_55_01.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29810418_30-12-2025_15_55_01.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','29810418','results_Auto_P29810418_30-12-2025_15_55_01.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29810418_30-12-2025_15_55_01.pdf','pdf','','0.18','0.03734028426986902') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29810418]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1401696586, 1401696584, 1401696581, 1401696561, 1401696558, 1401696555, 1401696550, 1401696546, 1401696542, 1401696374, 1401696337, 1401696301, 1401696265, 1401696230, 1401696226] map_info['map_portfolio_photo'] : {29810418: [1401696586, 1401696584, 1401696581, 1401696561, 1401696558, 1401696555, 1401696550, 1401696546, 1401696542, 1401696374, 1401696337, 1401696301, 1401696265, 1401696230, 1401696226, 1401696190, 1401696187, 1401696183, 1401696181, 1401696180, 1401696177, 1401696155, 1401696151, 1401696148, 1401696145, 1401696118, 1401696113, 1401696110, 1401696108, 1401696106, 1401696084, 1401696079, 1401696075, 1401696073, 1401696072, 1401696047, 1401696043, 1401696041, 1401696040, 1401696039, 1401695967, 1401695919, 1401695889, 1401695885, 1401695882]} final : False mtd_id 4302 list_pids : [1401696586, 1401696584, 1401696581, 1401696561, 1401696558, 1401696555, 1401696550, 1401696546, 1401696542, 1401696374, 1401696337, 1401696301, 1401696265, 1401696230, 1401696226] 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, '4289248') ('4302', '29810418', '1401696586', None, None, None, None, None, '4289248') ('4302', None, None, None, None, None, None, None, '4289248') ('4302', '29810418', '1401696584', None, None, None, None, None, '4289248') ('4302', None, None, None, None, None, None, None, '4289248') ('4302', '29810418', '1401696581', None, None, None, None, None, '4289248') ('4302', None, None, None, None, None, None, None, '4289248') ('4302', '29810418', '1401696561', None, None, None, None, None, '4289248') ('4302', None, None, None, None, None, None, None, '4289248') ('4302', '29810418', '1401696558', None, None, None, None, None, '4289248') ('4302', None, None, None, None, None, None, None, '4289248') ('4302', '29810418', '1401696555', None, None, None, None, None, '4289248') ('4302', None, None, None, None, None, None, None, '4289248') ('4302', '29810418', '1401696550', None, None, None, None, None, '4289248') ('4302', None, None, None, None, None, None, None, '4289248') ('4302', '29810418', '1401696546', None, None, None, None, None, '4289248') ('4302', None, None, None, None, None, None, None, '4289248') ('4302', '29810418', '1401696542', None, None, None, None, None, '4289248') ('4302', None, None, None, None, None, None, None, '4289248') ('4302', '29810418', '1401696374', None, None, None, None, None, '4289248') ('4302', None, None, None, None, None, None, None, '4289248') ('4302', '29810418', '1401696337', None, None, None, None, None, '4289248') ('4302', None, None, None, None, None, None, None, '4289248') ('4302', '29810418', '1401696301', None, None, None, None, None, '4289248') ('4302', None, None, None, None, None, None, None, '4289248') ('4302', '29810418', '1401696265', None, None, None, None, None, '4289248') ('4302', None, None, None, None, None, None, None, '4289248') ('4302', '29810418', '1401696230', None, None, None, None, None, '4289248') ('4302', None, None, None, None, None, None, None, '4289248') ('4302', '29810418', '1401696226', None, None, None, None, None, '4289248') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 15 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '29810418', '1401696586', None, None, None, None, None, '4289248'), ('4302', '29810418', '1401696584', None, None, None, None, None, '4289248'), ('4302', '29810418', '1401696581', None, None, None, None, None, '4289248'), ('4302', '29810418', '1401696561', None, None, None, None, None, '4289248'), ('4302', '29810418', '1401696558', None, None, None, None, None, '4289248'), ('4302', '29810418', '1401696555', None, None, None, None, None, '4289248'), ('4302', '29810418', '1401696550', None, None, None, None, None, '4289248'), ('4302', '29810418', '1401696546', None, None, None, None, None, '4289248'), ('4302', '29810418', '1401696542', None, None, None, None, None, '4289248'), ('4302', '29810418', '1401696374', None, None, None, None, None, '4289248'), ('4302', '29810418', '1401696337', None, None, None, None, None, '4289248'), ('4302', '29810418', '1401696301', None, None, None, None, None, '4289248'), ('4302', '29810418', '1401696265', None, None, None, None, None, '4289248'), ('4302', '29810418', '1401696230', None, None, None, None, None, '4289248'), ('4302', '29810418', '1401696226', None, None, None, None, None, '4289248')] time used for this insertion : 0.015521526336669922 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.248887538909912 time spend to save output : 0.01572251319885254 total time spend for step 4 : 3.2646100521087646 step5:split_time_score Tue Dec 30 15:55:04 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 : ['29810418'] 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 : [('29810418',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29810418) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1401696581: {'path': 'temp/1767106500_3392984_1401696581_ee1f95e9896c0f4b634943550e576fe8.jpg', 'extension': 'jpg'}, 1401696584: {'path': 'temp/1767106500_3392984_1401696584_d03fa10a5cbd7d63ba9719d5a6773f96.jpg', 'extension': 'jpg'}, 1401696586: {'path': 'temp/1767106500_3392984_1401696586_b7cb6998ccb25796faaa5050b0b7c3b8.jpg', 'extension': 'jpg'}, 1401696226: {'path': 'temp/1767106500_3392984_1401696226_cb7f6571b98dbc7f9352e164c1528140.jpg', 'extension': 'jpg'}, 1401696230: {'path': 'temp/1767106500_3392984_1401696230_0bd13e98b8733dc2e85f9db150d48c92.jpg', 'extension': 'jpg'}, 1401696265: {'path': 'temp/1767106500_3392984_1401696265_360d4e0fd7306604891b9ad2c4de012b.jpg', 'extension': 'jpg'}, 1401696301: {'path': 'temp/1767106500_3392984_1401696301_748a41c1970c2d45edc869edf9613b3e.jpg', 'extension': 'jpg'}, 1401696550: {'path': 'temp/1767106500_3392984_1401696550_97a7d070985b71850641ac08dba9326b.jpg', 'extension': 'jpg'}, 1401696555: {'path': 'temp/1767106500_3392984_1401696555_3f519605f3b639351066a1d251389d29.jpg', 'extension': 'jpg'}, 1401696558: {'path': 'temp/1767106500_3392984_1401696558_9bcf02db5159fd05c5b0bc3e0fcfa158.jpg', 'extension': 'jpg'}, 1401696561: {'path': 'temp/1767106500_3392984_1401696561_c928a2ba1e3801e23f76678d90d40021.jpg', 'extension': 'jpg'}, 1401696337: {'path': 'temp/1767106500_3392984_1401696337_ca6dcaa5e00b95d7a065af3eb4f3b2d0.jpg', 'extension': 'jpg'}, 1401696374: {'path': 'temp/1767106500_3392984_1401696374_95aa34989fd110e7e5833459e33ae7e0.jpg', 'extension': 'jpg'}, 1401696542: {'path': 'temp/1767106500_3392984_1401696542_808bd4fc24fb2a5fa75f447e0c8e11fd.jpg', 'extension': 'jpg'}, 1401696546: {'path': 'temp/1767106500_3392984_1401696546_41188db166e875305b0bd58fe2dc54c8.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 = 29810418; (('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 = 29810418 group by h (('15', 45),) 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=29810418 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 (29810418) 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 (29810418) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 30122025 29810418 Nombre de photos uploadées : 45 / 23040 (0%) 30122025 29810418 Nombre de photos taguées (types de déchets): 0 / 45 (0%) 30122025 29810418 Nombre de photos taguées (volume) : 0 / 45 (0%) [{'photo_id': 1401695967, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/30/31b49d2fe8249c09e8449d2cdb7125e4.jpg', 'username': None, 'uploaded_at': 1767105967, 'text': 'image_30122025_15_45_04_10160.jpg'}, {'photo_id': 1401695919, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/30/df1bd30fb555e36359db9e411e00fc1a.jpg', 'username': None, 'uploaded_at': 1767105967, 'text': 'image_30122025_15_45_15_10137.jpg'}, {'photo_id': 1401695889, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/30/a882b75527dd2b9acd9e32de33589e56.jpg', 'username': None, 'uploaded_at': 1767105967, 'text': 'image_30122025_15_45_24_9126.jpg'}, {'photo_id': 1401695885, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/30/e6d6ce8fa04e91c5cb12d3fa32d4241a.jpg', 'username': None, 'uploaded_at': 1767105967, 'text': 'image_30122025_15_45_34_10142.jpg'}] 0 [] elapsed_time : load_data_split_time_score 1.1920928955078125e-06 elapsed_time : order_list_meta_photo_and_scores 3.814697265625e-06 ????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0011324882507324219 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 29810418, '2025-12-30' ) 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-30' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2809232,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.23928141593933105 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= 2809232 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2809232, 'dashboard_run_id': 2820033, 'mtr_portfolio_id': 29790877, 'dashboard_result_id': 18840585, '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_P29790877_30-12-2025_05_54_27.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29790879, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29790880, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29790881, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29790882, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29790883, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29790884, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29790885, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29790886, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29790887, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29790888, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29790889, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29790890, 'pht': 3726}}"}, {'dashboat_entry_day': 2809232, 'dashboard_run_id': 2820033, 'mtr_portfolio_id': 29790983, 'dashboard_result_id': 18840586, '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_P29790983_30-12-2025_05_55_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29791023, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29791024, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29791025, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29791026, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29791027, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29791028, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29791029, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29791030, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29791031, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29791032, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29791033, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29791034, 'pht': 3726}}"}, {'dashboat_entry_day': 2809232, 'dashboard_run_id': 2820033, 'mtr_portfolio_id': 29791397, 'dashboard_result_id': 18840587, '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_P29791397_30-12-2025_05_55_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29791400, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29791401, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29791402, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29791403, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29791404, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29791405, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29791406, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29791407, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29791408, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29791409, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29791410, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29791411, 'pht': 3726}}"}, {'dashboat_entry_day': 2809232, 'dashboard_run_id': 2820033, 'mtr_portfolio_id': 29791790, 'dashboard_result_id': 18840588, '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_P29791790_30-12-2025_05_55_43.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29791798, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29791799, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29791800, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29791801, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29791802, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29791803, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29791804, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29791805, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29791806, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29791807, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29791808, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29791809, 'pht': 3726}}"}, {'dashboat_entry_day': 2809232, 'dashboard_run_id': 2820033, 'mtr_portfolio_id': 29792732, 'dashboard_result_id': 18840589, '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_P29792732_30-12-2025_05_56_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29792734, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29792735, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29792736, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29792737, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29792738, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29792739, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29792740, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29792741, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29792742, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29792743, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29792744, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29792745, 'pht': 3726}}"}, {'dashboat_entry_day': 2809232, 'dashboard_run_id': 2820033, 'mtr_portfolio_id': 29795877, 'dashboard_result_id': 18840590, '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_P29795877_30-12-2025_09_50_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29795878, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29795879, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29795880, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29795881, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29795882, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29795883, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29795884, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29795885, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29795886, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29795887, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29795888, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29795889, 'pht': 3726}}"}, {'dashboat_entry_day': 2809232, 'dashboard_run_id': 2820033, 'mtr_portfolio_id': 29797237, 'dashboard_result_id': 18840591, '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_P29797237_30-12-2025_10_39_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29797240, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29797241, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29797242, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29797243, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29797244, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29797245, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29797246, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29797247, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29797248, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29797249, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29797250, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29797251, 'pht': 3726}}"}, {'dashboat_entry_day': 2809232, 'dashboard_run_id': 2820033, 'mtr_portfolio_id': 29797610, 'dashboard_result_id': 18840592, '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_P29797610_30-12-2025_10_47_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29797618, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29797619, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29797620, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29797621, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29797622, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29797623, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29797624, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29797625, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29797626, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29797627, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29797628, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29797629, 'pht': 3726}}"}, {'dashboat_entry_day': 2809232, 'dashboard_run_id': 2820033, 'mtr_portfolio_id': 29798325, 'dashboard_result_id': 18840593, '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_P29798325_30-12-2025_11_03_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29798335, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29798336, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29798337, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29798338, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29798339, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29798340, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29798341, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29798342, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29798343, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29798344, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29798345, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29798346, 'pht': 3726}}"}, {'dashboat_entry_day': 2809232, 'dashboard_run_id': 2820033, 'mtr_portfolio_id': 29799025, 'dashboard_result_id': 18840594, '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_P29799025_30-12-2025_11_17_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29799061, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29799062, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29799063, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29799064, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29799065, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29799066, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29799067, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29799068, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29799069, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29799070, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29799071, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29799072, 'pht': 3726}}"}, {'dashboat_entry_day': 2809232, 'dashboard_run_id': 2820033, 'mtr_portfolio_id': 29799682, 'dashboard_result_id': 18840595, '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_P29799682_30-12-2025_11_35_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29799731, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29799732, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29799733, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29799734, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29799735, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29799736, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29799737, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29799738, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29799739, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29799740, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29799741, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29799742, 'pht': 3726}}"}, {'dashboat_entry_day': 2809232, 'dashboard_run_id': 2820033, 'mtr_portfolio_id': 29800360, 'dashboard_result_id': 18840596, '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_P29800360_30-12-2025_11_47_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29800377, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29800378, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29800379, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29800380, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29800381, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29800382, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29800383, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29800384, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29800385, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29800386, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29800387, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29800388, 'pht': 3726}}"}, {'dashboat_entry_day': 2809232, 'dashboard_run_id': 2820033, 'mtr_portfolio_id': 29800908, 'dashboard_result_id': 18840597, '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_P29800908_30-12-2025_12_05_30.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29800915, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29800916, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29800917, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29800918, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29800919, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29800920, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29800922, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29800923, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29800924, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29800925, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29800926, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29800927, 'pht': 3726}}"}, {'dashboat_entry_day': 2809232, 'dashboard_run_id': 2820033, 'mtr_portfolio_id': 29801565, 'dashboard_result_id': 18840598, '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_P29801565_30-12-2025_12_16_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29801569, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29801570, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29801571, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29801572, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29801573, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29801574, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29801575, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29801576, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29801577, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29801578, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29801579, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29801580, 'pht': 3726}}"}, {'dashboat_entry_day': 2809232, 'dashboard_run_id': 2820033, 'mtr_portfolio_id': 29802386, 'dashboard_result_id': 18840599, '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_P29802386_30-12-2025_12_32_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29802393, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29802394, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29802395, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29802396, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29802397, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29802398, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29802399, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29802400, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29802401, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29802402, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29802403, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29802404, 'pht': 3726}}"}, {'dashboat_entry_day': 2809232, 'dashboard_run_id': 2820033, 'mtr_portfolio_id': 29803120, 'dashboard_result_id': 18840600, '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_P29803120_30-12-2025_12_46_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29803161, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29803162, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29803163, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29803164, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29803165, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29803166, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29803167, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29803168, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29803169, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29803170, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29803171, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29803172, 'pht': 3726}}"}, {'dashboat_entry_day': 2809232, 'dashboard_run_id': 2820033, 'mtr_portfolio_id': 29803763, 'dashboard_result_id': 18840601, '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_P29803763_30-12-2025_13_07_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29803794, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29803795, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29803796, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29803797, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29803798, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29803799, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29803800, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29803801, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29803802, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29803803, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29803804, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29803805, 'pht': 3726}}"}, {'dashboat_entry_day': 2809232, 'dashboard_run_id': 2820033, 'mtr_portfolio_id': 29804529, 'dashboard_result_id': 18840602, '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_P29804529_30-12-2025_13_18_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29804536, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29804537, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29804538, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29804539, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29804540, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29804541, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29804542, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29804543, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29804544, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29804545, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29804546, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29804547, 'pht': 3726}}"}, {'dashboat_entry_day': 2809232, 'dashboard_run_id': 2820033, 'mtr_portfolio_id': 29804985, 'dashboard_result_id': 18840603, '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_P29804985_30-12-2025_13_39_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29805001, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29805002, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29805003, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29805004, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29805005, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29805006, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29805007, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29805008, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29805009, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29805010, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29805011, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29805012, 'pht': 3726}}"}, {'dashboat_entry_day': 2809232, 'dashboard_run_id': 2820033, 'mtr_portfolio_id': 29805655, 'dashboard_result_id': 18840604, '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_P29805655_30-12-2025_13_46_29.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29805666, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29805667, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29805668, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29805669, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29805670, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29805671, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29805672, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29805673, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29805674, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29805675, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29805676, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29805677, 'pht': 3726}}"}, {'dashboat_entry_day': 2809232, 'dashboard_run_id': 2820033, 'mtr_portfolio_id': 29806068, 'dashboard_result_id': 18840605, '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_P29806068_30-12-2025_14_02_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29806101, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29806102, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29806103, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29806104, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29806105, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29806106, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29806107, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29806108, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29806109, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29806110, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29806111, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29806112, 'pht': 3726}}"}, {'dashboat_entry_day': 2809232, 'dashboard_run_id': 2820033, 'mtr_portfolio_id': 29806405, 'dashboard_result_id': 18840606, '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_P29806405_30-12-2025_14_19_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29806430, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29806431, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29806432, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29806433, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29806434, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29806435, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29806436, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29806437, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29806438, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29806439, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29806440, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29806441, 'pht': 3726}}"}, {'dashboat_entry_day': 2809232, 'dashboard_run_id': 2820033, 'mtr_portfolio_id': 29807136, 'dashboard_result_id': 18840607, '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_P29807136_30-12-2025_14_36_57.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29807150, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29807151, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29807152, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29807153, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29807154, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29807155, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29807156, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29807157, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29807158, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29807159, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29807160, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29807161, 'pht': 3726}}"}, {'dashboat_entry_day': 2809232, 'dashboard_run_id': 2820033, 'mtr_portfolio_id': 29807749, 'dashboard_result_id': 18840608, '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_P29807749_30-12-2025_14_46_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29807753, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29807754, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29807755, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29807756, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29807757, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29807758, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29807759, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29807760, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29807761, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29807762, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29807763, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29807764, 'pht': 3726}}"}, {'dashboat_entry_day': 2809232, 'dashboard_run_id': 2820033, 'mtr_portfolio_id': 29807975, 'dashboard_result_id': 18840609, '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_P29807975_30-12-2025_15_00_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29807991, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29807992, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29807993, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29807994, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29807995, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29807996, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29807997, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29807998, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29807999, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29808000, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29808001, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29808002, 'pht': 3726}}"}, {'dashboat_entry_day': 2809232, 'dashboard_run_id': 2820033, 'mtr_portfolio_id': 29808572, 'dashboard_result_id': 18840610, '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_P29808572_30-12-2025_15_17_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29808589, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29808590, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29808591, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29808592, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29808593, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29808594, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29808596, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29808597, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29808598, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29808599, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29808600, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29808601, 'pht': 3726}}"}, {'dashboat_entry_day': 2809232, 'dashboard_run_id': 2820033, 'mtr_portfolio_id': 29809267, 'dashboard_result_id': 18840611, '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_P29809267_30-12-2025_15_34_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29809283, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29809284, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29809285, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29809286, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29809287, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29809288, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29809289, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29809290, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29809291, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29809292, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29809293, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29809294, 'pht': 3726}}"}, {'dashboat_entry_day': 2809232, 'dashboard_run_id': 2820033, 'mtr_portfolio_id': 29809890, 'dashboard_result_id': 18840612, '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_P29809890_30-12-2025_15_49_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29809898, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29809899, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29809900, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29809901, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29809902, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29809903, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29809904, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29809905, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29809906, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29809907, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29809908, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29809909, 'pht': 3726}}"}, {'dashboat_entry_day': 2809232, 'dashboard_run_id': 2820033, 'mtr_portfolio_id': 29810418, 'dashboard_result_id': 18840613, '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_P29810418_30-12-2025_15_51_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29810452, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29810453, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29810454, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29810455, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29810456, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29810457, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29810458, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29810459, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29810460, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29810461, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29810462, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29810463, '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 = 29790877 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': 4286652, 'mtr_portfolio_id': 29790877, 'created_at': datetime.datetime(2025, 12, 30, 5, 54, 26), 'result': '0.0348694091114477', 'result_long': None, 'result_double': None}] Qualite : 0.0348694091114477 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29790877 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29790877_30-12-2025_05_54_27.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29790877 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_P29790877_30-12-2025_05_54_27.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29790879, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29790880, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29790881, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29790882, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29790883, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29790884, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29790885, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29790886, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29790887, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29790888, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29790889, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29790890, 'pht': 3726}}" where mtr_portfolio_id = 29790877 and dashboard_run_id = 2820033 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`=29790877 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18840585, 0.0348694091114477, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29790877_30-12-2025_05_54_27.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29790879, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29790880, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29790881, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29790882, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29790883, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29790884, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29790885, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29790886, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29790887, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29790888, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29790889, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29790890, '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 = 29790983 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': 4286653, 'mtr_portfolio_id': 29790983, 'created_at': datetime.datetime(2025, 12, 30, 5, 54, 57), 'result': '0.0463877614951028', 'result_long': None, 'result_double': None}] Qualite : 0.0463877614951028 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29790983 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29790983_30-12-2025_05_55_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29790983 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_P29790983_30-12-2025_05_55_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29791023, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29791024, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29791025, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29791026, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29791027, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29791028, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29791029, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29791030, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29791031, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29791032, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29791033, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29791034, 'pht': 3726}}" where mtr_portfolio_id = 29790983 and dashboard_run_id = 2820033 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`=29790983 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18840586, 0.0463877614951028, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29790983_30-12-2025_05_55_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29791023, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29791024, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29791025, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29791026, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29791027, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29791028, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29791029, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29791030, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29791031, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29791032, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29791033, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29791034, '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 = 29791397 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': 4286654, 'mtr_portfolio_id': 29791397, 'created_at': datetime.datetime(2025, 12, 30, 5, 55, 30), 'result': '0.0505279555715365', 'result_long': None, 'result_double': None}] Qualite : 0.0505279555715365 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29791397 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29791397_30-12-2025_05_55_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29791397 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_P29791397_30-12-2025_05_55_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29791400, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29791401, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29791402, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29791403, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29791404, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29791405, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29791406, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29791407, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29791408, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29791409, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29791410, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29791411, 'pht': 3726}}" where mtr_portfolio_id = 29791397 and dashboard_run_id = 2820033 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`=29791397 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18840587, 0.0505279555715365, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29791397_30-12-2025_05_55_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29791400, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29791401, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29791402, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29791403, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29791404, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29791405, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29791406, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29791407, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29791408, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29791409, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29791410, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29791411, '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 = 29791790 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': 4286655, 'mtr_portfolio_id': 29791790, 'created_at': datetime.datetime(2025, 12, 30, 5, 55, 40), 'result': '0.06145194760347519', 'result_long': None, 'result_double': None}] Qualite : 0.06145194760347519 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29791790 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29791790_30-12-2025_05_55_43.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29791790 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_P29791790_30-12-2025_05_55_43.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29791798, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29791799, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29791800, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29791801, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29791802, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29791803, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29791804, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29791805, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29791806, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29791807, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29791808, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29791809, 'pht': 3726}}" where mtr_portfolio_id = 29791790 and dashboard_run_id = 2820033 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`=29791790 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18840588, 0.06145194760347519, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29791790_30-12-2025_05_55_43.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29791798, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29791799, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29791800, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29791801, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29791802, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29791803, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29791804, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29791805, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29791806, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29791807, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29791808, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29791809, '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 = 29792732 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': 4286656, 'mtr_portfolio_id': 29792732, 'created_at': datetime.datetime(2025, 12, 30, 5, 56), 'result': '0.04424892577297573', 'result_long': None, 'result_double': None}] Qualite : 0.04424892577297573 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29792732 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29792732_30-12-2025_05_56_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29792732 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_P29792732_30-12-2025_05_56_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29792734, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29792735, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29792736, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29792737, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29792738, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29792739, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29792740, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29792741, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29792742, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29792743, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29792744, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29792745, 'pht': 3726}}" where mtr_portfolio_id = 29792732 and dashboard_run_id = 2820033 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`=29792732 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18840589, 0.04424892577297573, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29792732_30-12-2025_05_56_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29792734, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29792735, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29792736, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29792737, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29792738, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29792739, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29792740, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29792741, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29792742, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29792743, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29792744, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29792745, '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 = 29795877 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': 4287149, 'mtr_portfolio_id': 29795877, 'created_at': datetime.datetime(2025, 12, 30, 9, 50, 58), 'result': '0.039355367116025095', 'result_long': None, 'result_double': None}] Qualite : 0.039355367116025095 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29795877 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29795877_30-12-2025_09_50_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29795877 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_P29795877_30-12-2025_09_50_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29795878, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29795879, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29795880, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29795881, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29795882, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29795883, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29795884, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29795885, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29795886, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29795887, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29795888, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29795889, 'pht': 3726}}" where mtr_portfolio_id = 29795877 and dashboard_run_id = 2820033 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`=29795877 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18840590, 0.039355367116025095, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29795877_30-12-2025_09_50_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29795878, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29795879, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29795880, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29795881, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29795882, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29795883, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29795884, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29795885, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29795886, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29795887, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29795888, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29795889, '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 = 29797237 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': 4287322, 'mtr_portfolio_id': 29797237, 'created_at': datetime.datetime(2025, 12, 30, 10, 38, 59), 'result': '0.033921253396910656', 'result_long': None, 'result_double': None}] Qualite : 0.033921253396910656 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29797237 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29797237_30-12-2025_10_39_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29797237 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_P29797237_30-12-2025_10_39_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29797240, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29797241, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29797242, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29797243, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29797244, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29797245, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29797246, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29797247, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29797248, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29797249, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29797250, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29797251, 'pht': 3726}}" where mtr_portfolio_id = 29797237 and dashboard_run_id = 2820033 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`=29797237 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18840591, 0.033921253396910656, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29797237_30-12-2025_10_39_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29797240, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29797241, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29797242, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29797243, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29797244, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29797245, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29797246, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29797247, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29797248, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29797249, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29797250, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29797251, '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 = 29797610 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': 4287387, 'mtr_portfolio_id': 29797610, 'created_at': datetime.datetime(2025, 12, 30, 10, 46, 59), 'result': '0.02814284116711131', 'result_long': None, 'result_double': None}] Qualite : 0.02814284116711131 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29797610 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29797610_30-12-2025_10_47_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29797610 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_P29797610_30-12-2025_10_47_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29797618, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29797619, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29797620, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29797621, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29797622, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29797623, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29797624, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29797625, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29797626, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29797627, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29797628, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29797629, 'pht': 3726}}" where mtr_portfolio_id = 29797610 and dashboard_run_id = 2820033 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`=29797610 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18840592, 0.02814284116711131, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29797610_30-12-2025_10_47_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29797618, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29797619, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29797620, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29797621, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29797622, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29797623, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29797624, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29797625, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29797626, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29797627, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29797628, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29797629, '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 = 29798325 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': 4287497, 'mtr_portfolio_id': 29798325, 'created_at': datetime.datetime(2025, 12, 30, 11, 3), 'result': '0.04468246908718581', 'result_long': None, 'result_double': None}] Qualite : 0.04468246908718581 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29798325 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29798325_30-12-2025_11_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29798325 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_P29798325_30-12-2025_11_03_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29798335, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29798336, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29798337, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29798338, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29798339, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29798340, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29798341, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29798342, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29798343, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29798344, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29798345, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29798346, 'pht': 3726}}" where mtr_portfolio_id = 29798325 and dashboard_run_id = 2820033 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`=29798325 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18840593, 0.04468246908718581, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29798325_30-12-2025_11_03_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29798335, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29798336, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29798337, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29798338, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29798339, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29798340, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29798341, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29798342, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29798343, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29798344, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29798345, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29798346, '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 = 29799025 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': 4287585, 'mtr_portfolio_id': 29799025, 'created_at': datetime.datetime(2025, 12, 30, 11, 16, 59), 'result': '0.08667658362391771', 'result_long': None, 'result_double': None}] Qualite : 0.08667658362391771 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29799025 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29799025_30-12-2025_11_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29799025 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_P29799025_30-12-2025_11_17_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29799061, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29799062, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29799063, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29799064, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29799065, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29799066, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29799067, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29799068, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29799069, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29799070, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29799071, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29799072, 'pht': 3726}}" where mtr_portfolio_id = 29799025 and dashboard_run_id = 2820033 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`=29799025 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18840594, 0.08667658362391771, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29799025_30-12-2025_11_17_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29799061, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29799062, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29799063, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29799064, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29799065, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29799066, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29799067, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29799068, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29799069, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29799070, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29799071, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29799072, '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 = 29799682 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': 4287640, 'mtr_portfolio_id': 29799682, 'created_at': datetime.datetime(2025, 12, 30, 11, 34, 59), 'result': '0.06698004484459952', 'result_long': None, 'result_double': None}] Qualite : 0.06698004484459952 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29799682 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29799682_30-12-2025_11_35_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29799682 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_P29799682_30-12-2025_11_35_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29799731, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29799732, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29799733, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29799734, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29799735, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29799736, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29799737, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29799738, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29799739, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29799740, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29799741, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29799742, 'pht': 3726}}" where mtr_portfolio_id = 29799682 and dashboard_run_id = 2820033 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`=29799682 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18840595, 0.06698004484459952, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29799682_30-12-2025_11_35_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29799731, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29799732, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29799733, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29799734, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29799735, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29799736, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29799737, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29799738, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29799739, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29799740, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29799741, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29799742, '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 = 29800360 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': 4287740, 'mtr_portfolio_id': 29800360, 'created_at': datetime.datetime(2025, 12, 30, 11, 46, 59), 'result': '0.09044129800279434', 'result_long': None, 'result_double': None}] Qualite : 0.09044129800279434 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29800360 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29800360_30-12-2025_11_47_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29800360 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_P29800360_30-12-2025_11_47_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29800377, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29800378, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29800379, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29800380, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29800381, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29800382, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29800383, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29800384, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29800385, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29800386, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29800387, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29800388, 'pht': 3726}}" where mtr_portfolio_id = 29800360 and dashboard_run_id = 2820033 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`=29800360 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18840596, 0.09044129800279434, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29800360_30-12-2025_11_47_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29800377, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29800378, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29800379, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29800380, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29800381, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29800382, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29800383, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29800384, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29800385, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29800386, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29800387, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29800388, '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 = 29800908 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': 4287857, 'mtr_portfolio_id': 29800908, 'created_at': datetime.datetime(2025, 12, 30, 12, 5, 30), 'result': '0.04178504958311081', 'result_long': None, 'result_double': None}] Qualite : 0.04178504958311081 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29800908 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29800908_30-12-2025_12_05_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29800908 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_P29800908_30-12-2025_12_05_30.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29800915, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29800916, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29800917, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29800918, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29800919, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29800920, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29800922, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29800923, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29800924, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29800925, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29800926, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29800927, 'pht': 3726}}" where mtr_portfolio_id = 29800908 and dashboard_run_id = 2820033 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`=29800908 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18840597, 0.04178504958311081, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29800908_30-12-2025_12_05_30.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29800915, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29800916, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29800917, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29800918, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29800919, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29800920, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29800922, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29800923, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29800924, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29800925, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29800926, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29800927, '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 = 29801565 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': 4287995, 'mtr_portfolio_id': 29801565, 'created_at': datetime.datetime(2025, 12, 30, 12, 16, 30), 'result': '0.061738346351304985', 'result_long': None, 'result_double': None}] Qualite : 0.061738346351304985 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29801565 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29801565_30-12-2025_12_16_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29801565 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_P29801565_30-12-2025_12_16_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29801569, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29801570, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29801571, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29801572, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29801573, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29801574, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29801575, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29801576, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29801577, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29801578, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29801579, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29801580, 'pht': 3726}}" where mtr_portfolio_id = 29801565 and dashboard_run_id = 2820033 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`=29801565 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18840598, 0.061738346351304985, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29801565_30-12-2025_12_16_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29801569, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29801570, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29801571, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29801572, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29801573, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29801574, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29801575, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29801576, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29801577, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29801578, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29801579, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29801580, '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 = 29802386 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': 4288100, 'mtr_portfolio_id': 29802386, 'created_at': datetime.datetime(2025, 12, 30, 12, 32, 58), 'result': '0.10020094194934427', 'result_long': None, 'result_double': None}] Qualite : 0.10020094194934427 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29802386 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29802386_30-12-2025_12_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29802386 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_P29802386_30-12-2025_12_32_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29802393, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29802394, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29802395, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29802396, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29802397, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29802398, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29802399, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29802400, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29802401, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29802402, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29802403, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29802404, 'pht': 3726}}" where mtr_portfolio_id = 29802386 and dashboard_run_id = 2820033 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`=29802386 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18840599, 0.10020094194934427, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29802386_30-12-2025_12_32_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29802393, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29802394, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29802395, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29802396, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29802397, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29802398, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29802399, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29802400, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29802401, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29802402, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29802403, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29802404, '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 = 29803120 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': 4288207, 'mtr_portfolio_id': 29803120, 'created_at': datetime.datetime(2025, 12, 30, 12, 46, 57), 'result': '0.06914954905671847', 'result_long': None, 'result_double': None}] Qualite : 0.06914954905671847 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29803120 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29803120_30-12-2025_12_46_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29803120 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_P29803120_30-12-2025_12_46_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29803161, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29803162, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29803163, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29803164, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29803165, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29803166, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29803167, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29803168, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29803169, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29803170, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29803171, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29803172, 'pht': 3726}}" where mtr_portfolio_id = 29803120 and dashboard_run_id = 2820033 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`=29803120 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18840600, 0.06914954905671847, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29803120_30-12-2025_12_46_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29803161, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29803162, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29803163, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29803164, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29803165, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29803166, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29803167, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29803168, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29803169, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29803170, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29803171, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29803172, '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 = 29803763 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': 4288276, 'mtr_portfolio_id': 29803763, 'created_at': datetime.datetime(2025, 12, 30, 13, 7), 'result': '0.060443862108655634', 'result_long': None, 'result_double': None}] Qualite : 0.060443862108655634 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29803763 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29803763_30-12-2025_13_07_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29803763 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_P29803763_30-12-2025_13_07_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29803794, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29803795, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29803796, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29803797, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29803798, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29803799, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29803800, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29803801, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29803802, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29803803, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29803804, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29803805, 'pht': 3726}}" where mtr_portfolio_id = 29803763 and dashboard_run_id = 2820033 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`=29803763 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18840601, 0.060443862108655634, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29803763_30-12-2025_13_07_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29803794, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29803795, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29803796, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29803797, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29803798, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29803799, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29803800, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29803801, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29803802, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29803803, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29803804, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29803805, '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 = 29804529 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': 4288429, 'mtr_portfolio_id': 29804529, 'created_at': datetime.datetime(2025, 12, 30, 13, 18, 59), 'result': '0.0690374605124261', 'result_long': None, 'result_double': None}] Qualite : 0.0690374605124261 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29804529 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29804529_30-12-2025_13_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29804529 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_P29804529_30-12-2025_13_18_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29804536, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29804537, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29804538, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29804539, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29804540, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29804541, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29804542, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29804543, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29804544, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29804545, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29804546, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29804547, 'pht': 3726}}" where mtr_portfolio_id = 29804529 and dashboard_run_id = 2820033 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`=29804529 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18840602, 0.0690374605124261, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29804529_30-12-2025_13_18_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29804536, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29804537, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29804538, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29804539, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29804540, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29804541, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29804542, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29804543, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29804544, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29804545, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29804546, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29804547, '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 = 29804985 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': 4288482, 'mtr_portfolio_id': 29804985, 'created_at': datetime.datetime(2025, 12, 30, 13, 38, 59), 'result': '0.07868173997295111', 'result_long': None, 'result_double': None}] Qualite : 0.07868173997295111 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29804985 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29804985_30-12-2025_13_39_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29804985 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_P29804985_30-12-2025_13_39_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29805001, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29805002, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29805003, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29805004, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29805005, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29805006, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29805007, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29805008, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29805009, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29805010, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29805011, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29805012, 'pht': 3726}}" where mtr_portfolio_id = 29804985 and dashboard_run_id = 2820033 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`=29804985 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18840603, 0.07868173997295111, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29804985_30-12-2025_13_39_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29805001, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29805002, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29805003, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29805004, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29805005, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29805006, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29805007, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29805008, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29805009, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29805010, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29805011, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29805012, '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 = 29805655 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': 4288574, 'mtr_portfolio_id': 29805655, 'created_at': datetime.datetime(2025, 12, 30, 13, 46, 29), 'result': '0.07467653211303711', 'result_long': None, 'result_double': None}] Qualite : 0.07467653211303711 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29805655 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29805655_30-12-2025_13_46_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29805655 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_P29805655_30-12-2025_13_46_29.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29805666, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29805667, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29805668, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29805669, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29805670, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29805671, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29805672, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29805673, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29805674, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29805675, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29805676, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29805677, 'pht': 3726}}" where mtr_portfolio_id = 29805655 and dashboard_run_id = 2820033 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`=29805655 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18840604, 0.07467653211303711, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29805655_30-12-2025_13_46_29.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29805666, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29805667, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29805668, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29805669, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29805670, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29805671, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29805672, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29805673, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29805674, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29805675, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29805676, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29805677, '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 = 29806068 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': 4288620, 'mtr_portfolio_id': 29806068, 'created_at': datetime.datetime(2025, 12, 30, 14, 2, 58), 'result': '0.041353131115149946', 'result_long': None, 'result_double': None}] Qualite : 0.041353131115149946 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29806068 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29806068_30-12-2025_14_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29806068 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_P29806068_30-12-2025_14_02_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29806101, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29806102, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29806103, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29806104, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29806105, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29806106, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29806107, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29806108, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29806109, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29806110, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29806111, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29806112, 'pht': 3726}}" where mtr_portfolio_id = 29806068 and dashboard_run_id = 2820033 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`=29806068 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18840605, 0.041353131115149946, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29806068_30-12-2025_14_02_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29806101, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29806102, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29806103, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29806104, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29806105, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29806106, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29806107, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29806108, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29806109, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29806110, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29806111, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29806112, '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 = 29806405 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': 4288693, 'mtr_portfolio_id': 29806405, 'created_at': datetime.datetime(2025, 12, 30, 14, 19, 1), 'result': '0.05856573578394818', 'result_long': None, 'result_double': None}] Qualite : 0.05856573578394818 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29806405 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29806405_30-12-2025_14_19_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29806405 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_P29806405_30-12-2025_14_19_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29806430, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29806431, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29806432, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29806433, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29806434, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29806435, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29806436, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29806437, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29806438, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29806439, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29806440, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29806441, 'pht': 3726}}" where mtr_portfolio_id = 29806405 and dashboard_run_id = 2820033 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`=29806405 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18840606, 0.05856573578394818, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29806405_30-12-2025_14_19_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29806430, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29806431, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29806432, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29806433, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29806434, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29806435, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29806436, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29806437, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29806438, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29806439, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29806440, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29806441, '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 = 29807136 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': 4288763, 'mtr_portfolio_id': 29807136, 'created_at': datetime.datetime(2025, 12, 30, 14, 36, 57), 'result': '0.0666570528973185', 'result_long': None, 'result_double': None}] Qualite : 0.0666570528973185 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29807136 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29807136_30-12-2025_14_36_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29807136 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_P29807136_30-12-2025_14_36_57.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29807150, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29807151, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29807152, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29807153, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29807154, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29807155, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29807156, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29807157, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29807158, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29807159, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29807160, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29807161, 'pht': 3726}}" where mtr_portfolio_id = 29807136 and dashboard_run_id = 2820033 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`=29807136 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18840607, 0.0666570528973185, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29807136_30-12-2025_14_36_57.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29807150, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29807151, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29807152, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29807153, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29807154, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29807155, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29807156, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29807157, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29807158, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29807159, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29807160, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29807161, '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 = 29807749 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': 4288856, 'mtr_portfolio_id': 29807749, 'created_at': datetime.datetime(2025, 12, 30, 14, 46, 58), 'result': '0.0822214256802385', 'result_long': None, 'result_double': None}] Qualite : 0.0822214256802385 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29807749 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29807749_30-12-2025_14_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29807749 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_P29807749_30-12-2025_14_46_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29807753, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29807754, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29807755, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29807756, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29807757, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29807758, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29807759, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29807760, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29807761, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29807762, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29807763, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29807764, 'pht': 3726}}" where mtr_portfolio_id = 29807749 and dashboard_run_id = 2820033 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`=29807749 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18840608, 0.0822214256802385, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29807749_30-12-2025_14_46_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29807753, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29807754, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29807755, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29807756, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29807757, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29807758, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29807759, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29807760, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29807761, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29807762, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29807763, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29807764, '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 = 29807975 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': 4288885, 'mtr_portfolio_id': 29807975, 'created_at': datetime.datetime(2025, 12, 30, 15, 2, 59), 'result': '0.05405081722722423', 'result_long': None, 'result_double': None}] Qualite : 0.05405081722722423 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29807975 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29807975_30-12-2025_15_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29807975 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_P29807975_30-12-2025_15_03_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29807991, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29807992, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29807993, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29807994, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29807995, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29807996, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29807997, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29807998, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29807999, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29808000, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29808001, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29808002, 'pht': 3726}}" where mtr_portfolio_id = 29807975 and dashboard_run_id = 2820033 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`=29807975 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18840609, 0.05405081722722423, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29807975_30-12-2025_15_03_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29807991, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29807992, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29807993, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29807994, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29807995, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29807996, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29807997, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29807998, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29807999, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29808000, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29808001, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29808002, '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 = 29808572 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': 4288972, 'mtr_portfolio_id': 29808572, 'created_at': datetime.datetime(2025, 12, 30, 15, 16, 59), 'result': '0.050320479973079126', 'result_long': None, 'result_double': None}] Qualite : 0.050320479973079126 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29808572 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29808572_30-12-2025_15_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29808572 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_P29808572_30-12-2025_15_17_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29808589, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29808590, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29808591, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29808592, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29808593, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29808594, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29808596, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29808597, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29808598, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29808599, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29808600, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29808601, 'pht': 3726}}" where mtr_portfolio_id = 29808572 and dashboard_run_id = 2820033 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`=29808572 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18840610, 0.050320479973079126, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29808572_30-12-2025_15_17_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29808589, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29808590, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29808591, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29808592, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29808593, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29808594, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29808596, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29808597, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29808598, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29808599, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29808600, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29808601, '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 = 29809267 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': 4289079, 'mtr_portfolio_id': 29809267, 'created_at': datetime.datetime(2025, 12, 30, 15, 33, 59), 'result': '0.057795355547802296', 'result_long': None, 'result_double': None}] Qualite : 0.057795355547802296 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29809267 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29809267_30-12-2025_15_34_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29809267 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_P29809267_30-12-2025_15_34_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29809283, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29809284, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29809285, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29809286, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29809287, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29809288, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29809289, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29809290, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29809291, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29809292, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29809293, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29809294, 'pht': 3726}}" where mtr_portfolio_id = 29809267 and dashboard_run_id = 2820033 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`=29809267 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18840611, 0.057795355547802296, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29809267_30-12-2025_15_34_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29809283, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29809284, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29809285, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29809286, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29809287, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29809288, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29809289, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29809290, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29809291, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29809292, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29809293, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29809294, '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 = 29809890 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': 4289165, 'mtr_portfolio_id': 29809890, 'created_at': datetime.datetime(2025, 12, 30, 15, 49), 'result': '0.048586920997346045', 'result_long': None, 'result_double': None}] Qualite : 0.048586920997346045 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29809890 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29809890_30-12-2025_15_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29809890 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_P29809890_30-12-2025_15_49_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29809898, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29809899, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29809900, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29809901, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29809902, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29809903, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29809904, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29809905, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29809906, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29809907, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29809908, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29809909, 'pht': 3726}}" where mtr_portfolio_id = 29809890 and dashboard_run_id = 2820033 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`=29809890 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18840612, 0.048586920997346045, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29809890_30-12-2025_15_49_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29809898, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29809899, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29809900, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29809901, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29809902, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29809903, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29809904, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29809905, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29809906, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29809907, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29809908, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29809909, '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 = 29810418 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': 4289248, 'mtr_portfolio_id': 29810418, 'created_at': datetime.datetime(2025, 12, 30, 15, 55), 'result': '0.03734028426986902', 'result_long': None, 'result_double': None}] Qualite : 0.03734028426986902 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29810418 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29810418_30-12-2025_15_55_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29810418 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_P29810418_30-12-2025_15_55_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29810452, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29810453, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29810454, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29810455, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29810456, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29810457, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29810458, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29810459, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29810460, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29810461, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29810462, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29810463, 'pht': 3726}}" where mtr_portfolio_id = 29810418 and dashboard_run_id = 2820033 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`=29810418 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18840613, 0.03734028426986902, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29810418_30-12-2025_15_55_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29810452, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29810453, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29810454, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29810455, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29810456, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29810457, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29810458, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29810459, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29810460, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29810461, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29810462, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29810463, '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 (29790877,29790983,29791397,29791790,29792732,29795877,29797237,29797610,29798325,29799025,29799682,29800360,29800908,29801565,29802386,29803120,29803763,29804529,29804985,29805655,29806068,29806405,29807136,29807749,29807975,29808572,29809267,29809890,29810418) result : ((1401601673,), (1401601679,), (1401601753,), (1401601754,), (1401601755,), (1401601757,), (1401601778,), (1401601779,), (1401601780,), (1401601800,), (1401601804,), (1401601808,), (1401601837,), (1401601841,), (1401601845,), (1401601830,), (1401601831,), (1401601834,), (1401601851,), (1401601852,), (1401601854,), (1401601858,), (1401601887,), (1401601888,), (1401601889,), (1401601912,), (1401601914,), (1401601916,), (1401601918,), (1401601944,), (1401601946,), (1401601948,), (1401601950,), (1401601952,), (1401601954,), (1401601962,), (1401601965,), (1401601968,), (1401601970,), (1401601998,), (1401602028,), (1401602058,), (1401602416,), (1401602449,), (1401602477,), (1401602480,), (1401602484,), (1401602485,), (1401602637,), (1401602638,), (1401602639,), (1401602642,), (1401602647,), (1401602650,), (1401602666,), (1401602668,), (1401602670,), (1401602692,), (1401602693,), (1401602694,), (1401602695,), (1401602719,), (1401602720,), (1401602722,), (1401602727,), (1401602731,), (1401602735,), (1401602746,), (1401602748,), (1401602753,), (1401602756,), (1401602760,), (1401602767,), (1401602773,), (1401602775,), (1401602777,), (1401602781,), (1401602785,), (1401602786,), (1401602789,), (1401602792,), (1401602796,), (1401602800,), (1401602803,), (1401602805,), (1401602808,), (1401602809,), (1401602811,), (1401602815,), (1401602874,), (1401602868,), (1401602870,), (1401602872,), (1401602896,), (1401602899,), (1401602901,), (1401602904,), (1401602908,), (1401602920,), (1401602921,), (1401602954,), (1401602957,), (1401602991,), (1401602992,), (1401602993,), (1401602996,), (1401602999,), (1401603009,), (1401603011,), (1401603015,), (1401603020,), (1401603025,), (1401603029,), (1401603032,), (1401603038,), (1401603040,), (1401603059,), (1401603060,), (1401603061,), (1401603082,), (1401603083,), (1401603084,), (1401603087,), (1401603102,), (1401603104,), (1401603108,), (1401603114,), (1401603155,), (1401603157,), (1401603158,), (1401603160,), (1401603162,), (1401603165,), (1401603176,), (1401603192,), (1401603194,), (1401603196,), (1401603199,), (1401603203,), (1401603216,), (1401603219,), (1401603222,), (1401603225,), (1401603230,), (1401603254,), (1401603258,), (1401603311,), (1401603312,), (1401603329,), (1401603331,), (1401603334,), (1401603246,), (1401603247,), (1401603248,), (1401603251,), (1401603267,), (1401603269,), (1401603272,), (1401603276,), (1401603280,), (1401603285,), (1401603299,), (1401603302,), (1401603307,), (1401603309,), (1401603322,), (1401603324,), (1401603327,), (1401603340,), (1401603390,), (1401603392,), (1401603432,), (1401603434,), (1401603435,), (1401603437,), (1401603455,), (1401603457,), (1401603460,), (1401603463,), (1401603485,), (1401603493,), (1401603499,), (1401603503,), (1401603508,), (1401603519,), (1401603522,), (1401603524,), (1401603547,), (1401603549,), (1401603553,), (1401603557,), (1401603560,), (1401603563,), (1401603568,), (1401603573,), (1401603575,), (1401603579,), (1401603581,), (1401603585,), (1401603587,), (1401603598,), (1401603600,), (1401603601,), (1401603643,), (1401603646,), (1401603650,), (1401603656,), (1401603660,), (1401603663,), (1401603671,), (1401603697,), (1401606743,), (1401606683,), (1401606740,), (1401606756,), (1401606758,), (1401606760,), (1401606761,), (1401606763,), (1401606777,), (1401606779,), (1401606782,), (1401606784,), (1401606786,), (1401606788,), (1401606796,), (1401606798,), (1401606801,), (1401606803,), (1401606805,), (1401606808,), (1401606812,), (1401606831,), (1401606834,), (1401606837,), (1401606882,), (1401610665,), (1401639240,), (1401639300,), (1401639683,), (1401639691,), (1401639693,), (1401639696,), (1401639717,), (1401639801,), (1401639803,), (1401639890,), (1401639925,), (1401645937,), (1401649754,), (1401649756,), (1401649759,), (1401649760,), (1401649765,), (1401649782,), (1401649804,), (1401649805,), (1401649830,), (1401649831,), (1401649868,), (1401649870,), (1401649871,), (1401649872,), (1401649874,), (1401649893,), (1401649895,), (1401649896,), (1401649947,), (1401649948,), (1401649949,), (1401649971,), (1401649973,), (1401649975,), (1401649979,), (1401649982,), (1401649985,), (1401649994,), (1401649997,), (1401650004,), (1401650006,), (1401650008,), (1401650011,), (1401650014,), (1401650017,), (1401650062,), (1401650064,), (1401650065,), (1401650066,), (1401650093,), (1401650094,), (1401650095,), (1401650097,), (1401650116,), (1401650118,), (1401650179,), (1401650181,), (1401650182,), (1401650184,), (1401650205,), (1401650206,), (1401650207,), (1401650208,), (1401650211,), (1401650254,), (1401650257,), (1401650258,), (1401650302,), (1401650522,), (1401650299,), (1401650300,), (1401650332,), (1401650335,), (1401650338,), (1401650342,), (1401650345,), (1401650347,), (1401650363,), (1401650365,), (1401650369,), (1401650372,), (1401650380,), (1401650384,), (1401650413,), (1401650417,), (1401650421,), (1401650425,), (1401650430,), (1401650434,), (1401650443,), (1401650445,), (1401650447,), (1401650449,), (1401650451,), (1401650453,), (1401650467,), (1401650469,), (1401650474,), (1401650481,), (1401650484,), (1401650487,), (1401650493,), (1401650494,), (1401650495,), (1401650498,), (1401650501,), (1401650504,), (1401650526,), (1401650527,), (1401650529,), (1401650536,), (1401650546,), (1401650563,), (1401650565,), (1401650567,), (1401650577,), (1401650584,), (1401650587,), (1401650624,), (1401650626,), (1401650628,), (1401650630,), (1401650632,), (1401650897,), (1401650927,), (1401650958,), (1401650997,), (1401651286,), (1401651309,), (1401651318,), (1401651616,), (1401651651,), (1401651688,), (1401651726,), (1401651768,), (1401652104,), (1401652151,), (1401652191,), (1401652228,), (1401652265,), (1401652305,), (1401652397,), (1401652433,), (1401652571,), (1401652578,), (1401652597,), (1401652601,), (1401653110,), (1401653595,), (1401653555,), (1401653731,), (1401653732,), (1401653754,), (1401653762,), (1401654123,), (1401654184,), (1401654246,), (1401654278,), (1401654311,), (1401654470,), (1401654473,), (1401654478,), (1401654480,), (1401654520,), (1401654523,), (1401654533,), (1401654806,), (1401654834,), (1401654836,), (1401655017,), (1401655020,), (1401655028,), (1401655061,), (1401655063,), (1401655066,), (1401655068,), (1401655071,), (1401655074,), (1401655100,), (1401655137,), (1401655173,), (1401655204,), (1401655241,), (1401655276,), (1401655440,), (1401655473,), (1401655505,), (1401655536,), (1401655548,), (1401655585,), (1401655688,), (1401655726,), (1401655747,), (1401655750,), (1401656085,), (1401656086,), (1401656106,), (1401656122,), (1401656131,), (1401656245,), (1401656248,), (1401656251,), (1401656254,), (1401656257,), (1401656497,), (1401656532,), (1401656568,), (1401656603,), (1401656955,), (1401656842,), (1401656877,), (1401656909,), (1401656925,), (1401657487,), (1401657549,), (1401657667,), (1401657713,), (1401657767,), (1401657841,), (1401658014,), (1401658018,), (1401658032,), (1401658067,), (1401658100,), (1401658138,), (1401658471,), (1401658474,), (1401658507,), (1401658524,), (1401658529,), (1401658532,), (1401658538,), (1401658539,), (1401658541,), (1401658543,), (1401658545,), (1401658546,), (1401658557,), (1401658559,), (1401658562,), (1401658572,), (1401658580,), (1401658591,), (1401658606,), (1401658616,), (1401658880,), (1401658914,), (1401658946,), (1401658989,), (1401659029,), (1401659382,), (1401659406,), (1401659597,), (1401659631,), (1401659672,), (1401659712,), (1401659716,), (1401659720,), (1401659850,), (1401659853,), (1401659857,), (1401659861,), (1401659864,), (1401659902,), (1401659904,), (1401659907,), (1401659909,), (1401659913,), (1401660087,), (1401660088,), (1401660089,), (1401660149,), (1401660151,), (1401660152,), (1401660189,), (1401660226,), (1401660257,), (1401660267,), (1401660283,), (1401660296,), (1401660309,), (1401660325,), (1401660353,), (1401660384,), (1401660387,), (1401660430,), (1401660423,), (1401660425,), (1401660426,), (1401660480,), (1401660482,), (1401660519,), (1401660643,), (1401660761,), (1401660861,), (1401661666,), (1401661697,), (1401661730,), (1401661762,), (1401661799,), (1401661985,), (1401662038,), (1401662134,), (1401662223,), (1401662315,), (1401662584,), (1401662599,), (1401662628,), (1401662632,), (1401662644,), (1401662655,), (1401662673,), (1401662696,), (1401662733,), (1401662771,), (1401662807,), (1401663076,), (1401663088,), (1401663096,), (1401663100,), (1401663105,), (1401663180,), (1401663213,), (1401663246,), (1401663279,), (1401663290,), (1401663292,), (1401663297,), (1401663299,), (1401663302,), (1401663305,), (1401663308,), (1401663312,), (1401663314,), (1401663317,), (1401663319,), (1401663324,), (1401663350,), (1401663352,), (1401663354,), (1401663358,), (1401663426,), (1401663431,), (1401663434,), (1401663438,), (1401663443,), (1401663447,), (1401663460,), (1401663463,), (1401663465,), (1401663468,), (1401663472,), (1401663499,), (1401663501,), (1401663504,), (1401663508,), (1401663531,), (1401663534,), (1401663537,), (1401663579,), (1401663591,), (1401663594,), (1401663597,), (1401663628,), (1401663610,), (1401663614,), (1401663647,), (1401663650,), (1401663653,), (1401663658,), (1401663663,), (1401663667,), (1401663686,), (1401663715,), (1401663749,), (1401663764,), (1401663777,), (1401663785,), (1401663809,), (1401663813,), (1401663815,), (1401663816,), (1401663819,), (1401663821,), (1401663831,), (1401663833,), (1401663838,), (1401663840,), (1401663842,), (1401663845,), (1401663855,), (1401663856,), (1401663859,), (1401663860,), (1401663863,), (1401663864,), (1401663865,), (1401663866,), (1401663869,), (1401663878,), (1401663882,), (1401663886,), (1401664027,), (1401664033,), (1401664040,), (1401664043,), (1401664096,), (1401664099,), (1401664102,), (1401664106,), (1401664109,), (1401664111,), (1401664123,), (1401664142,), (1401664144,), (1401664145,), (1401664146,), (1401664331,), (1401664362,), (1401664392,), (1401664424,), (1401664456,), (1401664522,), (1401664554,), (1401664556,), (1401664558,), (1401664560,), (1401664592,), (1401664594,), (1401664597,), (1401664600,), (1401664604,), (1401664606,), (1401664617,), (1401664620,), (1401664633,), (1401664678,), (1401664677,), (1401664710,), (1401664713,), (1401664716,), (1401664718,), (1401664737,), (1401664738,), (1401664857,), (1401664927,), (1401664930,), (1401664932,), (1401664935,), (1401664939,), (1401664966,), (1401664967,), (1401664968,), (1401665001,), (1401665089,), (1401665289,), (1401665293,), (1401665298,), (1401665534,), (1401665536,), (1401665538,), (1401665541,), (1401665544,), (1401665549,), (1401665557,), (1401665566,), (1401665568,), (1401665569,), (1401665570,), (1401665573,), (1401665575,), (1401665599,), (1401665600,), (1401665603,), (1401665606,), (1401665609,), (1401665632,), (1401665636,), (1401665640,), (1401665644,), (1401665647,), (1401665663,), (1401665665,), (1401665692,), (1401665695,), (1401665698,), (1401665752,), (1401665758,), (1401665764,), (1401665769,), (1401665777,), (1401665778,), (1401665780,), (1401665781,), (1401665782,), (1401665783,), (1401665807,), (1401665802,), (1401665804,), (1401665840,), (1401666405,), (1401666475,), (1401666541,), (1401667232,), (1401667263,), (1401667294,), (1401667470,), (1401667533,), (1401667601,), (1401668029,), (1401668076,), (1401668110,), (1401668707,), (1401668742,), (1401668841,), (1401670023,), (1401670105,), (1401670559,), (1401670560,), (1401670563,), (1401670621,), (1401670683,), (1401670685,), (1401670713,), (1401670808,), (1401670818,), (1401671089,), (1401671091,), (1401671093,), (1401671097,), (1401671124,), (1401671126,), (1401671128,), (1401671130,), (1401671160,), (1401671477,), (1401671440,), (1401671839,), (1401671894,), (1401672166,), (1401672226,), (1401672276,), (1401672309,), (1401672432,), (1401672438,), (1401672471,), (1401672710,), (1401672722,), (1401672739,), (1401672762,), (1401673017,), (1401673031,), (1401673033,), (1401673063,), (1401673065,), (1401673067,), (1401673119,), (1401673129,), (1401673152,), (1401673160,), (1401673165,), (1401673193,), (1401673196,), (1401673225,), (1401673227,), (1401673264,), (1401673267,), (1401673394,), (1401673408,), (1401673409,), (1401673412,), (1401673536,), (1401673537,), (1401673539,), (1401673543,), (1401673564,), (1401673567,), (1401673570,), (1401673694,), (1401673711,), (1401673721,), (1401673798,), (1401673786,), (1401673791,), (1401673842,), (1401673850,), (1401673852,), (1401673872,), (1401673922,), (1401673924,), (1401673926,), (1401673929,), (1401673932,), (1401673937,), (1401673962,), (1401673981,), (1401673993,), (1401674123,), (1401674131,), (1401674134,), (1401674138,), (1401674144,), (1401674146,), (1401674158,), (1401674159,), (1401674165,), (1401674167,), (1401674170,), (1401674171,), (1401674174,), (1401674176,), (1401674178,), (1401674179,), (1401674185,), (1401674188,), (1401674215,), (1401674217,), (1401674257,), (1401674293,), (1401674295,), (1401674296,), (1401674297,), (1401674349,), (1401674358,), (1401674362,), (1401674446,), (1401674479,), (1401674492,), (1401674494,), (1401674526,), (1401674530,), (1401674593,), (1401674594,), (1401674595,), (1401674598,), (1401674600,), (1401674603,), (1401674638,), (1401674640,), (1401674642,), (1401674644,), (1401674668,), (1401674669,), (1401674671,), (1401674673,), (1401674677,), (1401674707,), (1401674698,), (1401674701,), (1401674704,), (1401674736,), (1401674738,), (1401674740,), (1401674742,), (1401674841,), (1401674850,), (1401674852,), (1401674875,), (1401674878,), (1401674881,), (1401674886,), (1401674920,), (1401674922,), (1401674924,), (1401674926,), (1401674955,), (1401674957,), (1401674961,), (1401674966,), (1401674970,), (1401674979,), (1401674988,), (1401674990,), (1401674994,), (1401675002,), (1401675005,), (1401675009,), (1401675012,), (1401675014,), (1401675181,), (1401675185,), (1401675187,), (1401675190,), (1401675193,), (1401675197,), (1401675205,), (1401675207,), (1401675210,), (1401675213,), (1401675218,), (1401675222,), (1401675226,), (1401675242,), (1401675245,), (1401675248,), (1401675345,), (1401678620,), (1401678559,), (1401678592,), (1401678971,), (1401678975,), (1401678979,), (1401678982,), (1401678987,), (1401678991,), (1401679011,), (1401679013,), (1401679015,), (1401679017,), (1401679045,), (1401679048,), (1401679050,), (1401679053,), (1401679057,), (1401679076,), (1401679079,), (1401679080,), (1401679081,), (1401679084,), (1401679105,), (1401679108,), (1401679111,), (1401679114,), (1401679117,), (1401679136,), (1401679138,), (1401679140,), (1401679142,), (1401679145,), (1401679149,), (1401679179,), (1401679180,), (1401679181,), (1401679184,), (1401679221,), (1401679224,), (1401679226,), (1401679230,), (1401679233,), (1401679235,), (1401679257,), (1401679259,), (1401679272,), (1401679300,), (1401679305,), (1401679306,), (1401679309,), (1401679312,), (1401679316,), (1401679336,), (1401679338,), (1401679341,), (1401679344,), (1401679392,), (1401679375,), (1401679377,), (1401679379,), (1401679383,), (1401679388,), (1401679407,), (1401679409,), (1401679411,), (1401679415,), (1401679477,), (1401679480,), (1401679482,), (1401679485,), (1401679489,), (1401679511,), (1401679513,), (1401679514,), (1401679518,), (1401679523,), (1401679527,), (1401679572,), (1401679575,), (1401679578,), (1401679582,), (1401679613,), (1401679614,), (1401679615,), (1401679617,), (1401679621,), (1401679623,), (1401679940,), (1401679977,), (1401680009,), (1401680044,), (1401680077,), (1401680478,), (1401680513,), (1401680543,), (1401680578,), (1401680614,), (1401680649,), (1401680773,), (1401680806,), (1401680837,), (1401680850,), (1401680852,), (1401680861,), (1401680865,), (1401680868,), (1401680873,), (1401680955,), (1401680996,), (1401681037,), (1401681098,), (1401681161,), (1401681226,), (1401681645,), (1401681674,), (1401681707,), (1401681744,), (1401681872,), (1401681875,), (1401681878,), (1401681882,), (1401681886,), (1401681888,), (1401681904,), (1401681906,), (1401681908,), (1401681911,), (1401681935,), (1401681937,), (1401681939,), (1401681942,), (1401681945,), (1401682408,), (1401682369,), (1401682393,), (1401682464,), (1401682465,), (1401682466,), (1401682468,), (1401682473,), (1401682566,), (1401682589,), (1401682600,), (1401682603,), (1401682628,), (1401682629,), (1401682631,), (1401682632,), (1401682635,), (1401682639,), (1401682663,), (1401682672,), (1401682678,), (1401682681,), (1401682709,), (1401682723,), (1401682729,), (1401682744,), (1401682754,), (1401682770,), (1401682811,), (1401682812,), (1401682817,), (1401682846,), (1401682850,), (1401682883,), (1401682917,), (1401683183,), (1401683186,), (1401683189,), (1401683190,), (1401683193,), (1401683195,), (1401683335,), (1401683334,), (1401683445,), (1401683446,), (1401683448,), (1401683450,), (1401683658,), (1401683748,), (1401683812,), (1401683879,), (1401683922,), (1401683965,), (1401684115,), (1401684118,), (1401684119,), (1401684121,), (1401684123,), (1401684126,), (1401684175,), (1401684177,), (1401684179,), (1401684182,), (1401684185,), (1401684189,), (1401684205,), (1401684207,), (1401684211,), (1401684215,), (1401684219,), (1401684227,), (1401684236,), (1401684241,), (1401684243,), (1401684246,), (1401684249,), (1401684251,), (1401684253,), (1401684274,), (1401684276,), (1401684279,), (1401684281,), (1401684283,), (1401684286,), (1401684295,), (1401684308,), (1401684319,), (1401684325,), (1401684327,), (1401684355,), (1401684452,), (1401684510,), (1401684547,), (1401684551,), (1401684552,), (1401684554,), (1401684557,), (1401684559,), (1401684612,), (1401684617,), (1401684623,), (1401684659,), (1401684694,), (1401684695,), (1401684704,), (1401684707,), (1401685132,), (1401684883,), (1401684918,), (1401685020,), (1401685062,), (1401685097,), (1401685339,), (1401685341,), (1401685342,), (1401685343,), (1401686004,), (1401686020,), (1401686049,), (1401686071,), (1401686075,), (1401686090,), (1401686111,), (1401686113,), (1401686136,), (1401686143,), (1401686145,), (1401686341,), (1401686343,), (1401686345,), (1401686347,), (1401686632,), (1401686670,), (1401686711,), (1401686747,), (1401686786,), (1401687310,), (1401687349,), (1401687383,), (1401687417,), (1401687451,), (1401687463,), (1401687491,), (1401687527,), (1401687561,), (1401687923,), (1401687990,), (1401688073,), (1401688114,), (1401688153,), (1401688184,), (1401688382,), (1401688405,), (1401688414,), (1401688417,), (1401688453,), (1401688474,), (1401688499,), (1401688501,), (1401688503,), (1401688517,), (1401688529,), (1401688533,), (1401688553,), (1401688593,), (1401688602,), (1401688607,), (1401688714,), (1401688729,), (1401688733,), (1401688747,), (1401688750,), (1401688752,), (1401688782,), (1401688784,), (1401688786,), (1401688789,), (1401688792,), (1401688795,), (1401688849,), (1401688852,), (1401688856,), (1401688859,), (1401688862,), (1401688865,), (1401688942,), (1401688988,), (1401689020,), (1401689045,), (1401689055,), (1401689057,), (1401689067,), (1401689082,), (1401689097,), (1401689098,), (1401689101,), (1401689104,), (1401689334,), (1401689245,), (1401689277,), (1401689299,), (1401689302,), (1401689306,), (1401689399,), (1401689400,), (1401689401,), (1401689404,), (1401689541,), (1401689542,), (1401689545,), (1401689549,), (1401689553,), (1401689556,), (1401689577,), (1401689580,), (1401689583,), (1401689586,), (1401689589,), (1401689592,), (1401689620,), (1401689625,), (1401689629,), (1401689633,), (1401689661,), (1401689667,), (1401689677,), (1401689685,), (1401689689,), (1401689830,), (1401689856,), (1401689889,), (1401689996,), (1401690000,), (1401690003,), (1401690028,), (1401690031,), (1401690034,), (1401690517,), (1401690516,), (1401690603,), (1401690606,), (1401690609,), (1401690683,), (1401690685,), (1401690699,), (1401690700,), (1401690703,), (1401690774,), (1401690776,), (1401690778,), (1401690781,), (1401691060,), (1401691063,), (1401691065,), (1401691069,), (1401691075,), (1401691099,), (1401691102,), (1401691106,), (1401691110,), (1401691116,), (1401691118,), (1401691135,), (1401691137,), (1401691139,), (1401691143,), (1401691146,), (1401691149,), (1401691166,), (1401691176,), (1401691179,), (1401691185,), (1401691192,), (1401691194,), (1401691195,), (1401691198,), (1401691251,), (1401691252,), (1401691254,), (1401691256,), (1401691259,), (1401691262,), (1401691291,), (1401691282,), (1401691285,), (1401691288,), (1401691309,), (1401691312,), (1401691313,), (1401691315,), (1401691318,), (1401691325,), (1401691349,), (1401691350,), (1401691352,), (1401691355,), (1401691375,), (1401691377,), (1401691380,), (1401691383,), (1401691389,), (1401691397,), (1401691517,), (1401691519,), (1401691520,), (1401691521,), (1401691524,), (1401691563,), (1401691564,), (1401691567,), (1401691570,), (1401691574,), (1401691578,), (1401691613,), (1401691617,), (1401691621,), (1401691625,), (1401691649,), (1401691650,), (1401691651,), (1401691653,), (1401691655,), (1401691659,), (1401691680,), (1401691684,), (1401691687,), (1401691707,), (1401691833,), (1401691834,), (1401691835,), (1401691837,), (1401691839,), (1401691841,), (1401691855,), (1401691858,), (1401691864,), (1401691868,), (1401691871,), (1401691873,), (1401691894,), (1401691895,), (1401691897,), (1401691898,), (1401691899,), (1401691901,), (1401691904,), (1401691906,), (1401691910,), (1401691911,), (1401691913,), (1401691914,), (1401691921,), (1401691924,), (1401691925,), (1401691927,), (1401691931,), (1401691934,), (1401691945,), (1401691955,), (1401691967,), (1401691975,), (1401691978,), (1401691979,), (1401692022,), (1401692024,), (1401692026,), (1401692028,), (1401692030,), (1401692032,), (1401692039,), (1401692045,), (1401692051,), (1401692056,), (1401692061,), (1401692065,), (1401692072,), (1401692073,), (1401692074,), (1401692087,), (1401692090,), (1401692092,), (1401692119,), (1401692120,), (1401692128,), (1401692131,), (1401692136,), (1401692105,), (1401692109,), (1401692113,), (1401692116,), (1401692169,), (1401692175,), (1401692178,), (1401692183,), (1401692206,), (1401692208,), (1401692213,), (1401692221,), (1401692224,), (1401692226,), (1401692271,), (1401692280,), (1401692283,), (1401692286,), (1401692290,), (1401692292,), (1401692294,), (1401692331,), (1401692336,), (1401692339,), (1401692341,), (1401692344,), (1401692347,), (1401692419,), (1401692422,), (1401692424,), (1401692429,), (1401692474,), (1401692475,), (1401692479,), (1401692481,), (1401692485,), (1401692489,), (1401692517,), (1401692519,), (1401692521,), (1401692524,), (1401692556,), (1401692564,), (1401692572,), (1401692576,), (1401692581,), (1401692588,), (1401692683,), (1401692701,), (1401692704,), (1401692708,), (1401692774,), (1401692800,), (1401692805,), (1401692814,), (1401692826,), (1401692829,), (1401692897,), (1401692907,), (1401692912,), (1401692962,), (1401692963,), (1401692972,), (1401693009,), (1401693044,), (1401693082,), (1401693199,), (1401693233,), (1401693266,), (1401693273,), (1401693330,), (1401693337,), (1401693339,), (1401693542,), (1401693519,), (1401693716,), (1401693719,), (1401693721,), (1401693724,), (1401693728,), (1401693748,), (1401693750,), (1401693752,), (1401693755,), (1401693759,), (1401693762,), (1401693793,), (1401693795,), (1401693798,), (1401693802,), (1401693807,), (1401693844,), (1401693846,), (1401693849,), (1401693871,), (1401693873,), (1401693876,), (1401693878,), (1401693882,), (1401693903,), (1401693905,), (1401693907,), (1401693929,), (1401693931,), (1401693934,), (1401693938,), (1401693942,), (1401693961,), (1401693964,), (1401693966,), (1401693969,), (1401694006,), (1401694009,), (1401694012,), (1401694017,), (1401694147,), (1401694164,), (1401694173,), (1401694195,), (1401694200,), (1401694540,), (1401694537,), (1401694572,), (1401694576,), (1401694579,), (1401694606,), (1401694608,), (1401694609,), (1401694612,), (1401694615,), (1401694618,), (1401694664,), (1401694704,), (1401694706,), (1401694708,), (1401694712,), (1401694761,), (1401694858,), (1401694892,), (1401695091,), (1401695096,), (1401695105,), (1401695118,), (1401695121,), (1401695123,), (1401695212,), (1401695213,), (1401695216,), (1401695219,), (1401695223,), (1401695227,), (1401695288,), (1401695290,), (1401695321,), (1401695325,), (1401695335,), (1401695345,), (1401695377,), (1401695399,), (1401695411,), (1401695413,), (1401695414,), (1401695416,), (1401695419,), (1401695437,), (1401695439,), (1401695440,), (1401695443,), (1401695446,), (1401695449,), (1401695476,), (1401695484,), (1401695487,), (1401695491,), (1401695495,), (1401695514,), (1401695518,), (1401695520,), (1401695526,), (1401695528,), (1401695531,), (1401695540,), (1401695545,), (1401695588,), (1401695590,), (1401695592,), (1401695594,), (1401695598,), (1401695601,), (1401695646,), (1401695679,), (1401695714,), (1401696002,), (1401695882,), (1401695885,), (1401695889,), (1401695919,), (1401695967,), (1401696039,), (1401696040,), (1401696041,), (1401696043,), (1401696047,), (1401696072,), (1401696073,), (1401696075,), (1401696079,), (1401696084,), (1401696106,), (1401696108,), (1401696110,), (1401696113,), (1401696118,), (1401696145,), (1401696148,), (1401696151,), (1401696155,), (1401696177,), (1401696180,), (1401696181,), (1401696183,), (1401696187,), (1401696190,), (1401696226,), (1401696230,), (1401696265,), (1401696301,), (1401696337,), (1401696374,), (1401696542,), (1401696546,), (1401696550,), (1401696555,), (1401696558,), (1401696561,), (1401696581,), (1401696584,), (1401696586,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'30122025': {'nb_upload': 45, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29810418]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1401696586, 1401696584, 1401696581, 1401696561, 1401696558, 1401696555, 1401696550, 1401696546, 1401696542, 1401696374, 1401696337, 1401696301, 1401696265, 1401696230, 1401696226] map_info['map_portfolio_photo'] : {29810418: [1401696586, 1401696584, 1401696581, 1401696561, 1401696558, 1401696555, 1401696550, 1401696546, 1401696542, 1401696374, 1401696337, 1401696301, 1401696265, 1401696230, 1401696226, 1401696190, 1401696187, 1401696183, 1401696181, 1401696180, 1401696177, 1401696155, 1401696151, 1401696148, 1401696145, 1401696118, 1401696113, 1401696110, 1401696108, 1401696106, 1401696084, 1401696079, 1401696075, 1401696073, 1401696072, 1401696047, 1401696043, 1401696041, 1401696040, 1401696039, 1401695967, 1401695919, 1401695889, 1401695885, 1401695882]} final : True mtd_id 4302 list_pids : [1401696586, 1401696584, 1401696581, 1401696561, 1401696558, 1401696555, 1401696550, 1401696546, 1401696542, 1401696374, 1401696337, 1401696301, 1401696265, 1401696230, 1401696226] Looping around the photos to save general results len do output : 1 /29810418Didn'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, '4289248') ('4302', '29810418', '1401696586', None, None, None, None, None, '4289248') ('4302', None, None, None, None, None, None, None, '4289248') ('4302', '29810418', '1401696584', None, None, None, None, None, '4289248') ('4302', None, None, None, None, None, None, None, '4289248') ('4302', '29810418', '1401696581', None, None, None, None, None, '4289248') ('4302', None, None, None, None, None, None, None, '4289248') ('4302', '29810418', '1401696561', None, None, None, None, None, '4289248') ('4302', None, None, None, None, None, None, None, '4289248') ('4302', '29810418', '1401696558', None, None, None, None, None, '4289248') ('4302', None, None, None, None, None, None, None, '4289248') ('4302', '29810418', '1401696555', None, None, None, None, None, '4289248') ('4302', None, None, None, None, None, None, None, '4289248') ('4302', '29810418', '1401696550', None, None, None, None, None, '4289248') ('4302', None, None, None, None, None, None, None, '4289248') ('4302', '29810418', '1401696546', None, None, None, None, None, '4289248') ('4302', None, None, None, None, None, None, None, '4289248') ('4302', '29810418', '1401696542', None, None, None, None, None, '4289248') ('4302', None, None, None, None, None, None, None, '4289248') ('4302', '29810418', '1401696374', None, None, None, None, None, '4289248') ('4302', None, None, None, None, None, None, None, '4289248') ('4302', '29810418', '1401696337', None, None, None, None, None, '4289248') ('4302', None, None, None, None, None, None, None, '4289248') ('4302', '29810418', '1401696301', None, None, None, None, None, '4289248') ('4302', None, None, None, None, None, None, None, '4289248') ('4302', '29810418', '1401696265', None, None, None, None, None, '4289248') ('4302', None, None, None, None, None, None, None, '4289248') ('4302', '29810418', '1401696230', None, None, None, None, None, '4289248') ('4302', None, None, None, None, None, None, None, '4289248') ('4302', '29810418', '1401696226', None, None, None, None, None, '4289248') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 16 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '29810418', 'None', None, None, None, None, '4289248'), ('4302', '29810418', '1401696586', None, None, None, None, None, '4289248'), ('4302', '29810418', '1401696584', None, None, None, None, None, '4289248'), ('4302', '29810418', '1401696581', None, None, None, None, None, '4289248'), ('4302', '29810418', '1401696561', None, None, None, None, None, '4289248'), ('4302', '29810418', '1401696558', None, None, None, None, None, '4289248'), ('4302', '29810418', '1401696555', None, None, None, None, None, '4289248'), ('4302', '29810418', '1401696550', None, None, None, None, None, '4289248'), ('4302', '29810418', '1401696546', None, None, None, None, None, '4289248'), ('4302', '29810418', '1401696542', None, None, None, None, None, '4289248'), ('4302', '29810418', '1401696374', None, None, None, None, None, '4289248'), ('4302', '29810418', '1401696337', None, None, None, None, None, '4289248'), ('4302', '29810418', '1401696301', None, None, None, None, None, '4289248'), ('4302', '29810418', '1401696265', None, None, None, None, None, '4289248'), ('4302', '29810418', '1401696230', None, None, None, None, None, '4289248'), ('4302', '29810418', '1401696226', None, None, None, None, None, '4289248')] time used for this insertion : 0.01949024200439453 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.332824230194092 time spend to save output : 0.019811630249023438 total time spend for step 5 : 2.3526358604431152 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 (4289248) 2.48user 2.60system 0:10.85elapsed 46%CPU (0avgtext+0avgdata 166532maxresident)k 552inputs+11456outputs (14major+76432minor)pagefaults 0swaps