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 : 3055451 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 (4065400) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (4065400) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28651808 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['4065400'] with mtr_portfolio_ids : ['28651808'] and first list_photo_ids : [] new path : /proc/3055451/ Name: python3 Umask: 0002 State: R (running) Tgid: 3055451 Ngid: 0 Pid: 3055451 PPid: 3055450 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 3055451 NSpid: 3055451 NSpgid: 3054196 NSsid: 3054196 VmPeak: 1106908 kB VmSize: 1106884 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98996 kB VmRSS: 98996 kB RssAnon: 59900 kB RssFile: 39096 kB RssShmem: 0 kB VmData: 865636 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 604 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: 46 nonvoluntary_ctxt_switches: 110 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '3055451', 'Ngid': '0', 'Pid': '3055451', 'PPid': '3055450', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '3055451', 'NSpid': '3055451', 'NSpgid': '3054196', 'NSsid': '3054196', 'VmPeak': '1106908 kB', 'VmSize': '1106884 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98996 kB', 'VmRSS': '98996 kB', 'RssAnon': '59900 kB', 'RssFile': '39096 kB', 'RssShmem': '0 kB', 'VmData': '865636 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '604 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': '46', 'nonvoluntary_ctxt_switches': '110'} ('datou_batch_current', '3055451', '1106908', '0', '1106884', '865636', '98996', b'', 'marlene', '4065400') 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 (28651808) 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 (4065400 ) ) 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 (28651808) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1395023586, 'portfolio_id': 28651808}, {'photo_id': 1395023585, 'portfolio_id': 28651808}, {'photo_id': 1395023570, 'portfolio_id': 28651808}, {'photo_id': 1395023498, 'portfolio_id': 28651808}, {'photo_id': 1395023495, 'portfolio_id': 28651808}, {'photo_id': 1395023493, 'portfolio_id': 28651808}, {'photo_id': 1395023443, 'portfolio_id': 28651808}, {'photo_id': 1395023440, 'portfolio_id': 28651808}, {'photo_id': 1395023436, 'portfolio_id': 28651808}, {'photo_id': 1395023424, 'portfolio_id': 28651808}, {'photo_id': 1395023421, 'portfolio_id': 28651808}, {'photo_id': 1395023418, 'portfolio_id': 28651808}, {'photo_id': 1395023415, 'portfolio_id': 28651808}, {'photo_id': 1395023413, 'portfolio_id': 28651808}, {'photo_id': 1395023412, 'portfolio_id': 28651808}, {'photo_id': 1395023394, 'portfolio_id': 28651808}, {'photo_id': 1395023392, 'portfolio_id': 28651808}, {'photo_id': 1395023390, 'portfolio_id': 28651808}, {'photo_id': 1395023389, 'portfolio_id': 28651808}, {'photo_id': 1395023385, 'portfolio_id': 28651808}, {'photo_id': 1395023139, 'portfolio_id': 28651808}, {'photo_id': 1395023137, 'portfolio_id': 28651808}, {'photo_id': 1395023121, 'portfolio_id': 28651808}, {'photo_id': 1395023097, 'portfolio_id': 28651808}, {'photo_id': 1395023077, 'portfolio_id': 28651808}, {'photo_id': 1395022914, 'portfolio_id': 28651808}, {'photo_id': 1395022913, 'portfolio_id': 28651808}, {'photo_id': 1395022912, 'portfolio_id': 28651808}, {'photo_id': 1395022900, 'portfolio_id': 28651808}, {'photo_id': 1395022669, 'portfolio_id': 28651808}, {'photo_id': 1395022667, 'portfolio_id': 28651808}] map_portfolio_id_photo_id: {28651808: [1395023586, 1395023585, 1395023570, 1395023498, 1395023495, 1395023493, 1395023443, 1395023440, 1395023436, 1395023424, 1395023421, 1395023418, 1395023415, 1395023413, 1395023412, 1395023394, 1395023392, 1395023390, 1395023389, 1395023385, 1395023139, 1395023137, 1395023121, 1395023097, 1395023077, 1395022914, 1395022913, 1395022912, 1395022900, 1395022669, 1395022667]} ##### 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.01790618896484375 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Tue Nov 18 10:14: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 (28651808) 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 : 28651808 get user id for portfolio 28651808 get sub ptf for main ptf 28651808, type 3726 and hashtags ['Carton_brun', 'Carton_gris', 'Teint_Dans_La_Masse', 'kraft', 'mal_croppe', 'environnement', 'papier', 'metal', 'plastique', 'flou', 'autre_refus', 'cartonnette'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28651808 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','Carton_gris','Teint_Dans_La_Masse','kraft','mal_croppe','environnement','papier','metal','plastique','flou','autre_refus','cartonnette')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28651808 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','Carton_gris','Teint_Dans_La_Masse','kraft','mal_croppe','environnement','papier','metal','plastique','flou','autre_refus','cartonnette')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_gris': {'main_port_id': 28651808, 'sub_port_id': 28651841, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19429507, 'last_updated_at': datetime.datetime(2025, 11, 18, 10, 12, 59), 'last_updated_at_desc': datetime.datetime(2025, 11, 18, 10, 12, 59), 'last_updated_at_asc': datetime.datetime(2025, 11, 18, 10, 3, 28)}, 'plastique': {'main_port_id': 28651808, 'sub_port_id': 28651842, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19429508, 'last_updated_at': datetime.datetime(2025, 11, 18, 10, 12, 59), 'last_updated_at_desc': datetime.datetime(2025, 11, 18, 10, 12, 59), 'last_updated_at_asc': datetime.datetime(2025, 11, 18, 10, 3, 28)}, 'autre_refus': {'main_port_id': 28651808, 'sub_port_id': 28651843, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19429509, 'last_updated_at': datetime.datetime(2025, 11, 18, 10, 12, 59), 'last_updated_at_desc': datetime.datetime(2025, 11, 18, 10, 12, 59), 'last_updated_at_asc': datetime.datetime(2025, 11, 18, 10, 3, 28)}, 'metal': {'main_port_id': 28651808, 'sub_port_id': 28651844, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19429510, 'last_updated_at': datetime.datetime(2025, 11, 18, 10, 12, 59), 'last_updated_at_desc': datetime.datetime(2025, 11, 18, 10, 12, 59), 'last_updated_at_asc': datetime.datetime(2025, 11, 18, 10, 3, 28)}, 'Carton_brun': {'main_port_id': 28651808, 'sub_port_id': 28651845, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19429511, 'last_updated_at': datetime.datetime(2025, 11, 18, 10, 12, 59), 'last_updated_at_desc': datetime.datetime(2025, 11, 18, 10, 12, 59), 'last_updated_at_asc': datetime.datetime(2025, 11, 18, 10, 3, 28)}, 'mal_croppe': {'main_port_id': 28651808, 'sub_port_id': 28651846, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19429512, 'last_updated_at': datetime.datetime(2025, 11, 18, 10, 12, 59), 'last_updated_at_desc': datetime.datetime(2025, 11, 18, 10, 12, 59), 'last_updated_at_asc': datetime.datetime(2025, 11, 18, 10, 3, 28)}, 'cartonnette': {'main_port_id': 28651808, 'sub_port_id': 28651847, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19429513, 'last_updated_at': datetime.datetime(2025, 11, 18, 10, 12, 59), 'last_updated_at_desc': datetime.datetime(2025, 11, 18, 10, 12, 59), 'last_updated_at_asc': datetime.datetime(2025, 11, 18, 10, 3, 28)}, 'kraft': {'main_port_id': 28651808, 'sub_port_id': 28651848, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19429514, 'last_updated_at': datetime.datetime(2025, 11, 18, 10, 12, 59), 'last_updated_at_desc': datetime.datetime(2025, 11, 18, 10, 12, 59), 'last_updated_at_asc': datetime.datetime(2025, 11, 18, 10, 3, 28)}, 'flou': {'main_port_id': 28651808, 'sub_port_id': 28651849, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19429515, 'last_updated_at': datetime.datetime(2025, 11, 18, 10, 12, 59), 'last_updated_at_desc': datetime.datetime(2025, 11, 18, 10, 12, 59), 'last_updated_at_asc': datetime.datetime(2025, 11, 18, 10, 3, 28)}, 'Teint_Dans_La_Masse': {'main_port_id': 28651808, 'sub_port_id': 28651850, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19429516, 'last_updated_at': datetime.datetime(2025, 11, 18, 10, 12, 59), 'last_updated_at_desc': datetime.datetime(2025, 11, 18, 10, 12, 59), 'last_updated_at_asc': datetime.datetime(2025, 11, 18, 10, 3, 28)}, 'papier': {'main_port_id': 28651808, 'sub_port_id': 28651851, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19429517, 'last_updated_at': datetime.datetime(2025, 11, 18, 10, 12, 59), 'last_updated_at_desc': datetime.datetime(2025, 11, 18, 10, 12, 59), 'last_updated_at_asc': datetime.datetime(2025, 11, 18, 10, 3, 28)}, 'environnement': {'main_port_id': 28651808, 'sub_port_id': 28651852, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19429518, 'last_updated_at': datetime.datetime(2025, 11, 18, 10, 12, 59), 'last_updated_at_desc': datetime.datetime(2025, 11, 18, 10, 12, 59), 'last_updated_at_asc': datetime.datetime(2025, 11, 18, 10, 3, 28)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28651841 , 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=28651808 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 (28651841) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28651808) result : ((1395022667,), (1395022669,), (1395022900,), (1395022912,), (1395022913,), (1395022914,), (1395023077,), (1395023097,), (1395023121,), (1395023137,), (1395023139,), (1395023385,), (1395023389,), (1395023390,), (1395023392,), (1395023394,), (1395023412,), (1395023413,), (1395023415,), (1395023418,), (1395023421,), (1395023424,), (1395023436,), (1395023440,), (1395023443,), (1395023493,), (1395023495,), (1395023498,), (1395023570,), (1395023585,), (1395023586,)) 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 (1395022900) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28651842 , 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=28651808 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 (28651842) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28651808) result : ((1395022667,), (1395022669,), (1395022900,), (1395022912,), (1395022913,), (1395022914,), (1395023077,), (1395023097,), (1395023121,), (1395023137,), (1395023139,), (1395023385,), (1395023389,), (1395023390,), (1395023392,), (1395023394,), (1395023412,), (1395023413,), (1395023415,), (1395023418,), (1395023421,), (1395023424,), (1395023436,), (1395023440,), (1395023443,), (1395023493,), (1395023495,), (1395023498,), (1395023570,), (1395023585,), (1395023586,)) 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 (1395022900) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28651843 , 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=28651808 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 (28651843) result : ((1395023426,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28651808) result : ((1395022667,), (1395022669,), (1395022900,), (1395022912,), (1395022913,), (1395022914,), (1395023077,), (1395023097,), (1395023121,), (1395023137,), (1395023139,), (1395023385,), (1395023389,), (1395023390,), (1395023392,), (1395023394,), (1395023412,), (1395023413,), (1395023415,), (1395023418,), (1395023421,), (1395023424,), (1395023436,), (1395023440,), (1395023443,), (1395023493,), (1395023495,), (1395023498,), (1395023570,), (1395023585,), (1395023586,)) 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 (1395022900) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28651844 , 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=28651808 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 (28651844) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28651808) result : ((1395022667,), (1395022669,), (1395022900,), (1395022912,), (1395022913,), (1395022914,), (1395023077,), (1395023097,), (1395023121,), (1395023137,), (1395023139,), (1395023385,), (1395023389,), (1395023390,), (1395023392,), (1395023394,), (1395023412,), (1395023413,), (1395023415,), (1395023418,), (1395023421,), (1395023424,), (1395023436,), (1395023440,), (1395023443,), (1395023493,), (1395023495,), (1395023498,), (1395023570,), (1395023585,), (1395023586,)) 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 (1395022900) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28651845 , 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=28651808 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 (28651845) result : ((1395023158,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28651808) result : ((1395022667,), (1395022669,), (1395022900,), (1395022912,), (1395022913,), (1395022914,), (1395023077,), (1395023097,), (1395023121,), (1395023137,), (1395023139,), (1395023385,), (1395023389,), (1395023390,), (1395023392,), (1395023394,), (1395023412,), (1395023413,), (1395023415,), (1395023418,), (1395023421,), (1395023424,), (1395023436,), (1395023440,), (1395023443,), (1395023493,), (1395023495,), (1395023498,), (1395023570,), (1395023585,), (1395023586,)) 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 (1395022900) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28651846 , 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=28651808 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 (28651846) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28651808) result : ((1395022667,), (1395022669,), (1395022900,), (1395022912,), (1395022913,), (1395022914,), (1395023077,), (1395023097,), (1395023121,), (1395023137,), (1395023139,), (1395023385,), (1395023389,), (1395023390,), (1395023392,), (1395023394,), (1395023412,), (1395023413,), (1395023415,), (1395023418,), (1395023421,), (1395023424,), (1395023436,), (1395023440,), (1395023443,), (1395023493,), (1395023495,), (1395023498,), (1395023570,), (1395023585,), (1395023586,)) 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 (1395022900) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28651847 , 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=28651808 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 (28651847) result : ((1395023218,), (1395023339,), (1395023427,), (1395023428,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28651808) result : ((1395022667,), (1395022669,), (1395022900,), (1395022912,), (1395022913,), (1395022914,), (1395023077,), (1395023097,), (1395023121,), (1395023137,), (1395023139,), (1395023385,), (1395023389,), (1395023390,), (1395023392,), (1395023394,), (1395023412,), (1395023413,), (1395023415,), (1395023418,), (1395023421,), (1395023424,), (1395023436,), (1395023440,), (1395023443,), (1395023493,), (1395023495,), (1395023498,), (1395023570,), (1395023585,), (1395023586,)) 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 (1395022900) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28651848 , 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=28651808 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 (28651848) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28651808) result : ((1395022667,), (1395022669,), (1395022900,), (1395022912,), (1395022913,), (1395022914,), (1395023077,), (1395023097,), (1395023121,), (1395023137,), (1395023139,), (1395023385,), (1395023389,), (1395023390,), (1395023392,), (1395023394,), (1395023412,), (1395023413,), (1395023415,), (1395023418,), (1395023421,), (1395023424,), (1395023436,), (1395023440,), (1395023443,), (1395023493,), (1395023495,), (1395023498,), (1395023570,), (1395023585,), (1395023586,)) 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 (1395022900) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28651849 , 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=28651808 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 (28651849) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28651808) result : ((1395022667,), (1395022669,), (1395022900,), (1395022912,), (1395022913,), (1395022914,), (1395023077,), (1395023097,), (1395023121,), (1395023137,), (1395023139,), (1395023385,), (1395023389,), (1395023390,), (1395023392,), (1395023394,), (1395023412,), (1395023413,), (1395023415,), (1395023418,), (1395023421,), (1395023424,), (1395023436,), (1395023440,), (1395023443,), (1395023493,), (1395023495,), (1395023498,), (1395023570,), (1395023585,), (1395023586,)) 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 (1395022900) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28651850 , 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=28651808 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 (28651850) result : ((1395023153,), (1395023154,), (1395023155,), (1395023216,), (1395023425,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28651808) result : ((1395022667,), (1395022669,), (1395022900,), (1395022912,), (1395022913,), (1395022914,), (1395023077,), (1395023097,), (1395023121,), (1395023137,), (1395023139,), (1395023385,), (1395023389,), (1395023390,), (1395023392,), (1395023394,), (1395023412,), (1395023413,), (1395023415,), (1395023418,), (1395023421,), (1395023424,), (1395023436,), (1395023440,), (1395023443,), (1395023493,), (1395023495,), (1395023498,), (1395023570,), (1395023585,), (1395023586,)) 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 (1395022900) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28651851 , 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=28651808 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 (28651851) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28651808) result : ((1395022667,), (1395022669,), (1395022900,), (1395022912,), (1395022913,), (1395022914,), (1395023077,), (1395023097,), (1395023121,), (1395023137,), (1395023139,), (1395023385,), (1395023389,), (1395023390,), (1395023392,), (1395023394,), (1395023412,), (1395023413,), (1395023415,), (1395023418,), (1395023421,), (1395023424,), (1395023436,), (1395023440,), (1395023443,), (1395023493,), (1395023495,), (1395023498,), (1395023570,), (1395023585,), (1395023586,)) 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 (1395022900) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28651852 , 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=28651808 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 (28651852) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28651808) result : ((1395022667,), (1395022669,), (1395022900,), (1395022912,), (1395022913,), (1395022914,), (1395023077,), (1395023097,), (1395023121,), (1395023137,), (1395023139,), (1395023385,), (1395023389,), (1395023390,), (1395023392,), (1395023394,), (1395023412,), (1395023413,), (1395023415,), (1395023418,), (1395023421,), (1395023424,), (1395023436,), (1395023440,), (1395023443,), (1395023493,), (1395023495,), (1395023498,), (1395023570,), (1395023585,), (1395023586,)) 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 (1395022900) and cspi.crop_hashtag_id = chi.id; To do ! Use context local managing function ! SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28651808 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','Carton_gris','Teint_Dans_La_Masse','kraft','mal_croppe','environnement','papier','metal','plastique','flou','autre_refus','cartonnette')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28651808 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','Carton_gris','Teint_Dans_La_Masse','kraft','mal_croppe','environnement','papier','metal','plastique','flou','autre_refus','cartonnette')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_gris': {'main_port_id': 28651808, 'sub_port_id': 28651853, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19429519, 'last_updated_at': datetime.datetime(2025, 11, 18, 10, 3, 31), 'last_updated_at_desc': datetime.datetime(2025, 11, 18, 10, 3, 31), 'last_updated_at_asc': datetime.datetime(2025, 11, 18, 10, 3, 31)}, 'plastique': {'main_port_id': 28651808, 'sub_port_id': 28651854, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19429520, 'last_updated_at': datetime.datetime(2025, 11, 18, 10, 3, 31), 'last_updated_at_desc': datetime.datetime(2025, 11, 18, 10, 3, 31), 'last_updated_at_asc': datetime.datetime(2025, 11, 18, 10, 3, 31)}, 'autre_refus': {'main_port_id': 28651808, 'sub_port_id': 28651855, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19429521, 'last_updated_at': datetime.datetime(2025, 11, 18, 10, 3, 31), 'last_updated_at_desc': datetime.datetime(2025, 11, 18, 10, 3, 31), 'last_updated_at_asc': datetime.datetime(2025, 11, 18, 10, 3, 31)}, 'metal': {'main_port_id': 28651808, 'sub_port_id': 28651856, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19429522, 'last_updated_at': datetime.datetime(2025, 11, 18, 10, 3, 31), 'last_updated_at_desc': datetime.datetime(2025, 11, 18, 10, 3, 31), 'last_updated_at_asc': datetime.datetime(2025, 11, 18, 10, 3, 31)}, 'Carton_brun': {'main_port_id': 28651808, 'sub_port_id': 28651857, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19429523, 'last_updated_at': datetime.datetime(2025, 11, 18, 10, 3, 31), 'last_updated_at_desc': datetime.datetime(2025, 11, 18, 10, 3, 31), 'last_updated_at_asc': datetime.datetime(2025, 11, 18, 10, 3, 31)}, 'mal_croppe': {'main_port_id': 28651808, 'sub_port_id': 28651858, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19429524, 'last_updated_at': datetime.datetime(2025, 11, 18, 10, 3, 31), 'last_updated_at_desc': datetime.datetime(2025, 11, 18, 10, 3, 31), 'last_updated_at_asc': datetime.datetime(2025, 11, 18, 10, 3, 31)}, 'cartonnette': {'main_port_id': 28651808, 'sub_port_id': 28651859, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19429525, 'last_updated_at': datetime.datetime(2025, 11, 18, 10, 3, 31), 'last_updated_at_desc': datetime.datetime(2025, 11, 18, 10, 3, 31), 'last_updated_at_asc': datetime.datetime(2025, 11, 18, 10, 3, 31)}, 'kraft': {'main_port_id': 28651808, 'sub_port_id': 28651860, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19429526, 'last_updated_at': datetime.datetime(2025, 11, 18, 10, 3, 31), 'last_updated_at_desc': datetime.datetime(2025, 11, 18, 10, 3, 31), 'last_updated_at_asc': datetime.datetime(2025, 11, 18, 10, 3, 31)}, 'flou': {'main_port_id': 28651808, 'sub_port_id': 28651861, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19429527, 'last_updated_at': datetime.datetime(2025, 11, 18, 10, 3, 31), 'last_updated_at_desc': datetime.datetime(2025, 11, 18, 10, 3, 31), 'last_updated_at_asc': datetime.datetime(2025, 11, 18, 10, 3, 31)}, 'Teint_Dans_La_Masse': {'main_port_id': 28651808, 'sub_port_id': 28651862, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19429528, 'last_updated_at': datetime.datetime(2025, 11, 18, 10, 3, 31), 'last_updated_at_desc': datetime.datetime(2025, 11, 18, 10, 3, 31), 'last_updated_at_asc': datetime.datetime(2025, 11, 18, 10, 3, 31)}, 'papier': {'main_port_id': 28651808, 'sub_port_id': 28651863, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19429529, 'last_updated_at': datetime.datetime(2025, 11, 18, 10, 3, 31), 'last_updated_at_desc': datetime.datetime(2025, 11, 18, 10, 3, 31), 'last_updated_at_asc': datetime.datetime(2025, 11, 18, 10, 3, 31)}, 'environnement': {'main_port_id': 28651808, 'sub_port_id': 28651864, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19429530, 'last_updated_at': datetime.datetime(2025, 11, 18, 10, 12, 59), 'last_updated_at_desc': datetime.datetime(2025, 11, 18, 10, 12, 59), 'last_updated_at_asc': datetime.datetime(2025, 11, 18, 10, 3, 31)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28651853,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28651841 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28651854,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28651842 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28651855,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28651843 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28651856,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28651844 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28651857,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28651845 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28651858,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28651846 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28651859,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28651847 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28651860,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28651848 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28651861,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28651849 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28651862,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28651850 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28651863,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28651851 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28651864,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28651852 lien utilise dans velours : https://marlene.fotonower.com/velours/28651853,28651854,28651855,28651856,28651857,28651858,28651859,28651860,28651861,28651862,28651863,28651864?tags=Carton_gris,plastique,autre_refus,metal,Carton_brun,mal_croppe,cartonnette,kraft,flou,Teint_Dans_La_Masse,papier,environnement After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([28651808]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1395023586, 1395023585, 1395023570] map_info['map_portfolio_photo'] : {28651808: [1395023586, 1395023585, 1395023570, 1395023498, 1395023495, 1395023493, 1395023443, 1395023440, 1395023436, 1395023424, 1395023421, 1395023418, 1395023415, 1395023413, 1395023412, 1395023394, 1395023392, 1395023390, 1395023389, 1395023385, 1395023139, 1395023137, 1395023121, 1395023097, 1395023077, 1395022914, 1395022913, 1395022912, 1395022900, 1395022669, 1395022667]} final : False mtd_id 4302 list_pids : [1395023586, 1395023585, 1395023570] Looping around the photos to save general results len do output : 1 /28651808. 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, '4065400') ('4302', '28651808', '1395023586', None, None, None, None, None, '4065400') ('4302', None, None, None, None, None, None, None, '4065400') ('4302', '28651808', '1395023585', None, None, None, None, None, '4065400') ('4302', None, None, None, None, None, None, None, '4065400') ('4302', '28651808', '1395023570', None, None, None, None, None, '4065400') 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, '28651808', "{'Carton_gris': 28651841, 'plastique': 28651842, 'autre_refus': 28651843, 'metal': 28651844, 'Carton_brun': 28651845, 'mal_croppe': 28651846, 'cartonnette': 28651847, 'kraft': 28651848, 'flou': 28651849, 'Teint_Dans_La_Masse': 28651850, 'papier': 28651851, 'environnement': 28651852}", None, None, None, None, '4065400'), ('4302', '28651808', '1395023586', None, None, None, None, None, '4065400'), ('4302', '28651808', '1395023585', None, None, None, None, None, '4065400'), ('4302', '28651808', '1395023570', None, None, None, None, None, '4065400')] time used for this insertion : 0.012748956680297852 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.42560839653015137 time spend to save output : 0.012990474700927734 total time spend for step 1 : 0.4385988712310791 step2:final Tue Nov 18 10:14: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 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 (28651808) 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 28651808 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1395022669,1395022667,1395022914,1395022913,1395022912,1395022900,1395023097,1395023077,1395023121,1395023139,1395023137,1395023394,1395023443,1395023392,1395023440,1395023436,1395023390,1395023424,1395023389,1395023421,1395023385,1395023418,1395023415,1395023413,1395023412,1395023498,1395023495,1395023493,1395023586,1395023585,1395023570); 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([28651808]) Inside saveOutput : final : False verbose : True original output for save of step final : {1395023586: ('0.028722089183335846',), 1395023585: ('0.028722089183335846',), 1395023570: ('0.028722089183335846',)} new output for save of step final : {1395023586: ('0.028722089183335846',), 1395023585: ('0.028722089183335846',), 1395023570: ('0.028722089183335846',)} [1395023586, 1395023585, 1395023570] map_info['map_portfolio_photo'] : {28651808: [1395023586, 1395023585, 1395023570, 1395023498, 1395023495, 1395023493, 1395023443, 1395023440, 1395023436, 1395023424, 1395023421, 1395023418, 1395023415, 1395023413, 1395023412, 1395023394, 1395023392, 1395023390, 1395023389, 1395023385, 1395023139, 1395023137, 1395023121, 1395023097, 1395023077, 1395022914, 1395022913, 1395022912, 1395022900, 1395022669, 1395022667]} final : False mtd_id 4302 list_pids : [1395023586, 1395023585, 1395023570] Looping around the photos to save general results len do output : 3 /1395023586.Didn't retrieve data . /1395023585.Didn't retrieve data . /1395023570.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, '4065400') ('4302', '28651808', '1395023586', None, None, None, None, None, '4065400') ('4302', None, None, None, None, None, None, None, '4065400') ('4302', '28651808', '1395023585', None, None, None, None, None, '4065400') ('4302', None, None, None, None, None, None, None, '4065400') ('4302', '28651808', '1395023570', None, None, None, None, None, '4065400') 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', '28651808', '1395023586', '0.028722089183335846', None, None, None, None, '4065400'), ('4302', '28651808', '1395023585', '0.028722089183335846', None, None, None, None, '4065400'), ('4302', '28651808', '1395023570', '0.028722089183335846', None, None, None, None, '4065400')] time used for this insertion : 0.015457868576049805 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06309819221496582 time spend to save output : 0.015694618225097656 total time spend for step 2 : 0.07879281044006348 step3:velours_tree Tue Nov 18 10:14: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 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 : {28651808: [{'Carton_gris': 28651841, 'plastique': 28651842, 'autre_refus': 28651843, 'metal': 28651844, 'Carton_brun': 28651845, 'mal_croppe': 28651846, 'cartonnette': 28651847, 'kraft': 28651848, 'flou': 28651849, 'Teint_Dans_La_Masse': 28651850, 'papier': 28651851, 'environnement': 28651852}]} input_args_next_step : {28651808: ()} output_args : {28651808: [{'Carton_gris': 28651841, 'plastique': 28651842, 'autre_refus': 28651843, 'metal': 28651844, 'Carton_brun': 28651845, 'mal_croppe': 28651846, 'cartonnette': 28651847, 'kraft': 28651848, 'flou': 28651849, 'Teint_Dans_La_Masse': 28651850, 'papier': 28651851, 'environnement': 28651852}]} args : 28651808 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'Carton_gris': 28651841, 'plastique': 28651842, 'autre_refus': 28651843, 'metal': 28651844, 'Carton_brun': 28651845, 'mal_croppe': 28651846, 'cartonnette': 28651847, 'kraft': 28651848, 'flou': 28651849, 'Teint_Dans_La_Masse': 28651850, 'papier': 28651851, 'environnement': 28651852},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28651808) 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([28651808]) 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.410585880279541 time spend to save output : 7.748603820800781e-05 total time spend for step 3 : 0.410663366317749 step4:send_mail_cod Tue Nov 18 10:14: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 ! complete output_args for input 2 : {1395023586: ('0.028722089183335846',), 1395023585: ('0.028722089183335846',), 1395023570: ('0.028722089183335846',)} input_args_next_step : {1395023586: ()} output_args : {1395023586: ('0.028722089183335846',), 1395023585: ('0.028722089183335846',), 1395023570: ('0.028722089183335846',)} args : 1395023586 depend.output_id : 0 input_args_next_step : {1395023586: ('0.028722089183335846',), 1395023585: ()} output_args : {1395023586: ('0.028722089183335846',), 1395023585: ('0.028722089183335846',), 1395023570: ('0.028722089183335846',)} args : 1395023585 depend.output_id : 0 input_args_next_step : {1395023586: ('0.028722089183335846',), 1395023585: ('0.028722089183335846',), 1395023570: ()} output_args : {1395023586: ('0.028722089183335846',), 1395023585: ('0.028722089183335846',), 1395023570: ('0.028722089183335846',)} args : 1395023570 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 : {28651808: [{'Carton_gris': 28651841, 'plastique': 28651842, 'autre_refus': 28651843, 'metal': 28651844, 'Carton_brun': 28651845, 'mal_croppe': 28651846, 'cartonnette': 28651847, 'kraft': 28651848, 'flou': 28651849, 'Teint_Dans_La_Masse': 28651850, 'papier': 28651851, 'environnement': 28651852}]} input_args_next_step : {1395023586: ('0.028722089183335846',), 1395023585: ('0.028722089183335846',), 1395023570: ('0.028722089183335846',), 28651808: ()} output_args : {28651808: [{'Carton_gris': 28651841, 'plastique': 28651842, 'autre_refus': 28651843, 'metal': 28651844, 'Carton_brun': 28651845, 'mal_croppe': 28651846, 'cartonnette': 28651847, 'kraft': 28651848, 'flou': 28651849, 'Teint_Dans_La_Masse': 28651850, 'papier': 28651851, 'environnement': 28651852}]} args : 28651808 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.028722089183335846',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28651808) 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 (1395023586,1395023585,1395023570) Found this number of photos: 3 ##### Call download_photos : nb_thread : 5 begin to download photo : 1395023570 begin to download photo : 1395023585 begin to download photo : 1395023586 download finish for photo 1395023585 download finish for photo 1395023570 download finish for photo 1395023586 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette286518421763457297/ length of list_filenames : 3 ; length of list_pids : 3 ; length of list_args : 3 results_Auto_P28651808_18-11-2025_10_14_57.pdf 28651842 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=28651842 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette286518421763457297 28651843 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=28651843 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1395023426: '1763457066_672924_1395022667_3cfcb2921886bf827133a04fc01271fa_rle_crop_4037451899_0.png'} change filename to text .imagette286518431763457297/ imagette286518431763457297/1763457066_672924_1395022667_3cfcb2921886bf827133a04fc01271fa_rle_crop_4037451899_0.png.png imagette286518441763457297/ imagette286518461763457297/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/18/02eaa938537c4083dd4c4ce43de7dd66_26514261.png imagette286518431763457297 28651844 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=28651844 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette286518441763457297 28651846 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=28651846 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette286518461763457297 28651847 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=28651847 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1395023218: '1763456826_665133_1395023077_c79fdb46d50ae6965bed4ccf1a5f3e98_rle_crop_4037449140_0.png', 1395023339: '1763456946_669093_1395023097_fd6709eec2f4b9630184d509b031fd23_rle_crop_4037449548_0.png', 1395023427: '1763457066_672924_1395022669_5fb70f31e016b4432fdbb08ee1cd2c25_rle_crop_4037451890_0.png', 1395023428: '1763457066_672924_1395022667_3cfcb2921886bf827133a04fc01271fa_rle_crop_4037451900_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/18/28fe9208dd4553ea4976e589df2db67d_20070380.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/18/670aaed645a0b630e01c8c824375c8f3_12650086.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/18/985cd210c680d3f4b1dc91da38eddff9_17535578.png change filename to text .imagette286518471763457297/ imagette286518471763457297/1763456946_669093_1395023097_fd6709eec2f4b9630184d509b031fd23_rle_crop_4037449548_0.png.png imagette286518471763457297/1763456826_665133_1395023077_c79fdb46d50ae6965bed4ccf1a5f3e98_rle_crop_4037449140_0.png.png imagette286518471763457297/1763457066_672924_1395022667_3cfcb2921886bf827133a04fc01271fa_rle_crop_4037451900_0.png.png imagette286518471763457297/1763457066_672924_1395022669_5fb70f31e016b4432fdbb08ee1cd2c25_rle_crop_4037451890_0.png.png imagette286518481763457297/ imagette286518491763457297/ imagette286518411763457297/ wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/18/e53a0ebf06d57a9d1f55559d1ca01def_36273012.png imagette286518471763457297 28651848 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=28651848 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette286518481763457297 28651849 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=28651849 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette286518491763457297 28651841 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=28651841 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette286518411763457297 28651845 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=28651845 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1395023158: '1763456708_661623_1395022900_6c22b70444c863aed58c9e7f49376804_rle_crop_4037446622_0.png'} change filename to text .imagette286518451763457297/ imagette286518451763457297/1763456708_661623_1395022900_6c22b70444c863aed58c9e7f49376804_rle_crop_4037446622_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/18/16371d7149b87af6d3a09158ae7697d5_30965052.png imagette286518451763457297 28651850 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=28651850 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1395023153: '1763456708_661623_1395022913_0a3f3cdc011c79c98f5d62a0171e07bf_rle_crop_4037446596_0.png', 1395023154: '1763456708_661623_1395022913_0a3f3cdc011c79c98f5d62a0171e07bf_rle_crop_4037446592_0.png', 1395023155: '1763456708_661623_1395022912_5bb43cd3498a0690c6d00625fe6a93d9_rle_crop_4037446607_0.png', 1395023216: '1763456826_665133_1395023077_c79fdb46d50ae6965bed4ccf1a5f3e98_rle_crop_4037449144_0.png', 1395023425: '1763457066_672924_1395022914_4a29f5e53d3dea9f3c352931d5c67e78_rle_crop_4037451879_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/18/e22335e69b6894d93bb25862c0aec266_89551287.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/18/2ded094d13e865fc7c9c57cc19ccf63c_95511688.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/18/98e6852451756163f3a555fddec4a822_28097704.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/18/7f37c6888e2f0d1ac37f9bcc1acf98e4_6067473.png change filename to text .imagette286518501763457298/ imagette286518501763457298/1763456708_661623_1395022913_0a3f3cdc011c79c98f5d62a0171e07bf_rle_crop_4037446592_0.png.png imagette286518501763457298/1763456826_665133_1395023077_c79fdb46d50ae6965bed4ccf1a5f3e98_rle_crop_4037449144_0.png.png imagette286518501763457298/1763456708_661623_1395022912_5bb43cd3498a0690c6d00625fe6a93d9_rle_crop_4037446607_0.png.png imagette286518501763457298/1763457066_672924_1395022914_4a29f5e53d3dea9f3c352931d5c67e78_rle_crop_4037451879_0.png.png imagette286518501763457298/1763456708_661623_1395022913_0a3f3cdc011c79c98f5d62a0171e07bf_rle_crop_4037446596_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/18/fb7bc55abc4148bdb1852e417078d97d_36636529.png imagette286518501763457298 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=28651808 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/28651853,28651854,28651855,28651856,28651857,28651858,28651859,28651860,28651861,28651862,28651863,28651864?tags=Carton_gris,plastique,autre_refus,metal,Carton_brun,mal_croppe,cartonnette,kraft,flou,Teint_Dans_La_Masse,papier,environnement your option no_mail is active, we will not send the real mail to your client args[1395023586] : ('0.028722089183335846',) no score found for photo 1395023586 We are sending mail with results at report@fotonower.com args[1395023585] : ('0.028722089183335846',) no score found for photo 1395023585 We are sending mail with results at report@fotonower.com args[1395023570] : ('0.028722089183335846',) no score found for photo 1395023570 We are sending mail with results at report@fotonower.com refus_total : 0.028722089183335846 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=28651808 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_P28651808_18-11-2025_10_14_57.pdf results_Auto_P28651808_18-11-2025_10_14_57.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28651808_18-11-2025_10_14_57.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','28651808','results_Auto_P28651808_18-11-2025_10_14_57.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28651808_18-11-2025_10_14_57.pdf','pdf','','0.08','0.028722089183335846') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([28651808]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1395023586, 1395023585, 1395023570] map_info['map_portfolio_photo'] : {28651808: [1395023586, 1395023585, 1395023570, 1395023498, 1395023495, 1395023493, 1395023443, 1395023440, 1395023436, 1395023424, 1395023421, 1395023418, 1395023415, 1395023413, 1395023412, 1395023394, 1395023392, 1395023390, 1395023389, 1395023385, 1395023139, 1395023137, 1395023121, 1395023097, 1395023077, 1395022914, 1395022913, 1395022912, 1395022900, 1395022669, 1395022667]} final : False mtd_id 4302 list_pids : [1395023586, 1395023585, 1395023570] 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, '4065400') ('4302', '28651808', '1395023586', None, None, None, None, None, '4065400') ('4302', None, None, None, None, None, None, None, '4065400') ('4302', '28651808', '1395023585', None, None, None, None, None, '4065400') ('4302', None, None, None, None, None, None, None, '4065400') ('4302', '28651808', '1395023570', None, None, None, None, None, '4065400') 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', '28651808', '1395023586', None, None, None, None, None, '4065400'), ('4302', '28651808', '1395023585', None, None, None, None, None, '4065400'), ('4302', '28651808', '1395023570', None, None, None, None, None, '4065400')] time used for this insertion : 0.01177835464477539 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.8712913990020752 time spend to save output : 0.011991739273071289 total time spend for step 4 : 1.8832831382751465 step5:split_time_score Tue Nov 18 10:14:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['28651808'] 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 : [('28651808',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28651808) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1395023585: {'path': 'temp/1763457297_3055451_1395023585_ac96d3051006bc5e53932fd2bddb476e.jpg', 'extension': 'jpg'}, 1395023570: {'path': 'temp/1763457297_3055451_1395023570_2855c4ba11a26830fab8d20fc265a43f.jpg', 'extension': 'jpg'}, 1395023586: {'path': 'temp/1763457297_3055451_1395023586_6c0309da1586bc82aec83c3db66a9019.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 = 28651808; (('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 = 28651808 group by h (('10', 31),) 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=28651808 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 (28651808) 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 (28651808) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 18112025 28651808 Nombre de photos uploadées : 31 / 23040 (0%) 18112025 28651808 Nombre de photos taguées (types de déchets): 0 / 31 (0%) 18112025 28651808 Nombre de photos taguées (volume) : 0 / 31 (0%) [{'photo_id': 1395022669, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/18/5fb70f31e016b4432fdbb08ee1cd2c25.jpg', 'username': None, 'uploaded_at': 1763456468, 'text': 'image_18112025_10_00_13_10141.jpg'}, {'photo_id': 1395022667, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/18/3cfcb2921886bf827133a04fc01271fa.jpg', 'username': None, 'uploaded_at': 1763456468, 'text': 'image_18112025_10_00_24_10137.jpg'}, {'photo_id': 1395022914, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/18/4a29f5e53d3dea9f3c352931d5c67e78.jpg', 'username': None, 'uploaded_at': 1763456527, 'text': 'image_18112025_10_00_44_10141.jpg'}, {'photo_id': 1395022913, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/18/0a3f3cdc011c79c98f5d62a0171e07bf.jpg', 'username': None, 'uploaded_at': 1763456527, 'text': 'image_18112025_10_01_04_10137.jpg'}] 0 [] elapsed_time : load_data_split_time_score 1.9073486328125e-06 elapsed_time : order_list_meta_photo_and_scores 7.3909759521484375e-06 ??????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0015766620635986328 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 28651808, '2025-11-18' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); Catched exception ! Connect or reconnect ! SELECT id FROM MTRPhoto.dashboard_entry_day where dashboard_place_id = 10 and date = '2025-11-18' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2598648,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.21366095542907715 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= 2598648 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2598648, 'dashboard_run_id': 2608789, 'mtr_portfolio_id': 28631138, 'dashboard_result_id': 17407521, '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_P28631138_18-11-2025_06_13_32.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28631146, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28631147, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28631148, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28631149, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28631150, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28631151, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28631152, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28631153, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28631154, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28631155, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28631156, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28631157, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2608789, 'mtr_portfolio_id': 28631823, 'dashboard_result_id': 17407522, '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_P28631823_18-11-2025_06_14_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28631824, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28631825, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28631826, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28631827, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28631828, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28631829, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28631830, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28631831, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28631832, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28631833, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28631834, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28631835, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2608789, 'mtr_portfolio_id': 28632284, 'dashboard_result_id': 17407523, '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_P28632284_18-11-2025_06_14_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28632290, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28632291, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28632292, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28632293, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28632294, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28632295, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28632296, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28632297, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28632298, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28632299, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28632300, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28632301, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2608789, 'mtr_portfolio_id': 28632886, 'dashboard_result_id': 17407524, '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_P28632886_18-11-2025_06_15_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28632895, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28632896, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28632897, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28632898, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28632899, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28632900, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28632901, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28632902, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28632903, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28632904, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28632905, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28632906, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2608789, 'mtr_portfolio_id': 28634373, 'dashboard_result_id': 17407525, '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_P28634373_18-11-2025_06_16_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28634378, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28634379, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28634380, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28634381, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28634382, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28634383, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28634384, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28634385, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28634386, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28634387, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28634388, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28634389, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2608789, 'mtr_portfolio_id': 28635010, 'dashboard_result_id': 17407526, '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_P28635010_18-11-2025_06_16_12.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28635011, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28635012, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28635013, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28635014, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28635015, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28635016, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28635017, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28635018, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28635019, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28635020, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28635021, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28635022, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2608789, 'mtr_portfolio_id': 28635491, 'dashboard_result_id': 17407527, '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_P28635491_18-11-2025_06_16_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28635513, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28635514, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28635515, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28635516, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28635517, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28635518, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28635519, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28635520, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28635521, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28635522, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28635523, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28635524, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2608789, 'mtr_portfolio_id': 28636035, 'dashboard_result_id': 17407528, '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_P28636035_18-11-2025_06_17_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28636061, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28636062, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28636063, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28636064, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28636065, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28636066, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28636067, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28636068, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28636069, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28636070, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28636071, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28636072, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2608789, 'mtr_portfolio_id': 28636740, 'dashboard_result_id': 17407529, '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_P28636740_18-11-2025_06_18_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28636745, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28636746, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28636747, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28636748, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28636749, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28636750, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28636751, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28636752, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28636753, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28636754, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28636755, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28636756, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2608789, 'mtr_portfolio_id': 28637017, 'dashboard_result_id': 17407530, '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_P28637017_18-11-2025_06_18_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28637026, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28637027, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28637028, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28637029, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28637030, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28637031, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28637032, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28637033, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28637034, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28637035, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28637036, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28637037, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2608789, 'mtr_portfolio_id': 28637392, 'dashboard_result_id': 17407531, '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_P28637392_18-11-2025_06_20_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28637400, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28637401, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28637402, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28637403, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28637404, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28637405, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28637406, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28637407, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28637408, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28637409, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28637410, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28637411, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2608789, 'mtr_portfolio_id': 28638080, 'dashboard_result_id': 17407532, '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_P28638080_18-11-2025_06_20_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28638081, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28638082, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28638083, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28638084, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28638085, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28638086, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28638087, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28638088, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28638089, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28638090, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28638091, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28638092, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2608789, 'mtr_portfolio_id': 28638689, 'dashboard_result_id': 17407533, '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_P28638689_18-11-2025_06_21_10.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28638715, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28638716, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28638717, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28638718, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28638719, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28638720, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28638721, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28638722, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28638723, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28638724, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28638725, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28638726, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2608789, 'mtr_portfolio_id': 28639147, 'dashboard_result_id': 17407534, '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_P28639147_18-11-2025_06_21_29.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28639196, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28639197, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28639198, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28639199, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28639200, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28639201, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28639202, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28639203, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28639204, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28639205, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28639206, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28639207, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2608789, 'mtr_portfolio_id': 28639591, 'dashboard_result_id': 17407535, '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_P28639591_18-11-2025_06_21_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28639629, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28639630, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28639631, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28639632, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28639633, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28639634, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28639635, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28639636, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28639637, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28639638, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28639639, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28639640, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2608789, 'mtr_portfolio_id': 28641020, 'dashboard_result_id': 17407536, '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_P28641020_18-11-2025_06_22_31.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28641024, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28641025, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28641026, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28641027, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28641028, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28641029, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28641030, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28641031, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28641032, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28641033, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28641034, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28641035, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2608789, 'mtr_portfolio_id': 28641206, 'dashboard_result_id': 17407537, '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_P28641206_18-11-2025_06_23_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28641212, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28641213, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28641214, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28641215, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28641216, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28641217, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28641218, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28641219, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28641220, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28641221, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28641222, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28641223, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2608789, 'mtr_portfolio_id': 28641579, 'dashboard_result_id': 17407538, '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_P28641579_18-11-2025_05_47_28.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28641586, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28641587, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28641588, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28641589, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28641590, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28641591, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28641592, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28641593, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28641594, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28641595, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28641596, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28641597, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2608789, 'mtr_portfolio_id': 28641934, 'dashboard_result_id': 17407539, '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_P28641934_18-11-2025_06_03_27.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28641939, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28641940, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28641941, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28641942, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28641943, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28641944, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28641945, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28641946, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28641947, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28641948, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28641949, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28641950, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2608789, 'mtr_portfolio_id': 28642364, 'dashboard_result_id': 17407540, '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_P28642364_18-11-2025_06_19_28.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28642374, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28642375, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28642376, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28642377, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28642378, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28642379, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28642380, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28642381, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28642382, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28642383, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28642384, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28642385, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2608789, 'mtr_portfolio_id': 28642968, 'dashboard_result_id': 17407541, '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_P28642968_18-11-2025_06_33_28.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28642972, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28642973, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28642974, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28642975, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28642976, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28642977, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28642978, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28642979, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28642980, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28642981, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28642982, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28642983, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2608789, 'mtr_portfolio_id': 28643374, 'dashboard_result_id': 17407542, '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_P28643374_18-11-2025_06_47_30.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28643375, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28643376, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28643377, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28643378, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28643379, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28643380, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28643381, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28643382, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28643383, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28643384, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28643385, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28643386, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2608789, 'mtr_portfolio_id': 28643779, 'dashboard_result_id': 17407543, '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_P28643779_18-11-2025_07_02_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28643784, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28643785, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28643786, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28643787, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28643788, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28643789, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28643790, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28643791, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28643792, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28643793, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28643794, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28643795, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2608789, 'mtr_portfolio_id': 28644283, 'dashboard_result_id': 17407544, '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_P28644283_18-11-2025_07_18_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28644316, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28644317, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28644318, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28644319, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28644320, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28644321, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28644322, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28644323, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28644324, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28644325, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28644326, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28644327, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2608789, 'mtr_portfolio_id': 28645127, 'dashboard_result_id': 17407545, '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_P28645127_18-11-2025_07_35_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28645183, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28645184, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28645185, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28645186, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28645187, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28645188, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28645189, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28645190, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28645191, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28645192, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28645193, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28645194, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2608789, 'mtr_portfolio_id': 28645778, 'dashboard_result_id': 17407546, '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_P28645778_18-11-2025_07_49_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28645792, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28645793, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28645794, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28645795, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28645796, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28645797, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28645798, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28645799, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28645800, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28645801, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28645802, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28645803, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2608789, 'mtr_portfolio_id': 28646472, 'dashboard_result_id': 17407547, '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_P28646472_18-11-2025_08_03_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28646497, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28646498, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28646499, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28646500, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28646501, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28646502, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28646503, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28646504, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28646505, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28646506, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28646507, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28646508, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2608789, 'mtr_portfolio_id': 28647027, 'dashboard_result_id': 17407548, '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_P28647027_18-11-2025_08_17_28.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28647068, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28647069, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28647070, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28647071, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28647072, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28647073, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28647074, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28647075, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28647076, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28647077, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28647078, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28647079, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2608789, 'mtr_portfolio_id': 28647656, 'dashboard_result_id': 17407549, '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_P28647656_18-11-2025_08_33_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28647663, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28647664, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28647665, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28647666, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28647667, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28647668, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28647669, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28647670, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28647671, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28647672, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28647673, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28647674, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2608789, 'mtr_portfolio_id': 28648493, 'dashboard_result_id': 17407550, '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_P28648493_18-11-2025_08_48_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28648499, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28648500, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28648501, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28648502, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28648503, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28648504, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28648505, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28648506, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28648507, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28648508, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28648509, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28648510, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2608789, 'mtr_portfolio_id': 28649305, 'dashboard_result_id': 17407551, '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_P28649305_18-11-2025_09_34_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28649346, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28649347, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28649348, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28649349, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28649350, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28649351, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28649352, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28649353, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28649354, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28649355, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28649356, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28649357, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2608789, 'mtr_portfolio_id': 28650959, 'dashboard_result_id': 17407552, '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_P28650959_18-11-2025_09_48_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28650974, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28650975, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28650976, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28650977, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28650978, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28650979, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28650980, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28650981, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28650982, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28650983, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28650984, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28650985, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2608789, 'mtr_portfolio_id': 28651460, 'dashboard_result_id': 17407553, '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_P28651460_18-11-2025_10_02_57.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28651477, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28651478, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28651479, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28651480, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28651481, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28651482, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28651483, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28651484, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28651485, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28651486, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28651487, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28651488, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2608789, 'mtr_portfolio_id': 28651808, 'dashboard_result_id': 17407554, '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_P28651808_18-11-2025_10_13_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28651841, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28651842, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28651843, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28651844, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28651845, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28651846, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28651847, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28651848, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28651849, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28651850, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28651851, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28651852, '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 = 28631138 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': 4063453, 'mtr_portfolio_id': 28631138, 'created_at': datetime.datetime(2025, 11, 18, 6, 13, 30), 'result': '0.027044003199104157', 'result_long': None, 'result_double': None}] Qualite : 0.027044003199104157 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28631138 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28631138_18-11-2025_06_13_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28631138 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_P28631138_18-11-2025_06_13_32.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28631146, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28631147, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28631148, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28631149, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28631150, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28631151, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28631152, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28631153, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28631154, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28631155, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28631156, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28631157, 'pht': 3726}}" where mtr_portfolio_id = 28631138 and dashboard_run_id = 2608789 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`=28631138 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17407521, 0.027044003199104157, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28631138_18-11-2025_06_13_32.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28631146, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28631147, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28631148, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28631149, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28631150, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28631151, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28631152, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28631153, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28631154, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28631155, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28631156, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28631157, '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 = 28631823 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': 4063454, 'mtr_portfolio_id': 28631823, 'created_at': datetime.datetime(2025, 11, 18, 6, 13, 58), 'result': '0.05851027303634385', 'result_long': None, 'result_double': None}] Qualite : 0.05851027303634385 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28631823 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28631823_18-11-2025_06_14_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28631823 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_P28631823_18-11-2025_06_14_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28631824, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28631825, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28631826, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28631827, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28631828, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28631829, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28631830, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28631831, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28631832, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28631833, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28631834, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28631835, 'pht': 3726}}" where mtr_portfolio_id = 28631823 and dashboard_run_id = 2608789 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`=28631823 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17407522, 0.05851027303634385, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28631823_18-11-2025_06_14_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28631824, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28631825, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28631826, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28631827, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28631828, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28631829, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28631830, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28631831, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28631832, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28631833, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28631834, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28631835, '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 = 28632284 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': 4063455, 'mtr_portfolio_id': 28632284, 'created_at': datetime.datetime(2025, 11, 18, 6, 14, 29), 'result': '0.050061643709369275', 'result_long': None, 'result_double': None}] Qualite : 0.050061643709369275 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28632284 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28632284_18-11-2025_06_14_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28632284 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_P28632284_18-11-2025_06_14_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28632290, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28632291, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28632292, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28632293, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28632294, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28632295, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28632296, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28632297, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28632298, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28632299, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28632300, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28632301, 'pht': 3726}}" where mtr_portfolio_id = 28632284 and dashboard_run_id = 2608789 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`=28632284 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17407523, 0.050061643709369275, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28632284_18-11-2025_06_14_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28632290, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28632291, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28632292, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28632293, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28632294, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28632295, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28632296, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28632297, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28632298, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28632299, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28632300, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28632301, '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 = 28632886 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': 4063456, 'mtr_portfolio_id': 28632886, 'created_at': datetime.datetime(2025, 11, 18, 6, 15, 28), 'result': '0.0354841780332806', 'result_long': None, 'result_double': None}] Qualite : 0.0354841780332806 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28632886 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28632886_18-11-2025_06_15_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28632886 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_P28632886_18-11-2025_06_15_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28632895, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28632896, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28632897, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28632898, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28632899, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28632900, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28632901, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28632902, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28632903, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28632904, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28632905, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28632906, 'pht': 3726}}" where mtr_portfolio_id = 28632886 and dashboard_run_id = 2608789 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`=28632886 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17407524, 0.0354841780332806, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28632886_18-11-2025_06_15_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28632895, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28632896, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28632897, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28632898, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28632899, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28632900, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28632901, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28632902, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28632903, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28632904, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28632905, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28632906, '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 = 28634373 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': 4063457, 'mtr_portfolio_id': 28634373, 'created_at': datetime.datetime(2025, 11, 18, 6, 15, 59), 'result': '0.043975554337369126', 'result_long': None, 'result_double': None}] Qualite : 0.043975554337369126 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28634373 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28634373_18-11-2025_06_16_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28634373 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_P28634373_18-11-2025_06_16_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28634378, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28634379, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28634380, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28634381, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28634382, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28634383, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28634384, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28634385, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28634386, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28634387, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28634388, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28634389, 'pht': 3726}}" where mtr_portfolio_id = 28634373 and dashboard_run_id = 2608789 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`=28634373 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17407525, 0.043975554337369126, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28634373_18-11-2025_06_16_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28634378, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28634379, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28634380, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28634381, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28634382, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28634383, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28634384, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28634385, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28634386, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28634387, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28634388, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28634389, '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 = 28635010 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': 4063458, 'mtr_portfolio_id': 28635010, 'created_at': datetime.datetime(2025, 11, 18, 6, 16, 8), 'result': '0.03015534667359816', 'result_long': None, 'result_double': None}] Qualite : 0.03015534667359816 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28635010 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28635010_18-11-2025_06_16_12.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28635010 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_P28635010_18-11-2025_06_16_12.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28635011, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28635012, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28635013, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28635014, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28635015, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28635016, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28635017, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28635018, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28635019, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28635020, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28635021, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28635022, 'pht': 3726}}" where mtr_portfolio_id = 28635010 and dashboard_run_id = 2608789 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`=28635010 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17407526, 0.03015534667359816, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28635010_18-11-2025_06_16_12.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28635011, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28635012, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28635013, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28635014, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28635015, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28635016, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28635017, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28635018, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28635019, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28635020, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28635021, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28635022, '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 = 28635491 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': 4063459, 'mtr_portfolio_id': 28635491, 'created_at': datetime.datetime(2025, 11, 18, 6, 16, 30), 'result': '0.04740794187181342', 'result_long': None, 'result_double': None}] Qualite : 0.04740794187181342 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28635491 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28635491_18-11-2025_06_16_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28635491 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_P28635491_18-11-2025_06_16_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28635513, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28635514, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28635515, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28635516, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28635517, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28635518, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28635519, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28635520, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28635521, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28635522, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28635523, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28635524, 'pht': 3726}}" where mtr_portfolio_id = 28635491 and dashboard_run_id = 2608789 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`=28635491 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17407527, 0.04740794187181342, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28635491_18-11-2025_06_16_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28635513, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28635514, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28635515, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28635516, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28635517, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28635518, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28635519, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28635520, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28635521, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28635522, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28635523, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28635524, '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 = 28636035 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': 4063460, 'mtr_portfolio_id': 28636035, 'created_at': datetime.datetime(2025, 11, 18, 6, 17, 29), 'result': '0.0323353417388423', 'result_long': None, 'result_double': None}] Qualite : 0.0323353417388423 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28636035 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28636035_18-11-2025_06_17_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28636035 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_P28636035_18-11-2025_06_17_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28636061, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28636062, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28636063, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28636064, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28636065, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28636066, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28636067, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28636068, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28636069, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28636070, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28636071, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28636072, 'pht': 3726}}" where mtr_portfolio_id = 28636035 and dashboard_run_id = 2608789 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`=28636035 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17407528, 0.0323353417388423, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28636035_18-11-2025_06_17_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28636061, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28636062, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28636063, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28636064, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28636065, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28636066, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28636067, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28636068, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28636069, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28636070, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28636071, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28636072, '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 = 28636740 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': 4063461, 'mtr_portfolio_id': 28636740, 'created_at': datetime.datetime(2025, 11, 18, 6, 18), 'result': '0.0684027049911958', 'result_long': None, 'result_double': None}] Qualite : 0.0684027049911958 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28636740 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28636740_18-11-2025_06_18_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28636740 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_P28636740_18-11-2025_06_18_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28636745, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28636746, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28636747, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28636748, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28636749, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28636750, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28636751, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28636752, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28636753, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28636754, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28636755, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28636756, 'pht': 3726}}" where mtr_portfolio_id = 28636740 and dashboard_run_id = 2608789 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`=28636740 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17407529, 0.0684027049911958, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28636740_18-11-2025_06_18_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28636745, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28636746, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28636747, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28636748, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28636749, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28636750, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28636751, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28636752, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28636753, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28636754, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28636755, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28636756, '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 = 28637017 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': 4063462, 'mtr_portfolio_id': 28637017, 'created_at': datetime.datetime(2025, 11, 18, 6, 18, 29), 'result': '0.0537666861023958', 'result_long': None, 'result_double': None}] Qualite : 0.0537666861023958 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28637017 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28637017_18-11-2025_06_18_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28637017 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_P28637017_18-11-2025_06_18_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28637026, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28637027, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28637028, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28637029, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28637030, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28637031, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28637032, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28637033, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28637034, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28637035, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28637036, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28637037, 'pht': 3726}}" where mtr_portfolio_id = 28637017 and dashboard_run_id = 2608789 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`=28637017 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17407530, 0.0537666861023958, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28637017_18-11-2025_06_18_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28637026, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28637027, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28637028, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28637029, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28637030, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28637031, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28637032, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28637033, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28637034, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28637035, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28637036, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28637037, '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 = 28637392 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': 4063463, 'mtr_portfolio_id': 28637392, 'created_at': datetime.datetime(2025, 11, 18, 6, 19, 58), 'result': '0.05145964967620445', 'result_long': None, 'result_double': None}] Qualite : 0.05145964967620445 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28637392 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28637392_18-11-2025_06_20_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28637392 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_P28637392_18-11-2025_06_20_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28637400, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28637401, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28637402, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28637403, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28637404, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28637405, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28637406, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28637407, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28637408, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28637409, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28637410, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28637411, 'pht': 3726}}" where mtr_portfolio_id = 28637392 and dashboard_run_id = 2608789 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`=28637392 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17407531, 0.05145964967620445, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28637392_18-11-2025_06_20_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28637400, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28637401, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28637402, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28637403, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28637404, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28637405, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28637406, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28637407, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28637408, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28637409, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28637410, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28637411, '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 = 28638080 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': 4063464, 'mtr_portfolio_id': 28638080, 'created_at': datetime.datetime(2025, 11, 18, 6, 20, 29), 'result': '0.03214392118285005', 'result_long': None, 'result_double': None}] Qualite : 0.03214392118285005 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28638080 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28638080_18-11-2025_06_20_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28638080 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_P28638080_18-11-2025_06_20_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28638081, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28638082, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28638083, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28638084, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28638085, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28638086, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28638087, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28638088, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28638089, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28638090, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28638091, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28638092, 'pht': 3726}}" where mtr_portfolio_id = 28638080 and dashboard_run_id = 2608789 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`=28638080 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17407532, 0.03214392118285005, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28638080_18-11-2025_06_20_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28638081, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28638082, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28638083, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28638084, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28638085, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28638086, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28638087, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28638088, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28638089, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28638090, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28638091, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28638092, '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 = 28638689 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': 4063465, 'mtr_portfolio_id': 28638689, 'created_at': datetime.datetime(2025, 11, 18, 6, 21, 8), 'result': '0.053369357786094584', 'result_long': None, 'result_double': None}] Qualite : 0.053369357786094584 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28638689 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28638689_18-11-2025_06_21_10.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28638689 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_P28638689_18-11-2025_06_21_10.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28638715, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28638716, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28638717, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28638718, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28638719, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28638720, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28638721, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28638722, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28638723, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28638724, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28638725, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28638726, 'pht': 3726}}" where mtr_portfolio_id = 28638689 and dashboard_run_id = 2608789 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`=28638689 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17407533, 0.053369357786094584, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28638689_18-11-2025_06_21_10.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28638715, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28638716, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28638717, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28638718, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28638719, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28638720, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28638721, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28638722, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28638723, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28638724, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28638725, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28638726, '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 = 28639147 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': 4063466, 'mtr_portfolio_id': 28639147, 'created_at': datetime.datetime(2025, 11, 18, 6, 21, 26), 'result': '0.043664073794498326', 'result_long': None, 'result_double': None}] Qualite : 0.043664073794498326 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28639147 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28639147_18-11-2025_06_21_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28639147 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_P28639147_18-11-2025_06_21_29.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28639196, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28639197, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28639198, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28639199, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28639200, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28639201, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28639202, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28639203, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28639204, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28639205, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28639206, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28639207, 'pht': 3726}}" where mtr_portfolio_id = 28639147 and dashboard_run_id = 2608789 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`=28639147 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17407534, 0.043664073794498326, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28639147_18-11-2025_06_21_29.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28639196, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28639197, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28639198, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28639199, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28639200, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28639201, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28639202, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28639203, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28639204, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28639205, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28639206, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28639207, '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 = 28639591 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': 4063467, 'mtr_portfolio_id': 28639591, 'created_at': datetime.datetime(2025, 11, 18, 6, 21, 56), 'result': '0.047182145080419576', 'result_long': None, 'result_double': None}] Qualite : 0.047182145080419576 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28639591 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28639591_18-11-2025_06_21_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28639591 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_P28639591_18-11-2025_06_21_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28639629, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28639630, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28639631, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28639632, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28639633, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28639634, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28639635, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28639636, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28639637, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28639638, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28639639, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28639640, 'pht': 3726}}" where mtr_portfolio_id = 28639591 and dashboard_run_id = 2608789 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`=28639591 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17407535, 0.047182145080419576, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28639591_18-11-2025_06_21_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28639629, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28639630, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28639631, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28639632, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28639633, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28639634, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28639635, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28639636, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28639637, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28639638, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28639639, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28639640, '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 = 28641020 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': 4063468, 'mtr_portfolio_id': 28641020, 'created_at': datetime.datetime(2025, 11, 18, 6, 22, 29), 'result': '0.05131668854412686', 'result_long': None, 'result_double': None}] Qualite : 0.05131668854412686 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28641020 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28641020_18-11-2025_06_22_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28641020 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_P28641020_18-11-2025_06_22_31.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28641024, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28641025, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28641026, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28641027, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28641028, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28641029, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28641030, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28641031, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28641032, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28641033, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28641034, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28641035, 'pht': 3726}}" where mtr_portfolio_id = 28641020 and dashboard_run_id = 2608789 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`=28641020 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17407536, 0.05131668854412686, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28641020_18-11-2025_06_22_31.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28641024, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28641025, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28641026, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28641027, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28641028, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28641029, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28641030, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28641031, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28641032, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28641033, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28641034, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28641035, '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 = 28641206 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': 4063469, 'mtr_portfolio_id': 28641206, 'created_at': datetime.datetime(2025, 11, 18, 6, 23, 28), 'result': '0.042545553451280756', 'result_long': None, 'result_double': None}] Qualite : 0.042545553451280756 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28641206 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28641206_18-11-2025_06_23_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28641206 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_P28641206_18-11-2025_06_23_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28641212, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28641213, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28641214, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28641215, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28641216, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28641217, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28641218, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28641219, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28641220, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28641221, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28641222, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28641223, 'pht': 3726}}" where mtr_portfolio_id = 28641206 and dashboard_run_id = 2608789 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`=28641206 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17407537, 0.042545553451280756, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28641206_18-11-2025_06_23_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28641212, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28641213, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28641214, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28641215, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28641216, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28641217, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28641218, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28641219, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28641220, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28641221, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28641222, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28641223, '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 = 28641579 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': 4063377, 'mtr_portfolio_id': 28641579, 'created_at': datetime.datetime(2025, 11, 18, 5, 47, 28), 'result': '0.05853607655274519', 'result_long': None, 'result_double': None}] Qualite : 0.05853607655274519 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28641579 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28641579_18-11-2025_05_47_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28641579 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_P28641579_18-11-2025_05_47_28.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28641586, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28641587, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28641588, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28641589, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28641590, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28641591, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28641592, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28641593, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28641594, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28641595, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28641596, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28641597, 'pht': 3726}}" where mtr_portfolio_id = 28641579 and dashboard_run_id = 2608789 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`=28641579 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17407538, 0.05853607655274519, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28641579_18-11-2025_05_47_28.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28641586, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28641587, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28641588, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28641589, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28641590, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28641591, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28641592, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28641593, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28641594, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28641595, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28641596, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28641597, '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 = 28641934 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': 4063585, 'mtr_portfolio_id': 28641934, 'created_at': datetime.datetime(2025, 11, 18, 6, 3, 27), 'result': '0.0420865347740443', 'result_long': None, 'result_double': None}] Qualite : 0.0420865347740443 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28641934 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28641934_18-11-2025_06_03_27.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28641934 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_P28641934_18-11-2025_06_03_27.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28641939, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28641940, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28641941, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28641942, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28641943, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28641944, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28641945, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28641946, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28641947, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28641948, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28641949, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28641950, 'pht': 3726}}" where mtr_portfolio_id = 28641934 and dashboard_run_id = 2608789 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`=28641934 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17407539, 0.0420865347740443, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28641934_18-11-2025_06_03_27.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28641939, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28641940, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28641941, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28641942, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28641943, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28641944, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28641945, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28641946, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28641947, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28641948, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28641949, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28641950, '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 = 28642364 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': 4063660, 'mtr_portfolio_id': 28642364, 'created_at': datetime.datetime(2025, 11, 18, 6, 19, 28), 'result': '0.06073383736561497', 'result_long': None, 'result_double': None}] Qualite : 0.06073383736561497 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28642364 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28642364_18-11-2025_06_19_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28642364 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_P28642364_18-11-2025_06_19_28.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28642374, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28642375, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28642376, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28642377, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28642378, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28642379, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28642380, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28642381, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28642382, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28642383, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28642384, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28642385, 'pht': 3726}}" where mtr_portfolio_id = 28642364 and dashboard_run_id = 2608789 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`=28642364 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17407540, 0.06073383736561497, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28642364_18-11-2025_06_19_28.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28642374, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28642375, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28642376, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28642377, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28642378, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28642379, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28642380, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28642381, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28642382, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28642383, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28642384, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28642385, '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 = 28642968 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': 4063734, 'mtr_portfolio_id': 28642968, 'created_at': datetime.datetime(2025, 11, 18, 6, 33, 28), 'result': '0.05626145265431898', 'result_long': None, 'result_double': None}] Qualite : 0.05626145265431898 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28642968 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28642968_18-11-2025_06_33_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28642968 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_P28642968_18-11-2025_06_33_28.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28642972, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28642973, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28642974, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28642975, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28642976, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28642977, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28642978, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28642979, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28642980, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28642981, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28642982, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28642983, 'pht': 3726}}" where mtr_portfolio_id = 28642968 and dashboard_run_id = 2608789 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`=28642968 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17407541, 0.05626145265431898, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28642968_18-11-2025_06_33_28.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28642972, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28642973, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28642974, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28642975, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28642976, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28642977, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28642978, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28642979, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28642980, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28642981, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28642982, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28642983, '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 = 28643374 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': 4063793, 'mtr_portfolio_id': 28643374, 'created_at': datetime.datetime(2025, 11, 18, 6, 47, 29), 'result': '0.05293475167005118', 'result_long': None, 'result_double': None}] Qualite : 0.05293475167005118 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28643374 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28643374_18-11-2025_06_47_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28643374 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_P28643374_18-11-2025_06_47_30.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28643375, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28643376, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28643377, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28643378, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28643379, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28643380, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28643381, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28643382, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28643383, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28643384, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28643385, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28643386, 'pht': 3726}}" where mtr_portfolio_id = 28643374 and dashboard_run_id = 2608789 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`=28643374 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17407542, 0.05293475167005118, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28643374_18-11-2025_06_47_30.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28643375, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28643376, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28643377, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28643378, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28643379, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28643380, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28643381, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28643382, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28643383, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28643384, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28643385, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28643386, '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 = 28643779 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': 4063851, 'mtr_portfolio_id': 28643779, 'created_at': datetime.datetime(2025, 11, 18, 7, 2, 58), 'result': '0.04435094046803636', 'result_long': None, 'result_double': None}] Qualite : 0.04435094046803636 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28643779 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28643779_18-11-2025_07_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28643779 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_P28643779_18-11-2025_07_02_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28643784, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28643785, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28643786, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28643787, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28643788, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28643789, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28643790, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28643791, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28643792, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28643793, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28643794, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28643795, 'pht': 3726}}" where mtr_portfolio_id = 28643779 and dashboard_run_id = 2608789 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`=28643779 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17407543, 0.04435094046803636, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28643779_18-11-2025_07_02_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28643784, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28643785, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28643786, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28643787, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28643788, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28643789, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28643790, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28643791, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28643792, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28643793, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28643794, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28643795, '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 = 28644283 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': 4063968, 'mtr_portfolio_id': 28644283, 'created_at': datetime.datetime(2025, 11, 18, 7, 18, 59), 'result': '0.03468004728367508', 'result_long': None, 'result_double': None}] Qualite : 0.03468004728367508 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28644283 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28644283_18-11-2025_07_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28644283 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_P28644283_18-11-2025_07_18_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28644316, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28644317, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28644318, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28644319, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28644320, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28644321, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28644322, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28644323, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28644324, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28644325, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28644326, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28644327, 'pht': 3726}}" where mtr_portfolio_id = 28644283 and dashboard_run_id = 2608789 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`=28644283 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17407544, 0.03468004728367508, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28644283_18-11-2025_07_18_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28644316, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28644317, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28644318, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28644319, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28644320, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28644321, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28644322, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28644323, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28644324, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28644325, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28644326, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28644327, '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 = 28645127 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': 4064092, 'mtr_portfolio_id': 28645127, 'created_at': datetime.datetime(2025, 11, 18, 7, 35, 30), 'result': '0.027859632548191356', 'result_long': None, 'result_double': None}] Qualite : 0.027859632548191356 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28645127 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28645127_18-11-2025_07_35_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28645127 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_P28645127_18-11-2025_07_35_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28645183, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28645184, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28645185, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28645186, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28645187, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28645188, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28645189, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28645190, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28645191, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28645192, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28645193, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28645194, 'pht': 3726}}" where mtr_portfolio_id = 28645127 and dashboard_run_id = 2608789 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`=28645127 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17407545, 0.027859632548191356, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28645127_18-11-2025_07_35_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28645183, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28645184, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28645185, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28645186, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28645187, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28645188, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28645189, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28645190, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28645191, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28645192, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28645193, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28645194, '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 = 28645778 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': 4064173, 'mtr_portfolio_id': 28645778, 'created_at': datetime.datetime(2025, 11, 18, 7, 49), 'result': '0.0590152139734779', 'result_long': None, 'result_double': None}] Qualite : 0.0590152139734779 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28645778 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28645778_18-11-2025_07_49_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28645778 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_P28645778_18-11-2025_07_49_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28645792, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28645793, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28645794, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28645795, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28645796, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28645797, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28645798, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28645799, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28645800, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28645801, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28645802, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28645803, 'pht': 3726}}" where mtr_portfolio_id = 28645778 and dashboard_run_id = 2608789 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`=28645778 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17407546, 0.0590152139734779, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28645778_18-11-2025_07_49_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28645792, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28645793, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28645794, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28645795, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28645796, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28645797, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28645798, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28645799, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28645800, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28645801, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28645802, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28645803, '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 = 28646472 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': 4064317, 'mtr_portfolio_id': 28646472, 'created_at': datetime.datetime(2025, 11, 18, 8, 2, 59), 'result': '0.07002810345918892', 'result_long': None, 'result_double': None}] Qualite : 0.07002810345918892 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28646472 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28646472_18-11-2025_08_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28646472 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_P28646472_18-11-2025_08_03_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28646497, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28646498, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28646499, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28646500, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28646501, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28646502, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28646503, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28646504, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28646505, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28646506, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28646507, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28646508, 'pht': 3726}}" where mtr_portfolio_id = 28646472 and dashboard_run_id = 2608789 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`=28646472 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17407547, 0.07002810345918892, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28646472_18-11-2025_08_03_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28646497, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28646498, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28646499, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28646500, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28646501, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28646502, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28646503, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28646504, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28646505, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28646506, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28646507, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28646508, '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 = 28647027 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': 4064437, 'mtr_portfolio_id': 28647027, 'created_at': datetime.datetime(2025, 11, 18, 8, 17, 28), 'result': '0.0510507725241517', 'result_long': None, 'result_double': None}] Qualite : 0.0510507725241517 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28647027 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28647027_18-11-2025_08_17_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28647027 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_P28647027_18-11-2025_08_17_28.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28647068, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28647069, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28647070, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28647071, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28647072, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28647073, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28647074, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28647075, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28647076, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28647077, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28647078, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28647079, 'pht': 3726}}" where mtr_portfolio_id = 28647027 and dashboard_run_id = 2608789 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`=28647027 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17407548, 0.0510507725241517, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28647027_18-11-2025_08_17_28.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28647068, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28647069, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28647070, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28647071, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28647072, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28647073, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28647074, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28647075, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28647076, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28647077, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28647078, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28647079, '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 = 28647656 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': 4064588, 'mtr_portfolio_id': 28647656, 'created_at': datetime.datetime(2025, 11, 18, 8, 33, 30), 'result': '0.04203229748767614', 'result_long': None, 'result_double': None}] Qualite : 0.04203229748767614 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28647656 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28647656_18-11-2025_08_33_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28647656 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_P28647656_18-11-2025_08_33_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28647663, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28647664, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28647665, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28647666, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28647667, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28647668, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28647669, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28647670, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28647671, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28647672, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28647673, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28647674, 'pht': 3726}}" where mtr_portfolio_id = 28647656 and dashboard_run_id = 2608789 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`=28647656 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17407549, 0.04203229748767614, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28647656_18-11-2025_08_33_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28647663, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28647664, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28647665, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28647666, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28647667, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28647668, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28647669, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28647670, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28647671, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28647672, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28647673, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28647674, '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 = 28648493 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': 4064766, 'mtr_portfolio_id': 28648493, 'created_at': datetime.datetime(2025, 11, 18, 8, 48, 59), 'result': '0.03588526522438144', 'result_long': None, 'result_double': None}] Qualite : 0.03588526522438144 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28648493 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28648493_18-11-2025_08_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28648493 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_P28648493_18-11-2025_08_48_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28648499, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28648500, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28648501, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28648502, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28648503, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28648504, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28648505, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28648506, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28648507, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28648508, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28648509, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28648510, 'pht': 3726}}" where mtr_portfolio_id = 28648493 and dashboard_run_id = 2608789 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`=28648493 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17407550, 0.03588526522438144, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28648493_18-11-2025_08_48_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28648499, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28648500, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28648501, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28648502, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28648503, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28648504, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28648505, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28648506, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28648507, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28648508, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28648509, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28648510, '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 = 28649305 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': 4064969, 'mtr_portfolio_id': 28649305, 'created_at': datetime.datetime(2025, 11, 18, 9, 34, 59), 'result': '0.0541977277007493', 'result_long': None, 'result_double': None}] Qualite : 0.0541977277007493 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28649305 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28649305_18-11-2025_09_34_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28649305 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_P28649305_18-11-2025_09_34_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28649346, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28649347, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28649348, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28649349, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28649350, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28649351, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28649352, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28649353, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28649354, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28649355, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28649356, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28649357, 'pht': 3726}}" where mtr_portfolio_id = 28649305 and dashboard_run_id = 2608789 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`=28649305 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17407551, 0.0541977277007493, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28649305_18-11-2025_09_34_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28649346, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28649347, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28649348, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28649349, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28649350, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28649351, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28649352, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28649353, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28649354, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28649355, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28649356, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28649357, '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 = 28650959 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': 4065191, 'mtr_portfolio_id': 28650959, 'created_at': datetime.datetime(2025, 11, 18, 9, 48, 58), 'result': '0.04071743132239154', 'result_long': None, 'result_double': None}] Qualite : 0.04071743132239154 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28650959 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28650959_18-11-2025_09_48_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28650959 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_P28650959_18-11-2025_09_48_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28650974, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28650975, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28650976, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28650977, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28650978, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28650979, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28650980, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28650981, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28650982, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28650983, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28650984, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28650985, 'pht': 3726}}" where mtr_portfolio_id = 28650959 and dashboard_run_id = 2608789 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`=28650959 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17407552, 0.04071743132239154, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28650959_18-11-2025_09_48_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28650974, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28650975, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28650976, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28650977, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28650978, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28650979, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28650980, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28650981, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28650982, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28650983, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28650984, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28650985, '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 = 28651460 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': 4065279, 'mtr_portfolio_id': 28651460, 'created_at': datetime.datetime(2025, 11, 18, 10, 2, 57), 'result': '0.1055295895326338', 'result_long': None, 'result_double': None}] Qualite : 0.1055295895326338 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28651460 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28651460_18-11-2025_10_02_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28651460 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_P28651460_18-11-2025_10_02_57.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28651477, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28651478, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28651479, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28651480, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28651481, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28651482, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28651483, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28651484, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28651485, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28651486, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28651487, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28651488, 'pht': 3726}}" where mtr_portfolio_id = 28651460 and dashboard_run_id = 2608789 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`=28651460 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17407553, 0.1055295895326338, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28651460_18-11-2025_10_02_57.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28651477, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28651478, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28651479, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28651480, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28651481, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28651482, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28651483, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28651484, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28651485, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28651486, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28651487, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28651488, '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 = 28651808 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': 4065400, 'mtr_portfolio_id': 28651808, 'created_at': datetime.datetime(2025, 11, 18, 10, 14, 56), 'result': '0.028722089183335846', 'result_long': None, 'result_double': None}] Qualite : 0.028722089183335846 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28651808 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28651808_18-11-2025_10_14_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28651808 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_P28651808_18-11-2025_10_14_57.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28651841, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28651842, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28651843, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28651844, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28651845, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28651846, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28651847, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28651848, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28651849, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28651850, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28651851, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28651852, 'pht': 3726}}" where mtr_portfolio_id = 28651808 and dashboard_run_id = 2608789 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`=28651808 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17407554, 0.028722089183335846, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28651808_18-11-2025_10_14_57.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28651841, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28651842, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28651843, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28651844, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28651845, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28651846, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28651847, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28651848, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28651849, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28651850, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28651851, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28651852, '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 (28631138,28631823,28632284,28632886,28634373,28635010,28635491,28636035,28636740,28637017,28637392,28638080,28638689,28639147,28639591,28641020,28641206,28641579,28641934,28642364,28642968,28643374,28643779,28644283,28645127,28645778,28646472,28647027,28647656,28648493,28649305,28650959,28651460,28651808) result : ((1394942829,), (1394942839,), (1394942854,), (1394942987,), (1394943023,), (1394943063,), (1394943097,), (1394943498,), (1394943530,), (1394943559,), (1394943590,), (1394943624,), (1394943662,), (1394943743,), (1394943745,), (1394943747,), (1394943763,), (1394943798,), (1394944144,), (1394944180,), (1394944221,), (1394944235,), (1394944353,), (1394944356,), (1394944361,), (1394944367,), (1394944520,), (1394944521,), (1394944522,), (1394944524,), (1394944558,), (1394944561,), (1394944566,), (1394944570,), (1394944660,), (1394944662,), (1394944664,), (1394944697,), (1394944732,), (1394944749,), (1394944768,), (1394944790,), (1394944816,), (1394944948,), (1394944984,), (1394945016,), (1394945047,), (1394945081,), (1394945204,), (1394945206,), (1394945232,), (1394945230,), (1394945264,), (1394945275,), (1394945292,), (1394945294,), (1394945296,), (1394945300,), (1394945303,), (1394945305,), (1394945638,), (1394945676,), (1394945706,), (1394945739,), (1394945744,), (1394945748,), (1394945896,), (1394945915,), (1394945920,), (1394945993,), (1394945995,), (1394945999,), (1394946019,), (1394946020,), (1394946027,), (1394946030,), (1394946056,), (1394946143,), (1394946145,), (1394946173,), (1394946233,), (1394946234,), (1394946235,), (1394946262,), (1394946263,), (1394946264,), (1394946281,), (1394946283,), (1394946288,), (1394946292,), (1394946305,), (1394946307,), (1394946313,), (1394946321,), (1394946330,), (1394946353,), (1394946355,), (1394946357,), (1394946360,), (1394946379,), (1394946383,), (1394946389,), (1394946394,), (1394946399,), (1394946413,), (1394946414,), (1394946838,), (1394946827,), (1394946833,), (1394946835,), (1394947037,), (1394947061,), (1394947090,), (1394947099,), (1394947124,), (1394947126,), (1394947128,), (1394947150,), (1394947152,), (1394947155,), (1394947158,), (1394947162,), (1394947466,), (1394947500,), (1394947531,), (1394947562,), (1394947985,), (1394948017,), (1394948052,), (1394948537,), (1394948549,), (1394948550,), (1394948576,), (1394948768,), (1394948769,), (1394948771,), (1394948780,), (1394948921,), (1394948953,), (1394948986,), (1394949023,), (1394949059,), (1394949193,), (1394949207,), (1394949242,), (1394949276,), (1394949310,), (1394949343,), (1394949442,), (1394949444,), (1394949446,), (1394949482,), (1394949483,), (1394949484,), (1394949487,), (1394949510,), (1394949512,), (1394949538,), (1394949540,), (1394949543,), (1394949577,), (1394949573,), (1394949574,), (1394949575,), (1394949595,), (1394949596,), (1394949619,), (1394949620,), (1394949651,), (1394949655,), (1394949656,), (1394949681,), (1394949683,), (1394949685,), (1394949689,), (1394949708,), (1394949709,), (1394949710,), (1394949713,), (1394949744,), (1394949746,), (1394949748,), (1394949771,), (1394949772,), (1394949773,), (1394949776,), (1394949870,), (1394949902,), (1394949932,), (1394949965,), (1394950203,), (1394950243,), (1394950275,), (1394950331,), (1394950332,), (1394950355,), (1394950357,), (1394950359,), (1394950699,), (1394950729,), (1394950763,), (1394950795,), (1394951147,), (1394951182,), (1394951216,), (1394951615,), (1394963649,), (1394963683,), (1394963715,), (1394964148,), (1394964211,), (1394964268,), (1394964527,), (1394964530,), (1394964533,), (1394965229,), (1394965632,), (1394965634,), (1394965636,), (1394965639,), (1394965975,), (1394966022,), (1394966266,), (1394966268,), (1394966375,), (1394966377,), (1394966379,), (1394966381,), (1394966385,), (1394966389,), (1394966406,), (1394966407,), (1394966408,), (1394966726,), (1394966817,), (1394966906,), (1394967003,), (1394967113,), (1394967210,), (1394967516,), (1394967518,), (1394967528,), (1394967619,), (1394967804,), (1394967805,), (1394967806,), (1394967809,), (1394967814,), (1394967816,), (1394967832,), (1394967834,), (1394967859,), (1394967922,), (1394968030,), (1394968151,), (1394968277,), (1394969140,), (1394968941,), (1394968971,), (1394969001,), (1394969034,), (1394969676,), (1394969703,), (1394969704,), (1394969887,), (1394969910,), (1394969912,), (1394969942,), (1394969966,), (1394969969,), (1394969971,), (1394969974,), (1394969978,), (1394970005,), (1394970007,), (1394970009,), (1394970013,), (1394970033,), (1394970034,), (1394970035,), (1394970038,), (1394970043,), (1394970782,), (1394970901,), (1394971026,), (1394971150,), (1394971854,), (1394971896,), (1394971958,), (1394972000,), (1394972185,), (1394972187,), (1394972191,), (1394972196,), (1394972200,), (1394972204,), (1394972932,), (1394972933,), (1394972934,), (1394972935,), (1394973217,), (1394973243,), (1394973245,), (1394973327,), (1394973328,), (1394973329,), (1394973331,), (1394973380,), (1394973381,), (1394973382,), (1394973406,), (1394973409,), (1394973411,), (1394973414,), (1394973422,), (1394973423,), (1394973425,), (1394973426,), (1394973428,), (1394973429,), (1394973448,), (1394973447,), (1394973467,), (1394973468,), (1394973469,), (1394973471,), (1394973475,), (1394973518,), (1394973553,), (1394973574,), (1394973644,), (1394973645,), (1394973646,), (1394973648,), (1394973652,), (1394973952,), (1394973985,), (1394974026,), (1394974060,), (1394974415,), (1394974429,), (1394974430,), (1394974432,), (1394974593,), (1394974625,), (1394974655,), (1394974688,), (1394975008,), (1394975040,), (1394975071,), (1394975104,), (1394975463,), (1394975584,), (1394975588,), (1394975591,), (1394975595,), (1394975598,), (1394975675,), (1394975706,), (1394975921,), (1394975922,), (1394975923,), (1394975926,), (1394975965,), (1394975967,), (1394975969,), (1394975973,), (1394975978,), (1394975981,), (1394976006,), (1394976008,), (1394976011,), (1394976017,), (1394976041,), (1394976043,), (1394976045,), (1394976068,), (1394976069,), (1394976070,), (1394976073,), (1394976076,), (1394976080,), (1394976099,), (1394976095,), (1394976097,), (1394976117,), (1394976118,), (1394976121,), (1394976127,), (1394976132,), (1394976155,), (1394976157,), (1394976159,), (1394976181,), (1394976182,), (1394976183,), (1394976186,), (1394976190,), (1394976195,), (1394976220,), (1394976230,), (1394976234,), (1394976237,), (1394976242,), (1394976246,), (1394976323,), (1394976330,), (1394976331,), (1394976350,), (1394976361,), (1394976386,), (1394976387,), (1394976388,), (1394976391,), (1394976412,), (1394976413,), (1394976415,), (1394976419,), (1394976423,), (1394976449,), (1394976451,), (1394976453,), (1394976456,), (1394976460,), (1394976465,), (1394976482,), (1394976483,), (1394976484,), (1394976487,), (1394976518,), (1394976520,), (1394976521,), (1394976525,), (1394976545,), (1394976546,), (1394976547,), (1394976586,), (1394976608,), (1394976609,), (1394976610,), (1394976612,), (1394976619,), (1394976623,), (1394976637,), (1394976671,), (1394976670,), (1394976798,), (1394976800,), (1394976805,), (1394976812,), (1394976832,), (1394976881,), (1394976915,), (1394976916,), (1394976917,), (1394976920,), (1394976941,), (1394976943,), (1394976945,), (1394976949,), (1394976967,), (1394976968,), (1394976969,), (1394976971,), (1394976993,), (1394976994,), (1394977028,), (1394977085,), (1394977086,), (1394977124,), (1394977121,), (1394977122,), (1394977148,), (1394977154,), (1394977164,), (1394977175,), (1394977193,), (1394977195,), (1394977197,), (1394977218,), (1394977219,), (1394977220,), (1394977221,), (1394977241,), (1394977245,), (1394977247,), (1394977250,), (1394977273,), (1394977276,), (1394977277,), (1394977280,), (1394977284,), (1394977287,), (1394977303,), (1394977305,), (1394977306,), (1394977327,), (1394977328,), (1394977329,), (1394977331,), (1394977334,), (1394977338,), (1394977354,), (1394977355,), (1394977357,), (1394977360,), (1394977387,), (1394977388,), (1394977389,), (1394977391,), (1394977394,), (1394977418,), (1394977420,), (1394977424,), (1394977428,), (1394977431,), (1394977433,), (1394977439,), (1394977440,), (1394977445,), (1394977446,), (1394977447,), (1394977448,), (1394977452,), (1394977520,), (1394977521,), (1394977523,), (1394977645,), (1394977679,), (1394977717,), (1394977859,), (1394977900,), (1394977933,), (1394977967,), (1394978272,), (1394978209,), (1394978239,), (1394979060,), (1394979134,), (1394979631,), (1394979642,), (1394979644,), (1394979993,), (1394980024,), (1394980059,), (1394980093,), (1394980487,), (1394980490,), (1394980494,), (1394980499,), (1394980504,), (1394980508,), (1394980699,), (1394980719,), (1394980731,), (1394980735,), (1394980769,), (1394980771,), (1394980816,), (1394980817,), (1394980818,), (1394980824,), (1394980844,), (1394980847,), (1394980852,), (1394980855,), (1394980858,), (1394980879,), (1394980880,), (1394980886,), (1394980889,), (1394980892,), (1394980904,), (1394980936,), (1394980969,), (1394981007,), (1394981041,), (1394981077,), (1394981375,), (1394981405,), (1394981652,), (1394981655,), (1394981668,), (1394981700,), (1394981737,), (1394981771,), (1394981910,), (1394981950,), (1394981958,), (1394981965,), (1394981968,), (1394982167,), (1394982198,), (1394982230,), (1394982265,), (1394982301,), (1394982673,), (1394982710,), (1394982744,), (1394983012,), (1394982981,), (1394982991,), (1394983009,), (1394983029,), (1394983030,), (1394983031,), (1394983033,), (1394983066,), (1394983068,), (1394983070,), (1394983094,), (1394983095,), (1394983096,), (1394983114,), (1394983116,), (1394983118,), (1394983154,), (1394983156,), (1394983307,), (1394983337,), (1394983372,), (1394983408,), (1394983819,), (1394983836,), (1394983838,), (1394983841,), (1394983845,), (1394984020,), (1394984021,), (1394984027,), (1394984053,), (1394984054,), (1394984057,), (1394984062,), (1394984087,), (1394984089,), (1394984091,), (1394984095,), (1394984113,), (1394984114,), (1394984117,), (1394984122,), (1394984127,), (1394984130,), (1394984138,), (1394984139,), (1394984141,), (1394984145,), (1394984147,), (1394984151,), (1394984156,), (1394984175,), (1394984177,), (1394984180,), (1394984186,), (1394984201,), (1394984203,), (1394984235,), (1394984231,), (1394984232,), (1394984233,), (1394984258,), (1394984259,), (1394984260,), (1394984264,), (1394984269,), (1394984298,), (1394984300,), (1394984301,), (1394984303,), (1394984332,), (1394984333,), (1394984334,), (1394984337,), (1394984341,), (1394984354,), (1394984356,), (1394984358,), (1394984702,), (1394985930,), (1394985947,), (1394985949,), (1394985953,), (1394985958,), (1394985977,), (1394985980,), (1394985982,), (1394985985,), (1394986005,), (1394986006,), (1394986007,), (1394986010,), (1394986030,), (1394986032,), (1394986034,), (1394986038,), (1394986041,), (1394986054,), (1394986055,), (1394986056,), (1394986058,), (1394986063,), (1394986068,), (1394986111,), (1394986100,), (1394986102,), (1394986104,), (1394986107,), (1394986137,), (1394986138,), (1394986139,), (1394986162,), (1394986164,), (1394986166,), (1394986169,), (1394986174,), (1394986348,), (1394986377,), (1394986408,), (1394986440,), (1394986861,), (1394986893,), (1394986897,), (1394986900,), (1394987109,), (1394987112,), (1394987140,), (1394987190,), (1394987192,), (1394987194,), (1394987197,), (1394987254,), (1394987255,), (1394987256,), (1394987258,), (1394987280,), (1394987284,), (1394987288,), (1394987291,), (1394987294,), (1394987310,), (1394987312,), (1394987344,), (1394987345,), (1394987346,), (1394987370,), (1394987371,), (1394987372,), (1394987374,), (1394987379,), (1394987394,), (1394987396,), (1394987398,), (1394988093,), (1394988165,), (1394988997,), (1394988924,), (1394988958,), (1394988990,), (1394989244,), (1394989277,), (1394989286,), (1394989400,), (1394989402,), (1394989404,), (1394989407,), (1394989411,), (1394989414,), (1394989450,), (1394989453,), (1394989454,), (1394989479,), (1394989481,), (1394989483,), (1394989487,), (1394989491,), (1394989518,), (1394989519,), (1394989520,), (1394989523,), (1394989552,), (1394989591,), (1394989596,), (1394989600,), (1394989605,), (1394989608,), (1394989632,), (1394989633,), (1394989634,), (1394989662,), (1394989664,), (1394989667,), (1394989672,), (1394989678,), (1394989700,), (1394989701,), (1394989702,), (1394989704,), (1394989709,), (1394989712,), (1394989729,), (1394989731,), (1394993476,), (1394993339,), (1394993474,), (1394993475,), (1394993516,), (1394993518,), (1394993520,), (1394993539,), (1394993560,), (1394993586,), (1394993588,), (1394993591,), (1394993596,), (1394993609,), (1394993615,), (1394993618,), (1394993621,), (1394993638,), (1394993639,), (1394993640,), (1394993642,), (1394993646,), (1394993668,), (1394993669,), (1394993671,), (1394993675,), (1394993698,), (1394993700,), (1394993701,), (1394993704,), (1394993709,), (1394993754,), (1394993762,), (1394993763,), (1394993764,), (1394993767,), (1394993769,), (1394993735,), (1394993736,), (1394993743,), (1394993747,), (1394993751,), (1394993773,), (1394993776,), (1394993779,), (1394993782,), (1394993784,), (1394993795,), (1394993797,), (1394993798,), (1394993818,), (1394993820,), (1394993822,), (1394993826,), (1394993863,), (1394993898,), (1394994235,), (1394994269,), (1394994298,), (1394994327,), (1394994581,), (1394994583,), (1394994584,), (1394994587,), (1394994591,), (1394994838,), (1394994856,), (1394994881,), (1394994933,), (1394994936,), (1394994940,), (1394994945,), (1394995009,), (1394995011,), (1394995020,), (1394995029,), (1394995037,), (1394995062,), (1394995063,), (1394995064,), (1394995067,), (1394995071,), (1394995096,), (1394995098,), (1394995107,), (1394995111,), (1394995115,), (1394995117,), (1394995130,), (1394995135,), (1394995137,), (1394995141,), (1394995142,), (1394995144,), (1394995148,), (1394995151,), (1394995155,), (1394995180,), (1394995183,), (1394995186,), (1394995190,), (1394995194,), (1394995213,), (1394995233,), (1394995253,), (1394995257,), (1394995261,), (1394995336,), (1394995340,), (1394995346,), (1394995349,), (1394995311,), (1394995314,), (1394995318,), (1394995327,), (1394995355,), (1394995356,), (1394995359,), (1394995374,), (1394995376,), (1394995378,), (1394995412,), (1394995414,), (1394995415,), (1394995417,), (1394995436,), (1394995438,), (1394995440,), (1394995443,), (1394995470,), (1394995471,), (1394995472,), (1394995474,), (1394995478,), (1394995493,), (1394995495,), (1394995497,), (1394995500,), (1394995504,), (1394995507,), (1394995521,), (1394995522,), (1394995523,), (1394995524,), (1394995526,), (1394995545,), (1394995548,), (1394995552,), (1394995557,), (1394995586,), (1394995587,), (1394995588,), (1394995590,), (1394995594,), (1394995597,), (1394995608,), (1394995609,), (1394995611,), (1394995613,), (1394995642,), (1394995646,), (1394995647,), (1394995668,), (1394995670,), (1394995674,), (1394995678,), (1394995680,), (1394995684,), (1394995700,), (1394995702,), (1394995704,), (1394995708,), (1394995739,), (1394995741,), (1394995742,), (1394995778,), (1394995766,), (1394995768,), (1394995772,), (1394995799,), (1394995800,), (1394995801,), (1394995829,), (1394995831,), (1394995832,), (1394995836,), (1394995841,), (1394995844,), (1394995858,), (1394995859,), (1394995860,), (1394995862,), (1394995892,), (1394995894,), (1394995896,), (1394995920,), (1394995921,), (1394995922,), (1394995924,), (1394995926,), (1394995929,), (1394995966,), (1394995967,), (1394995969,), (1394995973,), (1394995978,), (1394995992,), (1394995993,), (1394995994,), (1394995997,), (1394996028,), (1394996037,), (1394996042,), (1394996045,), (1394996049,), (1394996054,), (1394996069,), (1394996070,), (1394996071,), (1394996105,), (1394996107,), (1394996110,), (1394996115,), (1394996120,), (1394996124,), (1394996139,), (1394996142,), (1394996147,), (1394996152,), (1394996157,), (1394996160,), (1394996167,), (1394996168,), (1394996174,), (1394996180,), (1394996182,), (1394996223,), (1394996258,), (1394996292,), (1394996325,), (1394996479,), (1394996483,), (1394996486,), (1394996490,), (1394996495,), (1394996500,), (1394996543,), (1394996538,), (1394996541,), (1394996749,), (1394996783,), (1394996813,), (1394996861,), (1394996896,), (1394997263,), (1394997295,), (1394997320,), (1394997323,), (1394998509,), (1394998564,), (1394998565,), (1394998566,), (1394998568,), (1394998601,), (1394998605,), (1394998607,), (1394998637,), (1394998638,), (1394998639,), (1394998658,), (1394998660,), (1394998662,), (1394998669,), (1394998703,), (1394998704,), (1394998705,), (1394998707,), (1394998711,), (1394998737,), (1394998739,), (1394998741,), (1394998773,), (1394998774,), (1394998776,), (1394998778,), (1394998782,), (1394998784,), (1394998809,), (1394998796,), (1394998798,), (1394998800,), (1394998803,), (1394998806,), (1394998831,), (1394998832,), (1394998833,), (1394998834,), (1394998862,), (1394998864,), (1394998866,), (1394998869,), (1394998878,), (1394998905,), (1394998908,), (1394998911,), (1394998915,), (1394998945,), (1394998947,), (1394998948,), (1394998950,), (1394998983,), (1394998986,), (1394998988,), (1394998991,), (1394998994,), (1394998999,), (1394999027,), (1394999029,), (1394999030,), (1394999033,), (1394999037,), (1394999042,), (1394999071,), (1394999072,), (1394999073,), (1394999107,), (1394999113,), (1394999115,), (1394999119,), (1394999124,), (1394999127,), (1394999145,), (1394999146,), (1394999147,), (1394999149,), (1394999151,), (1394999154,), (1394999186,), (1394999187,), (1394999188,), (1394999191,), (1394999212,), (1394999214,), (1394999215,), (1394999218,), (1394999221,), (1394999236,), (1394999239,), (1394999241,), (1394999278,), (1394999279,), (1394999280,), (1394999282,), (1394999286,), (1394999289,), (1394999316,), (1394999318,), (1394999320,), (1394999324,), (1394999359,), (1394999367,), (1394999369,), (1394999371,), (1394999373,), (1394999347,), (1394999348,), (1394999350,), (1394999353,), (1394999356,), (1394999376,), (1394999378,), (1394999414,), (1394999416,), (1394999491,), (1394999494,), (1394999497,), (1394999501,), (1394999505,), (1394999624,), (1394999625,), (1394999626,), (1394999628,), (1394999655,), (1394999657,), (1394999696,), (1394999698,), (1394999700,), (1394999703,), (1394999709,), (1394999742,), (1394999743,), (1394999744,), (1394999746,), (1394999747,), (1394999790,), (1394999792,), (1394999794,), (1394999798,), (1394999820,), (1394999821,), (1394999822,), (1394999824,), (1394999828,), (1394999832,), (1394999945,), (1394999946,), (1394999948,), (1394999950,), (1394999954,), (1394999978,), (1394999979,), (1394999980,), (1394999983,), (1395000004,), (1395000005,), (1395000009,), (1395000017,), (1395000022,), (1395000027,), (1395000052,), (1395000054,), (1395000056,), (1395000059,), (1395000092,), (1395000080,), (1395000082,), (1395000084,), (1395000087,), (1395000115,), (1395000116,), (1395000117,), (1395000120,), (1395000124,), (1395000129,), (1395000145,), (1395000147,), (1395000149,), (1395000175,), (1395000179,), (1395000187,), (1395000193,), (1395000215,), (1395000217,), (1395000218,), (1395000221,), (1395000225,), (1395000249,), (1395000250,), (1395000251,), (1395000252,), (1395000284,), (1395000286,), (1395000288,), (1395000292,), (1395000301,), (1395000325,), (1395000326,), (1395000327,), (1395000329,), (1395000333,), (1395000336,), (1395000374,), (1395000376,), (1395000379,), (1395000382,), (1395000422,), (1395000444,), (1395000451,), (1395000484,), (1395000486,), (1395000490,), (1395000496,), (1395000501,), (1395000534,), (1395000536,), (1395000538,), (1395000542,), (1395000547,), (1395000563,), (1395000569,), (1395000573,), (1395000621,), (1395000613,), (1395000614,), (1395000615,), (1395000617,), (1395000633,), (1395000635,), (1395000637,), (1395000640,), (1395000643,), (1395001140,), (1395001183,), (1395001218,), (1395001257,), (1395001290,), (1395001607,), (1395001609,), (1395001610,), (1395001613,), (1395001842,), (1395001863,), (1395001865,), (1395001874,), (1395002153,), (1395002182,), (1395002215,), (1395002430,), (1395002443,), (1395002456,), (1395002466,), (1395002472,), (1395002521,), (1395002522,), (1395002523,), (1395002528,), (1395002539,), (1395002569,), (1395002583,), (1395002625,), (1395002662,), (1395002696,), (1395002746,), (1395003118,), (1395003120,), (1395003130,), (1395003164,), (1395003305,), (1395003306,), (1395003307,), (1395003342,), (1395003344,), (1395003347,), (1395003350,), (1395003353,), (1395003435,), (1395003442,), (1395003446,), (1395003452,), (1395003529,), (1395003559,), (1395003591,), (1395003621,), (1395004088,), (1395004129,), (1395004167,), (1395004197,), (1395004430,), (1395004403,), (1395004405,), (1395004407,), (1395004421,), (1395004426,), (1395004674,), (1395004702,), (1395004732,), (1395004736,), (1395004877,), (1395004878,), (1395004884,), (1395004903,), (1395004952,), (1395004953,), (1395004955,), (1395004960,), (1395004964,), (1395005015,), (1395005018,), (1395005020,), (1395005024,), (1395005435,), (1395005444,), (1395005445,), (1395005467,), (1395005470,), (1395005472,), (1395005475,), (1395005492,), (1395005494,), (1395005496,), (1395005498,), (1395005501,), (1395005505,), (1395005529,), (1395005530,), (1395005531,), (1395005533,), (1395005536,), (1395005574,), (1395005585,), (1395005597,), (1395005602,), (1395005641,), (1395005663,), (1395005695,), (1395005731,), (1395005769,), (1395005805,), (1395005989,), (1395005997,), (1395006002,), (1395006106,), (1395006111,), (1395006112,), (1395006115,), (1395006126,), (1395006132,), (1395006192,), (1395006193,), (1395006248,), (1395006303,), (1395006337,), (1395006433,), (1395006439,), (1395006447,), (1395006449,), (1395006526,), (1395006544,), (1395006554,), (1395006558,), (1395006561,), (1395006511,), (1395006514,), (1395006517,), (1395006521,), (1395006524,), (1395006528,), (1395006532,), (1395006534,), (1395006537,), (1395006540,), (1395006575,), (1395006576,), (1395006577,), (1395006579,), (1395006583,), (1395006604,), (1395006856,), (1395006889,), (1395006918,), (1395007350,), (1395007383,), (1395007412,), (1395007447,), (1395007460,), (1395007559,), (1395007589,), (1395007621,), (1395007652,), (1395007774,), (1395007776,), (1395007799,), (1395007838,), (1395007916,), (1395007917,), (1395007918,), (1395008038,), (1395008040,), (1395008077,), (1395008082,), (1395008083,), (1395008086,), (1395008091,), (1395008109,), (1395008110,), (1395008112,), (1395008179,), (1395008180,), (1395008183,), (1395008195,), (1395008199,), (1395008204,), (1395008239,), (1395008241,), (1395008243,), (1395008247,), (1395008251,), (1395008282,), (1395008283,), (1395008285,), (1395008287,), (1395008292,), (1395008332,), (1395008316,), (1395008318,), (1395008320,), (1395008323,), (1395008328,), (1395008409,), (1395008436,), (1395008460,), (1395008479,), (1395008529,), (1395008530,), (1395008531,), (1395008534,), (1395008539,), (1395008543,), (1395008557,), (1395008558,), (1395008560,), (1395008564,), (1395008577,), (1395008607,), (1395008609,), (1395008611,), (1395008637,), (1395008638,), (1395008639,), (1395008640,), (1395008670,), (1395008735,), (1395008765,), (1395008932,), (1395008961,), (1395008994,), (1395009020,), (1395009032,), (1395009080,), (1395009081,), (1395009091,), (1395009092,), (1395009130,), (1395009132,), (1395009136,), (1395009140,), (1395009159,), (1395009172,), (1395009175,), (1395009180,), (1395009184,), (1395009197,), (1395009199,), (1395009201,), (1395009205,), (1395009210,), (1395009213,), (1395009312,), (1395009349,), (1395009385,), (1395009391,), (1395009393,), (1395009395,), (1395009924,), (1395009955,), (1395009987,), (1395010023,), (1395010113,), (1395010118,), (1395010120,), (1395009856,), (1395009894,), (1395010128,), (1395010131,), (1395010136,), (1395010158,), (1395010375,), (1395010379,), (1395010392,), (1395010422,), (1395010811,), (1395010842,), (1395010871,), (1395011051,), (1395011079,), (1395011114,), (1395011149,), (1395011183,), (1395011328,), (1395011342,), (1395011343,), (1395011352,), (1395011357,), (1395011393,), (1395011395,), (1395011402,), (1395011405,), (1395011410,), (1395011415,), (1395011458,), (1395011459,), (1395011460,), (1395011463,), (1395011485,), (1395011486,), (1395011488,), (1395011926,), (1395011955,), (1395011986,), (1395012018,), (1395012056,), (1395012462,), (1395012496,), (1395012526,), (1395012560,), (1395012598,), (1395012924,), (1395012951,), (1395013403,), (1395013423,), (1395013450,), (1395013461,), (1395013474,), (1395013479,), (1395013508,), (1395013510,), (1395013512,), (1395013516,), (1395013544,), (1395013545,), (1395013547,), (1395013551,), (1395013612,), (1395013601,), (1395013606,), (1395013608,), (1395013684,), (1395013691,), (1395013705,), (1395013855,), (1395013857,), (1395013859,), (1395013864,), (1395013870,), (1395014073,), (1395014102,), (1395014136,), (1395014173,), (1395014180,), (1395014183,), (1395014217,), (1395014219,), (1395014222,), (1395014252,), (1395014253,), (1395014254,), (1395014257,), (1395014287,), (1395014289,), (1395014291,), (1395014294,), (1395014298,), (1395014317,), (1395014318,), (1395014319,), (1395014321,), (1395014324,), (1395014346,), (1395014347,), (1395014348,), (1395014350,), (1395014372,), (1395014374,), (1395014406,), (1395014407,), (1395014408,), (1395014535,), (1395014537,), (1395014540,), (1395014544,), (1395014608,), (1395014609,), (1395014659,), (1395014679,), (1395014723,), (1395014725,), (1395014766,), (1395014760,), (1395014762,), (1395014811,), (1395014851,), (1395014883,), (1395014919,), (1395014920,), (1395014921,), (1395014948,), (1395014951,), (1395014953,), (1395014984,), (1395014985,), (1395015515,), (1395015518,), (1395015544,), (1395015545,), (1395015549,), (1395015556,), (1395015560,), (1395015593,), (1395015599,), (1395015601,), (1395015604,), (1395015607,), (1395015645,), (1395015664,), (1395015665,), (1395015667,), (1395015668,), (1395015735,), (1395015719,), (1395015721,), (1395015723,), (1395015727,), (1395015730,), (1395015762,), (1395015763,), (1395015767,), (1395015770,), (1395016164,), (1395016171,), (1395016185,), (1395016320,), (1395016321,), (1395016322,), (1395016399,), (1395016401,), (1395016404,), (1395016409,), (1395016414,), (1395016433,), (1395016434,), (1395016435,), (1395016459,), (1395016464,), (1395016467,), (1395016472,), (1395016476,), (1395016511,), (1395016513,), (1395016516,), (1395016595,), (1395016623,), (1395016624,), (1395016687,), (1395016715,), (1395016716,), (1395016719,), (1395016826,), (1395016828,), (1395016849,), (1395016869,), (1395016879,), (1395016888,), (1395017051,), (1395017083,), (1395017115,), (1395017153,), (1395017328,), (1395017390,), (1395017452,), (1395017521,), (1395018064,), (1395018077,), (1395018109,), (1395018119,), (1395020706,), (1395020702,), (1395020704,), (1395020737,), (1395020738,), (1395020739,), (1395020741,), (1395020762,), (1395020763,), (1395020764,), (1395020766,), (1395020797,), (1395020808,), (1395020816,), (1395020820,), (1395020825,), (1395020882,), (1395020883,), (1395020884,), (1395020912,), (1395020921,), (1395020923,), (1395020928,), (1395020938,), (1395020942,), (1395020959,), (1395020961,), (1395020964,), (1395020970,), (1395020976,), (1395020979,), (1395020998,), (1395021001,), (1395021004,), (1395021033,), (1395021034,), (1395021035,), (1395021037,), (1395021040,), (1395021044,), (1395021070,), (1395021072,), (1395021073,), (1395021077,), (1395021101,), (1395021110,), (1395021117,), (1395021169,), (1395021191,), (1395021222,), (1395021256,), (1395021421,), (1395021422,), (1395021538,), (1395021526,), (1395021528,), (1395021530,), (1395021534,), (1395021562,), (1395021564,), (1395021565,), (1395021569,), (1395021574,), (1395021575,), (1395021603,), (1395021624,), (1395021626,), (1395021630,), (1395021653,), (1395021661,), (1395021678,), (1395021680,), (1395021681,), (1395021683,), (1395021687,), (1395021690,), (1395021694,), (1395021698,), (1395021718,), (1395021720,), (1395021722,), (1395021908,), (1395021965,), (1395022014,), (1395022211,), (1395022268,), (1395022671,), (1395022667,), (1395022669,), (1395022900,), (1395022912,), (1395022913,), (1395022914,), (1395023077,), (1395023097,), (1395023121,), (1395023137,), (1395023139,), (1395023385,), (1395023389,), (1395023390,), (1395023392,), (1395023394,), (1395023412,), (1395023413,), (1395023415,), (1395023418,), (1395023421,), (1395023424,), (1395023436,), (1395023440,), (1395023443,), (1395023493,), (1395023495,), (1395023498,), (1395023570,), (1395023585,), (1395023586,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'18112025': {'nb_upload': 31, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([28651808]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1395023586, 1395023585, 1395023570] map_info['map_portfolio_photo'] : {28651808: [1395023586, 1395023585, 1395023570, 1395023498, 1395023495, 1395023493, 1395023443, 1395023440, 1395023436, 1395023424, 1395023421, 1395023418, 1395023415, 1395023413, 1395023412, 1395023394, 1395023392, 1395023390, 1395023389, 1395023385, 1395023139, 1395023137, 1395023121, 1395023097, 1395023077, 1395022914, 1395022913, 1395022912, 1395022900, 1395022669, 1395022667]} final : True mtd_id 4302 list_pids : [1395023586, 1395023585, 1395023570] Looping around the photos to save general results len do output : 1 /28651808Didn'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, '4065400') ('4302', '28651808', '1395023586', None, None, None, None, None, '4065400') ('4302', None, None, None, None, None, None, None, '4065400') ('4302', '28651808', '1395023585', None, None, None, None, None, '4065400') ('4302', None, None, None, None, None, None, None, '4065400') ('4302', '28651808', '1395023570', None, None, None, None, None, '4065400') 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, '28651808', 'None', None, None, None, None, '4065400'), ('4302', '28651808', '1395023586', None, None, None, None, None, '4065400'), ('4302', '28651808', '1395023585', None, None, None, None, None, '4065400'), ('4302', '28651808', '1395023570', None, None, None, None, None, '4065400')] time used for this insertion : 0.013950586318969727 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.2620246410369873 time spend to save output : 0.014160394668579102 total time spend for step 5 : 2.2761850357055664 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 (4065400) 2.01user 2.53system 0:06.46elapsed 70%CPU (0avgtext+0avgdata 158672maxresident)k 392inputs+3888outputs (23major+63915minor)pagefaults 0swaps