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 : 1095640 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 (4293991) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (4293991) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29844841 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['4293991'] with mtr_portfolio_ids : ['29844841'] and first list_photo_ids : [] new path : /proc/1095640/ Name: python3 Umask: 0002 State: R (running) Tgid: 1095640 Ngid: 0 Pid: 1095640 PPid: 1095639 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 1095640 NSpid: 1095640 NSpgid: 1094258 NSsid: 1094258 VmPeak: 1113368 kB VmSize: 1113368 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 104280 kB VmRSS: 104280 kB RssAnon: 66304 kB RssFile: 37976 kB RssShmem: 0 kB VmData: 872096 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130476 kB VmPTE: 592 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: 64 nonvoluntary_ctxt_switches: 160 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '1095640', 'Ngid': '0', 'Pid': '1095640', 'PPid': '1095639', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '1095640', 'NSpid': '1095640', 'NSpgid': '1094258', 'NSsid': '1094258', 'VmPeak': '1113368 kB', 'VmSize': '1113368 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '104280 kB', 'VmRSS': '104280 kB', 'RssAnon': '66304 kB', 'RssFile': '37976 kB', 'RssShmem': '0 kB', 'VmData': '872096 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130476 kB', 'VmPTE': '592 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': '64', 'nonvoluntary_ctxt_switches': '160'} ('datou_batch_current', '1095640', '1113368', '0', '1113368', '872096', '104280', b'', 'marlene', '4293991') 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 (29844841) 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 (4293991 ) ) 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 (29844841) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1401845419, 'portfolio_id': 29844841}, {'photo_id': 1401845417, 'portfolio_id': 29844841}, {'photo_id': 1401845324, 'portfolio_id': 29844841}, {'photo_id': 1401844764, 'portfolio_id': 29844841}, {'photo_id': 1401844760, 'portfolio_id': 29844841}, {'photo_id': 1401844644, 'portfolio_id': 29844841}, {'photo_id': 1401844610, 'portfolio_id': 29844841}, {'photo_id': 1401844449, 'portfolio_id': 29844841}, {'photo_id': 1401844179, 'portfolio_id': 29844841}, {'photo_id': 1401844175, 'portfolio_id': 29844841}, {'photo_id': 1401844173, 'portfolio_id': 29844841}, {'photo_id': 1401844170, 'portfolio_id': 29844841}, {'photo_id': 1401844127, 'portfolio_id': 29844841}, {'photo_id': 1401844122, 'portfolio_id': 29844841}, {'photo_id': 1401844114, 'portfolio_id': 29844841}, {'photo_id': 1401844112, 'portfolio_id': 29844841}, {'photo_id': 1401843990, 'portfolio_id': 29844841}, {'photo_id': 1401843988, 'portfolio_id': 29844841}, {'photo_id': 1401843957, 'portfolio_id': 29844841}] map_portfolio_id_photo_id: {29844841: [1401845419, 1401845417, 1401845324, 1401844764, 1401844760, 1401844644, 1401844610, 1401844449, 1401844179, 1401844175, 1401844173, 1401844170, 1401844127, 1401844122, 1401844114, 1401844112, 1401843990, 1401843988, 1401843957]} ##### 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.017117023468017578 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Wed Dec 31 07:58:56 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 (29844841) 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 : 29844841 get user id for portfolio 29844841 get sub ptf for main ptf 29844841, type 3726 and hashtags ['papier', 'metal', 'environnement', 'flou', 'cartonnette', 'Teint_Dans_La_Masse', 'kraft', 'autre_refus', 'plastique', 'Carton_brun', 'mal_croppe', '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`=29844841 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','metal','environnement','flou','cartonnette','Teint_Dans_La_Masse','kraft','autre_refus','plastique','Carton_brun','mal_croppe','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`=29844841 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','metal','environnement','flou','cartonnette','Teint_Dans_La_Masse','kraft','autre_refus','plastique','Carton_brun','mal_croppe','Carton_gris')) AND mptpi.`min_score`=0.5 To do returned map {'mal_croppe': {'main_port_id': 29844841, 'sub_port_id': 29844848, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20411839, 'last_updated_at': datetime.datetime(2025, 12, 31, 7, 54, 58), 'last_updated_at_desc': datetime.datetime(2025, 12, 31, 7, 54, 58), 'last_updated_at_asc': datetime.datetime(2025, 12, 31, 7, 48, 58)}, 'plastique': {'main_port_id': 29844841, 'sub_port_id': 29844849, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20411840, 'last_updated_at': datetime.datetime(2025, 12, 31, 7, 54, 58), 'last_updated_at_desc': datetime.datetime(2025, 12, 31, 7, 54, 58), 'last_updated_at_asc': datetime.datetime(2025, 12, 31, 7, 48, 58)}, 'cartonnette': {'main_port_id': 29844841, 'sub_port_id': 29844850, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20411841, 'last_updated_at': datetime.datetime(2025, 12, 31, 7, 54, 58), 'last_updated_at_desc': datetime.datetime(2025, 12, 31, 7, 54, 58), 'last_updated_at_asc': datetime.datetime(2025, 12, 31, 7, 48, 58)}, 'metal': {'main_port_id': 29844841, 'sub_port_id': 29844851, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20411842, 'last_updated_at': datetime.datetime(2025, 12, 31, 7, 54, 58), 'last_updated_at_desc': datetime.datetime(2025, 12, 31, 7, 54, 58), 'last_updated_at_asc': datetime.datetime(2025, 12, 31, 7, 48, 58)}, 'Carton_gris': {'main_port_id': 29844841, 'sub_port_id': 29844852, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20411843, 'last_updated_at': datetime.datetime(2025, 12, 31, 7, 54, 58), 'last_updated_at_desc': datetime.datetime(2025, 12, 31, 7, 54, 58), 'last_updated_at_asc': datetime.datetime(2025, 12, 31, 7, 48, 58)}, 'environnement': {'main_port_id': 29844841, 'sub_port_id': 29844853, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20411844, 'last_updated_at': datetime.datetime(2025, 12, 31, 7, 54, 58), 'last_updated_at_desc': datetime.datetime(2025, 12, 31, 7, 54, 58), 'last_updated_at_asc': datetime.datetime(2025, 12, 31, 7, 48, 58)}, 'flou': {'main_port_id': 29844841, 'sub_port_id': 29844854, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20411845, 'last_updated_at': datetime.datetime(2025, 12, 31, 7, 54, 58), 'last_updated_at_desc': datetime.datetime(2025, 12, 31, 7, 54, 58), 'last_updated_at_asc': datetime.datetime(2025, 12, 31, 7, 48, 58)}, 'autre_refus': {'main_port_id': 29844841, 'sub_port_id': 29844855, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20411846, 'last_updated_at': datetime.datetime(2025, 12, 31, 7, 54, 58), 'last_updated_at_desc': datetime.datetime(2025, 12, 31, 7, 54, 58), 'last_updated_at_asc': datetime.datetime(2025, 12, 31, 7, 48, 58)}, 'papier': {'main_port_id': 29844841, 'sub_port_id': 29844856, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20411847, 'last_updated_at': datetime.datetime(2025, 12, 31, 7, 54, 58), 'last_updated_at_desc': datetime.datetime(2025, 12, 31, 7, 54, 58), 'last_updated_at_asc': datetime.datetime(2025, 12, 31, 7, 48, 58)}, 'kraft': {'main_port_id': 29844841, 'sub_port_id': 29844857, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20411848, 'last_updated_at': datetime.datetime(2025, 12, 31, 7, 54, 58), 'last_updated_at_desc': datetime.datetime(2025, 12, 31, 7, 54, 58), 'last_updated_at_asc': datetime.datetime(2025, 12, 31, 7, 48, 58)}, 'Teint_Dans_La_Masse': {'main_port_id': 29844841, 'sub_port_id': 29844858, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20411849, 'last_updated_at': datetime.datetime(2025, 12, 31, 7, 54, 58), 'last_updated_at_desc': datetime.datetime(2025, 12, 31, 7, 54, 58), 'last_updated_at_asc': datetime.datetime(2025, 12, 31, 7, 48, 58)}, 'Carton_brun': {'main_port_id': 29844841, 'sub_port_id': 29844859, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20411850, 'last_updated_at': datetime.datetime(2025, 12, 31, 7, 54, 58), 'last_updated_at_desc': datetime.datetime(2025, 12, 31, 7, 54, 58), 'last_updated_at_asc': datetime.datetime(2025, 12, 31, 7, 48, 58)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29844848 , 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=29844841 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 (29844848) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29844841) result : ((1401843957,), (1401843988,), (1401843990,), (1401844112,), (1401844114,), (1401844122,), (1401844127,), (1401844170,), (1401844173,), (1401844175,), (1401844179,), (1401844449,), (1401844610,), (1401844644,), (1401844760,), (1401844764,), (1401845324,), (1401845417,), (1401845419,)) 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 29844849 , 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=29844841 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 (29844849) result : ((1401844835,), (1401845224,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29844841) result : ((1401843957,), (1401843988,), (1401843990,), (1401844112,), (1401844114,), (1401844122,), (1401844127,), (1401844170,), (1401844173,), (1401844175,), (1401844179,), (1401844449,), (1401844610,), (1401844644,), (1401844760,), (1401844764,), (1401845324,), (1401845417,), (1401845419,)) 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 29844850 , 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=29844841 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 (29844850) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29844841) result : ((1401843957,), (1401843988,), (1401843990,), (1401844112,), (1401844114,), (1401844122,), (1401844127,), (1401844170,), (1401844173,), (1401844175,), (1401844179,), (1401844449,), (1401844610,), (1401844644,), (1401844760,), (1401844764,), (1401845324,), (1401845417,), (1401845419,)) 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 29844851 , 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=29844841 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 (29844851) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29844841) result : ((1401843957,), (1401843988,), (1401843990,), (1401844112,), (1401844114,), (1401844122,), (1401844127,), (1401844170,), (1401844173,), (1401844175,), (1401844179,), (1401844449,), (1401844610,), (1401844644,), (1401844760,), (1401844764,), (1401845324,), (1401845417,), (1401845419,)) 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 29844852 , 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=29844841 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 (29844852) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29844841) result : ((1401843957,), (1401843988,), (1401843990,), (1401844112,), (1401844114,), (1401844122,), (1401844127,), (1401844170,), (1401844173,), (1401844175,), (1401844179,), (1401844449,), (1401844610,), (1401844644,), (1401844760,), (1401844764,), (1401845324,), (1401845417,), (1401845419,)) 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 29844853 , 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=29844841 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 (29844853) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29844841) result : ((1401843957,), (1401843988,), (1401843990,), (1401844112,), (1401844114,), (1401844122,), (1401844127,), (1401844170,), (1401844173,), (1401844175,), (1401844179,), (1401844449,), (1401844610,), (1401844644,), (1401844760,), (1401844764,), (1401845324,), (1401845417,), (1401845419,)) 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 29844854 , 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=29844841 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 (29844854) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29844841) result : ((1401843957,), (1401843988,), (1401843990,), (1401844112,), (1401844114,), (1401844122,), (1401844127,), (1401844170,), (1401844173,), (1401844175,), (1401844179,), (1401844449,), (1401844610,), (1401844644,), (1401844760,), (1401844764,), (1401845324,), (1401845417,), (1401845419,)) 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 29844855 , 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=29844841 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 (29844855) result : ((1401844825,), (1401845223,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29844841) result : ((1401843957,), (1401843988,), (1401843990,), (1401844112,), (1401844114,), (1401844122,), (1401844127,), (1401844170,), (1401844173,), (1401844175,), (1401844179,), (1401844449,), (1401844610,), (1401844644,), (1401844760,), (1401844764,), (1401845324,), (1401845417,), (1401845419,)) 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 29844856 , 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=29844841 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 (29844856) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29844841) result : ((1401843957,), (1401843988,), (1401843990,), (1401844112,), (1401844114,), (1401844122,), (1401844127,), (1401844170,), (1401844173,), (1401844175,), (1401844179,), (1401844449,), (1401844610,), (1401844644,), (1401844760,), (1401844764,), (1401845324,), (1401845417,), (1401845419,)) 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 29844857 , 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=29844841 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 (29844857) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29844841) result : ((1401843957,), (1401843988,), (1401843990,), (1401844112,), (1401844114,), (1401844122,), (1401844127,), (1401844170,), (1401844173,), (1401844175,), (1401844179,), (1401844449,), (1401844610,), (1401844644,), (1401844760,), (1401844764,), (1401845324,), (1401845417,), (1401845419,)) 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 29844858 , 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=29844841 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 (29844858) result : ((1401844816,), (1401845220,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29844841) result : ((1401843957,), (1401843988,), (1401843990,), (1401844112,), (1401844114,), (1401844122,), (1401844127,), (1401844170,), (1401844173,), (1401844175,), (1401844179,), (1401844449,), (1401844610,), (1401844644,), (1401844760,), (1401844764,), (1401845324,), (1401845417,), (1401845419,)) 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 29844859 , 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=29844841 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 (29844859) result : ((1401844445,), (1401844446,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29844841) result : ((1401843957,), (1401843988,), (1401843990,), (1401844112,), (1401844114,), (1401844122,), (1401844127,), (1401844170,), (1401844173,), (1401844175,), (1401844179,), (1401844449,), (1401844610,), (1401844644,), (1401844760,), (1401844764,), (1401845324,), (1401845417,), (1401845419,)) 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`=29844841 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','metal','environnement','flou','cartonnette','Teint_Dans_La_Masse','kraft','autre_refus','plastique','Carton_brun','mal_croppe','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`=29844841 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','metal','environnement','flou','cartonnette','Teint_Dans_La_Masse','kraft','autre_refus','plastique','Carton_brun','mal_croppe','Carton_gris')) AND mptpi.`min_score`=0.5 To do returned map {'mal_croppe': {'main_port_id': 29844841, 'sub_port_id': 29844860, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20411851, 'last_updated_at': datetime.datetime(2025, 12, 31, 7, 49), 'last_updated_at_desc': datetime.datetime(2025, 12, 31, 7, 49), 'last_updated_at_asc': datetime.datetime(2025, 12, 31, 7, 49)}, 'plastique': {'main_port_id': 29844841, 'sub_port_id': 29844861, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20411852, 'last_updated_at': datetime.datetime(2025, 12, 31, 7, 49), 'last_updated_at_desc': datetime.datetime(2025, 12, 31, 7, 49), 'last_updated_at_asc': datetime.datetime(2025, 12, 31, 7, 49)}, 'cartonnette': {'main_port_id': 29844841, 'sub_port_id': 29844862, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20411853, 'last_updated_at': datetime.datetime(2025, 12, 31, 7, 49), 'last_updated_at_desc': datetime.datetime(2025, 12, 31, 7, 49), 'last_updated_at_asc': datetime.datetime(2025, 12, 31, 7, 49)}, 'metal': {'main_port_id': 29844841, 'sub_port_id': 29844863, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20411854, 'last_updated_at': datetime.datetime(2025, 12, 31, 7, 49), 'last_updated_at_desc': datetime.datetime(2025, 12, 31, 7, 49), 'last_updated_at_asc': datetime.datetime(2025, 12, 31, 7, 49)}, 'Carton_gris': {'main_port_id': 29844841, 'sub_port_id': 29844864, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20411855, 'last_updated_at': datetime.datetime(2025, 12, 31, 7, 49), 'last_updated_at_desc': datetime.datetime(2025, 12, 31, 7, 49), 'last_updated_at_asc': datetime.datetime(2025, 12, 31, 7, 49)}, 'environnement': {'main_port_id': 29844841, 'sub_port_id': 29844865, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20411856, 'last_updated_at': datetime.datetime(2025, 12, 31, 7, 49), 'last_updated_at_desc': datetime.datetime(2025, 12, 31, 7, 49), 'last_updated_at_asc': datetime.datetime(2025, 12, 31, 7, 49)}, 'flou': {'main_port_id': 29844841, 'sub_port_id': 29844866, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20411857, 'last_updated_at': datetime.datetime(2025, 12, 31, 7, 49), 'last_updated_at_desc': datetime.datetime(2025, 12, 31, 7, 49), 'last_updated_at_asc': datetime.datetime(2025, 12, 31, 7, 49)}, 'autre_refus': {'main_port_id': 29844841, 'sub_port_id': 29844867, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20411858, 'last_updated_at': datetime.datetime(2025, 12, 31, 7, 49), 'last_updated_at_desc': datetime.datetime(2025, 12, 31, 7, 49), 'last_updated_at_asc': datetime.datetime(2025, 12, 31, 7, 49)}, 'papier': {'main_port_id': 29844841, 'sub_port_id': 29844868, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20411859, 'last_updated_at': datetime.datetime(2025, 12, 31, 7, 49), 'last_updated_at_desc': datetime.datetime(2025, 12, 31, 7, 49), 'last_updated_at_asc': datetime.datetime(2025, 12, 31, 7, 49)}, 'kraft': {'main_port_id': 29844841, 'sub_port_id': 29844869, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20411860, 'last_updated_at': datetime.datetime(2025, 12, 31, 7, 49), 'last_updated_at_desc': datetime.datetime(2025, 12, 31, 7, 49), 'last_updated_at_asc': datetime.datetime(2025, 12, 31, 7, 49)}, 'Teint_Dans_La_Masse': {'main_port_id': 29844841, 'sub_port_id': 29844870, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20411861, 'last_updated_at': datetime.datetime(2025, 12, 31, 7, 49), 'last_updated_at_desc': datetime.datetime(2025, 12, 31, 7, 49), 'last_updated_at_asc': datetime.datetime(2025, 12, 31, 7, 49)}, 'Carton_brun': {'main_port_id': 29844841, 'sub_port_id': 29844871, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20411862, 'last_updated_at': datetime.datetime(2025, 12, 31, 7, 54, 58), 'last_updated_at_desc': datetime.datetime(2025, 12, 31, 7, 54, 58), 'last_updated_at_asc': datetime.datetime(2025, 12, 31, 7, 49)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29844860,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29844848 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29844861,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29844849 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29844862,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29844850 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29844863,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29844851 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29844864,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29844852 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29844865,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29844853 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29844866,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29844854 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29844867,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29844855 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29844868,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29844856 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29844869,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29844857 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29844870,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29844858 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29844871,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29844859 lien utilise dans velours : https://marlene.fotonower.com/velours/29844860,29844861,29844862,29844863,29844864,29844865,29844866,29844867,29844868,29844869,29844870,29844871?tags=mal_croppe,plastique,cartonnette,metal,Carton_gris,environnement,flou,autre_refus,papier,kraft,Teint_Dans_La_Masse,Carton_brun After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29844841]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1401845419, 1401845417, 1401845324] map_info['map_portfolio_photo'] : {29844841: [1401845419, 1401845417, 1401845324, 1401844764, 1401844760, 1401844644, 1401844610, 1401844449, 1401844179, 1401844175, 1401844173, 1401844170, 1401844127, 1401844122, 1401844114, 1401844112, 1401843990, 1401843988, 1401843957]} final : False mtd_id 4302 list_pids : [1401845419, 1401845417, 1401845324] Looping around the photos to save general results len do output : 1 /29844841. 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, '4293991') ('4302', '29844841', '1401845419', None, None, None, None, None, '4293991') ('4302', None, None, None, None, None, None, None, '4293991') ('4302', '29844841', '1401845417', None, None, None, None, None, '4293991') ('4302', None, None, None, None, None, None, None, '4293991') ('4302', '29844841', '1401845324', None, None, None, None, None, '4293991') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 4 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, '29844841', "{'mal_croppe': 29844848, 'plastique': 29844849, 'cartonnette': 29844850, 'metal': 29844851, 'Carton_gris': 29844852, 'environnement': 29844853, 'flou': 29844854, 'autre_refus': 29844855, 'papier': 29844856, 'kraft': 29844857, 'Teint_Dans_La_Masse': 29844858, 'Carton_brun': 29844859}", None, None, None, None, '4293991'), ('4302', '29844841', '1401845419', None, None, None, None, None, '4293991'), ('4302', '29844841', '1401845417', None, None, None, None, None, '4293991'), ('4302', '29844841', '1401845324', None, None, None, None, None, '4293991')] time used for this insertion : 0.017620086669921875 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.8215522766113281 time spend to save output : 0.01798701286315918 total time spend for step 1 : 1.8395392894744873 step2:final Wed Dec 31 07:58:57 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 (29844841) 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 29844841 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1401843957,1401843990,1401843988,1401844179,1401844127,1401844175,1401844122,1401844173,1401844114,1401844170,1401844112,1401844449,1401844644,1401844764,1401844610,1401844760,1401845324,1401845419,1401845417); 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([29844841]) Inside saveOutput : final : False verbose : True original output for save of step final : {1401845419: ('0.020433363202355993',), 1401845417: ('0.020433363202355993',), 1401845324: ('0.020433363202355993',)} new output for save of step final : {1401845419: ('0.020433363202355993',), 1401845417: ('0.020433363202355993',), 1401845324: ('0.020433363202355993',)} [1401845419, 1401845417, 1401845324] map_info['map_portfolio_photo'] : {29844841: [1401845419, 1401845417, 1401845324, 1401844764, 1401844760, 1401844644, 1401844610, 1401844449, 1401844179, 1401844175, 1401844173, 1401844170, 1401844127, 1401844122, 1401844114, 1401844112, 1401843990, 1401843988, 1401843957]} final : False mtd_id 4302 list_pids : [1401845419, 1401845417, 1401845324] Looping around the photos to save general results len do output : 3 /1401845419.Didn't retrieve data . /1401845417.Didn't retrieve data . /1401845324.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, '4293991') ('4302', '29844841', '1401845419', None, None, None, None, None, '4293991') ('4302', None, None, None, None, None, None, None, '4293991') ('4302', '29844841', '1401845417', None, None, None, None, None, '4293991') ('4302', None, None, None, None, None, None, None, '4293991') ('4302', '29844841', '1401845324', None, None, None, None, None, '4293991') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 9 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', '29844841', '1401845419', '0.020433363202355993', None, None, None, None, '4293991'), ('4302', '29844841', '1401845417', '0.020433363202355993', None, None, None, None, '4293991'), ('4302', '29844841', '1401845324', '0.020433363202355993', None, None, None, None, '4293991')] time used for this insertion : 0.01508188247680664 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.08203363418579102 time spend to save output : 0.015480518341064453 total time spend for step 2 : 0.09751415252685547 step3:velours_tree Wed Dec 31 07:58:57 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 : {29844841: [{'mal_croppe': 29844848, 'plastique': 29844849, 'cartonnette': 29844850, 'metal': 29844851, 'Carton_gris': 29844852, 'environnement': 29844853, 'flou': 29844854, 'autre_refus': 29844855, 'papier': 29844856, 'kraft': 29844857, 'Teint_Dans_La_Masse': 29844858, 'Carton_brun': 29844859}]} input_args_next_step : {29844841: ()} output_args : {29844841: [{'mal_croppe': 29844848, 'plastique': 29844849, 'cartonnette': 29844850, 'metal': 29844851, 'Carton_gris': 29844852, 'environnement': 29844853, 'flou': 29844854, 'autre_refus': 29844855, 'papier': 29844856, 'kraft': 29844857, 'Teint_Dans_La_Masse': 29844858, 'Carton_brun': 29844859}]} args : 29844841 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 : ({'mal_croppe': 29844848, 'plastique': 29844849, 'cartonnette': 29844850, 'metal': 29844851, 'Carton_gris': 29844852, 'environnement': 29844853, 'flou': 29844854, 'autre_refus': 29844855, 'papier': 29844856, 'kraft': 29844857, 'Teint_Dans_La_Masse': 29844858, 'Carton_brun': 29844859},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29844841) 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([29844841]) 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.36763834953308105 time spend to save output : 4.458427429199219e-05 total time spend for step 3 : 0.36768293380737305 step4:send_mail_cod Wed Dec 31 07:58:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1401845419: ('0.020433363202355993',), 1401845417: ('0.020433363202355993',), 1401845324: ('0.020433363202355993',)} input_args_next_step : {1401845419: ()} output_args : {1401845419: ('0.020433363202355993',), 1401845417: ('0.020433363202355993',), 1401845324: ('0.020433363202355993',)} args : 1401845419 depend.output_id : 0 input_args_next_step : {1401845419: ('0.020433363202355993',), 1401845417: ()} output_args : {1401845419: ('0.020433363202355993',), 1401845417: ('0.020433363202355993',), 1401845324: ('0.020433363202355993',)} args : 1401845417 depend.output_id : 0 input_args_next_step : {1401845419: ('0.020433363202355993',), 1401845417: ('0.020433363202355993',), 1401845324: ()} output_args : {1401845419: ('0.020433363202355993',), 1401845417: ('0.020433363202355993',), 1401845324: ('0.020433363202355993',)} args : 1401845324 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 : {29844841: [{'mal_croppe': 29844848, 'plastique': 29844849, 'cartonnette': 29844850, 'metal': 29844851, 'Carton_gris': 29844852, 'environnement': 29844853, 'flou': 29844854, 'autre_refus': 29844855, 'papier': 29844856, 'kraft': 29844857, 'Teint_Dans_La_Masse': 29844858, 'Carton_brun': 29844859}]} input_args_next_step : {1401845419: ('0.020433363202355993',), 1401845417: ('0.020433363202355993',), 1401845324: ('0.020433363202355993',), 29844841: ()} output_args : {29844841: [{'mal_croppe': 29844848, 'plastique': 29844849, 'cartonnette': 29844850, 'metal': 29844851, 'Carton_gris': 29844852, 'environnement': 29844853, 'flou': 29844854, 'autre_refus': 29844855, 'papier': 29844856, 'kraft': 29844857, 'Teint_Dans_La_Masse': 29844858, 'Carton_brun': 29844859}]} args : 29844841 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 :4, first value : ('0.020433363202355993',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29844841) 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 (1401845419,1401845417,1401845324) Found this number of photos: 3 ##### Call download_photos : nb_thread : 5 begin to download photo : 1401845324 begin to download photo : 1401845417 begin to download photo : 1401845419 download finish for photo 1401845324 download finish for photo 1401845419 download finish for photo 1401845417 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette298448481767164338/ length of list_filenames : 3 ; length of list_pids : 3 ; length of list_args : 3 results_Auto_P29844841_31-12-2025_07_58_58.pdf 29844848 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=29844848 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette298448481767164338 29844849 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=29844849 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1401844835: '1767163985_2306953_1401843957_4fc3c80013fdd5a5676416f09706f0be_rle_crop_4086652188_0.png', 1401845224: '1767164105_2313520_1401843957_4fc3c80013fdd5a5676416f09706f0be_rle_crop_4086652188_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/31/5fd5ce56d7bb7ee23eb4d3649802e96f_69377472.png change filename to text .imagette298448491767164338/ imagette298448491767164338/1767164105_2313520_1401843957_4fc3c80013fdd5a5676416f09706f0be_rle_crop_4086652188_0.png.png imagette298448491767164338/1767163985_2306953_1401843957_4fc3c80013fdd5a5676416f09706f0be_rle_crop_4086652188_0.png.png imagette298448501767164338/ imagette298448511767164338/ imagette298448541767164338/ wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/31/5fd5ce56d7bb7ee23eb4d3649802e96f_66501605.png imagette298448491767164338 29844850 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=29844850 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette298448501767164338 29844851 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=29844851 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette298448511767164338 29844854 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=29844854 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette298448541767164338 29844855 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=29844855 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1401844825: '1767163985_2306953_1401843990_88c1bbd16e1427ca1f389b333ecf5350_rle_crop_4086652171_0.png', 1401845223: '1767164105_2313520_1401843990_88c1bbd16e1427ca1f389b333ecf5350_rle_crop_4086652171_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/31/bc2f1470e6e1eee0db2748ba04bf1d20_94186066.png change filename to text .imagette298448551767164338/ imagette298448551767164338/1767163985_2306953_1401843990_88c1bbd16e1427ca1f389b333ecf5350_rle_crop_4086652171_0.png.png imagette298448551767164338/1767164105_2313520_1401843990_88c1bbd16e1427ca1f389b333ecf5350_rle_crop_4086652171_0.png.png imagette298448571767164338/ imagette298448521767164338/ wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/31/bc2f1470e6e1eee0db2748ba04bf1d20_2951131.png imagette298448551767164338 29844857 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=29844857 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette298448571767164338 29844852 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=29844852 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette298448521767164338 29844858 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=29844858 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1401844816: '1767163985_2306953_1401843957_4fc3c80013fdd5a5676416f09706f0be_rle_crop_4086652191_0.png', 1401845220: '1767164105_2313520_1401843957_4fc3c80013fdd5a5676416f09706f0be_rle_crop_4086652191_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/31/8d76cdc905e122e3c2c3d7e15e1ddafd_15199662.png change filename to text .imagette298448581767164338/ imagette298448581767164338/1767163985_2306953_1401843957_4fc3c80013fdd5a5676416f09706f0be_rle_crop_4086652191_0.png.png imagette298448581767164338/1767164105_2313520_1401843957_4fc3c80013fdd5a5676416f09706f0be_rle_crop_4086652191_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/31/8d76cdc905e122e3c2c3d7e15e1ddafd_93682784.png imagette298448581767164338 29844859 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=29844859 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1401844445: '1767163827_2300152_1401844122_60af849f4c8dc21fb01e4ef457549ca5_rle_crop_4086651002_0.png', 1401844446: '1767163827_2300152_1401844112_454f088b7f49049d070f1bfd61a6ecc9_rle_crop_4086651020_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/31/81a584eff025bbb69fc69f65ea4b8c20_83843443.png change filename to text .imagette298448591767164339/ imagette298448591767164339/1767163827_2300152_1401844112_454f088b7f49049d070f1bfd61a6ecc9_rle_crop_4086651020_0.png.png imagette298448591767164339/1767163827_2300152_1401844122_60af849f4c8dc21fb01e4ef457549ca5_rle_crop_4086651002_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/31/4ee96d0e7f6ca7225bd5b7ace6237d38_22992762.png imagette298448591767164339 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=29844841 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/29844860,29844861,29844862,29844863,29844864,29844865,29844866,29844867,29844868,29844869,29844870,29844871?tags=mal_croppe,plastique,cartonnette,metal,Carton_gris,environnement,flou,autre_refus,papier,kraft,Teint_Dans_La_Masse,Carton_brun your option no_mail is active, we will not send the real mail to your client args[1401845419] : ('0.020433363202355993',) no score found for photo 1401845419 We are sending mail with results at report@fotonower.com args[1401845417] : ('0.020433363202355993',) no score found for photo 1401845417 We are sending mail with results at report@fotonower.com args[1401845324] : ('0.020433363202355993',) no score found for photo 1401845324 We are sending mail with results at report@fotonower.com refus_total : 0.020433363202355993 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=29844841 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_P29844841_31-12-2025_07_58_58.pdf results_Auto_P29844841_31-12-2025_07_58_58.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29844841_31-12-2025_07_58_58.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','29844841','results_Auto_P29844841_31-12-2025_07_58_58.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29844841_31-12-2025_07_58_58.pdf','pdf','','0.07','0.020433363202355993') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29844841]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1401845419, 1401845417, 1401845324] map_info['map_portfolio_photo'] : {29844841: [1401845419, 1401845417, 1401845324, 1401844764, 1401844760, 1401844644, 1401844610, 1401844449, 1401844179, 1401844175, 1401844173, 1401844170, 1401844127, 1401844122, 1401844114, 1401844112, 1401843990, 1401843988, 1401843957]} final : False mtd_id 4302 list_pids : [1401845419, 1401845417, 1401845324] 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, '4293991') ('4302', '29844841', '1401845419', None, None, None, None, None, '4293991') ('4302', None, None, None, None, None, None, None, '4293991') ('4302', '29844841', '1401845417', None, None, None, None, None, '4293991') ('4302', None, None, None, None, None, None, None, '4293991') ('4302', '29844841', '1401845324', None, None, None, None, None, '4293991') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 3 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '29844841', '1401845419', None, None, None, None, None, '4293991'), ('4302', '29844841', '1401845417', None, None, None, None, None, '4293991'), ('4302', '29844841', '1401845324', None, None, None, None, None, '4293991')] time used for this insertion : 0.015042781829833984 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.8422729969024658 time spend to save output : 0.015243053436279297 total time spend for step 4 : 1.8575160503387451 step5:split_time_score Wed Dec 31 07:59: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 : ['29844841'] 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 : [('29844841',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29844841) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1401845324: {'path': 'temp/1767164338_1095640_1401845324_f59f172e9aaf11b146c0b55963bf1f32.jpg', 'extension': 'jpg'}, 1401845419: {'path': 'temp/1767164338_1095640_1401845419_c530b19bbad9de603f48af371b584824.jpg', 'extension': 'jpg'}, 1401845417: {'path': 'temp/1767164338_1095640_1401845417_852308bde2f608aa13cc6898b07c9163.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 = 29844841; (('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 = 29844841 group by h (('07', 19),) 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=29844841 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 (29844841) 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 (29844841) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 31122025 29844841 Nombre de photos uploadées : 19 / 23040 (0%) 31122025 29844841 Nombre de photos taguées (types de déchets): 0 / 19 (0%) 31122025 29844841 Nombre de photos taguées (volume) : 0 / 19 (0%) [{'photo_id': 1401843957, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/31/4fc3c80013fdd5a5676416f09706f0be.jpg', 'username': None, 'uploaded_at': 1767163567, 'text': 'image_31122025_07_45_04_10159.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1401843990, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/31/88c1bbd16e1427ca1f389b333ecf5350.jpg', 'username': None, 'uploaded_at': 1767163627, 'text': 'image_31122025_07_45_44_10136.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1401843988, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/31/8f9c3fe4fd2107b44f8dff392e8205ab.jpg', 'username': None, 'uploaded_at': 1767163627, 'text': 'image_31122025_07_46_04_9142.jpg'}, {'photo_id': 1401844179, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/31/bf7ed05f11bbbcebb3bec5a423efedc2.jpg', 'username': None, 'uploaded_at': 1767163753, 'text': 'image_31122025_07_46_14_10132.jpg'}] 0 [] elapsed_time : load_data_split_time_score 3.814697265625e-06 elapsed_time : order_list_meta_photo_and_scores 1.049041748046875e-05 ??????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.000982522964477539 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 29844841, '2025-12-31' ) 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-31' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2816377,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.25484633445739746 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= 2816377 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2816377, 'dashboard_run_id': 2824941, 'mtr_portfolio_id': 29831337, 'dashboard_result_id': 18883930, '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_P29831337_31-12-2025_06_04_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29831343, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29831344, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29831345, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29831346, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29831347, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29831348, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29831349, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29831350, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29831351, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29831352, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29831353, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29831354, 'pht': 3726}}"}, {'dashboat_entry_day': 2816377, 'dashboard_run_id': 2824941, 'mtr_portfolio_id': 29832073, 'dashboard_result_id': 18883931, '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_P29832073_31-12-2025_06_05_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29832079, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29832080, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29832081, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29832082, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29832083, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29832084, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29832085, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29832086, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29832087, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29832088, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29832089, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29832090, 'pht': 3726}}"}, {'dashboat_entry_day': 2816377, 'dashboard_run_id': 2824941, 'mtr_portfolio_id': 29832543, 'dashboard_result_id': 18883932, '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_P29832543_31-12-2025_06_05_39.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29832546, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29832547, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29832548, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29832549, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29832550, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29832551, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29832552, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29832553, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29832554, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29832555, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29832556, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29832557, 'pht': 3726}}"}, {'dashboat_entry_day': 2816377, 'dashboard_run_id': 2824941, 'mtr_portfolio_id': 29832896, 'dashboard_result_id': 18883933, '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_P29832896_31-12-2025_06_06_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29832903, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29832904, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29832905, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29832906, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29832907, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29832908, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29832909, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29832910, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29832911, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29832912, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29832913, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29832914, 'pht': 3726}}"}, {'dashboat_entry_day': 2816377, 'dashboard_run_id': 2824941, 'mtr_portfolio_id': 29833935, 'dashboard_result_id': 18883934, '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_P29833935_31-12-2025_06_06_13.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29833938, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29833939, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29833940, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29833941, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29833942, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29833943, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29833944, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29833945, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29833946, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29833947, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29833948, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29833949, 'pht': 3726}}"}, {'dashboat_entry_day': 2816377, 'dashboard_run_id': 2824941, 'mtr_portfolio_id': 29834250, 'dashboard_result_id': 18883935, '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_P29834250_31-12-2025_06_06_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29834256, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29834257, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29834258, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29834259, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29834260, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29834261, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29834262, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29834263, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29834264, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29834265, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29834266, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29834267, 'pht': 3726}}"}, {'dashboat_entry_day': 2816377, 'dashboard_run_id': 2824941, 'mtr_portfolio_id': 29834686, 'dashboard_result_id': 18883936, '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_P29834686_31-12-2025_06_07_30.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29834694, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29834695, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29834696, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29834697, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29834698, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29834699, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29834700, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29834701, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29834702, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29834703, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29834704, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29834705, 'pht': 3726}}"}, {'dashboat_entry_day': 2816377, 'dashboard_run_id': 2824941, 'mtr_portfolio_id': 29835254, 'dashboard_result_id': 18883937, '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_P29835254_31-12-2025_06_08_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29835263, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29835264, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29835265, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29835266, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29835267, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29835268, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29835269, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29835270, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29835271, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29835272, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29835273, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29835274, 'pht': 3726}}"}, {'dashboat_entry_day': 2816377, 'dashboard_run_id': 2824941, 'mtr_portfolio_id': 29835728, 'dashboard_result_id': 18883938, '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_P29835728_31-12-2025_06_08_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29835737, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29835738, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29835739, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29835740, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29835741, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29835742, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29835743, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29835744, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29835745, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29835746, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29835747, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29835748, 'pht': 3726}}"}, {'dashboat_entry_day': 2816377, 'dashboard_run_id': 2824941, 'mtr_portfolio_id': 29836084, 'dashboard_result_id': 18883939, '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_P29836084_31-12-2025_06_09_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29836109, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29836110, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29836111, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29836112, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29836113, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29836114, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29836115, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29836116, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29836117, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29836118, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29836119, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29836120, 'pht': 3726}}"}, {'dashboat_entry_day': 2816377, 'dashboard_run_id': 2824941, 'mtr_portfolio_id': 29836539, 'dashboard_result_id': 18883940, '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_P29836539_31-12-2025_06_10_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29836570, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29836571, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29836572, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29836573, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29836574, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29836575, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29836576, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29836577, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29836578, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29836579, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29836580, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29836581, 'pht': 3726}}"}, {'dashboat_entry_day': 2816377, 'dashboard_run_id': 2824941, 'mtr_portfolio_id': 29837182, 'dashboard_result_id': 18883941, '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_P29837182_31-12-2025_06_10_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29837190, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29837191, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29837192, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29837193, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29837194, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29837195, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29837196, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29837197, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29837198, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29837199, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29837200, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29837201, 'pht': 3726}}"}, {'dashboat_entry_day': 2816377, 'dashboard_run_id': 2824941, 'mtr_portfolio_id': 29837626, 'dashboard_result_id': 18883942, '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_P29837626_31-12-2025_06_10_41.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29837651, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29837652, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29837653, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29837654, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29837655, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29837656, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29837657, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29837658, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29837659, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29837660, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29837661, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29837662, 'pht': 3726}}"}, {'dashboat_entry_day': 2816377, 'dashboard_run_id': 2824941, 'mtr_portfolio_id': 29838181, 'dashboard_result_id': 18883943, '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_P29838181_31-12-2025_06_11_15.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29838185, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29838186, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29838187, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29838188, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29838189, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29838190, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29838191, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29838192, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29838193, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29838194, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29838195, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29838196, 'pht': 3726}}"}, {'dashboat_entry_day': 2816377, 'dashboard_run_id': 2824941, 'mtr_portfolio_id': 29838521, 'dashboard_result_id': 18883944, '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_P29838521_31-12-2025_06_11_34.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29838539, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29838540, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29838541, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29838542, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29838543, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29838544, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29838545, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29838546, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29838547, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29838548, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29838549, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29838550, 'pht': 3726}}"}, {'dashboat_entry_day': 2816377, 'dashboard_run_id': 2824941, 'mtr_portfolio_id': 29839390, 'dashboard_result_id': 18883945, '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_P29839390_31-12-2025_06_12_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29839397, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29839398, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29839399, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29839400, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29839401, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29839402, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29839403, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29839404, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29839405, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29839406, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29839407, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29839408, 'pht': 3726}}"}, {'dashboat_entry_day': 2816377, 'dashboard_run_id': 2824941, 'mtr_portfolio_id': 29839712, 'dashboard_result_id': 18883946, '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_P29839712_31-12-2025_06_12_33.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29839719, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29839720, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29839721, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29839722, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29839723, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29839724, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29839725, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29839726, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29839727, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29839728, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29839729, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29839730, 'pht': 3726}}"}, {'dashboat_entry_day': 2816377, 'dashboard_run_id': 2824941, 'mtr_portfolio_id': 29840063, 'dashboard_result_id': 18883947, '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_P29840063_31-12-2025_05_52_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29840067, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29840068, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29840069, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29840070, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29840071, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29840072, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29840073, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29840074, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29840075, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29840076, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29840077, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29840078, 'pht': 3726}}"}, {'dashboat_entry_day': 2816377, 'dashboard_run_id': 2824941, 'mtr_portfolio_id': 29840581, 'dashboard_result_id': 18883948, '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_P29840581_31-12-2025_06_03_31.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29840583, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29840584, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29840585, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29840586, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29840587, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29840588, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29840589, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29840590, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29840591, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29840592, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29840593, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29840594, 'pht': 3726}}"}, {'dashboat_entry_day': 2816377, 'dashboard_run_id': 2824941, 'mtr_portfolio_id': 29840703, 'dashboard_result_id': 18883949, '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_P29840703_31-12-2025_06_19_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29840707, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29840708, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29840709, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29840710, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29840711, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29840712, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29840713, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29840714, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29840715, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29840716, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29840717, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29840718, 'pht': 3726}}"}, {'dashboat_entry_day': 2816377, 'dashboard_run_id': 2824941, 'mtr_portfolio_id': 29841224, 'dashboard_result_id': 18883950, '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_P29841224_31-12-2025_06_33_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29841249, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29841250, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29841251, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29841252, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29841253, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29841254, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29841255, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29841256, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29841257, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29841258, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29841259, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29841260, 'pht': 3726}}"}, {'dashboat_entry_day': 2816377, 'dashboard_run_id': 2824941, 'mtr_portfolio_id': 29841597, 'dashboard_result_id': 18883951, '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_P29841597_31-12-2025_06_48_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29841606, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29841607, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29841608, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29841609, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29841610, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29841611, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29841612, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29841613, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29841614, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29841615, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29841616, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29841617, 'pht': 3726}}"}, {'dashboat_entry_day': 2816377, 'dashboard_run_id': 2824941, 'mtr_portfolio_id': 29842110, 'dashboard_result_id': 18883952, '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_P29842110_31-12-2025_06_58_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29842119, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29842120, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29842121, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29842122, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29842123, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29842124, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29842125, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29842126, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29842127, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29842128, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29842129, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29842130, 'pht': 3726}}"}, {'dashboat_entry_day': 2816377, 'dashboard_run_id': 2824941, 'mtr_portfolio_id': 29842540, 'dashboard_result_id': 18883953, '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_P29842540_31-12-2025_07_17_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29842562, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29842563, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29842564, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29842566, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29842567, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29842568, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29842569, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29842570, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29842571, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29842572, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29842573, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29842574, 'pht': 3726}}"}, {'dashboat_entry_day': 2816377, 'dashboard_run_id': 2824941, 'mtr_portfolio_id': 29843226, 'dashboard_result_id': 18883954, '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_P29843226_31-12-2025_07_33_28.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29843253, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29843254, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29843255, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29843256, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29843257, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29843258, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29843259, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29843260, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29843261, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29843262, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29843263, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29843264, 'pht': 3726}}"}, {'dashboat_entry_day': 2816377, 'dashboard_run_id': 2824941, 'mtr_portfolio_id': 29844120, 'dashboard_result_id': 18883955, '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_P29844120_31-12-2025_07_49_28.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29844126, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29844127, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29844128, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29844129, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29844130, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29844131, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29844132, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29844133, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29844134, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29844135, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29844136, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29844137, 'pht': 3726}}"}, {'dashboat_entry_day': 2816377, 'dashboard_run_id': 2824941, 'mtr_portfolio_id': 29844841, 'dashboard_result_id': 18883956, '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_P29844841_31-12-2025_07_54_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29844848, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29844849, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29844850, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29844851, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29844852, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29844853, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29844854, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29844855, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29844856, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29844857, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29844858, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29844859, '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 = 29831337 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': 4293241, 'mtr_portfolio_id': 29831337, 'created_at': datetime.datetime(2025, 12, 31, 6, 4, 28), 'result': '0.04679346831741459', 'result_long': None, 'result_double': None}] Qualite : 0.04679346831741459 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29831337 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29831337_31-12-2025_06_04_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29831337 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_P29831337_31-12-2025_06_04_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29831343, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29831344, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29831345, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29831346, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29831347, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29831348, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29831349, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29831350, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29831351, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29831352, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29831353, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29831354, 'pht': 3726}}" where mtr_portfolio_id = 29831337 and dashboard_run_id = 2824941 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`=29831337 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18883930, 0.04679346831741459, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29831337_31-12-2025_06_04_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29831343, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29831344, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29831345, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29831346, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29831347, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29831348, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29831349, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29831350, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29831351, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29831352, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29831353, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29831354, '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 = 29832073 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': 4293242, 'mtr_portfolio_id': 29832073, 'created_at': datetime.datetime(2025, 12, 31, 6, 5, 28), 'result': '0.061106564721917105', 'result_long': None, 'result_double': None}] Qualite : 0.061106564721917105 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29832073 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29832073_31-12-2025_06_05_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29832073 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_P29832073_31-12-2025_06_05_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29832079, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29832080, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29832081, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29832082, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29832083, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29832084, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29832085, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29832086, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29832087, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29832088, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29832089, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29832090, 'pht': 3726}}" where mtr_portfolio_id = 29832073 and dashboard_run_id = 2824941 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`=29832073 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18883931, 0.061106564721917105, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29832073_31-12-2025_06_05_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29832079, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29832080, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29832081, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29832082, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29832083, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29832084, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29832085, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29832086, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29832087, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29832088, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29832089, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29832090, '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 = 29832543 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': 4293243, 'mtr_portfolio_id': 29832543, 'created_at': datetime.datetime(2025, 12, 31, 6, 5, 37), 'result': '0.05888474008660328', 'result_long': None, 'result_double': None}] Qualite : 0.05888474008660328 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29832543 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29832543_31-12-2025_06_05_39.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29832543 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_P29832543_31-12-2025_06_05_39.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29832546, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29832547, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29832548, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29832549, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29832550, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29832551, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29832552, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29832553, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29832554, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29832555, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29832556, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29832557, 'pht': 3726}}" where mtr_portfolio_id = 29832543 and dashboard_run_id = 2824941 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`=29832543 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18883932, 0.05888474008660328, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29832543_31-12-2025_06_05_39.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29832546, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29832547, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29832548, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29832549, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29832550, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29832551, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29832552, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29832553, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29832554, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29832555, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29832556, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29832557, '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 = 29832896 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': 4293244, 'mtr_portfolio_id': 29832896, 'created_at': datetime.datetime(2025, 12, 31, 6, 5, 59), 'result': '0.07329693927573656', 'result_long': None, 'result_double': None}] Qualite : 0.07329693927573656 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29832896 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29832896_31-12-2025_06_06_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29832896 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_P29832896_31-12-2025_06_06_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29832903, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29832904, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29832905, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29832906, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29832907, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29832908, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29832909, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29832910, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29832911, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29832912, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29832913, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29832914, 'pht': 3726}}" where mtr_portfolio_id = 29832896 and dashboard_run_id = 2824941 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`=29832896 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18883933, 0.07329693927573656, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29832896_31-12-2025_06_06_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29832903, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29832904, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29832905, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29832906, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29832907, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29832908, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29832909, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29832910, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29832911, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29832912, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29832913, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29832914, '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 = 29833935 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': 4293245, 'mtr_portfolio_id': 29833935, 'created_at': datetime.datetime(2025, 12, 31, 6, 6, 11), 'result': '0.059661365543779744', 'result_long': None, 'result_double': None}] Qualite : 0.059661365543779744 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29833935 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29833935_31-12-2025_06_06_13.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29833935 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_P29833935_31-12-2025_06_06_13.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29833938, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29833939, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29833940, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29833941, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29833942, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29833943, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29833944, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29833945, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29833946, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29833947, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29833948, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29833949, 'pht': 3726}}" where mtr_portfolio_id = 29833935 and dashboard_run_id = 2824941 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`=29833935 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18883934, 0.059661365543779744, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29833935_31-12-2025_06_06_13.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29833938, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29833939, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29833940, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29833941, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29833942, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29833943, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29833944, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29833945, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29833946, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29833947, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29833948, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29833949, '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 = 29834250 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': 4293246, 'mtr_portfolio_id': 29834250, 'created_at': datetime.datetime(2025, 12, 31, 6, 6, 29), 'result': '0.06313558316031297', 'result_long': None, 'result_double': None}] Qualite : 0.06313558316031297 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29834250 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29834250_31-12-2025_06_06_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29834250 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_P29834250_31-12-2025_06_06_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29834256, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29834257, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29834258, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29834259, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29834260, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29834261, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29834262, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29834263, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29834264, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29834265, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29834266, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29834267, 'pht': 3726}}" where mtr_portfolio_id = 29834250 and dashboard_run_id = 2824941 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`=29834250 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18883935, 0.06313558316031297, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29834250_31-12-2025_06_06_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29834256, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29834257, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29834258, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29834259, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29834260, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29834261, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29834262, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29834263, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29834264, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29834265, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29834266, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29834267, '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 = 29834686 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': 4293247, 'mtr_portfolio_id': 29834686, 'created_at': datetime.datetime(2025, 12, 31, 6, 7, 28), 'result': '0.04637423885004646', 'result_long': None, 'result_double': None}] Qualite : 0.04637423885004646 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29834686 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29834686_31-12-2025_06_07_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29834686 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_P29834686_31-12-2025_06_07_30.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29834694, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29834695, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29834696, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29834697, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29834698, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29834699, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29834700, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29834701, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29834702, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29834703, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29834704, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29834705, 'pht': 3726}}" where mtr_portfolio_id = 29834686 and dashboard_run_id = 2824941 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`=29834686 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18883936, 0.04637423885004646, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29834686_31-12-2025_06_07_30.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29834694, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29834695, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29834696, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29834697, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29834698, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29834699, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29834700, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29834701, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29834702, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29834703, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29834704, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29834705, '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 = 29835254 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': 4293248, 'mtr_portfolio_id': 29835254, 'created_at': datetime.datetime(2025, 12, 31, 6, 7, 59), 'result': '0.07039767318132652', 'result_long': None, 'result_double': None}] Qualite : 0.07039767318132652 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29835254 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29835254_31-12-2025_06_08_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29835254 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_P29835254_31-12-2025_06_08_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29835263, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29835264, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29835265, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29835266, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29835267, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29835268, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29835269, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29835270, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29835271, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29835272, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29835273, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29835274, 'pht': 3726}}" where mtr_portfolio_id = 29835254 and dashboard_run_id = 2824941 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`=29835254 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18883937, 0.07039767318132652, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29835254_31-12-2025_06_08_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29835263, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29835264, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29835265, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29835266, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29835267, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29835268, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29835269, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29835270, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29835271, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29835272, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29835273, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29835274, '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 = 29835728 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': 4293249, 'mtr_portfolio_id': 29835728, 'created_at': datetime.datetime(2025, 12, 31, 6, 8, 28), 'result': '0.07138635771027449', 'result_long': None, 'result_double': None}] Qualite : 0.07138635771027449 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29835728 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29835728_31-12-2025_06_08_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29835728 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_P29835728_31-12-2025_06_08_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29835737, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29835738, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29835739, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29835740, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29835741, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29835742, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29835743, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29835744, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29835745, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29835746, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29835747, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29835748, 'pht': 3726}}" where mtr_portfolio_id = 29835728 and dashboard_run_id = 2824941 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`=29835728 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18883938, 0.07138635771027449, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29835728_31-12-2025_06_08_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29835737, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29835738, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29835739, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29835740, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29835741, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29835742, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29835743, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29835744, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29835745, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29835746, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29835747, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29835748, '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 = 29836084 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': 4293250, 'mtr_portfolio_id': 29836084, 'created_at': datetime.datetime(2025, 12, 31, 6, 9, 28), 'result': '0.05074529266337655', 'result_long': None, 'result_double': None}] Qualite : 0.05074529266337655 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29836084 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29836084_31-12-2025_06_09_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29836084 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_P29836084_31-12-2025_06_09_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29836109, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29836110, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29836111, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29836112, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29836113, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29836114, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29836115, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29836116, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29836117, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29836118, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29836119, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29836120, 'pht': 3726}}" where mtr_portfolio_id = 29836084 and dashboard_run_id = 2824941 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`=29836084 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18883939, 0.05074529266337655, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29836084_31-12-2025_06_09_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29836109, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29836110, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29836111, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29836112, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29836113, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29836114, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29836115, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29836116, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29836117, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29836118, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29836119, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29836120, '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 = 29836539 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': 4293251, 'mtr_portfolio_id': 29836539, 'created_at': datetime.datetime(2025, 12, 31, 6, 9, 58), 'result': '0.04930114426165745', 'result_long': None, 'result_double': None}] Qualite : 0.04930114426165745 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29836539 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29836539_31-12-2025_06_10_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29836539 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_P29836539_31-12-2025_06_10_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29836570, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29836571, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29836572, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29836573, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29836574, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29836575, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29836576, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29836577, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29836578, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29836579, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29836580, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29836581, 'pht': 3726}}" where mtr_portfolio_id = 29836539 and dashboard_run_id = 2824941 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`=29836539 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18883940, 0.04930114426165745, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29836539_31-12-2025_06_10_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29836570, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29836571, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29836572, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29836573, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29836574, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29836575, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29836576, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29836577, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29836578, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29836579, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29836580, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29836581, '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 = 29837182 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': 4293252, 'mtr_portfolio_id': 29837182, 'created_at': datetime.datetime(2025, 12, 31, 6, 10, 29), 'result': '0.051937477125074794', 'result_long': None, 'result_double': None}] Qualite : 0.051937477125074794 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29837182 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29837182_31-12-2025_06_10_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29837182 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_P29837182_31-12-2025_06_10_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29837190, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29837191, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29837192, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29837193, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29837194, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29837195, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29837196, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29837197, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29837198, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29837199, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29837200, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29837201, 'pht': 3726}}" where mtr_portfolio_id = 29837182 and dashboard_run_id = 2824941 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`=29837182 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18883941, 0.051937477125074794, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29837182_31-12-2025_06_10_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29837190, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29837191, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29837192, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29837193, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29837194, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29837195, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29837196, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29837197, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29837198, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29837199, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29837200, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29837201, '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 = 29837626 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': 4293253, 'mtr_portfolio_id': 29837626, 'created_at': datetime.datetime(2025, 12, 31, 6, 10, 38), 'result': '0.0485556309076363', 'result_long': None, 'result_double': None}] Qualite : 0.0485556309076363 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29837626 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29837626_31-12-2025_06_10_41.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29837626 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_P29837626_31-12-2025_06_10_41.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29837651, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29837652, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29837653, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29837654, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29837655, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29837656, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29837657, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29837658, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29837659, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29837660, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29837661, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29837662, 'pht': 3726}}" where mtr_portfolio_id = 29837626 and dashboard_run_id = 2824941 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`=29837626 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18883942, 0.0485556309076363, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29837626_31-12-2025_06_10_41.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29837651, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29837652, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29837653, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29837654, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29837655, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29837656, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29837657, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29837658, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29837659, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29837660, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29837661, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29837662, '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 = 29838181 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': 4293254, 'mtr_portfolio_id': 29838181, 'created_at': datetime.datetime(2025, 12, 31, 6, 11, 12), 'result': '0.04230929562389999', 'result_long': None, 'result_double': None}] Qualite : 0.04230929562389999 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29838181 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29838181_31-12-2025_06_11_15.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29838181 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_P29838181_31-12-2025_06_11_15.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29838185, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29838186, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29838187, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29838188, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29838189, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29838190, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29838191, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29838192, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29838193, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29838194, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29838195, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29838196, 'pht': 3726}}" where mtr_portfolio_id = 29838181 and dashboard_run_id = 2824941 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`=29838181 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18883943, 0.04230929562389999, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29838181_31-12-2025_06_11_15.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29838185, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29838186, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29838187, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29838188, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29838189, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29838190, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29838191, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29838192, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29838193, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29838194, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29838195, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29838196, '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 = 29838521 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': 4293255, 'mtr_portfolio_id': 29838521, 'created_at': datetime.datetime(2025, 12, 31, 6, 11, 32), 'result': '0.03361620373569556', 'result_long': None, 'result_double': None}] Qualite : 0.03361620373569556 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29838521 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29838521_31-12-2025_06_11_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29838521 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_P29838521_31-12-2025_06_11_34.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29838539, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29838540, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29838541, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29838542, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29838543, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29838544, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29838545, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29838546, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29838547, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29838548, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29838549, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29838550, 'pht': 3726}}" where mtr_portfolio_id = 29838521 and dashboard_run_id = 2824941 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`=29838521 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18883944, 0.03361620373569556, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29838521_31-12-2025_06_11_34.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29838539, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29838540, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29838541, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29838542, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29838543, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29838544, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29838545, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29838546, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29838547, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29838548, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29838549, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29838550, '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 = 29839390 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': 4293256, 'mtr_portfolio_id': 29839390, 'created_at': datetime.datetime(2025, 12, 31, 6, 12), 'result': '0.05101099983516462', 'result_long': None, 'result_double': None}] Qualite : 0.05101099983516462 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29839390 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29839390_31-12-2025_06_12_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29839390 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_P29839390_31-12-2025_06_12_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29839397, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29839398, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29839399, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29839400, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29839401, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29839402, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29839403, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29839404, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29839405, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29839406, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29839407, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29839408, 'pht': 3726}}" where mtr_portfolio_id = 29839390 and dashboard_run_id = 2824941 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`=29839390 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18883945, 0.05101099983516462, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29839390_31-12-2025_06_12_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29839397, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29839398, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29839399, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29839400, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29839401, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29839402, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29839403, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29839404, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29839405, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29839406, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29839407, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29839408, '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 = 29839712 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': 4293257, 'mtr_portfolio_id': 29839712, 'created_at': datetime.datetime(2025, 12, 31, 6, 12, 31), 'result': '0.057521687047368944', 'result_long': None, 'result_double': None}] Qualite : 0.057521687047368944 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29839712 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29839712_31-12-2025_06_12_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29839712 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_P29839712_31-12-2025_06_12_33.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29839719, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29839720, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29839721, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29839722, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29839723, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29839724, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29839725, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29839726, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29839727, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29839728, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29839729, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29839730, 'pht': 3726}}" where mtr_portfolio_id = 29839712 and dashboard_run_id = 2824941 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`=29839712 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18883946, 0.057521687047368944, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29839712_31-12-2025_06_12_33.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29839719, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29839720, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29839721, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29839722, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29839723, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29839724, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29839725, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29839726, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29839727, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29839728, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29839729, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29839730, '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 = 29840063 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': 4293174, 'mtr_portfolio_id': 29840063, 'created_at': datetime.datetime(2025, 12, 31, 5, 52, 59), 'result': '0.057187678316164496', 'result_long': None, 'result_double': None}] Qualite : 0.057187678316164496 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29840063 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29840063_31-12-2025_05_52_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29840063 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_P29840063_31-12-2025_05_52_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29840067, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29840068, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29840069, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29840070, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29840071, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29840072, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29840073, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29840074, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29840075, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29840076, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29840077, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29840078, 'pht': 3726}}" where mtr_portfolio_id = 29840063 and dashboard_run_id = 2824941 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`=29840063 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18883947, 0.057187678316164496, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29840063_31-12-2025_05_52_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29840067, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29840068, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29840069, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29840070, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29840071, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29840072, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29840073, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29840074, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29840075, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29840076, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29840077, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29840078, '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 = 29840581 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': 4293386, 'mtr_portfolio_id': 29840581, 'created_at': datetime.datetime(2025, 12, 31, 6, 3, 30), 'result': '0.053473314943361584', 'result_long': None, 'result_double': None}] Qualite : 0.053473314943361584 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29840581 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29840581_31-12-2025_06_03_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29840581 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_P29840581_31-12-2025_06_03_31.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29840583, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29840584, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29840585, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29840586, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29840587, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29840588, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29840589, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29840590, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29840591, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29840592, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29840593, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29840594, 'pht': 3726}}" where mtr_portfolio_id = 29840581 and dashboard_run_id = 2824941 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`=29840581 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18883948, 0.053473314943361584, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29840581_31-12-2025_06_03_31.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29840583, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29840584, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29840585, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29840586, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29840587, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29840588, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29840589, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29840590, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29840591, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29840592, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29840593, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29840594, '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 = 29840703 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': 4293436, 'mtr_portfolio_id': 29840703, 'created_at': datetime.datetime(2025, 12, 31, 6, 19), 'result': '0.04801287237129067', 'result_long': None, 'result_double': None}] Qualite : 0.04801287237129067 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29840703 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29840703_31-12-2025_06_19_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29840703 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_P29840703_31-12-2025_06_19_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29840707, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29840708, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29840709, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29840710, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29840711, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29840712, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29840713, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29840714, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29840715, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29840716, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29840717, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29840718, 'pht': 3726}}" where mtr_portfolio_id = 29840703 and dashboard_run_id = 2824941 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`=29840703 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18883949, 0.04801287237129067, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29840703_31-12-2025_06_19_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29840707, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29840708, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29840709, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29840710, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29840711, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29840712, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29840713, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29840714, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29840715, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29840716, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29840717, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29840718, '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 = 29841224 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': 4293497, 'mtr_portfolio_id': 29841224, 'created_at': datetime.datetime(2025, 12, 31, 6, 33), 'result': '0.04566503371560004', 'result_long': None, 'result_double': None}] Qualite : 0.04566503371560004 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29841224 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29841224_31-12-2025_06_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29841224 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_P29841224_31-12-2025_06_33_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29841249, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29841250, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29841251, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29841252, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29841253, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29841254, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29841255, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29841256, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29841257, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29841258, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29841259, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29841260, 'pht': 3726}}" where mtr_portfolio_id = 29841224 and dashboard_run_id = 2824941 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`=29841224 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18883950, 0.04566503371560004, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29841224_31-12-2025_06_33_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29841249, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29841250, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29841251, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29841252, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29841253, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29841254, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29841255, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29841256, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29841257, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29841258, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29841259, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29841260, '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 = 29841597 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': 4293546, 'mtr_portfolio_id': 29841597, 'created_at': datetime.datetime(2025, 12, 31, 6, 48, 59), 'result': '0.046944959011278604', 'result_long': None, 'result_double': None}] Qualite : 0.046944959011278604 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29841597 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29841597_31-12-2025_06_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29841597 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_P29841597_31-12-2025_06_48_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29841606, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29841607, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29841608, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29841609, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29841610, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29841611, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29841612, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29841613, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29841614, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29841615, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29841616, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29841617, 'pht': 3726}}" where mtr_portfolio_id = 29841597 and dashboard_run_id = 2824941 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`=29841597 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18883951, 0.046944959011278604, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29841597_31-12-2025_06_48_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29841606, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29841607, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29841608, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29841609, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29841610, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29841611, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29841612, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29841613, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29841614, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29841615, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29841616, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29841617, '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 = 29842110 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': 4293614, 'mtr_portfolio_id': 29842110, 'created_at': datetime.datetime(2025, 12, 31, 7, 3), 'result': '0.05816766473343597', 'result_long': None, 'result_double': None}] Qualite : 0.05816766473343597 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29842110 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29842110_31-12-2025_07_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29842110 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_P29842110_31-12-2025_07_03_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29842119, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29842120, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29842121, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29842122, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29842123, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29842124, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29842125, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29842126, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29842127, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29842128, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29842129, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29842130, 'pht': 3726}}" where mtr_portfolio_id = 29842110 and dashboard_run_id = 2824941 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`=29842110 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18883952, 0.05816766473343597, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29842110_31-12-2025_07_03_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29842119, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29842120, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29842121, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29842122, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29842123, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29842124, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29842125, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29842126, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29842127, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29842128, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29842129, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29842130, '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 = 29842540 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': 4293694, 'mtr_portfolio_id': 29842540, 'created_at': datetime.datetime(2025, 12, 31, 7, 17, 1), 'result': '0.058903710667145164', 'result_long': None, 'result_double': None}] Qualite : 0.058903710667145164 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29842540 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29842540_31-12-2025_07_17_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29842540 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_P29842540_31-12-2025_07_17_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29842562, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29842563, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29842564, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29842566, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29842567, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29842568, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29842569, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29842570, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29842571, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29842572, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29842573, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29842574, 'pht': 3726}}" where mtr_portfolio_id = 29842540 and dashboard_run_id = 2824943 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`=29842540 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18883953, 0.058903710667145164, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29842540_31-12-2025_07_17_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29842562, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29842563, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29842564, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29842566, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29842567, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29842568, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29842569, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29842570, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29842571, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29842572, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29842573, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29842574, '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 = 29843226 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': 4293786, 'mtr_portfolio_id': 29843226, 'created_at': datetime.datetime(2025, 12, 31, 7, 33, 27), 'result': '0.057041832804247204', 'result_long': None, 'result_double': None}] Qualite : 0.057041832804247204 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29843226 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29843226_31-12-2025_07_33_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29843226 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_P29843226_31-12-2025_07_33_28.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29843253, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29843254, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29843255, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29843256, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29843257, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29843258, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29843259, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29843260, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29843261, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29843262, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29843263, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29843264, 'pht': 3726}}" where mtr_portfolio_id = 29843226 and dashboard_run_id = 2824943 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`=29843226 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18883954, 0.057041832804247204, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29843226_31-12-2025_07_33_28.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29843253, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29843254, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29843255, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29843256, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29843257, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29843258, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29843259, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29843260, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29843261, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29843262, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29843263, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29843264, '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 = 29844120 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': 4293883, 'mtr_portfolio_id': 29844120, 'created_at': datetime.datetime(2025, 12, 31, 7, 49, 27), 'result': '0.04991933304231733', 'result_long': None, 'result_double': None}] Qualite : 0.04991933304231733 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29844120 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29844120_31-12-2025_07_49_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29844120 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_P29844120_31-12-2025_07_49_28.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29844126, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29844127, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29844128, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29844129, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29844130, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29844131, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29844132, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29844133, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29844134, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29844135, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29844136, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29844137, 'pht': 3726}}" where mtr_portfolio_id = 29844120 and dashboard_run_id = 2824943 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`=29844120 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18883955, 0.04991933304231733, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29844120_31-12-2025_07_49_28.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29844126, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29844127, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29844128, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29844129, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29844130, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29844131, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29844132, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29844133, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29844134, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29844135, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29844136, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29844137, '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 = 29844841 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': 4293991, 'mtr_portfolio_id': 29844841, 'created_at': datetime.datetime(2025, 12, 31, 7, 58, 57), 'result': '0.020433363202355993', 'result_long': None, 'result_double': None}] Qualite : 0.020433363202355993 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29844841 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29844841_31-12-2025_07_58_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29844841 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_P29844841_31-12-2025_07_58_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29844848, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29844849, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29844850, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29844851, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29844852, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29844853, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29844854, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29844855, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29844856, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29844857, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29844858, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29844859, 'pht': 3726}}" where mtr_portfolio_id = 29844841 and dashboard_run_id = 2824943 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`=29844841 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18883956, 0.020433363202355993, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29844841_31-12-2025_07_58_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29844848, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29844849, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29844850, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29844851, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29844852, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29844853, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29844854, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29844855, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29844856, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29844857, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29844858, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29844859, '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 (29831337,29832073,29832543,29832896,29833935,29834250,29834686,29835254,29835728,29836084,29836539,29837182,29837626,29838181,29838521,29839390,29839712,29840063,29840581,29840703,29841224,29841597,29842110,29842540,29843226,29844120,29844841) result : ((1401800738,), (1401800779,), (1401800818,), (1401800857,), (1401801320,), (1401801377,), (1401801417,), (1401801452,), (1401801488,), (1401802080,), (1401802112,), (1401802149,), (1401802219,), (1401802273,), (1401802307,), (1401802494,), (1401802552,), (1401802627,), (1401802789,), (1401802823,), (1401802865,), (1401803140,), (1401803145,), (1401803165,), (1401803197,), (1401803814,), (1401803821,), (1401803825,), (1401803847,), (1401803892,), (1401804300,), (1401804333,), (1401804367,), (1401804398,), (1401804429,), (1401804432,), (1401804558,), (1401804589,), (1401804615,), (1401804623,), (1401804991,), (1401805024,), (1401805026,), (1401805034,), (1401805156,), (1401805166,), (1401805172,), (1401805175,), (1401805178,), (1401805182,), (1401805201,), (1401805204,), (1401805206,), (1401805209,), (1401805393,), (1401805397,), (1401805516,), (1401805517,), (1401805520,), (1401805526,), (1401805531,), (1401805553,), (1401805562,), (1401805569,), (1401805577,), (1401805580,), (1401805607,), (1401805613,), (1401805615,), (1401805618,), (1401805621,), (1401805668,), (1401805664,), (1401805666,), (1401805693,), (1401805695,), (1401805698,), (1401805701,), (1401805738,), (1401805740,), (1401805742,), (1401805745,), (1401805749,), (1401805767,), (1401805770,), (1401805775,), (1401805780,), (1401805784,), (1401805817,), (1401805819,), (1401805823,), (1401805826,), (1401805848,), (1401805851,), (1401805852,), (1401805854,), (1401805856,), (1401805887,), (1401805888,), (1401805891,), (1401805894,), (1401805916,), (1401805919,), (1401805922,), (1401805926,), (1401805928,), (1401805931,), (1401805936,), (1401805939,), (1401805955,), (1401805957,), (1401805959,), (1401805961,), (1401805986,), (1401805989,), (1401805991,), (1401805994,), (1401806035,), (1401806036,), (1401806037,), (1401806040,), (1401806045,), (1401806049,), (1401806063,), (1401806066,), (1401806069,), (1401806129,), (1401806131,), (1401806133,), (1401806135,), (1401806138,), (1401806141,), (1401806180,), (1401806181,), (1401806182,), (1401806185,), (1401806191,), (1401806218,), (1401806221,), (1401806224,), (1401806226,), (1401806228,), (1401806233,), (1401806215,), (1401806283,), (1401806433,), (1401806485,), (1401806515,), (1401806517,), (1401806584,), (1401806586,), (1401806589,), (1401806612,), (1401806614,), (1401806617,), (1401806621,), (1401806625,), (1401806629,), (1401806650,), (1401806653,), (1401806656,), (1401806659,), (1401806662,), (1401806666,), (1401806671,), (1401806675,), (1401806690,), (1401806700,), (1401806703,), (1401806705,), (1401806750,), (1401806752,), (1401806754,), (1401806758,), (1401806782,), (1401806784,), (1401806786,), (1401806790,), (1401806793,), (1401806799,), (1401806807,), (1401806820,), (1401806821,), (1401806823,), (1401806825,), (1401806853,), (1401806854,), (1401806855,), (1401806910,), (1401806897,), (1401806899,), (1401806901,), (1401806905,), (1401806909,), (1401806934,), (1401806936,), (1401806940,), (1401806943,), (1401806946,), (1401806949,), (1401806990,), (1401806992,), (1401806994,), (1401806997,), (1401807001,), (1401807021,), (1401807022,), (1401807048,), (1401807084,), (1401807119,), (1401807152,), (1401807284,), (1401807315,), (1401807445,), (1401807478,), (1401807819,), (1401807820,), (1401807830,), (1401807860,), (1401807894,), (1401808075,), (1401808082,), (1401808089,), (1401808116,), (1401808118,), (1401808120,), (1401808124,), (1401808127,), (1401808130,), (1401808148,), (1401808154,), (1401808156,), (1401808158,), (1401808161,), (1401808164,), (1401808188,), (1401808189,), (1401808190,), (1401808192,), (1401808195,), (1401808217,), (1401808219,), (1401808221,), (1401808251,), (1401808253,), (1401808255,), (1401808291,), (1401808299,), (1401808304,), (1401808307,), (1401808310,), (1401808348,), (1401808355,), (1401808357,), (1401808363,), (1401808364,), (1401808368,), (1401808379,), (1401808406,), (1401811854,), (1401811850,), (1401811882,), (1401811884,), (1401811885,), (1401811887,), (1401811918,), (1401811919,), (1401811922,), (1401811925,), (1401811943,), (1401811946,), (1401811948,), (1401811994,), (1401811996,), (1401811997,), (1401812017,), (1401812019,), (1401812022,), (1401812027,), (1401812031,), (1401812035,), (1401812052,), (1401812061,), (1401812063,), (1401812065,), (1401812091,), (1401812093,), (1401812096,), (1401812129,), (1401812130,), (1401812132,), (1401812154,), (1401812156,), (1401812158,), (1401812162,), (1401812166,), (1401812173,), (1401812181,), (1401812182,), (1401812191,), (1401812194,), (1401812227,), (1401812228,), (1401812230,), (1401812290,), (1401812277,), (1401812279,), (1401812281,), (1401812285,), (1401812308,), (1401812310,), (1401812312,), (1401812341,), (1401812344,), (1401812346,), (1401812371,), (1401812373,), (1401812375,), (1401812379,), (1401812383,), (1401812387,), (1401812396,), (1401812398,), (1401812425,), (1401812454,), (1401812457,), (1401812484,), (1401812485,), (1401812486,), (1401812487,), (1401812532,), (1401812536,), (1401812538,), (1401812542,), (1401812565,), (1401812566,), (1401812568,), (1401812573,), (1401812576,), (1401812579,), (1401812586,), (1401812597,), (1401812600,), (1401812602,), (1401812604,), (1401812631,), (1401812632,), (1401812633,), (1401812668,), (1401812670,), (1401812672,), (1401812676,), (1401812699,), (1401812701,), (1401812703,), (1401812741,), (1401812744,), (1401812747,), (1401812751,), (1401812782,), (1401812786,), (1401812790,), (1401812794,), (1401812798,), (1401812807,), (1401812808,), (1401812809,), (1401812939,), (1401812873,), (1401812906,), (1401813309,), (1401813363,), (1401813427,), (1401814278,), (1401814311,), (1401814345,), (1401814377,), (1401814410,), (1401814475,), (1401815025,), (1401815145,), (1401815179,), (1401816086,), (1401816151,), (1401816203,), (1401816572,), (1401816584,), (1401816620,), (1401817164,), (1401817166,), (1401817167,), (1401817384,), (1401817424,), (1401817427,), (1401817466,), (1401817469,), (1401817471,), (1401817491,), (1401817493,), (1401817495,), (1401817499,), (1401817504,), (1401817533,), (1401817535,), (1401817538,), (1401817561,), (1401817563,), (1401817565,), (1401817568,), (1401817571,), (1401817596,), (1401817597,), (1401817598,), (1401817600,), (1401817626,), (1401817629,), (1401817632,), (1401817635,), (1401817639,), (1401817641,), (1401817675,), (1401817671,), (1401817674,), (1401817697,), (1401817699,), (1401817732,), (1401817734,), (1401817737,), (1401817739,), (1401817770,), (1401817773,), (1401817776,), (1401817779,), (1401817782,), (1401817820,), (1401817822,), (1401817824,), (1401817828,), (1401817833,), (1401817837,), (1401817853,), (1401817855,), (1401817857,), (1401817860,), (1401817884,), (1401817887,), (1401817890,), (1401817913,), (1401817914,), (1401817916,), (1401817920,), (1401817924,), (1401817955,), (1401817958,), (1401817961,), (1401817964,), (1401817967,), (1401817999,), (1401818002,), (1401818004,), (1401818006,), (1401818038,), (1401818048,), (1401818049,), (1401818076,), (1401818080,), (1401818084,), (1401818110,), (1401818113,), (1401818115,), (1401818118,), (1401818122,), (1401818150,), (1401818182,), (1401818186,), (1401818191,), (1401818194,), (1401818198,), (1401818200,), (1401818229,), (1401818220,), (1401818222,), (1401818223,), (1401818225,), (1401818228,), (1401818248,), (1401818251,), (1401818253,), (1401818256,), (1401818261,), (1401818283,), (1401818285,), (1401818288,), (1401818292,), (1401818296,), (1401818298,), (1401818318,), (1401818321,), (1401818330,), (1401818334,), (1401818337,), (1401818340,), (1401818364,), (1401818367,), (1401818370,), (1401818374,), (1401818379,), (1401818382,), (1401818421,), (1401818432,), (1401818434,), (1401818437,), (1401818441,), (1401818460,), (1401818461,), (1401818462,), (1401818502,), (1401818505,), (1401818508,), (1401818512,), (1401818550,), (1401818552,), (1401818554,), (1401818557,), (1401818560,), (1401818563,), (1401818588,), (1401818595,), (1401818597,), (1401818599,), (1401818603,), (1401818608,), (1401818627,), (1401818629,), (1401818661,), (1401818663,), (1401818665,), (1401818667,), (1401818670,), (1401818697,), (1401818698,), (1401818700,), (1401818704,), (1401818708,), (1401818713,), (1401818724,), (1401818726,), (1401818730,), (1401818740,), (1401818742,), (1401818745,), (1401818748,), (1401818751,), (1401818753,), (1401818769,), (1401818771,), (1401818772,), (1401818806,), (1401818800,), (1401818803,), (1401818836,), (1401818838,), (1401818839,), (1401818859,), (1401818867,), (1401818870,), (1401818873,), (1401818877,), (1401818897,), (1401818900,), (1401818903,), (1401818907,), (1401818910,), (1401818913,), (1401818921,), (1401818922,), (1401818929,), (1401818931,), (1401818934,), (1401818968,), (1401818969,), (1401818970,), (1401818973,), (1401818978,), (1401819002,), (1401819005,), (1401819008,), (1401819012,), (1401819037,), (1401819038,), (1401819039,), (1401819042,), (1401819045,), (1401819049,), (1401819058,), (1401819061,), (1401819067,), (1401819073,), (1401819119,), (1401819121,), (1401819156,), (1401819158,), (1401819160,), (1401819163,), (1401819167,), (1401819186,), (1401819188,), (1401819189,), (1401819190,), (1401819193,), (1401819194,), (1401819229,), (1401819231,), (1401819233,), (1401819236,), (1401819262,), (1401819267,), (1401819272,), (1401819278,), (1401819282,), (1401819286,), (1401819435,), (1401819470,), (1401819508,), (1401819570,), (1401819641,), (1401819708,), (1401819994,), (1401819936,), (1401820505,), (1401820538,), (1401820572,), (1401820644,), (1401820677,), (1401820711,), (1401820747,), (1401820785,), (1401820821,), (1401821199,), (1401821428,), (1401821444,), (1401821459,), (1401821464,), (1401821468,), (1401821759,), (1401821762,), (1401821764,), (1401821767,), (1401821771,), (1401821814,), (1401821816,), (1401821817,), (1401821852,), (1401821856,), (1401821860,), (1401821866,), (1401821895,), (1401821898,), (1401821899,), (1401821901,), (1401821905,), (1401821908,), (1401821926,), (1401821930,), (1401821934,), (1401821939,), (1401821944,), (1401821966,), (1401821968,), (1401821970,), (1401821998,), (1401822001,), (1401822003,), (1401822004,), (1401822044,), (1401822046,), (1401822047,), (1401822048,), (1401822052,), (1401822054,), (1401822083,), (1401822085,), (1401822088,), (1401822092,), (1401822096,), (1401822100,), (1401822117,), (1401822118,), (1401822119,), (1401822120,), (1401822141,), (1401822143,), (1401822147,), (1401822150,), (1401822152,), (1401822173,), (1401822176,), (1401822177,), (1401822178,), (1401822180,), (1401822183,), (1401822233,), (1401822224,), (1401822225,), (1401822227,), (1401822230,), (1401822254,), (1401822256,), (1401822259,), (1401822321,), (1401822331,), (1401822333,), (1401822336,), (1401822339,), (1401822366,), (1401822367,), (1401822369,), (1401822373,), (1401822377,), (1401822381,), (1401822397,), (1401822398,), (1401822399,), (1401822405,), (1401822408,), (1401822411,), (1401822415,), (1401822432,), (1401822435,), (1401822438,), (1401822442,), (1401822446,), (1401822473,), (1401822474,), (1401822508,), (1401822509,), (1401822512,), (1401822516,), (1401822520,), (1401822552,), (1401822554,), (1401822556,), (1401822595,), (1401822602,), (1401822604,), (1401822606,), (1401822644,), (1401822645,), (1401822647,), (1401822649,), (1401822654,), (1401822671,), (1401822674,), (1401822677,), (1401822681,), (1401822719,), (1401822721,), (1401822722,), (1401822724,), (1401822753,), (1401822758,), (1401822764,), (1401822770,), (1401822779,), (1401822782,), (1401822793,), (1401822801,), (1401822804,), (1401822806,), (1401822811,), (1401822839,), (1401822832,), (1401822833,), (1401822835,), (1401822837,), (1401822859,), (1401822860,), (1401822867,), (1401822897,), (1401822900,), (1401822903,), (1401822906,), (1401822910,), (1401822912,), (1401822919,), (1401822922,), (1401822939,), (1401822942,), (1401822943,), (1401822971,), (1401822972,), (1401822973,), (1401822975,), (1401823016,), (1401823019,), (1401823023,), (1401823026,), (1401823031,), (1401823034,), (1401823055,), (1401823057,), (1401823058,), (1401823083,), (1401823085,), (1401823088,), (1401823092,), (1401823119,), (1401823121,), (1401823123,), (1401823127,), (1401823130,), (1401823133,), (1401823141,), (1401823143,), (1401823145,), (1401823164,), (1401823165,), (1401823167,), (1401823170,), (1401823173,), (1401823199,), (1401823200,), (1401823203,), (1401823205,), (1401823209,), (1401823238,), (1401823239,), (1401823272,), (1401823274,), (1401823277,), (1401823279,), (1401823283,), (1401823284,), (1401823316,), (1401823318,), (1401823401,), (1401823479,), (1401823482,), (1401823485,), (1401823513,), (1401823515,), (1401823516,), (1401823517,), (1401823521,), (1401823543,), (1401823544,), (1401823572,), (1401823575,), (1401823578,), (1401823582,), (1401823587,), (1401823606,), (1401823607,), (1401823608,), (1401823611,), (1401823612,), (1401823615,), (1401823633,), (1401823635,), (1401823637,), (1401823638,), (1401823643,), (1401823645,), (1401823649,), (1401823653,), (1401823670,), (1401823673,), (1401823676,), (1401823679,), (1401823684,), (1401823711,), (1401823714,), (1401823717,), (1401823737,), (1401823738,), (1401823740,), (1401823743,), (1401823770,), (1401823772,), (1401823776,), (1401823779,), (1401823784,), (1401823787,), (1401823949,), (1401823987,), (1401824032,), (1401824069,), (1401824106,), (1401824147,), (1401824286,), (1401824311,), (1401824313,), (1401824317,), (1401824320,), (1401824403,), (1401824336,), (1401824368,), (1401824863,), (1401824919,), (1401825387,), (1401825391,), (1401825395,), (1401825585,), (1401825618,), (1401826410,), (1401826420,), (1401826424,), (1401826428,), (1401826433,), (1401826470,), (1401826473,), (1401826476,), (1401826509,), (1401826511,), (1401826558,), (1401826562,), (1401826563,), (1401826566,), (1401826570,), (1401826597,), (1401826598,), (1401826601,), (1401826605,), (1401826609,), (1401826612,), (1401826622,), (1401826625,), (1401826633,), (1401826642,), (1401826644,), (1401826676,), (1401826678,), (1401826681,), (1401826684,), (1401826687,), (1401826690,), (1401826717,), (1401826718,), (1401826759,), (1401826761,), (1401829987,), (1401830750,), (1401830788,), (1401830826,), (1401830865,), (1401830900,), (1401831069,), (1401831071,), (1401831073,), (1401831075,), (1401831229,), (1401831265,), (1401831555,), (1401831586,), (1401831587,), (1401831605,), (1401831612,), (1401831638,), (1401831641,), (1401831644,), (1401831648,), (1401831680,), (1401831683,), (1401831687,), (1401831691,), (1401831717,), (1401831719,), (1401831721,), (1401831725,), (1401831728,), (1401831731,), (1401831743,), (1401831745,), (1401831747,), (1401831755,), (1401831757,), (1401831759,), (1401831762,), (1401831782,), (1401831783,), (1401831784,), (1401831817,), (1401831820,), (1401831823,), (1401831826,), (1401831849,), (1401831850,), (1401831851,), (1401831853,), (1401831856,), (1401831859,), (1401831874,), (1401831886,), (1401831888,), (1401831911,), (1401831915,), (1401831917,), (1401831958,), (1401831953,), (1401831955,), (1401832035,), (1401832071,), (1401832073,), (1401832075,), (1401832078,), (1401832082,), (1401832085,), (1401832103,), (1401832104,), (1401832105,), (1401832108,), (1401832113,), (1401832138,), (1401832141,), (1401832145,), (1401832148,), (1401832180,), (1401832181,), (1401832185,), (1401832189,), (1401832194,), (1401832198,), (1401832219,), (1401832223,), (1401832250,), (1401832265,), (1401832268,), (1401832273,), (1401832277,), (1401832281,), (1401832284,), (1401832301,), (1401832311,), (1401832314,), (1401832318,), (1401832322,), (1401832325,), (1401832361,), (1401832364,), (1401832366,), (1401832369,), (1401832390,), (1401832391,), (1401832392,), (1401832396,), (1401832430,), (1401832433,), (1401832436,), (1401832440,), (1401832445,), (1401832464,), (1401832466,), (1401832467,), (1401832470,), (1401832473,), (1401832476,), (1401832510,), (1401832515,), (1401832581,), (1401832573,), (1401832576,), (1401832578,), (1401832608,), (1401832610,), (1401832611,), (1401832613,), (1401832617,), (1401832620,), (1401832639,), (1401832640,), (1401832643,), (1401832647,), (1401832651,), (1401832654,), (1401832673,), (1401832679,), (1401832697,), (1401832699,), (1401832701,), (1401832703,), (1401832728,), (1401832730,), (1401832732,), (1401832756,), (1401832758,), (1401832761,), (1401832764,), (1401832769,), (1401832773,), (1401832789,), (1401832791,), (1401832793,), (1401832840,), (1401832842,), (1401832844,), (1401832847,), (1401832851,), (1401832852,), (1401832873,), (1401832876,), (1401832879,), (1401832882,), (1401832885,), (1401832924,), (1401832926,), (1401832927,), (1401832930,), (1401832953,), (1401832955,), (1401832958,), (1401832962,), (1401832967,), (1401832970,), (1401832997,), (1401833003,), (1401833004,), (1401833006,), (1401833027,), (1401833029,), (1401833032,), (1401833036,), (1401833039,), (1401833307,), (1401833304,), (1401833306,), (1401833346,), (1401833353,), (1401833363,), (1401833373,), (1401833378,), (1401833400,), (1401833403,), (1401833408,), (1401833415,), (1401833421,), (1401833425,), (1401833434,), (1401833436,), (1401833438,), (1401833447,), (1401833449,), (1401833453,), (1401833458,), (1401833479,), (1401833480,), (1401833482,), (1401833484,), (1401833488,), (1401833492,), (1401833516,), (1401833517,), (1401833518,), (1401833521,), (1401833526,), (1401833548,), (1401833550,), (1401833553,), (1401833584,), (1401833588,), (1401833590,), (1401833593,), (1401833597,), (1401834034,), (1401834070,), (1401834107,), (1401834142,), (1401834174,), (1401834213,), (1401834231,), (1401834236,), (1401834240,), (1401834245,), (1401834278,), (1401834312,), (1401834449,), (1401834486,), (1401834545,), (1401834548,), (1401834415,), (1401834417,), (1401834420,), (1401834423,), (1401834555,), (1401834558,), (1401834563,), (1401834568,), (1401834572,), (1401834605,), (1401834610,), (1401834614,), (1401834617,), (1401834620,), (1401834623,), (1401834631,), (1401834636,), (1401834647,), (1401834653,), (1401834657,), (1401834662,), (1401834667,), (1401834672,), (1401834685,), (1401834688,), (1401834691,), (1401834695,), (1401834699,), (1401834702,), (1401834721,), (1401834724,), (1401834725,), (1401834727,), (1401834749,), (1401834750,), (1401834751,), (1401834753,), (1401834757,), (1401834792,), (1401834798,), (1401834810,), (1401834817,), (1401834820,), (1401834821,), (1401834846,), (1401834848,), (1401834849,), (1401834878,), (1401834879,), (1401834881,), (1401834883,), (1401834887,), (1401834890,), (1401834911,), (1401834913,), (1401834915,), (1401834918,), (1401834923,), (1401834926,), (1401834952,), (1401834962,), (1401834965,), (1401834969,), (1401834992,), (1401834994,), (1401834995,), (1401834998,), (1401835001,), (1401835004,), (1401835025,), (1401835028,), (1401835031,), (1401835034,), (1401835040,), (1401835041,), (1401835044,), (1401835047,), (1401835074,), (1401835076,), (1401835079,), (1401835083,), (1401835088,), (1401835139,), (1401835119,), (1401835126,), (1401835128,), (1401835131,), (1401835136,), (1401835156,), (1401835157,), (1401835159,), (1401835161,), (1401835190,), (1401835227,), (1401835229,), (1401835231,), (1401835234,), (1401835262,), (1401835265,), (1401835266,), (1401835267,), (1401835270,), (1401835271,), (1401835290,), (1401835291,), (1401835294,), (1401835297,), (1401835301,), (1401835321,), (1401835323,), (1401835325,), (1401835350,), (1401835353,), (1401835356,), (1401835360,), (1401835363,), (1401835366,), (1401835382,), (1401835401,), (1401835403,), (1401835406,), (1401835408,), (1401835411,), (1401835432,), (1401835433,), (1401835434,), (1401835437,), (1401835442,), (1401835468,), (1401835476,), (1401835479,), (1401835507,), (1401835510,), (1401835512,), (1401835514,), (1401835518,), (1401835521,), (1401835555,), (1401835556,), (1401835557,), (1401835559,), (1401835562,), (1401835592,), (1401835595,), (1401835597,), (1401835601,), (1401835607,), (1401835609,), (1401835615,), (1401835618,), (1401835640,), (1401835642,), (1401835644,), (1401835646,), (1401835650,), (1401835653,), (1401835688,), (1401835681,), (1401835685,), (1401835687,), (1401835719,), (1401835723,), (1401835726,), (1401835730,), (1401835755,), (1401835757,), (1401835759,), (1401835762,), (1401835765,), (1401835768,), (1401835786,), (1401835794,), (1401835796,), (1401835803,), (1401835805,), (1401835807,), (1401835811,), (1401835842,), (1401835845,), (1401835847,), (1401835885,), (1401835892,), (1401835894,), (1401835897,), (1401835901,), (1401835921,), (1401835922,), (1401835924,), (1401835953,), (1401835956,), (1401835969,), (1401835980,), (1401835988,), (1401835991,), (1401836016,), (1401836017,), (1401836018,), (1401836021,), (1401836024,), (1401836029,), (1401836042,), (1401836044,), (1401836046,), (1401836052,), (1401836058,), (1401836060,), (1401836066,), (1401836069,), (1401836098,), (1401836099,), (1401836100,), (1401836102,), (1401836105,), (1401836108,), (1401836137,), (1401836140,), (1401836144,), (1401836147,), (1401836172,), (1401836173,), (1401836174,), (1401836175,), (1401836177,), (1401836180,), (1401836208,), (1401836218,), (1401836219,), (1401836221,), (1401836233,), (1401836247,), (1401836279,), (1401836282,), (1401836286,), (1401836289,), (1401836325,), (1401836314,), (1401836316,), (1401836318,), (1401836320,), (1401836323,), (1401836347,), (1401836349,), (1401836352,), (1401836357,), (1401836361,), (1401836391,), (1401836395,), (1401836400,), (1401836405,), (1401836410,), (1401836429,), (1401836431,), (1401836433,), (1401836436,), (1401836439,), (1401836441,), (1401836455,), (1401836458,), (1401836463,), (1401836465,), (1401836466,), (1401836468,), (1401836471,), (1401836474,), (1401836506,), (1401836509,), (1401836512,), (1401836517,), (1401836542,), (1401836552,), (1401836560,), (1401836563,), (1401836566,), (1401836569,), (1401836586,), (1401836589,), (1401836594,), (1401836599,), (1401836604,), (1401836609,), (1401836629,), (1401836633,), (1401836646,), (1401836655,), (1401836657,), (1401836660,), (1401836663,), (1401836690,), (1401836693,), (1401836696,), (1401836698,), (1401836702,), (1401836704,), (1401836733,), (1401836740,), (1401836744,), (1401836749,), (1401836774,), (1401836776,), (1401836781,), (1401836785,), (1401836789,), (1401836792,), (1401836810,), (1401836812,), (1401836814,), (1401836817,), (1401836848,), (1401836853,), (1401836859,), (1401836864,), (1401836868,), (1401836872,), (1401836880,), (1401836885,), (1401836917,), (1401836904,), (1401836908,), (1401836912,), (1401837148,), (1401837184,), (1401837217,), (1401837254,), (1401837292,), (1401837326,), (1401837694,), (1401837699,), (1401837701,), (1401837749,), (1401837851,), (1401837949,), (1401838223,), (1401838224,), (1401838251,), (1401838298,), (1401838576,), (1401838583,), (1401838586,), (1401838607,), (1401838646,), (1401838683,), (1401838987,), (1401839022,), (1401839053,), (1401839091,), (1401839126,), (1401839159,), (1401839434,), (1401839442,), (1401839446,), (1401839635,), (1401839669,), (1401839700,), (1401839728,), (1401839734,), (1401839842,), (1401839844,), (1401839845,), (1401839847,), (1401839852,), (1401839856,), (1401839944,), (1401839947,), (1401839951,), (1401839954,), (1401840006,), (1401840014,), (1401840017,), (1401840019,), (1401840023,), (1401840025,), (1401840045,), (1401840047,), (1401840049,), (1401840051,), (1401840055,), (1401840057,), (1401840079,), (1401840092,), (1401840095,), (1401840238,), (1401840240,), (1401840242,), (1401840245,), (1401840247,), (1401840252,), (1401840368,), (1401840401,), (1401840403,), (1401840405,), (1401840407,), (1401840411,), (1401840414,), (1401840447,), (1401840477,), (1401840481,), (1401840509,), (1401840545,), (1401840581,), (1401840575,), (1401840577,), (1401840579,), (1401840620,), (1401840621,), (1401840623,), (1401840627,), (1401840632,), (1401840749,), (1401840778,), (1401840796,), (1401840799,), (1401841003,), (1401841034,), (1401841070,), (1401841104,), (1401841141,), (1401841175,), (1401841351,), (1401841378,), (1401841383,), (1401841413,), (1401841421,), (1401841445,), (1401841448,), (1401841530,), (1401841562,), (1401841583,), (1401841595,), (1401841739,), (1401841751,), (1401841754,), (1401841756,), (1401841759,), (1401841761,), (1401841809,), (1401841810,), (1401841812,), (1401841815,), (1401841840,), (1401841870,), (1401841954,), (1401841983,), (1401842012,), (1401842045,), (1401842055,), (1401842058,), (1401842062,), (1401842066,), (1401842082,), (1401842085,), (1401842088,), (1401842091,), (1401842095,), (1401842100,), (1401842122,), (1401842125,), (1401842127,), (1401842130,), (1401842134,), (1401842149,), (1401842151,), (1401842153,), (1401842157,), (1401842289,), (1401842311,), (1401842319,), (1401842328,), (1401842337,), (1401842341,), (1401842363,), (1401842365,), (1401842367,), (1401842370,), (1401842373,), (1401842377,), (1401842396,), (1401842418,), (1401842445,), (1401842461,), (1401842477,), (1401842533,), (1401842548,), (1401842553,), (1401842556,), (1401842704,), (1401842685,), (1401842687,), (1401842690,), (1401842695,), (1401842700,), (1401842726,), (1401842729,), (1401842731,), (1401842735,), (1401842875,), (1401842884,), (1401842889,), (1401842901,), (1401842914,), (1401842924,), (1401842957,), (1401842960,), (1401842967,), (1401842971,), (1401842977,), (1401842978,), (1401842981,), (1401842984,), (1401842988,), (1401843009,), (1401843011,), (1401843013,), (1401843017,), (1401843021,), (1401843169,), (1401843179,), (1401843193,), (1401843200,), (1401843209,), (1401843213,), (1401843230,), (1401843233,), (1401843235,), (1401843239,), (1401843252,), (1401843265,), (1401843320,), (1401843323,), (1401843324,), (1401843325,), (1401843376,), (1401843381,), (1401843399,), (1401843407,), (1401843424,), (1401843433,), (1401843452,), (1401843476,), (1401843482,), (1401843483,), (1401843520,), (1401843560,), (1401843598,), (1401843636,), (1401843646,), (1401843697,), (1401843700,), (1401843702,), (1401843752,), (1401843754,), (1401843756,), (1401843779,), (1401843782,), (1401843792,), (1401843804,), (1401843808,), (1401843811,), (1401843826,), (1401843827,), (1401843829,), (1401843961,), (1401843957,), (1401843988,), (1401843990,), (1401844112,), (1401844114,), (1401844122,), (1401844127,), (1401844170,), (1401844173,), (1401844175,), (1401844179,), (1401844449,), (1401844610,), (1401844644,), (1401844760,), (1401844764,), (1401845324,), (1401845417,), (1401845419,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'31122025': {'nb_upload': 19, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29844841]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1401845419, 1401845417, 1401845324] map_info['map_portfolio_photo'] : {29844841: [1401845419, 1401845417, 1401845324, 1401844764, 1401844760, 1401844644, 1401844610, 1401844449, 1401844179, 1401844175, 1401844173, 1401844170, 1401844127, 1401844122, 1401844114, 1401844112, 1401843990, 1401843988, 1401843957]} final : True mtd_id 4302 list_pids : [1401845419, 1401845417, 1401845324] Looping around the photos to save general results len do output : 1 /29844841Didn'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, '4293991') ('4302', '29844841', '1401845419', None, None, None, None, None, '4293991') ('4302', None, None, None, None, None, None, None, '4293991') ('4302', '29844841', '1401845417', None, None, None, None, None, '4293991') ('4302', None, None, None, None, None, None, None, '4293991') ('4302', '29844841', '1401845324', None, None, None, None, None, '4293991') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 4 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, '29844841', 'None', None, None, None, None, '4293991'), ('4302', '29844841', '1401845419', None, None, None, None, None, '4293991'), ('4302', '29844841', '1401845417', None, None, None, None, None, '4293991'), ('4302', '29844841', '1401845324', None, None, None, None, None, '4293991')] time used for this insertion : 0.01705336570739746 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.498667001724243 time spend to save output : 0.017201662063598633 total time spend for step 5 : 2.515868663787842 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 (4293991) 2.06user 2.26system 0:08.36elapsed 51%CPU (0avgtext+0avgdata 163076maxresident)k 18464inputs+4024outputs (94major+66908minor)pagefaults 0swaps