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 : 338747 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 (3670109) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (3670109) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26578342 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['3670109'] with mtr_portfolio_ids : ['26578342'] and first list_photo_ids : [] new path : /proc/338747/ Name: python3 Umask: 0002 State: R (running) Tgid: 338747 Ngid: 0 Pid: 338747 PPid: 338746 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 338747 NSpid: 338747 NSpgid: 336833 NSsid: 336833 VmPeak: 1107252 kB VmSize: 1107252 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 99632 kB VmRSS: 99632 kB RssAnon: 60172 kB RssFile: 39460 kB RssShmem: 0 kB VmData: 866004 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 608 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: 52 nonvoluntary_ctxt_switches: 92 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '338747', 'Ngid': '0', 'Pid': '338747', 'PPid': '338746', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '338747', 'NSpid': '338747', 'NSpgid': '336833', 'NSsid': '336833', 'VmPeak': '1107252 kB', 'VmSize': '1107252 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '99632 kB', 'VmRSS': '99632 kB', 'RssAnon': '60172 kB', 'RssFile': '39460 kB', 'RssShmem': '0 kB', 'VmData': '866004 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '608 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': '52', 'nonvoluntary_ctxt_switches': '92'} ('datou_batch_current', '338747', '1107252', '0', '1107252', '866004', '99632', b'', 'marlene', '3670109') 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 ph WHERE ph.photo_id IN (SELECT mtr_photo_id from MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (26578342) 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 (3670109 ) ) 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 (26578342) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1381747512, 'portfolio_id': 26578342}, {'photo_id': 1381747510, 'portfolio_id': 26578342}, {'photo_id': 1381747508, 'portfolio_id': 26578342}, {'photo_id': 1381747506, 'portfolio_id': 26578342}, {'photo_id': 1381747504, 'portfolio_id': 26578342}, {'photo_id': 1381746940, 'portfolio_id': 26578342}, {'photo_id': 1381746938, 'portfolio_id': 26578342}, {'photo_id': 1381746936, 'portfolio_id': 26578342}, {'photo_id': 1381746933, 'portfolio_id': 26578342}, {'photo_id': 1381746930, 'portfolio_id': 26578342}, {'photo_id': 1381746927, 'portfolio_id': 26578342}, {'photo_id': 1381746492, 'portfolio_id': 26578342}, {'photo_id': 1381746490, 'portfolio_id': 26578342}, {'photo_id': 1381746488, 'portfolio_id': 26578342}, {'photo_id': 1381746486, 'portfolio_id': 26578342}, {'photo_id': 1381746484, 'portfolio_id': 26578342}, {'photo_id': 1381745828, 'portfolio_id': 26578342}, {'photo_id': 1381745825, 'portfolio_id': 26578342}, {'photo_id': 1381745822, 'portfolio_id': 26578342}, {'photo_id': 1381745819, 'portfolio_id': 26578342}, {'photo_id': 1381745816, 'portfolio_id': 26578342}, {'photo_id': 1381745514, 'portfolio_id': 26578342}, {'photo_id': 1381745511, 'portfolio_id': 26578342}, {'photo_id': 1381745508, 'portfolio_id': 26578342}, {'photo_id': 1381745504, 'portfolio_id': 26578342}, {'photo_id': 1381744979, 'portfolio_id': 26578342}, {'photo_id': 1381744976, 'portfolio_id': 26578342}, {'photo_id': 1381744973, 'portfolio_id': 26578342}, {'photo_id': 1381744970, 'portfolio_id': 26578342}] map_portfolio_id_photo_id: {26578342: [1381747512, 1381747510, 1381747508, 1381747506, 1381747504, 1381746940, 1381746938, 1381746936, 1381746933, 1381746930, 1381746927, 1381746492, 1381746490, 1381746488, 1381746486, 1381746484, 1381745828, 1381745825, 1381745822, 1381745819, 1381745816, 1381745514, 1381745511, 1381745508, 1381745504, 1381744979, 1381744976, 1381744973, 1381744970]} ##### 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.015628576278686523 #### 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 Fri Sep 5 14:07:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (26578342) 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 : 26578342 get user id for portfolio 26578342 get sub ptf for main ptf 26578342, type 3726 and hashtags ['cartonnette', 'papier', 'environnement', 'Carton_brun', 'plastique', 'metal', 'mal_croppe', 'flou', 'autre_refus', 'Carton_gris', 'kraft', 'Teint_Dans_La_Masse'] 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`=26578342 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','papier','environnement','Carton_brun','plastique','metal','mal_croppe','flou','autre_refus','Carton_gris','kraft','Teint_Dans_La_Masse')) 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`=26578342 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','papier','environnement','Carton_brun','plastique','metal','mal_croppe','flou','autre_refus','Carton_gris','kraft','Teint_Dans_La_Masse')) AND mptpi.`min_score`=0.5 To do returned map {'kraft': {'main_port_id': 26578342, 'sub_port_id': 26578358, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17903254, 'last_updated_at': datetime.datetime(2025, 9, 5, 14, 5, 1), 'last_updated_at_desc': datetime.datetime(2025, 9, 5, 14, 5, 1), 'last_updated_at_asc': datetime.datetime(2025, 9, 5, 14, 3, 29)}, 'Teint_Dans_La_Masse': {'main_port_id': 26578342, 'sub_port_id': 26578359, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17903255, 'last_updated_at': datetime.datetime(2025, 9, 5, 14, 5, 1), 'last_updated_at_desc': datetime.datetime(2025, 9, 5, 14, 5, 1), 'last_updated_at_asc': datetime.datetime(2025, 9, 5, 14, 3, 29)}, 'metal': {'main_port_id': 26578342, 'sub_port_id': 26578360, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17903256, 'last_updated_at': datetime.datetime(2025, 9, 5, 14, 5, 1), 'last_updated_at_desc': datetime.datetime(2025, 9, 5, 14, 5, 1), 'last_updated_at_asc': datetime.datetime(2025, 9, 5, 14, 3, 29)}, 'autre_refus': {'main_port_id': 26578342, 'sub_port_id': 26578361, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17903257, 'last_updated_at': datetime.datetime(2025, 9, 5, 14, 5, 1), 'last_updated_at_desc': datetime.datetime(2025, 9, 5, 14, 5, 1), 'last_updated_at_asc': datetime.datetime(2025, 9, 5, 14, 3, 29)}, 'plastique': {'main_port_id': 26578342, 'sub_port_id': 26578362, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17903258, 'last_updated_at': datetime.datetime(2025, 9, 5, 14, 5, 1), 'last_updated_at_desc': datetime.datetime(2025, 9, 5, 14, 5, 1), 'last_updated_at_asc': datetime.datetime(2025, 9, 5, 14, 3, 29)}, 'cartonnette': {'main_port_id': 26578342, 'sub_port_id': 26578363, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17903259, 'last_updated_at': datetime.datetime(2025, 9, 5, 14, 5, 1), 'last_updated_at_desc': datetime.datetime(2025, 9, 5, 14, 5, 1), 'last_updated_at_asc': datetime.datetime(2025, 9, 5, 14, 3, 29)}, 'mal_croppe': {'main_port_id': 26578342, 'sub_port_id': 26578364, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17903260, 'last_updated_at': datetime.datetime(2025, 9, 5, 14, 5, 1), 'last_updated_at_desc': datetime.datetime(2025, 9, 5, 14, 5, 1), 'last_updated_at_asc': datetime.datetime(2025, 9, 5, 14, 3, 29)}, 'Carton_brun': {'main_port_id': 26578342, 'sub_port_id': 26578365, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17903261, 'last_updated_at': datetime.datetime(2025, 9, 5, 14, 5, 1), 'last_updated_at_desc': datetime.datetime(2025, 9, 5, 14, 5, 1), 'last_updated_at_asc': datetime.datetime(2025, 9, 5, 14, 3, 29)}, 'flou': {'main_port_id': 26578342, 'sub_port_id': 26578366, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17903262, 'last_updated_at': datetime.datetime(2025, 9, 5, 14, 5, 1), 'last_updated_at_desc': datetime.datetime(2025, 9, 5, 14, 5, 1), 'last_updated_at_asc': datetime.datetime(2025, 9, 5, 14, 3, 29)}, 'papier': {'main_port_id': 26578342, 'sub_port_id': 26578367, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17903263, 'last_updated_at': datetime.datetime(2025, 9, 5, 14, 5, 1), 'last_updated_at_desc': datetime.datetime(2025, 9, 5, 14, 5, 1), 'last_updated_at_asc': datetime.datetime(2025, 9, 5, 14, 3, 29)}, 'environnement': {'main_port_id': 26578342, 'sub_port_id': 26578368, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17903264, 'last_updated_at': datetime.datetime(2025, 9, 5, 14, 5, 1), 'last_updated_at_desc': datetime.datetime(2025, 9, 5, 14, 5, 1), 'last_updated_at_asc': datetime.datetime(2025, 9, 5, 14, 3, 29)}, 'Carton_gris': {'main_port_id': 26578342, 'sub_port_id': 26578369, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17903265, 'last_updated_at': datetime.datetime(2025, 9, 5, 14, 5, 1), 'last_updated_at_desc': datetime.datetime(2025, 9, 5, 14, 5, 1), 'last_updated_at_asc': datetime.datetime(2025, 9, 5, 14, 3, 29)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26578358 , 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=26578342 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 (26578358) result : ((1381747114,), (1381747117,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26578342) result : ((1381744970,), (1381744973,), (1381744976,), (1381744979,), (1381745504,), (1381745508,), (1381745511,), (1381745514,), (1381745816,), (1381745819,), (1381745822,), (1381745825,), (1381745828,), (1381746484,), (1381746486,), (1381746488,), (1381746490,), (1381746492,), (1381746927,), (1381746930,), (1381746933,), (1381746936,), (1381746938,), (1381746940,), (1381747504,), (1381747506,), (1381747508,), (1381747510,), (1381747512,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26578359 , 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=26578342 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 (26578359) result : ((1381746098,), (1381747390,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26578342) result : ((1381744970,), (1381744973,), (1381744976,), (1381744979,), (1381745504,), (1381745508,), (1381745511,), (1381745514,), (1381745816,), (1381745819,), (1381745822,), (1381745825,), (1381745828,), (1381746484,), (1381746486,), (1381746488,), (1381746490,), (1381746492,), (1381746927,), (1381746930,), (1381746933,), (1381746936,), (1381746938,), (1381746940,), (1381747504,), (1381747506,), (1381747508,), (1381747510,), (1381747512,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26578360 , 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=26578342 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 (26578360) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26578342) result : ((1381744970,), (1381744973,), (1381744976,), (1381744979,), (1381745504,), (1381745508,), (1381745511,), (1381745514,), (1381745816,), (1381745819,), (1381745822,), (1381745825,), (1381745828,), (1381746484,), (1381746486,), (1381746488,), (1381746490,), (1381746492,), (1381746927,), (1381746930,), (1381746933,), (1381746936,), (1381746938,), (1381746940,), (1381747504,), (1381747506,), (1381747508,), (1381747510,), (1381747512,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26578361 , 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=26578342 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 (26578361) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26578342) result : ((1381744970,), (1381744973,), (1381744976,), (1381744979,), (1381745504,), (1381745508,), (1381745511,), (1381745514,), (1381745816,), (1381745819,), (1381745822,), (1381745825,), (1381745828,), (1381746484,), (1381746486,), (1381746488,), (1381746490,), (1381746492,), (1381746927,), (1381746930,), (1381746933,), (1381746936,), (1381746938,), (1381746940,), (1381747504,), (1381747506,), (1381747508,), (1381747510,), (1381747512,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26578362 , 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=26578342 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 (26578362) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26578342) result : ((1381744970,), (1381744973,), (1381744976,), (1381744979,), (1381745504,), (1381745508,), (1381745511,), (1381745514,), (1381745816,), (1381745819,), (1381745822,), (1381745825,), (1381745828,), (1381746484,), (1381746486,), (1381746488,), (1381746490,), (1381746492,), (1381746927,), (1381746930,), (1381746933,), (1381746936,), (1381746938,), (1381746940,), (1381747504,), (1381747506,), (1381747508,), (1381747510,), (1381747512,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26578363 , 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=26578342 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 (26578363) result : ((1381747082,), (1381747417,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26578342) result : ((1381744970,), (1381744973,), (1381744976,), (1381744979,), (1381745504,), (1381745508,), (1381745511,), (1381745514,), (1381745816,), (1381745819,), (1381745822,), (1381745825,), (1381745828,), (1381746484,), (1381746486,), (1381746488,), (1381746490,), (1381746492,), (1381746927,), (1381746930,), (1381746933,), (1381746936,), (1381746938,), (1381746940,), (1381747504,), (1381747506,), (1381747508,), (1381747510,), (1381747512,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26578364 , 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=26578342 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 (26578364) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26578342) result : ((1381744970,), (1381744973,), (1381744976,), (1381744979,), (1381745504,), (1381745508,), (1381745511,), (1381745514,), (1381745816,), (1381745819,), (1381745822,), (1381745825,), (1381745828,), (1381746484,), (1381746486,), (1381746488,), (1381746490,), (1381746492,), (1381746927,), (1381746930,), (1381746933,), (1381746936,), (1381746938,), (1381746940,), (1381747504,), (1381747506,), (1381747508,), (1381747510,), (1381747512,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26578365 , 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=26578342 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 (26578365) result : ((1381746119,), (1381746123,), (1381747095,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26578342) result : ((1381744970,), (1381744973,), (1381744976,), (1381744979,), (1381745504,), (1381745508,), (1381745511,), (1381745514,), (1381745816,), (1381745819,), (1381745822,), (1381745825,), (1381745828,), (1381746484,), (1381746486,), (1381746488,), (1381746490,), (1381746492,), (1381746927,), (1381746930,), (1381746933,), (1381746936,), (1381746938,), (1381746940,), (1381747504,), (1381747506,), (1381747508,), (1381747510,), (1381747512,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26578366 , 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=26578342 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 (26578366) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26578342) result : ((1381744970,), (1381744973,), (1381744976,), (1381744979,), (1381745504,), (1381745508,), (1381745511,), (1381745514,), (1381745816,), (1381745819,), (1381745822,), (1381745825,), (1381745828,), (1381746484,), (1381746486,), (1381746488,), (1381746490,), (1381746492,), (1381746927,), (1381746930,), (1381746933,), (1381746936,), (1381746938,), (1381746940,), (1381747504,), (1381747506,), (1381747508,), (1381747510,), (1381747512,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26578367 , 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=26578342 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 (26578367) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26578342) result : ((1381744970,), (1381744973,), (1381744976,), (1381744979,), (1381745504,), (1381745508,), (1381745511,), (1381745514,), (1381745816,), (1381745819,), (1381745822,), (1381745825,), (1381745828,), (1381746484,), (1381746486,), (1381746488,), (1381746490,), (1381746492,), (1381746927,), (1381746930,), (1381746933,), (1381746936,), (1381746938,), (1381746940,), (1381747504,), (1381747506,), (1381747508,), (1381747510,), (1381747512,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26578368 , 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=26578342 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 (26578368) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26578342) result : ((1381744970,), (1381744973,), (1381744976,), (1381744979,), (1381745504,), (1381745508,), (1381745511,), (1381745514,), (1381745816,), (1381745819,), (1381745822,), (1381745825,), (1381745828,), (1381746484,), (1381746486,), (1381746488,), (1381746490,), (1381746492,), (1381746927,), (1381746930,), (1381746933,), (1381746936,), (1381746938,), (1381746940,), (1381747504,), (1381747506,), (1381747508,), (1381747510,), (1381747512,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26578369 , 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=26578342 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 (26578369) result : ((1381747406,), (1381747408,), (1381747410,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26578342) result : ((1381744970,), (1381744973,), (1381744976,), (1381744979,), (1381745504,), (1381745508,), (1381745511,), (1381745514,), (1381745816,), (1381745819,), (1381745822,), (1381745825,), (1381745828,), (1381746484,), (1381746486,), (1381746488,), (1381746490,), (1381746492,), (1381746927,), (1381746930,), (1381746933,), (1381746936,), (1381746938,), (1381746940,), (1381747504,), (1381747506,), (1381747508,), (1381747510,), (1381747512,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") To do ! Use context local managing function ! SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26578342 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','papier','environnement','Carton_brun','plastique','metal','mal_croppe','flou','autre_refus','Carton_gris','kraft','Teint_Dans_La_Masse')) 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`=26578342 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','papier','environnement','Carton_brun','plastique','metal','mal_croppe','flou','autre_refus','Carton_gris','kraft','Teint_Dans_La_Masse')) AND mptpi.`min_score`=0.5 To do returned map {'kraft': {'main_port_id': 26578342, 'sub_port_id': 26578370, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17903266, 'last_updated_at': datetime.datetime(2025, 9, 5, 14, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 9, 5, 14, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 9, 5, 14, 3, 30)}, 'Teint_Dans_La_Masse': {'main_port_id': 26578342, 'sub_port_id': 26578371, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17903267, 'last_updated_at': datetime.datetime(2025, 9, 5, 14, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 9, 5, 14, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 9, 5, 14, 3, 30)}, 'metal': {'main_port_id': 26578342, 'sub_port_id': 26578372, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17903268, 'last_updated_at': datetime.datetime(2025, 9, 5, 14, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 9, 5, 14, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 9, 5, 14, 3, 30)}, 'autre_refus': {'main_port_id': 26578342, 'sub_port_id': 26578373, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17903269, 'last_updated_at': datetime.datetime(2025, 9, 5, 14, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 9, 5, 14, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 9, 5, 14, 3, 30)}, 'plastique': {'main_port_id': 26578342, 'sub_port_id': 26578374, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17903270, 'last_updated_at': datetime.datetime(2025, 9, 5, 14, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 9, 5, 14, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 9, 5, 14, 3, 30)}, 'cartonnette': {'main_port_id': 26578342, 'sub_port_id': 26578375, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17903271, 'last_updated_at': datetime.datetime(2025, 9, 5, 14, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 9, 5, 14, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 9, 5, 14, 3, 30)}, 'mal_croppe': {'main_port_id': 26578342, 'sub_port_id': 26578376, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17903272, 'last_updated_at': datetime.datetime(2025, 9, 5, 14, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 9, 5, 14, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 9, 5, 14, 3, 30)}, 'Carton_brun': {'main_port_id': 26578342, 'sub_port_id': 26578377, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17903273, 'last_updated_at': datetime.datetime(2025, 9, 5, 14, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 9, 5, 14, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 9, 5, 14, 3, 30)}, 'flou': {'main_port_id': 26578342, 'sub_port_id': 26578378, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17903274, 'last_updated_at': datetime.datetime(2025, 9, 5, 14, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 9, 5, 14, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 9, 5, 14, 3, 30)}, 'papier': {'main_port_id': 26578342, 'sub_port_id': 26578379, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17903275, 'last_updated_at': datetime.datetime(2025, 9, 5, 14, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 9, 5, 14, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 9, 5, 14, 3, 30)}, 'environnement': {'main_port_id': 26578342, 'sub_port_id': 26578380, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17903276, 'last_updated_at': datetime.datetime(2025, 9, 5, 14, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 9, 5, 14, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 9, 5, 14, 3, 30)}, 'Carton_gris': {'main_port_id': 26578342, 'sub_port_id': 26578381, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17903277, 'last_updated_at': datetime.datetime(2025, 9, 5, 14, 5, 1), 'last_updated_at_desc': datetime.datetime(2025, 9, 5, 14, 5, 1), 'last_updated_at_asc': datetime.datetime(2025, 9, 5, 14, 3, 30)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26578370,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26578358 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26578371,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26578359 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26578372,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26578360 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26578373,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26578361 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26578374,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26578362 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26578375,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26578363 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26578376,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26578364 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26578377,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26578365 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26578378,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26578366 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26578379,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26578367 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26578380,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26578368 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26578381,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26578369 lien utilise dans velours : https://marlene.fotonower.com/velours/26578370,26578371,26578372,26578373,26578374,26578375,26578376,26578377,26578378,26578379,26578380,26578381?tags=kraft,Teint_Dans_La_Masse,metal,autre_refus,plastique,cartonnette,mal_croppe,Carton_brun,flou,papier,environnement,Carton_gris After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([26578342]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1381747512, 1381747510, 1381747508, 1381747506, 1381747504, 1381746940, 1381746938, 1381746936, 1381746933, 1381746930, 1381746927] map_info['map_portfolio_photo'] : {26578342: [1381747512, 1381747510, 1381747508, 1381747506, 1381747504, 1381746940, 1381746938, 1381746936, 1381746933, 1381746930, 1381746927, 1381746492, 1381746490, 1381746488, 1381746486, 1381746484, 1381745828, 1381745825, 1381745822, 1381745819, 1381745816, 1381745514, 1381745511, 1381745508, 1381745504, 1381744979, 1381744976, 1381744973, 1381744970]} final : False mtd_id 4302 list_pids : [1381747512, 1381747510, 1381747508, 1381747506, 1381747504, 1381746940, 1381746938, 1381746936, 1381746933, 1381746930, 1381746927] Looping around the photos to save general results len do output : 1 /26578342. 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, '3670109') ('4302', '26578342', '1381747512', None, None, None, None, None, '3670109') ('4302', None, None, None, None, None, None, None, '3670109') ('4302', '26578342', '1381747510', None, None, None, None, None, '3670109') ('4302', None, None, None, None, None, None, None, '3670109') ('4302', '26578342', '1381747508', None, None, None, None, None, '3670109') ('4302', None, None, None, None, None, None, None, '3670109') ('4302', '26578342', '1381747506', None, None, None, None, None, '3670109') ('4302', None, None, None, None, None, None, None, '3670109') ('4302', '26578342', '1381747504', None, None, None, None, None, '3670109') ('4302', None, None, None, None, None, None, None, '3670109') ('4302', '26578342', '1381746940', None, None, None, None, None, '3670109') ('4302', None, None, None, None, None, None, None, '3670109') ('4302', '26578342', '1381746938', None, None, None, None, None, '3670109') ('4302', None, None, None, None, None, None, None, '3670109') ('4302', '26578342', '1381746936', None, None, None, None, None, '3670109') ('4302', None, None, None, None, None, None, None, '3670109') ('4302', '26578342', '1381746933', None, None, None, None, None, '3670109') ('4302', None, None, None, None, None, None, None, '3670109') ('4302', '26578342', '1381746930', None, None, None, None, None, '3670109') ('4302', None, None, None, None, None, None, None, '3670109') ('4302', '26578342', '1381746927', None, None, None, None, None, '3670109') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 12 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, '26578342', "{'kraft': 26578358, 'Teint_Dans_La_Masse': 26578359, 'metal': 26578360, 'autre_refus': 26578361, 'plastique': 26578362, 'cartonnette': 26578363, 'mal_croppe': 26578364, 'Carton_brun': 26578365, 'flou': 26578366, 'papier': 26578367, 'environnement': 26578368, 'Carton_gris': 26578369}", None, None, None, None, '3670109'), ('4302', '26578342', '1381747512', None, None, None, None, None, '3670109'), ('4302', '26578342', '1381747510', None, None, None, None, None, '3670109'), ('4302', '26578342', '1381747508', None, None, None, None, None, '3670109'), ('4302', '26578342', '1381747506', None, None, None, None, None, '3670109'), ('4302', '26578342', '1381747504', None, None, None, None, None, '3670109'), ('4302', '26578342', '1381746940', None, None, None, None, None, '3670109'), ('4302', '26578342', '1381746938', None, None, None, None, None, '3670109'), ('4302', '26578342', '1381746936', None, None, None, None, None, '3670109'), ('4302', '26578342', '1381746933', None, None, None, None, None, '3670109'), ('4302', '26578342', '1381746930', None, None, None, None, None, '3670109'), ('4302', '26578342', '1381746927', None, None, None, None, None, '3670109')] time used for this insertion : 0.013358354568481445 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.5759532451629639 time spend to save output : 0.01369166374206543 total time spend for step 1 : 1.5896449089050293 step2:final Fri Sep 5 14:07:01 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 (26578342) 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 26578342 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1381744979,1381744976,1381744973,1381744970,1381745514,1381745511,1381745508,1381745504,1381745828,1381745825,1381745822,1381745819,1381745816,1381746492,1381746490,1381746488,1381746486,1381746484,1381746940,1381746938,1381746936,1381746933,1381746930,1381746927,1381747512,1381747510,1381747508,1381747506,1381747504); 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([26578342]) Inside saveOutput : final : False verbose : True original output for save of step final : {1381747512: ('0.06605872505132636',), 1381747510: ('0.06605872505132636',), 1381747508: ('0.06605872505132636',), 1381747506: ('0.06605872505132636',), 1381747504: ('0.06605872505132636',), 1381746940: ('0.06605872505132636',), 1381746938: ('0.06605872505132636',), 1381746936: ('0.06605872505132636',), 1381746933: ('0.06605872505132636',), 1381746930: ('0.06605872505132636',), 1381746927: ('0.06605872505132636',)} new output for save of step final : {1381747512: ('0.06605872505132636',), 1381747510: ('0.06605872505132636',), 1381747508: ('0.06605872505132636',), 1381747506: ('0.06605872505132636',), 1381747504: ('0.06605872505132636',), 1381746940: ('0.06605872505132636',), 1381746938: ('0.06605872505132636',), 1381746936: ('0.06605872505132636',), 1381746933: ('0.06605872505132636',), 1381746930: ('0.06605872505132636',), 1381746927: ('0.06605872505132636',)} [1381747512, 1381747510, 1381747508, 1381747506, 1381747504, 1381746940, 1381746938, 1381746936, 1381746933, 1381746930, 1381746927] map_info['map_portfolio_photo'] : {26578342: [1381747512, 1381747510, 1381747508, 1381747506, 1381747504, 1381746940, 1381746938, 1381746936, 1381746933, 1381746930, 1381746927, 1381746492, 1381746490, 1381746488, 1381746486, 1381746484, 1381745828, 1381745825, 1381745822, 1381745819, 1381745816, 1381745514, 1381745511, 1381745508, 1381745504, 1381744979, 1381744976, 1381744973, 1381744970]} final : False mtd_id 4302 list_pids : [1381747512, 1381747510, 1381747508, 1381747506, 1381747504, 1381746940, 1381746938, 1381746936, 1381746933, 1381746930, 1381746927] Looping around the photos to save general results len do output : 11 /1381747512.Didn't retrieve data . /1381747510.Didn't retrieve data . /1381747508.Didn't retrieve data . /1381747506.Didn't retrieve data . /1381747504.Didn't retrieve data . /1381746940.Didn't retrieve data . /1381746938.Didn't retrieve data . /1381746936.Didn't retrieve data . /1381746933.Didn't retrieve data . /1381746930.Didn't retrieve data . /1381746927.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, '3670109') ('4302', '26578342', '1381747512', None, None, None, None, None, '3670109') ('4302', None, None, None, None, None, None, None, '3670109') ('4302', '26578342', '1381747510', None, None, None, None, None, '3670109') ('4302', None, None, None, None, None, None, None, '3670109') ('4302', '26578342', '1381747508', None, None, None, None, None, '3670109') ('4302', None, None, None, None, None, None, None, '3670109') ('4302', '26578342', '1381747506', None, None, None, None, None, '3670109') ('4302', None, None, None, None, None, None, None, '3670109') ('4302', '26578342', '1381747504', None, None, None, None, None, '3670109') ('4302', None, None, None, None, None, None, None, '3670109') ('4302', '26578342', '1381746940', None, None, None, None, None, '3670109') ('4302', None, None, None, None, None, None, None, '3670109') ('4302', '26578342', '1381746938', None, None, None, None, None, '3670109') ('4302', None, None, None, None, None, None, None, '3670109') ('4302', '26578342', '1381746936', None, None, None, None, None, '3670109') ('4302', None, None, None, None, None, None, None, '3670109') ('4302', '26578342', '1381746933', None, None, None, None, None, '3670109') ('4302', None, None, None, None, None, None, None, '3670109') ('4302', '26578342', '1381746930', None, None, None, None, None, '3670109') ('4302', None, None, None, None, None, None, None, '3670109') ('4302', '26578342', '1381746927', None, None, None, None, None, '3670109') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 33 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', '26578342', '1381747512', '0.06605872505132636', None, None, None, None, '3670109'), ('4302', '26578342', '1381747510', '0.06605872505132636', None, None, None, None, '3670109'), ('4302', '26578342', '1381747508', '0.06605872505132636', None, None, None, None, '3670109'), ('4302', '26578342', '1381747506', '0.06605872505132636', None, None, None, None, '3670109'), ('4302', '26578342', '1381747504', '0.06605872505132636', None, None, None, None, '3670109'), ('4302', '26578342', '1381746940', '0.06605872505132636', None, None, None, None, '3670109'), ('4302', '26578342', '1381746938', '0.06605872505132636', None, None, None, None, '3670109'), ('4302', '26578342', '1381746936', '0.06605872505132636', None, None, None, None, '3670109'), ('4302', '26578342', '1381746933', '0.06605872505132636', None, None, None, None, '3670109'), ('4302', '26578342', '1381746930', '0.06605872505132636', None, None, None, None, '3670109'), ('4302', '26578342', '1381746927', '0.06605872505132636', None, None, None, None, '3670109')] time used for this insertion : 0.01694345474243164 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06529784202575684 time spend to save output : 0.017805099487304688 total time spend for step 2 : 0.08310294151306152 step3:velours_tree Fri Sep 5 14:07:01 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 : {26578342: [{'kraft': 26578358, 'Teint_Dans_La_Masse': 26578359, 'metal': 26578360, 'autre_refus': 26578361, 'plastique': 26578362, 'cartonnette': 26578363, 'mal_croppe': 26578364, 'Carton_brun': 26578365, 'flou': 26578366, 'papier': 26578367, 'environnement': 26578368, 'Carton_gris': 26578369}]} input_args_next_step : {26578342: ()} output_args : {26578342: [{'kraft': 26578358, 'Teint_Dans_La_Masse': 26578359, 'metal': 26578360, 'autre_refus': 26578361, 'plastique': 26578362, 'cartonnette': 26578363, 'mal_croppe': 26578364, 'Carton_brun': 26578365, 'flou': 26578366, 'papier': 26578367, 'environnement': 26578368, 'Carton_gris': 26578369}]} args : 26578342 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 : ({'kraft': 26578358, 'Teint_Dans_La_Masse': 26578359, 'metal': 26578360, 'autre_refus': 26578361, 'plastique': 26578362, 'cartonnette': 26578363, 'mal_croppe': 26578364, 'Carton_brun': 26578365, 'flou': 26578366, 'papier': 26578367, 'environnement': 26578368, 'Carton_gris': 26578369},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (26578342) 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([26578342]) 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.5863475799560547 time spend to save output : 8.153915405273438e-05 total time spend for step 3 : 0.5864291191101074 step4:send_mail_cod Fri Sep 5 14:07:02 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1381747512: ('0.06605872505132636',), 1381747510: ('0.06605872505132636',), 1381747508: ('0.06605872505132636',), 1381747506: ('0.06605872505132636',), 1381747504: ('0.06605872505132636',), 1381746940: ('0.06605872505132636',), 1381746938: ('0.06605872505132636',), 1381746936: ('0.06605872505132636',), 1381746933: ('0.06605872505132636',), 1381746930: ('0.06605872505132636',), 1381746927: ('0.06605872505132636',)} input_args_next_step : {1381747512: ()} output_args : {1381747512: ('0.06605872505132636',), 1381747510: ('0.06605872505132636',), 1381747508: ('0.06605872505132636',), 1381747506: ('0.06605872505132636',), 1381747504: ('0.06605872505132636',), 1381746940: ('0.06605872505132636',), 1381746938: ('0.06605872505132636',), 1381746936: ('0.06605872505132636',), 1381746933: ('0.06605872505132636',), 1381746930: ('0.06605872505132636',), 1381746927: ('0.06605872505132636',)} args : 1381747512 depend.output_id : 0 input_args_next_step : {1381747512: ('0.06605872505132636',), 1381747510: ()} output_args : {1381747512: ('0.06605872505132636',), 1381747510: ('0.06605872505132636',), 1381747508: ('0.06605872505132636',), 1381747506: ('0.06605872505132636',), 1381747504: ('0.06605872505132636',), 1381746940: ('0.06605872505132636',), 1381746938: ('0.06605872505132636',), 1381746936: ('0.06605872505132636',), 1381746933: ('0.06605872505132636',), 1381746930: ('0.06605872505132636',), 1381746927: ('0.06605872505132636',)} args : 1381747510 depend.output_id : 0 input_args_next_step : {1381747512: ('0.06605872505132636',), 1381747510: ('0.06605872505132636',), 1381747508: ()} output_args : {1381747512: ('0.06605872505132636',), 1381747510: ('0.06605872505132636',), 1381747508: ('0.06605872505132636',), 1381747506: ('0.06605872505132636',), 1381747504: ('0.06605872505132636',), 1381746940: ('0.06605872505132636',), 1381746938: ('0.06605872505132636',), 1381746936: ('0.06605872505132636',), 1381746933: ('0.06605872505132636',), 1381746930: ('0.06605872505132636',), 1381746927: ('0.06605872505132636',)} args : 1381747508 depend.output_id : 0 input_args_next_step : {1381747512: ('0.06605872505132636',), 1381747510: ('0.06605872505132636',), 1381747508: ('0.06605872505132636',), 1381747506: ()} output_args : {1381747512: ('0.06605872505132636',), 1381747510: ('0.06605872505132636',), 1381747508: ('0.06605872505132636',), 1381747506: ('0.06605872505132636',), 1381747504: ('0.06605872505132636',), 1381746940: ('0.06605872505132636',), 1381746938: ('0.06605872505132636',), 1381746936: ('0.06605872505132636',), 1381746933: ('0.06605872505132636',), 1381746930: ('0.06605872505132636',), 1381746927: ('0.06605872505132636',)} args : 1381747506 depend.output_id : 0 input_args_next_step : {1381747512: ('0.06605872505132636',), 1381747510: ('0.06605872505132636',), 1381747508: ('0.06605872505132636',), 1381747506: ('0.06605872505132636',), 1381747504: ()} output_args : {1381747512: ('0.06605872505132636',), 1381747510: ('0.06605872505132636',), 1381747508: ('0.06605872505132636',), 1381747506: ('0.06605872505132636',), 1381747504: ('0.06605872505132636',), 1381746940: ('0.06605872505132636',), 1381746938: ('0.06605872505132636',), 1381746936: ('0.06605872505132636',), 1381746933: ('0.06605872505132636',), 1381746930: ('0.06605872505132636',), 1381746927: ('0.06605872505132636',)} args : 1381747504 depend.output_id : 0 input_args_next_step : {1381747512: ('0.06605872505132636',), 1381747510: ('0.06605872505132636',), 1381747508: ('0.06605872505132636',), 1381747506: ('0.06605872505132636',), 1381747504: ('0.06605872505132636',), 1381746940: ()} output_args : {1381747512: ('0.06605872505132636',), 1381747510: ('0.06605872505132636',), 1381747508: ('0.06605872505132636',), 1381747506: ('0.06605872505132636',), 1381747504: ('0.06605872505132636',), 1381746940: ('0.06605872505132636',), 1381746938: ('0.06605872505132636',), 1381746936: ('0.06605872505132636',), 1381746933: ('0.06605872505132636',), 1381746930: ('0.06605872505132636',), 1381746927: ('0.06605872505132636',)} args : 1381746940 depend.output_id : 0 input_args_next_step : {1381747512: ('0.06605872505132636',), 1381747510: ('0.06605872505132636',), 1381747508: ('0.06605872505132636',), 1381747506: ('0.06605872505132636',), 1381747504: ('0.06605872505132636',), 1381746940: ('0.06605872505132636',), 1381746938: ()} output_args : {1381747512: ('0.06605872505132636',), 1381747510: ('0.06605872505132636',), 1381747508: ('0.06605872505132636',), 1381747506: ('0.06605872505132636',), 1381747504: ('0.06605872505132636',), 1381746940: ('0.06605872505132636',), 1381746938: ('0.06605872505132636',), 1381746936: ('0.06605872505132636',), 1381746933: ('0.06605872505132636',), 1381746930: ('0.06605872505132636',), 1381746927: ('0.06605872505132636',)} args : 1381746938 depend.output_id : 0 input_args_next_step : {1381747512: ('0.06605872505132636',), 1381747510: ('0.06605872505132636',), 1381747508: ('0.06605872505132636',), 1381747506: ('0.06605872505132636',), 1381747504: ('0.06605872505132636',), 1381746940: ('0.06605872505132636',), 1381746938: ('0.06605872505132636',), 1381746936: ()} output_args : {1381747512: ('0.06605872505132636',), 1381747510: ('0.06605872505132636',), 1381747508: ('0.06605872505132636',), 1381747506: ('0.06605872505132636',), 1381747504: ('0.06605872505132636',), 1381746940: ('0.06605872505132636',), 1381746938: ('0.06605872505132636',), 1381746936: ('0.06605872505132636',), 1381746933: ('0.06605872505132636',), 1381746930: ('0.06605872505132636',), 1381746927: ('0.06605872505132636',)} args : 1381746936 depend.output_id : 0 input_args_next_step : {1381747512: ('0.06605872505132636',), 1381747510: ('0.06605872505132636',), 1381747508: ('0.06605872505132636',), 1381747506: ('0.06605872505132636',), 1381747504: ('0.06605872505132636',), 1381746940: ('0.06605872505132636',), 1381746938: ('0.06605872505132636',), 1381746936: ('0.06605872505132636',), 1381746933: ()} output_args : {1381747512: ('0.06605872505132636',), 1381747510: ('0.06605872505132636',), 1381747508: ('0.06605872505132636',), 1381747506: ('0.06605872505132636',), 1381747504: ('0.06605872505132636',), 1381746940: ('0.06605872505132636',), 1381746938: ('0.06605872505132636',), 1381746936: ('0.06605872505132636',), 1381746933: ('0.06605872505132636',), 1381746930: ('0.06605872505132636',), 1381746927: ('0.06605872505132636',)} args : 1381746933 depend.output_id : 0 input_args_next_step : {1381747512: ('0.06605872505132636',), 1381747510: ('0.06605872505132636',), 1381747508: ('0.06605872505132636',), 1381747506: ('0.06605872505132636',), 1381747504: ('0.06605872505132636',), 1381746940: ('0.06605872505132636',), 1381746938: ('0.06605872505132636',), 1381746936: ('0.06605872505132636',), 1381746933: ('0.06605872505132636',), 1381746930: ()} output_args : {1381747512: ('0.06605872505132636',), 1381747510: ('0.06605872505132636',), 1381747508: ('0.06605872505132636',), 1381747506: ('0.06605872505132636',), 1381747504: ('0.06605872505132636',), 1381746940: ('0.06605872505132636',), 1381746938: ('0.06605872505132636',), 1381746936: ('0.06605872505132636',), 1381746933: ('0.06605872505132636',), 1381746930: ('0.06605872505132636',), 1381746927: ('0.06605872505132636',)} args : 1381746930 depend.output_id : 0 input_args_next_step : {1381747512: ('0.06605872505132636',), 1381747510: ('0.06605872505132636',), 1381747508: ('0.06605872505132636',), 1381747506: ('0.06605872505132636',), 1381747504: ('0.06605872505132636',), 1381746940: ('0.06605872505132636',), 1381746938: ('0.06605872505132636',), 1381746936: ('0.06605872505132636',), 1381746933: ('0.06605872505132636',), 1381746930: ('0.06605872505132636',), 1381746927: ()} output_args : {1381747512: ('0.06605872505132636',), 1381747510: ('0.06605872505132636',), 1381747508: ('0.06605872505132636',), 1381747506: ('0.06605872505132636',), 1381747504: ('0.06605872505132636',), 1381746940: ('0.06605872505132636',), 1381746938: ('0.06605872505132636',), 1381746936: ('0.06605872505132636',), 1381746933: ('0.06605872505132636',), 1381746930: ('0.06605872505132636',), 1381746927: ('0.06605872505132636',)} args : 1381746927 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 : {26578342: [{'kraft': 26578358, 'Teint_Dans_La_Masse': 26578359, 'metal': 26578360, 'autre_refus': 26578361, 'plastique': 26578362, 'cartonnette': 26578363, 'mal_croppe': 26578364, 'Carton_brun': 26578365, 'flou': 26578366, 'papier': 26578367, 'environnement': 26578368, 'Carton_gris': 26578369}]} input_args_next_step : {1381747512: ('0.06605872505132636',), 1381747510: ('0.06605872505132636',), 1381747508: ('0.06605872505132636',), 1381747506: ('0.06605872505132636',), 1381747504: ('0.06605872505132636',), 1381746940: ('0.06605872505132636',), 1381746938: ('0.06605872505132636',), 1381746936: ('0.06605872505132636',), 1381746933: ('0.06605872505132636',), 1381746930: ('0.06605872505132636',), 1381746927: ('0.06605872505132636',), 26578342: ()} output_args : {26578342: [{'kraft': 26578358, 'Teint_Dans_La_Masse': 26578359, 'metal': 26578360, 'autre_refus': 26578361, 'plastique': 26578362, 'cartonnette': 26578363, 'mal_croppe': 26578364, 'Carton_brun': 26578365, 'flou': 26578366, 'papier': 26578367, 'environnement': 26578368, 'Carton_gris': 26578369}]} args : 26578342 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 :12, first value : ('0.06605872505132636',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (26578342) 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 ph WHERE photo_id IN (1381747512,1381747510,1381747508,1381747506,1381747504,1381746940,1381746938,1381746936,1381746933,1381746930,1381746927) Found this number of photos: 11 ##### Call download_photos : nb_thread : 5 begin to download photo : 1381746927 begin to download photo : 1381746936 begin to download photo : 1381747504 begin to download photo : 1381747510 download finish for photo 1381747504 begin to download photo : 1381747506 download finish for photo 1381747510 begin to download photo : 1381747512 download finish for photo 1381746936 begin to download photo : 1381746938 download finish for photo 1381746927 begin to download photo : 1381746930 download finish for photo 1381746938 begin to download photo : 1381746940 download finish for photo 1381747512 download finish for photo 1381746930 begin to download photo : 1381746933 download finish for photo 1381747506 begin to download photo : 1381747508 download finish for photo 1381747508 download finish for photo 1381746933 download finish for photo 1381746940 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 11 ; length of list_pids : 11 ; length of list_args : 11 results_Auto_P26578342_05-09-2025_14_07_02.pdf 26578358 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26578358 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1381747114: '1757073905_2647087_1381746486_cb56446165d62d7cf52919d36223f0e4_15899194_rle_crop_3946155969_0.png', 1381747117: '1757073905_2647087_1381746484_c3a44e282115aee5fd7a3516501a332f_69875124_rle_crop_3946155986_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/9bce495287c6b414e238c5906dba9418_14543428.png change filename to text .imagette265783581757074022/ imagette265783581757074022/1757073905_2647087_1381746484_c3a44e282115aee5fd7a3516501a332f_69875124_rle_crop_3946155986_0.png.png imagette265783581757074022/1757073905_2647087_1381746486_cb56446165d62d7cf52919d36223f0e4_15899194_rle_crop_3946155969_0.png.png imagette265783601757074022/ imagette265783611757074022/ imagette265783621757074022/ wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/9c81fe7121f56815208739bfbea02c63_17154529.png imagette265783581757074022 26578360 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26578360 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette265783601757074022 26578361 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26578361 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette265783611757074022 26578362 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26578362 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette265783621757074022 26578363 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26578363 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1381747082: '1757073905_2647087_1381746484_c3a44e282115aee5fd7a3516501a332f_69875124_rle_crop_3946155981_0.png', 1381747417: '1757073925_2647459_1381745819_790ce037fc439e1ba50a17536c6307d1_75484864_rle_crop_3946157595_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/686c8fe0fa5eb65562ce050189f0e43c_17185178.png change filename to text .imagette265783631757074022/ imagette265783631757074022/1757073925_2647459_1381745819_790ce037fc439e1ba50a17536c6307d1_75484864_rle_crop_3946157595_0.png.png imagette265783631757074022/1757073905_2647087_1381746484_c3a44e282115aee5fd7a3516501a332f_69875124_rle_crop_3946155981_0.png.png imagette265783641757074022/ imagette265783661757074022/ wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/2cdf6f2206dc67df35d429ee5f6663d8_91765778.png imagette265783631757074022 26578364 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26578364 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette265783641757074022 26578366 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26578366 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette265783661757074022 26578359 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26578359 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1381746098: '1757073787_2644474_1381745511_1c3177a4ba8dddc372957d9df1c40f3c_40637324_rle_crop_3946145024_0.png', 1381747390: '1757073925_2647459_1381745822_283e1b7ebd05041fc2aaddcd9073f841_16635811_rle_crop_3946157576_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/c009c01d0cdee075269854d4ee4bf0c3_62813307.png change filename to text .imagette265783591757074022/ imagette265783591757074022/1757073787_2644474_1381745511_1c3177a4ba8dddc372957d9df1c40f3c_40637324_rle_crop_3946145024_0.png.png imagette265783591757074022/1757073925_2647459_1381745822_283e1b7ebd05041fc2aaddcd9073f841_16635811_rle_crop_3946157576_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/2c8c5e97b4fb6f4bc51cfed6b3fdc83c_58088941.png imagette265783591757074022 26578365 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26578365 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1381746119: '1757073787_2644474_1381745511_1c3177a4ba8dddc372957d9df1c40f3c_40637324_rle_crop_3946145019_0.png', 1381746123: '1757073787_2644474_1381745504_a32036621ff09745e6a0cd175ef74c71_64299676_rle_crop_3946145039_0.png', 1381747095: '1757073905_2647087_1381746486_cb56446165d62d7cf52919d36223f0e4_15899194_rle_crop_3946155970_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/dacbe8d9a4c82df23a20a67863b28bc5_52620373.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/13ebcae18172aec41f36965a9e6a019c_35562883.png change filename to text .imagette265783651757074023/ imagette265783651757074023/1757073787_2644474_1381745511_1c3177a4ba8dddc372957d9df1c40f3c_40637324_rle_crop_3946145019_0.png.png imagette265783651757074023/1757073905_2647087_1381746486_cb56446165d62d7cf52919d36223f0e4_15899194_rle_crop_3946155970_0.png.png imagette265783651757074023/1757073787_2644474_1381745504_a32036621ff09745e6a0cd175ef74c71_64299676_rle_crop_3946145039_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/626607a794f943f2c16b1738f907173d_40603422.png imagette265783651757074023 26578369 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26578369 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1381747406: '1757073925_2647459_1381745819_790ce037fc439e1ba50a17536c6307d1_75484864_rle_crop_3946157588_0.png', 1381747408: '1757073925_2647459_1381745819_790ce037fc439e1ba50a17536c6307d1_75484864_rle_crop_3946157590_0.png', 1381747410: '1757073925_2647459_1381745816_ebbbb8d54f27c1085df855ba324d74fe_83872860_rle_crop_3946157607_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/0ba499ffc69340d2322dc23d987ecba4_82449817.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/6bf545b255c560cfedc1883050577c40_39138326.png change filename to text .imagette265783691757074023/ imagette265783691757074023/1757073925_2647459_1381745819_790ce037fc439e1ba50a17536c6307d1_75484864_rle_crop_3946157590_0.png.png imagette265783691757074023/1757073925_2647459_1381745819_790ce037fc439e1ba50a17536c6307d1_75484864_rle_crop_3946157588_0.png.png imagette265783691757074023/1757073925_2647459_1381745816_ebbbb8d54f27c1085df855ba324d74fe_83872860_rle_crop_3946157607_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/1cadcb5b84d350087109da25973dcbb2_85108471.png imagette265783691757074023 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=26578342 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/26578370,26578371,26578372,26578373,26578374,26578375,26578376,26578377,26578378,26578379,26578380,26578381?tags=kraft,Teint_Dans_La_Masse,metal,autre_refus,plastique,cartonnette,mal_croppe,Carton_brun,flou,papier,environnement,Carton_gris your option no_mail is active, we will not send the real mail to your client args[1381747512] : ('0.06605872505132636',) no score found for photo 1381747512 We are sending mail with results at report@fotonower.com args[1381747510] : ('0.06605872505132636',) no score found for photo 1381747510 We are sending mail with results at report@fotonower.com args[1381747508] : ('0.06605872505132636',) no score found for photo 1381747508 We are sending mail with results at report@fotonower.com args[1381747506] : ('0.06605872505132636',) no score found for photo 1381747506 We are sending mail with results at report@fotonower.com args[1381747504] : ('0.06605872505132636',) no score found for photo 1381747504 We are sending mail with results at report@fotonower.com args[1381746940] : ('0.06605872505132636',) no score found for photo 1381746940 We are sending mail with results at report@fotonower.com args[1381746938] : ('0.06605872505132636',) no score found for photo 1381746938 We are sending mail with results at report@fotonower.com args[1381746936] : ('0.06605872505132636',) no score found for photo 1381746936 We are sending mail with results at report@fotonower.com args[1381746933] : ('0.06605872505132636',) no score found for photo 1381746933 We are sending mail with results at report@fotonower.com args[1381746930] : ('0.06605872505132636',) no score found for photo 1381746930 We are sending mail with results at report@fotonower.com args[1381746927] : ('0.06605872505132636',) no score found for photo 1381746927 We are sending mail with results at report@fotonower.com refus_total : 0.06605872505132636 2022-04-13 10:29:59 0 SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26578342 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_P26578342_05-09-2025_14_07_02.pdf results_Auto_P26578342_05-09-2025_14_07_02.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26578342_05-09-2025_14_07_02.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','26578342','results_Auto_P26578342_05-09-2025_14_07_02.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26578342_05-09-2025_14_07_02.pdf','pdf','','0.15','0.06605872505132636') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([26578342]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1381747512, 1381747510, 1381747508, 1381747506, 1381747504, 1381746940, 1381746938, 1381746936, 1381746933, 1381746930, 1381746927] map_info['map_portfolio_photo'] : {26578342: [1381747512, 1381747510, 1381747508, 1381747506, 1381747504, 1381746940, 1381746938, 1381746936, 1381746933, 1381746930, 1381746927, 1381746492, 1381746490, 1381746488, 1381746486, 1381746484, 1381745828, 1381745825, 1381745822, 1381745819, 1381745816, 1381745514, 1381745511, 1381745508, 1381745504, 1381744979, 1381744976, 1381744973, 1381744970]} final : False mtd_id 4302 list_pids : [1381747512, 1381747510, 1381747508, 1381747506, 1381747504, 1381746940, 1381746938, 1381746936, 1381746933, 1381746930, 1381746927] 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, '3670109') ('4302', '26578342', '1381747512', None, None, None, None, None, '3670109') ('4302', None, None, None, None, None, None, None, '3670109') ('4302', '26578342', '1381747510', None, None, None, None, None, '3670109') ('4302', None, None, None, None, None, None, None, '3670109') ('4302', '26578342', '1381747508', None, None, None, None, None, '3670109') ('4302', None, None, None, None, None, None, None, '3670109') ('4302', '26578342', '1381747506', None, None, None, None, None, '3670109') ('4302', None, None, None, None, None, None, None, '3670109') ('4302', '26578342', '1381747504', None, None, None, None, None, '3670109') ('4302', None, None, None, None, None, None, None, '3670109') ('4302', '26578342', '1381746940', None, None, None, None, None, '3670109') ('4302', None, None, None, None, None, None, None, '3670109') ('4302', '26578342', '1381746938', None, None, None, None, None, '3670109') ('4302', None, None, None, None, None, None, None, '3670109') ('4302', '26578342', '1381746936', None, None, None, None, None, '3670109') ('4302', None, None, None, None, None, None, None, '3670109') ('4302', '26578342', '1381746933', None, None, None, None, None, '3670109') ('4302', None, None, None, None, None, None, None, '3670109') ('4302', '26578342', '1381746930', None, None, None, None, None, '3670109') ('4302', None, None, None, None, None, None, None, '3670109') ('4302', '26578342', '1381746927', None, None, None, None, None, '3670109') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '26578342', '1381747512', None, None, None, None, None, '3670109'), ('4302', '26578342', '1381747510', None, None, None, None, None, '3670109'), ('4302', '26578342', '1381747508', None, None, None, None, None, '3670109'), ('4302', '26578342', '1381747506', None, None, None, None, None, '3670109'), ('4302', '26578342', '1381747504', None, None, None, None, None, '3670109'), ('4302', '26578342', '1381746940', None, None, None, None, None, '3670109'), ('4302', '26578342', '1381746938', None, None, None, None, None, '3670109'), ('4302', '26578342', '1381746936', None, None, None, None, None, '3670109'), ('4302', '26578342', '1381746933', None, None, None, None, None, '3670109'), ('4302', '26578342', '1381746930', None, None, None, None, None, '3670109'), ('4302', '26578342', '1381746927', None, None, None, None, None, '3670109')] time used for this insertion : 0.013013362884521484 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.4053428173065186 time spend to save output : 0.013241291046142578 total time spend for step 4 : 2.418584108352661 step5:split_time_score Fri Sep 5 14:07:04 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['26578342'] 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 : [('26578342',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (26578342) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1381747510: {'path': 'temp/1757074022_338747_1381747510_57fa78a0893a0a931d28fb66d6f91c4c_33401635.jpg', 'extension': 'jpg'}, 1381747512: {'path': 'temp/1757074022_338747_1381747512_a811aad56e36cf9b357c6a4c0a050924_18488518.jpg', 'extension': 'jpg'}, 1381747504: {'path': 'temp/1757074022_338747_1381747504_8ea5be1136e3fba92ace2c5977ec817e_79330254.jpg', 'extension': 'jpg'}, 1381747506: {'path': 'temp/1757074022_338747_1381747506_93ff19b97fc8fbb936f66ac0c4378236_34273226.jpg', 'extension': 'jpg'}, 1381747508: {'path': 'temp/1757074022_338747_1381747508_43595ef5d008d3c416990db70e9be7e5_86065152.jpg', 'extension': 'jpg'}, 1381746927: {'path': 'temp/1757074022_338747_1381746927_b6e06134adb0040e637823cc81e06f77_8678885.jpg', 'extension': 'jpg'}, 1381746930: {'path': 'temp/1757074022_338747_1381746930_ee0e28928d6f182e9e55a9c2a47b2262_22969688.jpg', 'extension': 'jpg'}, 1381746933: {'path': 'temp/1757074022_338747_1381746933_fac35f148c2e73a99598fc69a7a20039_40387564.jpg', 'extension': 'jpg'}, 1381746936: {'path': 'temp/1757074022_338747_1381746936_f8995a4d4a5a4952c748c5f56d321979_62796398.jpg', 'extension': 'jpg'}, 1381746938: {'path': 'temp/1757074022_338747_1381746938_b0bdb04768681f889dc70f77316bad1b_17537386.jpg', 'extension': 'jpg'}, 1381746940: {'path': 'temp/1757074022_338747_1381746940_a8826af0df2f9f5e0dfdfd7ef79dc24f_69985573.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 = 26578342; (('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 ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 26578342 group by h (('14', 29),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26578342 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 (26578342) 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 (26578342) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 05092025 26578342 Nombre de photos uploadées : 29 / 23040 (0%) 05092025 26578342 Nombre de photos taguées (types de déchets): 0 / 29 (0%) 05092025 26578342 Nombre de photos taguées (volume) : 0 / 29 (0%) [{'photo_id': 1381744979, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/45284eb964e1a10947a2f9c7f11a1b85_473793.jpg', 'username': None, 'uploaded_at': 1757073672, 'text': 'image_05092025_14_00_14_10139.jpg'}, {'photo_id': 1381744976, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/e6b3309044b534eee6044d4dd074a65a_5066974.jpg', 'username': None, 'uploaded_at': 1757073672, 'text': 'image_05092025_14_00_24_10137.jpg'}, {'photo_id': 1381744973, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/e14e768ae8b5e29a99b3e83b05dcf53f_17757338.jpg', 'username': None, 'uploaded_at': 1757073672, 'text': 'image_05092025_14_00_33_9131.jpg'}, {'photo_id': 1381744970, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/8417a4cbf1cb3b27f59aeba853f4c4e4_35293903.jpg', 'username': None, 'uploaded_at': 1757073672, 'text': 'image_05092025_14_00_43_10141.jpg'}] 0 [] elapsed_time : load_data_split_time_score 1.6689300537109375e-06 elapsed_time : order_list_meta_photo_and_scores 4.76837158203125e-06 ????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0012934207916259766 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 26578342, '2025-09-05' ) 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-09-05' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2234129,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.21567392349243164 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= 2234129 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2234129, 'dashboard_run_id': 2245639, 'mtr_portfolio_id': 26552286, 'dashboard_result_id': 14805374, '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_P26552286_05-09-2025_06_19_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26552297, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26552298, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26552299, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26552300, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26552301, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26552302, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26552303, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26552304, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26552305, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26552306, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26552307, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26552308, 'pht': 3726}}"}, {'dashboat_entry_day': 2234129, 'dashboard_run_id': 2245639, 'mtr_portfolio_id': 26552950, 'dashboard_result_id': 14805375, '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_P26552950_05-09-2025_06_20_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26552954, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26552955, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26552956, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26552957, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26552958, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26552959, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26552960, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26552961, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26552962, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26552963, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26552964, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26552965, 'pht': 3726}}"}, {'dashboat_entry_day': 2234129, 'dashboard_run_id': 2245639, 'mtr_portfolio_id': 26553483, 'dashboard_result_id': 14805376, '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_P26553483_05-09-2025_06_20_32.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26553490, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26553491, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26553492, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26553493, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26553494, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26553495, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26553496, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26553497, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26553498, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26553499, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26553500, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26553501, 'pht': 3726}}"}, {'dashboat_entry_day': 2234129, 'dashboard_run_id': 2245639, 'mtr_portfolio_id': 26553954, 'dashboard_result_id': 14805377, '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_P26553954_05-09-2025_06_20_40.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26553963, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26553964, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26553965, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26553966, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26553967, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26553968, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26553969, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26553970, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26553971, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26553972, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26553973, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26553974, 'pht': 3726}}"}, {'dashboat_entry_day': 2234129, 'dashboard_run_id': 2245639, 'mtr_portfolio_id': 26555558, 'dashboard_result_id': 14805378, '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_P26555558_05-09-2025_06_21_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26555617, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26555618, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26555619, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26555620, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26555621, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26555622, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26555623, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26555624, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26555625, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26555626, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26555627, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26555628, 'pht': 3726}}"}, {'dashboat_entry_day': 2234129, 'dashboard_run_id': 2245639, 'mtr_portfolio_id': 26555560, 'dashboard_result_id': 14805379, '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_P26555560_05-09-2025_06_22_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26555564, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26555565, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26555566, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26555567, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26555568, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26555569, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26555570, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26555571, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26555572, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26555573, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26555574, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26555575, 'pht': 3726}}"}, {'dashboat_entry_day': 2234129, 'dashboard_run_id': 2245639, 'mtr_portfolio_id': 26556761, 'dashboard_result_id': 14805380, '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_P26556761_05-09-2025_06_22_32.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26556766, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26556767, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26556768, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26556769, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26556770, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26556771, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26556772, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26556773, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26556774, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26556775, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26556776, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26556777, 'pht': 3726}}"}, {'dashboat_entry_day': 2234129, 'dashboard_run_id': 2245639, 'mtr_portfolio_id': 26556619, 'dashboard_result_id': 14805381, '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_P26556619_05-09-2025_06_23_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26556649, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26556650, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26556651, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26556652, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26556653, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26556654, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26556655, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26556656, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26556657, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26556658, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26556659, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26556660, 'pht': 3726}}"}, {'dashboat_entry_day': 2234129, 'dashboard_run_id': 2245639, 'mtr_portfolio_id': 26556621, 'dashboard_result_id': 14805382, '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_P26556621_05-09-2025_06_24_03.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26556625, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26556626, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26556627, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26556628, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26556629, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26556630, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26556631, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26556632, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26556633, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26556634, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26556635, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26556636, 'pht': 3726}}"}, {'dashboat_entry_day': 2234129, 'dashboard_run_id': 2245639, 'mtr_portfolio_id': 26557110, 'dashboard_result_id': 14805383, '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_P26557110_05-09-2025_06_24_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26557118, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26557119, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26557120, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26557121, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26557122, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26557123, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26557124, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26557125, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26557126, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26557127, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26557128, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26557129, 'pht': 3726}}"}, {'dashboat_entry_day': 2234129, 'dashboard_run_id': 2245639, 'mtr_portfolio_id': 26557601, 'dashboard_result_id': 14805384, '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_P26557601_05-09-2025_06_25_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26557604, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26557605, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26557606, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26557607, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26557608, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26557609, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26557610, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26557611, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26557612, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26557613, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26557614, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26557615, 'pht': 3726}}"}, {'dashboat_entry_day': 2234129, 'dashboard_run_id': 2245639, 'mtr_portfolio_id': 26557985, 'dashboard_result_id': 14805385, '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_P26557985_05-09-2025_06_25_41.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26557989, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26557990, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26557991, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26557992, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26557993, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26557994, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26557995, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26557996, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26557997, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26557998, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26557999, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26558000, 'pht': 3726}}"}, {'dashboat_entry_day': 2234129, 'dashboard_run_id': 2245639, 'mtr_portfolio_id': 26558350, 'dashboard_result_id': 14805386, '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_P26558350_05-09-2025_06_26_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26558357, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26558358, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26558359, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26558360, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26558361, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26558362, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26558363, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26558364, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26558365, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26558366, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26558367, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26558368, 'pht': 3726}}"}, {'dashboat_entry_day': 2234129, 'dashboard_run_id': 2245639, 'mtr_portfolio_id': 26558751, 'dashboard_result_id': 14805387, '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_P26558751_05-09-2025_06_26_33.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26558760, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26558761, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26558762, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26558763, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26558764, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26558765, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26558766, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26558767, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26558768, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26558769, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26558770, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26558771, 'pht': 3726}}"}, {'dashboat_entry_day': 2234129, 'dashboard_run_id': 2245639, 'mtr_portfolio_id': 26559193, 'dashboard_result_id': 14805388, '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_P26559193_05-09-2025_06_27_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26559218, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26559219, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26559220, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26559221, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26559222, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26559223, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26559224, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26559225, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26559226, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26559228, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26559229, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26559230, 'pht': 3726}}"}, {'dashboat_entry_day': 2234129, 'dashboard_run_id': 2245639, 'mtr_portfolio_id': 26561250, 'dashboard_result_id': 14805389, '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_P26561250_05-09-2025_05_49_30.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26561254, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26561255, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26561256, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26561257, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26561258, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26561259, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26561260, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26561261, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26561262, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26561263, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26561264, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26561265, 'pht': 3726}}"}, {'dashboat_entry_day': 2234129, 'dashboard_run_id': 2245639, 'mtr_portfolio_id': 26561102, 'dashboard_result_id': 14805390, '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_P26561102_05-09-2025_05_47_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26561130, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26561131, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26561132, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26561133, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26561134, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26561135, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26561136, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26561137, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26561138, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26561139, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26561140, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26561141, 'pht': 3726}}"}, {'dashboat_entry_day': 2234129, 'dashboard_run_id': 2245639, 'mtr_portfolio_id': 26561104, 'dashboard_result_id': 14805391, '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_P26561104_05-09-2025_05_48_02.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26561178, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26561179, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26561180, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26561181, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26561182, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26561183, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26561184, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26561185, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26561186, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26561187, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26561188, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26561189, 'pht': 3726}}"}, {'dashboat_entry_day': 2234129, 'dashboard_run_id': 2245639, 'mtr_portfolio_id': 26561105, 'dashboard_result_id': 14805392, '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_P26561105_05-09-2025_06_03_31.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26561106, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26561107, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26561108, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26561109, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26561110, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26561111, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26561112, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26561113, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26561114, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26561115, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26561116, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26561117, 'pht': 3726}}"}, {'dashboat_entry_day': 2234129, 'dashboard_run_id': 2245639, 'mtr_portfolio_id': 26561584, 'dashboard_result_id': 14805393, '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_P26561584_05-09-2025_06_17_32.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26561596, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26561597, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26561598, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26561599, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26561600, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26561601, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26561602, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26561603, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26561604, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26561605, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26561606, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26561607, 'pht': 3726}}"}, {'dashboat_entry_day': 2234129, 'dashboard_run_id': 2245639, 'mtr_portfolio_id': 26562090, 'dashboard_result_id': 14805394, '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_P26562090_05-09-2025_06_32_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26562131, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26562132, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26562133, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26562134, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26562135, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26562136, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26562137, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26562138, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26562139, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26562140, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26562141, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26562142, 'pht': 3726}}"}, {'dashboat_entry_day': 2234129, 'dashboard_run_id': 2245639, 'mtr_portfolio_id': 26562602, 'dashboard_result_id': 14805395, '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_P26562602_05-09-2025_06_47_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26562613, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26562614, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26562615, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26562616, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26562617, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26562618, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26562619, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26562620, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26562621, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26562622, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26562623, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26562624, 'pht': 3726}}"}, {'dashboat_entry_day': 2234129, 'dashboard_run_id': 2245639, 'mtr_portfolio_id': 26562998, 'dashboard_result_id': 14805396, '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_P26562998_05-09-2025_07_03_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26563023, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26563024, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26563025, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26563026, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26563027, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26563028, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26563029, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26563030, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26563031, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26563032, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26563033, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26563034, 'pht': 3726}}"}, {'dashboat_entry_day': 2234129, 'dashboard_run_id': 2245639, 'mtr_portfolio_id': 26563505, 'dashboard_result_id': 14805397, '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_P26563505_05-09-2025_07_17_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26563534, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26563535, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26563536, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26563537, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26563538, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26563539, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26563540, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26563541, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26563542, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26563544, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26563545, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26563546, 'pht': 3726}}"}, {'dashboat_entry_day': 2234129, 'dashboard_run_id': 2245639, 'mtr_portfolio_id': 26564166, 'dashboard_result_id': 14805398, '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_P26564166_05-09-2025_07_33_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26564191, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26564192, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26564193, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26564194, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26564195, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26564196, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26564197, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26564198, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26564199, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26564200, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26564201, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26564202, 'pht': 3726}}"}, {'dashboat_entry_day': 2234129, 'dashboard_run_id': 2245639, 'mtr_portfolio_id': 26565028, 'dashboard_result_id': 14805399, '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_P26565028_05-09-2025_07_47_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26565038, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26565039, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26565040, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26565041, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26565042, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26565043, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26565044, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26565045, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26565046, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26565047, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26565048, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26565049, 'pht': 3726}}"}, {'dashboat_entry_day': 2234129, 'dashboard_run_id': 2245639, 'mtr_portfolio_id': 26565501, 'dashboard_result_id': 14805400, '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_P26565501_05-09-2025_09_03_28.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26565515, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26565516, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26565517, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26565518, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26565520, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26565521, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26565522, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26565523, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26565524, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26565525, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26565526, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26565527, 'pht': 3726}}"}, {'dashboat_entry_day': 2234129, 'dashboard_run_id': 2245639, 'mtr_portfolio_id': 26568769, 'dashboard_result_id': 14805401, '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_P26568769_05-09-2025_09_04_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26569041, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26569042, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26569043, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26569044, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26569046, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26569047, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26569048, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26569049, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26569050, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26569051, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26569052, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26569053, 'pht': 3726}}"}, {'dashboat_entry_day': 2234129, 'dashboard_run_id': 2245639, 'mtr_portfolio_id': 26568911, 'dashboard_result_id': 14805402, '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_P26568911_05-09-2025_09_03_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26568918, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26568919, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26568920, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26568921, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26568922, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26568923, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26568924, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26568925, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26568926, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26568927, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26568928, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26568929, 'pht': 3726}}"}, {'dashboat_entry_day': 2234129, 'dashboard_run_id': 2245639, 'mtr_portfolio_id': 26568775, 'dashboard_result_id': 14805403, '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_P26568775_05-09-2025_09_01_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26568815, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26568816, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26568817, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26568818, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26568819, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26568820, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26568821, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26568822, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26568823, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26568824, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26568825, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26568826, 'pht': 3726}}"}, {'dashboat_entry_day': 2234129, 'dashboard_run_id': 2245639, 'mtr_portfolio_id': 26568779, 'dashboard_result_id': 14805404, '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_P26568779_05-09-2025_09_31_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26568785, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26568786, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26568787, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26568788, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26568789, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26568790, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26568791, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26568792, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26568793, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26568794, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26568795, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26568796, 'pht': 3726}}"}, {'dashboat_entry_day': 2234129, 'dashboard_run_id': 2245639, 'mtr_portfolio_id': 26569896, 'dashboard_result_id': 14805405, '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_P26569896_05-09-2025_10_02_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26569941, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26569942, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26569943, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26569944, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26569945, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26569946, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26569947, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26569948, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26569949, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26569950, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26569951, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26569952, 'pht': 3726}}"}, {'dashboat_entry_day': 2234129, 'dashboard_run_id': 2245639, 'mtr_portfolio_id': 26570443, 'dashboard_result_id': 14805406, '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_P26570443_05-09-2025_10_19_29.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26570497, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26570498, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26570499, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26570500, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26570501, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26570502, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26570503, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26570504, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26570505, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26570506, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26570507, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26570508, 'pht': 3726}}"}, {'dashboat_entry_day': 2234129, 'dashboard_run_id': 2245639, 'mtr_portfolio_id': 26571192, 'dashboard_result_id': 14805407, '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_P26571192_05-09-2025_10_33_30.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26571196, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26571197, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26571198, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26571199, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26571200, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26571201, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26571202, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26571203, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26571204, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26571205, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26571206, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26571207, 'pht': 3726}}"}, {'dashboat_entry_day': 2234129, 'dashboard_run_id': 2245639, 'mtr_portfolio_id': 26571940, 'dashboard_result_id': 14805408, '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_P26571940_05-09-2025_10_47_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26571973, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26571974, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26571975, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26571976, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26571977, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26571978, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26571979, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26571980, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26571981, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26571982, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26571983, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26571984, 'pht': 3726}}"}, {'dashboat_entry_day': 2234129, 'dashboard_run_id': 2245639, 'mtr_portfolio_id': 26572507, 'dashboard_result_id': 14805409, '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_P26572507_05-09-2025_11_03_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26572517, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26572518, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26572519, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26572520, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26572521, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26572522, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26572523, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26572524, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26572525, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26572526, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26572527, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26572528, 'pht': 3726}}"}, {'dashboat_entry_day': 2234129, 'dashboard_run_id': 2245639, 'mtr_portfolio_id': 26573166, 'dashboard_result_id': 14805410, '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_P26573166_05-09-2025_11_16_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26573191, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26573192, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26573193, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26573194, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26573195, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26573196, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26573197, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26573198, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26573199, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26573200, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26573201, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26573202, 'pht': 3726}}"}, {'dashboat_entry_day': 2234129, 'dashboard_run_id': 2245639, 'mtr_portfolio_id': 26573687, 'dashboard_result_id': 14805411, '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_P26573687_05-09-2025_11_32_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26573704, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26573705, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26573706, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26573707, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26573709, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26573710, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26573711, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26573712, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26573713, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26573714, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26573715, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26573716, 'pht': 3726}}"}, {'dashboat_entry_day': 2234129, 'dashboard_run_id': 2245639, 'mtr_portfolio_id': 26573993, 'dashboard_result_id': 14805412, '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_P26573993_05-09-2025_11_46_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26574001, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26574002, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26574003, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26574004, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26574005, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26574006, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26574007, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26574008, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26574009, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26574010, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26574011, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26574012, 'pht': 3726}}"}, {'dashboat_entry_day': 2234129, 'dashboard_run_id': 2245639, 'mtr_portfolio_id': 26574368, 'dashboard_result_id': 14805413, '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_P26574368_05-09-2025_12_02_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26574386, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26574387, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26574388, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26574389, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26574390, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26574391, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26574392, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26574393, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26574394, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26574395, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26574396, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26574397, 'pht': 3726}}"}, {'dashboat_entry_day': 2234129, 'dashboard_run_id': 2245639, 'mtr_portfolio_id': 26577767, 'dashboard_result_id': 14805414, '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_P26577767_05-09-2025_13_46_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26577768, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26577769, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26577770, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26577771, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26577772, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26577773, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26577774, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26577775, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26577776, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26577777, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26577778, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26577779, 'pht': 3726}}"}, {'dashboat_entry_day': 2234129, 'dashboard_run_id': 2245639, 'mtr_portfolio_id': 26577916, 'dashboard_result_id': 14805415, '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_P26577916_05-09-2025_14_02_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26577919, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26577920, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26577921, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26577922, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26577923, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26577924, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26577925, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26577926, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26577927, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26577928, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26577929, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26577930, 'pht': 3726}}"}, {'dashboat_entry_day': 2234129, 'dashboard_run_id': 2245639, 'mtr_portfolio_id': 26578342, 'dashboard_result_id': 14805416, '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_P26578342_05-09-2025_14_05_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26578358, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26578359, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26578360, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26578361, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26578362, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26578363, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26578364, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26578365, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26578366, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26578367, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26578368, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26578369, '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 = 26552286 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': 3667752, 'mtr_portfolio_id': 26552286, 'created_at': datetime.datetime(2025, 9, 5, 6, 19, 28), 'result': '0.04964269241984014', 'result_long': None, 'result_double': None}] Qualite : 0.04964269241984014 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26552286 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26552286_05-09-2025_06_19_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26552286 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_P26552286_05-09-2025_06_19_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26552297, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26552298, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26552299, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26552300, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26552301, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26552302, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26552303, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26552304, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26552305, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26552306, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26552307, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26552308, 'pht': 3726}}" where mtr_portfolio_id = 26552286 and dashboard_run_id = 2245639 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`=26552286 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14805374, 0.04964269241984014, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26552286_05-09-2025_06_19_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26552297, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26552298, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26552299, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26552300, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26552301, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26552302, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26552303, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26552304, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26552305, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26552306, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26552307, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26552308, '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 = 26552950 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': 3667753, 'mtr_portfolio_id': 26552950, 'created_at': datetime.datetime(2025, 9, 5, 6, 19, 58), 'result': '0.052087121895723426', 'result_long': None, 'result_double': None}] Qualite : 0.052087121895723426 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26552950 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26552950_05-09-2025_06_20_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26552950 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_P26552950_05-09-2025_06_20_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26552954, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26552955, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26552956, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26552957, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26552958, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26552959, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26552960, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26552961, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26552962, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26552963, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26552964, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26552965, 'pht': 3726}}" where mtr_portfolio_id = 26552950 and dashboard_run_id = 2245639 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`=26552950 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14805375, 0.052087121895723426, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26552950_05-09-2025_06_20_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26552954, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26552955, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26552956, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26552957, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26552958, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26552959, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26552960, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26552961, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26552962, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26552963, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26552964, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26552965, '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 = 26553483 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': 3667754, 'mtr_portfolio_id': 26553483, 'created_at': datetime.datetime(2025, 9, 5, 6, 20, 30), 'result': '0.04427018202150872', 'result_long': None, 'result_double': None}] Qualite : 0.04427018202150872 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26553483 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26553483_05-09-2025_06_20_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26553483 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_P26553483_05-09-2025_06_20_32.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26553490, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26553491, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26553492, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26553493, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26553494, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26553495, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26553496, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26553497, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26553498, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26553499, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26553500, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26553501, 'pht': 3726}}" where mtr_portfolio_id = 26553483 and dashboard_run_id = 2245639 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`=26553483 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14805376, 0.04427018202150872, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26553483_05-09-2025_06_20_32.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26553490, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26553491, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26553492, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26553493, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26553494, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26553495, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26553496, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26553497, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26553498, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26553499, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26553500, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26553501, '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 = 26553954 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': 3667755, 'mtr_portfolio_id': 26553954, 'created_at': datetime.datetime(2025, 9, 5, 6, 20, 38), 'result': '0.038686864708222954', 'result_long': None, 'result_double': None}] Qualite : 0.038686864708222954 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26553954 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26553954_05-09-2025_06_20_40.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26553954 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_P26553954_05-09-2025_06_20_40.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26553963, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26553964, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26553965, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26553966, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26553967, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26553968, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26553969, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26553970, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26553971, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26553972, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26553973, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26553974, 'pht': 3726}}" where mtr_portfolio_id = 26553954 and dashboard_run_id = 2245639 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`=26553954 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14805377, 0.038686864708222954, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26553954_05-09-2025_06_20_40.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26553963, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26553964, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26553965, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26553966, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26553967, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26553968, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26553969, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26553970, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26553971, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26553972, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26553973, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26553974, '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 = 26555558 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': 3667756, 'mtr_portfolio_id': 26555558, 'created_at': datetime.datetime(2025, 9, 5, 6, 21, 30), 'result': '0.05693800466618908', 'result_long': None, 'result_double': None}] Qualite : 0.05693800466618908 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26555558 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26555558_05-09-2025_06_21_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26555558 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_P26555558_05-09-2025_06_21_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26555617, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26555618, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26555619, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26555620, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26555621, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26555622, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26555623, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26555624, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26555625, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26555626, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26555627, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26555628, 'pht': 3726}}" where mtr_portfolio_id = 26555558 and dashboard_run_id = 2245639 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`=26555558 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14805378, 0.05693800466618908, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26555558_05-09-2025_06_21_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26555617, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26555618, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26555619, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26555620, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26555621, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26555622, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26555623, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26555624, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26555625, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26555626, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26555627, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26555628, '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 = 26555560 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': 3667757, 'mtr_portfolio_id': 26555560, 'created_at': datetime.datetime(2025, 9, 5, 6, 21, 59), 'result': '0.043526961330972676', 'result_long': None, 'result_double': None}] Qualite : 0.043526961330972676 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26555560 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26555560_05-09-2025_06_22_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26555560 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_P26555560_05-09-2025_06_22_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26555564, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26555565, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26555566, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26555567, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26555568, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26555569, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26555570, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26555571, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26555572, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26555573, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26555574, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26555575, 'pht': 3726}}" where mtr_portfolio_id = 26555560 and dashboard_run_id = 2245639 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`=26555560 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14805379, 0.043526961330972676, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26555560_05-09-2025_06_22_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26555564, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26555565, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26555566, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26555567, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26555568, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26555569, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26555570, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26555571, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26555572, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26555573, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26555574, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26555575, '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 = 26556761 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': 3667758, 'mtr_portfolio_id': 26556761, 'created_at': datetime.datetime(2025, 9, 5, 6, 22, 30), 'result': '0.050995299214166845', 'result_long': None, 'result_double': None}] Qualite : 0.050995299214166845 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26556761 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26556761_05-09-2025_06_22_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26556761 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_P26556761_05-09-2025_06_22_32.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26556766, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26556767, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26556768, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26556769, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26556770, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26556771, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26556772, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26556773, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26556774, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26556775, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26556776, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26556777, 'pht': 3726}}" where mtr_portfolio_id = 26556761 and dashboard_run_id = 2245639 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`=26556761 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14805380, 0.050995299214166845, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26556761_05-09-2025_06_22_32.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26556766, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26556767, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26556768, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26556769, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26556770, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26556771, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26556772, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26556773, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26556774, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26556775, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26556776, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26556777, '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 = 26556619 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': 3667759, 'mtr_portfolio_id': 26556619, 'created_at': datetime.datetime(2025, 9, 5, 6, 23, 30), 'result': '0.08033527269443783', 'result_long': None, 'result_double': None}] Qualite : 0.08033527269443783 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26556619 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26556619_05-09-2025_06_23_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26556619 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_P26556619_05-09-2025_06_23_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26556649, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26556650, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26556651, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26556652, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26556653, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26556654, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26556655, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26556656, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26556657, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26556658, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26556659, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26556660, 'pht': 3726}}" where mtr_portfolio_id = 26556619 and dashboard_run_id = 2245639 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`=26556619 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14805381, 0.08033527269443783, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26556619_05-09-2025_06_23_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26556649, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26556650, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26556651, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26556652, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26556653, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26556654, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26556655, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26556656, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26556657, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26556658, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26556659, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26556660, '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 = 26556621 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': 3667760, 'mtr_portfolio_id': 26556621, 'created_at': datetime.datetime(2025, 9, 5, 6, 24), 'result': '0.060162488673695266', 'result_long': None, 'result_double': None}] Qualite : 0.060162488673695266 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26556621 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26556621_05-09-2025_06_24_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26556621 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_P26556621_05-09-2025_06_24_03.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26556625, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26556626, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26556627, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26556628, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26556629, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26556630, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26556631, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26556632, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26556633, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26556634, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26556635, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26556636, 'pht': 3726}}" where mtr_portfolio_id = 26556621 and dashboard_run_id = 2245639 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`=26556621 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14805382, 0.060162488673695266, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26556621_05-09-2025_06_24_03.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26556625, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26556626, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26556627, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26556628, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26556629, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26556630, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26556631, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26556632, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26556633, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26556634, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26556635, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26556636, '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 = 26557110 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': 3667761, 'mtr_portfolio_id': 26557110, 'created_at': datetime.datetime(2025, 9, 5, 6, 24, 28), 'result': '0.052274481522901775', 'result_long': None, 'result_double': None}] Qualite : 0.052274481522901775 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26557110 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26557110_05-09-2025_06_24_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26557110 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_P26557110_05-09-2025_06_24_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26557118, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26557119, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26557120, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26557121, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26557122, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26557123, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26557124, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26557125, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26557126, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26557127, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26557128, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26557129, 'pht': 3726}}" where mtr_portfolio_id = 26557110 and dashboard_run_id = 2245639 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`=26557110 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14805383, 0.052274481522901775, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26557110_05-09-2025_06_24_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26557118, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26557119, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26557120, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26557121, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26557122, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26557123, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26557124, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26557125, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26557126, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26557127, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26557128, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26557129, '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 = 26557601 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': 3667762, 'mtr_portfolio_id': 26557601, 'created_at': datetime.datetime(2025, 9, 5, 6, 25, 29), 'result': '0.07206430920955262', 'result_long': None, 'result_double': None}] Qualite : 0.07206430920955262 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26557601 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26557601_05-09-2025_06_25_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26557601 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_P26557601_05-09-2025_06_25_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26557604, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26557605, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26557606, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26557607, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26557608, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26557609, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26557610, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26557611, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26557612, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26557613, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26557614, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26557615, 'pht': 3726}}" where mtr_portfolio_id = 26557601 and dashboard_run_id = 2245639 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`=26557601 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14805384, 0.07206430920955262, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26557601_05-09-2025_06_25_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26557604, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26557605, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26557606, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26557607, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26557608, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26557609, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26557610, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26557611, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26557612, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26557613, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26557614, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26557615, '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 = 26557985 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': 3667763, 'mtr_portfolio_id': 26557985, 'created_at': datetime.datetime(2025, 9, 5, 6, 25, 37), 'result': '0.06697049275494514', 'result_long': None, 'result_double': None}] Qualite : 0.06697049275494514 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26557985 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26557985_05-09-2025_06_25_41.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26557985 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_P26557985_05-09-2025_06_25_41.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26557989, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26557990, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26557991, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26557992, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26557993, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26557994, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26557995, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26557996, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26557997, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26557998, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26557999, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26558000, 'pht': 3726}}" where mtr_portfolio_id = 26557985 and dashboard_run_id = 2245639 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`=26557985 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14805385, 0.06697049275494514, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26557985_05-09-2025_06_25_41.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26557989, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26557990, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26557991, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26557992, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26557993, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26557994, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26557995, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26557996, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26557997, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26557998, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26557999, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26558000, '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 = 26558350 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': 3667764, 'mtr_portfolio_id': 26558350, 'created_at': datetime.datetime(2025, 9, 5, 6, 25, 57), 'result': '0.05476973286801831', 'result_long': None, 'result_double': None}] Qualite : 0.05476973286801831 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26558350 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26558350_05-09-2025_06_26_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26558350 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_P26558350_05-09-2025_06_26_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26558357, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26558358, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26558359, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26558360, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26558361, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26558362, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26558363, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26558364, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26558365, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26558366, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26558367, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26558368, 'pht': 3726}}" where mtr_portfolio_id = 26558350 and dashboard_run_id = 2245639 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`=26558350 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14805386, 0.05476973286801831, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26558350_05-09-2025_06_26_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26558357, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26558358, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26558359, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26558360, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26558361, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26558362, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26558363, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26558364, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26558365, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26558366, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26558367, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26558368, '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 = 26558751 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': 3667765, 'mtr_portfolio_id': 26558751, 'created_at': datetime.datetime(2025, 9, 5, 6, 26, 31), 'result': '0.067377216022561', 'result_long': None, 'result_double': None}] Qualite : 0.067377216022561 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26558751 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26558751_05-09-2025_06_26_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26558751 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_P26558751_05-09-2025_06_26_33.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26558760, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26558761, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26558762, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26558763, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26558764, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26558765, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26558766, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26558767, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26558768, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26558769, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26558770, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26558771, 'pht': 3726}}" where mtr_portfolio_id = 26558751 and dashboard_run_id = 2245639 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`=26558751 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14805387, 0.067377216022561, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26558751_05-09-2025_06_26_33.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26558760, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26558761, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26558762, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26558763, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26558764, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26558765, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26558766, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26558767, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26558768, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26558769, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26558770, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26558771, '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 = 26559193 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': 3667766, 'mtr_portfolio_id': 26559193, 'created_at': datetime.datetime(2025, 9, 5, 6, 27, 30), 'result': '0.03707141247912107', 'result_long': None, 'result_double': None}] Qualite : 0.03707141247912107 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26559193 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26559193_05-09-2025_06_27_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26559193 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_P26559193_05-09-2025_06_27_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26559218, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26559219, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26559220, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26559221, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26559222, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26559223, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26559224, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26559225, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26559226, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26559228, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26559229, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26559230, 'pht': 3726}}" where mtr_portfolio_id = 26559193 and dashboard_run_id = 2245639 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`=26559193 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14805388, 0.03707141247912107, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26559193_05-09-2025_06_27_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26559218, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26559219, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26559220, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26559221, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26559222, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26559223, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26559224, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26559225, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26559226, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26559228, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26559229, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26559230, '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 = 26561250 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': 3667844, 'mtr_portfolio_id': 26561250, 'created_at': datetime.datetime(2025, 9, 5, 5, 49, 29), 'result': '0.07289219547998828', 'result_long': None, 'result_double': None}] Qualite : 0.07289219547998828 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26561250 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26561250_05-09-2025_05_49_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26561250 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_P26561250_05-09-2025_05_49_30.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26561254, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26561255, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26561256, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26561257, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26561258, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26561259, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26561260, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26561261, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26561262, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26561263, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26561264, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26561265, 'pht': 3726}}" where mtr_portfolio_id = 26561250 and dashboard_run_id = 2245639 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`=26561250 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14805389, 0.07289219547998828, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26561250_05-09-2025_05_49_30.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26561254, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26561255, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26561256, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26561257, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26561258, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26561259, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26561260, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26561261, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26561262, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26561263, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26561264, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26561265, '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 = 26561102 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': 3667836, 'mtr_portfolio_id': 26561102, 'created_at': datetime.datetime(2025, 9, 5, 5, 47, 29), 'result': '0.057297069317970954', 'result_long': None, 'result_double': None}] Qualite : 0.057297069317970954 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26561102 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26561102_05-09-2025_05_47_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26561102 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_P26561102_05-09-2025_05_47_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26561130, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26561131, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26561132, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26561133, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26561134, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26561135, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26561136, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26561137, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26561138, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26561139, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26561140, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26561141, 'pht': 3726}}" where mtr_portfolio_id = 26561102 and dashboard_run_id = 2245639 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`=26561102 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14805390, 0.057297069317970954, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26561102_05-09-2025_05_47_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26561130, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26561131, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26561132, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26561133, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26561134, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26561135, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26561136, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26561137, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26561138, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26561139, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26561140, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26561141, '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 = 26561104 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': 3667837, 'mtr_portfolio_id': 26561104, 'created_at': datetime.datetime(2025, 9, 5, 5, 47, 59), 'result': '0.06210840669781008', 'result_long': None, 'result_double': None}] Qualite : 0.06210840669781008 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26561104 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26561104_05-09-2025_05_48_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26561104 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_P26561104_05-09-2025_05_48_02.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26561178, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26561179, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26561180, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26561181, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26561182, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26561183, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26561184, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26561185, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26561186, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26561187, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26561188, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26561189, 'pht': 3726}}" where mtr_portfolio_id = 26561104 and dashboard_run_id = 2245639 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`=26561104 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14805391, 0.06210840669781008, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26561104_05-09-2025_05_48_02.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26561178, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26561179, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26561180, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26561181, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26561182, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26561183, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26561184, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26561185, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26561186, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26561187, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26561188, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26561189, '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 = 26561105 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': 3667838, 'mtr_portfolio_id': 26561105, 'created_at': datetime.datetime(2025, 9, 5, 6, 3, 30), 'result': '0.056753583017804365', 'result_long': None, 'result_double': None}] Qualite : 0.056753583017804365 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26561105 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26561105_05-09-2025_06_03_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26561105 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_P26561105_05-09-2025_06_03_31.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26561106, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26561107, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26561108, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26561109, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26561110, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26561111, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26561112, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26561113, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26561114, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26561115, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26561116, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26561117, 'pht': 3726}}" where mtr_portfolio_id = 26561105 and dashboard_run_id = 2245639 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`=26561105 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14805392, 0.056753583017804365, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26561105_05-09-2025_06_03_31.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26561106, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26561107, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26561108, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26561109, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26561110, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26561111, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26561112, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26561113, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26561114, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26561115, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26561116, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26561117, '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 = 26561584 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': 3667902, 'mtr_portfolio_id': 26561584, 'created_at': datetime.datetime(2025, 9, 5, 6, 17, 31), 'result': '0.039514970057971374', 'result_long': None, 'result_double': None}] Qualite : 0.039514970057971374 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26561584 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26561584_05-09-2025_06_17_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26561584 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_P26561584_05-09-2025_06_17_32.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26561596, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26561597, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26561598, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26561599, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26561600, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26561601, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26561602, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26561603, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26561604, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26561605, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26561606, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26561607, 'pht': 3726}}" where mtr_portfolio_id = 26561584 and dashboard_run_id = 2245639 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`=26561584 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14805393, 0.039514970057971374, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26561584_05-09-2025_06_17_32.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26561596, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26561597, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26561598, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26561599, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26561600, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26561601, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26561602, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26561603, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26561604, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26561605, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26561606, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26561607, '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 = 26562090 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': 3667972, 'mtr_portfolio_id': 26562090, 'created_at': datetime.datetime(2025, 9, 5, 6, 32, 58), 'result': '0.057623620304677416', 'result_long': None, 'result_double': None}] Qualite : 0.057623620304677416 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26562090 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26562090_05-09-2025_06_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26562090 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_P26562090_05-09-2025_06_32_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26562131, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26562132, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26562133, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26562134, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26562135, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26562136, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26562137, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26562138, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26562139, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26562140, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26562141, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26562142, 'pht': 3726}}" where mtr_portfolio_id = 26562090 and dashboard_run_id = 2245639 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`=26562090 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14805394, 0.057623620304677416, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26562090_05-09-2025_06_32_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26562131, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26562132, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26562133, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26562134, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26562135, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26562136, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26562137, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26562138, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26562139, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26562140, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26562141, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26562142, '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 = 26562602 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': 3668061, 'mtr_portfolio_id': 26562602, 'created_at': datetime.datetime(2025, 9, 5, 6, 46, 59), 'result': '0.05466398608855699', 'result_long': None, 'result_double': None}] Qualite : 0.05466398608855699 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26562602 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26562602_05-09-2025_06_47_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26562602 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_P26562602_05-09-2025_06_47_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26562613, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26562614, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26562615, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26562616, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26562617, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26562618, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26562619, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26562620, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26562621, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26562622, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26562623, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26562624, 'pht': 3726}}" where mtr_portfolio_id = 26562602 and dashboard_run_id = 2245639 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`=26562602 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14805395, 0.05466398608855699, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26562602_05-09-2025_06_47_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26562613, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26562614, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26562615, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26562616, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26562617, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26562618, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26562619, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26562620, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26562621, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26562622, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26562623, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26562624, '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 = 26562998 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': 3668137, 'mtr_portfolio_id': 26562998, 'created_at': datetime.datetime(2025, 9, 5, 7, 3), 'result': '0.029307208754667403', 'result_long': None, 'result_double': None}] Qualite : 0.029307208754667403 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26562998 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26562998_05-09-2025_07_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26562998 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_P26562998_05-09-2025_07_03_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26563023, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26563024, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26563025, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26563026, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26563027, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26563028, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26563029, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26563030, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26563031, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26563032, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26563033, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26563034, 'pht': 3726}}" where mtr_portfolio_id = 26562998 and dashboard_run_id = 2245639 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`=26562998 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14805396, 0.029307208754667403, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26562998_05-09-2025_07_03_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26563023, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26563024, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26563025, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26563026, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26563027, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26563028, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26563029, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26563030, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26563031, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26563032, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26563033, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26563034, '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 = 26563505 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': 3668232, 'mtr_portfolio_id': 26563505, 'created_at': datetime.datetime(2025, 9, 5, 7, 17, 1), 'result': '0.06240638810892612', 'result_long': None, 'result_double': None}] Qualite : 0.06240638810892612 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26563505 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26563505_05-09-2025_07_17_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26563505 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_P26563505_05-09-2025_07_17_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26563534, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26563535, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26563536, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26563537, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26563538, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26563539, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26563540, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26563541, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26563542, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26563544, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26563545, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26563546, 'pht': 3726}}" where mtr_portfolio_id = 26563505 and dashboard_run_id = 2245639 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`=26563505 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14805397, 0.06240638810892612, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26563505_05-09-2025_07_17_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26563534, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26563535, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26563536, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26563537, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26563538, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26563539, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26563540, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26563541, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26563542, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26563544, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26563545, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26563546, '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 = 26564166 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': 3668351, 'mtr_portfolio_id': 26564166, 'created_at': datetime.datetime(2025, 9, 5, 7, 33), 'result': '0.04618207289236178', 'result_long': None, 'result_double': None}] Qualite : 0.04618207289236178 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26564166 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26564166_05-09-2025_07_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26564166 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_P26564166_05-09-2025_07_33_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26564191, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26564192, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26564193, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26564194, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26564195, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26564196, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26564197, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26564198, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26564199, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26564200, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26564201, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26564202, 'pht': 3726}}" where mtr_portfolio_id = 26564166 and dashboard_run_id = 2245639 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`=26564166 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14805398, 0.04618207289236178, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26564166_05-09-2025_07_33_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26564191, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26564192, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26564193, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26564194, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26564195, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26564196, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26564197, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26564198, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26564199, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26564200, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26564201, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26564202, '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 = 26565028 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': 3668448, 'mtr_portfolio_id': 26565028, 'created_at': datetime.datetime(2025, 9, 5, 7, 47, 1), 'result': '0.05743677664050799', 'result_long': None, 'result_double': None}] Qualite : 0.05743677664050799 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26565028 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26565028_05-09-2025_07_47_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26565028 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_P26565028_05-09-2025_07_47_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26565038, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26565039, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26565040, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26565041, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26565042, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26565043, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26565044, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26565045, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26565046, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26565047, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26565048, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26565049, 'pht': 3726}}" where mtr_portfolio_id = 26565028 and dashboard_run_id = 2245639 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`=26565028 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14805399, 0.05743677664050799, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26565028_05-09-2025_07_47_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26565038, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26565039, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26565040, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26565041, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26565042, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26565043, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26565044, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26565045, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26565046, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26565047, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26565048, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26565049, '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 = 26565501 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': 3668518, 'mtr_portfolio_id': 26565501, 'created_at': datetime.datetime(2025, 9, 5, 9, 3, 27), 'result': '0.04533627730020251', 'result_long': None, 'result_double': None}] Qualite : 0.04533627730020251 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26565501 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26565501_05-09-2025_09_03_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26565501 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_P26565501_05-09-2025_09_03_28.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26565515, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26565516, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26565517, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26565518, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26565520, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26565521, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26565522, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26565523, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26565524, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26565525, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26565526, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26565527, 'pht': 3726}}" where mtr_portfolio_id = 26565501 and dashboard_run_id = 2245639 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`=26565501 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14805400, 0.04533627730020251, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26565501_05-09-2025_09_03_28.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26565515, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26565516, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26565517, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26565518, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26565520, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26565521, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26565522, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26565523, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26565524, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26565525, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26565526, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26565527, '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 = 26568769 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': 3668939, 'mtr_portfolio_id': 26568769, 'created_at': datetime.datetime(2025, 9, 5, 9, 3, 59), 'result': '0.08084658930274236', 'result_long': None, 'result_double': None}] Qualite : 0.08084658930274236 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26568769 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26568769_05-09-2025_09_04_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26568769 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_P26568769_05-09-2025_09_04_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26569041, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26569042, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26569043, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26569044, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26569046, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26569047, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26569048, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26569049, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26569050, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26569051, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26569052, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26569053, 'pht': 3726}}" where mtr_portfolio_id = 26568769 and dashboard_run_id = 2245639 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`=26568769 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14805401, 0.08084658930274236, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26568769_05-09-2025_09_04_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26569041, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26569042, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26569043, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26569044, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26569046, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26569047, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26569048, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26569049, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26569050, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26569051, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26569052, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26569053, '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 = 26568911 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': 3668948, 'mtr_portfolio_id': 26568911, 'created_at': datetime.datetime(2025, 9, 5, 9, 3), 'result': '0.05313406132009744', 'result_long': None, 'result_double': None}] Qualite : 0.05313406132009744 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26568911 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26568911_05-09-2025_09_03_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26568911 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_P26568911_05-09-2025_09_03_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26568918, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26568919, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26568920, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26568921, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26568922, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26568923, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26568924, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26568925, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26568926, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26568927, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26568928, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26568929, 'pht': 3726}}" where mtr_portfolio_id = 26568911 and dashboard_run_id = 2245639 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`=26568911 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14805402, 0.05313406132009744, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26568911_05-09-2025_09_03_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26568918, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26568919, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26568920, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26568921, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26568922, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26568923, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26568924, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26568925, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26568926, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26568927, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26568928, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26568929, '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 = 26568775 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': 3668942, 'mtr_portfolio_id': 26568775, 'created_at': datetime.datetime(2025, 9, 5, 9, 1, 56), 'result': '0.05438887865763479', 'result_long': None, 'result_double': None}] Qualite : 0.05438887865763479 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26568775 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26568775_05-09-2025_09_01_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26568775 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_P26568775_05-09-2025_09_01_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26568815, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26568816, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26568817, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26568818, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26568819, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26568820, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26568821, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26568822, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26568823, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26568824, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26568825, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26568826, 'pht': 3726}}" where mtr_portfolio_id = 26568775 and dashboard_run_id = 2245639 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`=26568775 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14805403, 0.05438887865763479, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26568775_05-09-2025_09_01_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26568815, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26568816, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26568817, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26568818, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26568819, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26568820, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26568821, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26568822, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26568823, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26568824, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26568825, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26568826, '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 = 26568779 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': 3668944, 'mtr_portfolio_id': 26568779, 'created_at': datetime.datetime(2025, 9, 5, 9, 31, 1), 'result': '0.0335856496795856', 'result_long': None, 'result_double': None}] Qualite : 0.0335856496795856 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26568779 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26568779_05-09-2025_09_31_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26568779 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_P26568779_05-09-2025_09_31_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26568785, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26568786, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26568787, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26568788, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26568789, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26568790, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26568791, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26568792, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26568793, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26568794, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26568795, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26568796, 'pht': 3726}}" where mtr_portfolio_id = 26568779 and dashboard_run_id = 2245639 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`=26568779 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14805404, 0.0335856496795856, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26568779_05-09-2025_09_31_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26568785, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26568786, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26568787, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26568788, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26568789, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26568790, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26568791, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26568792, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26568793, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26568794, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26568795, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26568796, '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 = 26569896 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': 3669051, 'mtr_portfolio_id': 26569896, 'created_at': datetime.datetime(2025, 9, 5, 10, 2, 59), 'result': '0.05036727296153984', 'result_long': None, 'result_double': None}] Qualite : 0.05036727296153984 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26569896 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26569896_05-09-2025_10_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26569896 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_P26569896_05-09-2025_10_02_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26569941, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26569942, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26569943, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26569944, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26569945, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26569946, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26569947, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26569948, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26569949, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26569950, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26569951, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26569952, 'pht': 3726}}" where mtr_portfolio_id = 26569896 and dashboard_run_id = 2245639 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`=26569896 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14805405, 0.05036727296153984, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26569896_05-09-2025_10_02_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26569941, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26569942, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26569943, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26569944, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26569945, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26569946, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26569947, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26569948, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26569949, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26569950, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26569951, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26569952, '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 = 26570443 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': 3669121, 'mtr_portfolio_id': 26570443, 'created_at': datetime.datetime(2025, 9, 5, 10, 19, 29), 'result': '0.06794735722814266', 'result_long': None, 'result_double': None}] Qualite : 0.06794735722814266 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26570443 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26570443_05-09-2025_10_19_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26570443 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_P26570443_05-09-2025_10_19_29.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26570497, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26570498, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26570499, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26570500, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26570501, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26570502, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26570503, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26570504, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26570505, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26570506, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26570507, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26570508, 'pht': 3726}}" where mtr_portfolio_id = 26570443 and dashboard_run_id = 2245639 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`=26570443 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14805406, 0.06794735722814266, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26570443_05-09-2025_10_19_29.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26570497, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26570498, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26570499, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26570500, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26570501, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26570502, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26570503, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26570504, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26570505, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26570506, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26570507, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26570508, '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 = 26571192 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': 3669206, 'mtr_portfolio_id': 26571192, 'created_at': datetime.datetime(2025, 9, 5, 10, 33, 29), 'result': '0.05117919557706017', 'result_long': None, 'result_double': None}] Qualite : 0.05117919557706017 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26571192 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26571192_05-09-2025_10_33_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26571192 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_P26571192_05-09-2025_10_33_30.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26571196, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26571197, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26571198, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26571199, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26571200, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26571201, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26571202, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26571203, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26571204, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26571205, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26571206, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26571207, 'pht': 3726}}" where mtr_portfolio_id = 26571192 and dashboard_run_id = 2245639 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`=26571192 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14805407, 0.05117919557706017, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26571192_05-09-2025_10_33_30.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26571196, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26571197, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26571198, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26571199, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26571200, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26571201, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26571202, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26571203, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26571204, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26571205, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26571206, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26571207, '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 = 26571940 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': 3669265, 'mtr_portfolio_id': 26571940, 'created_at': datetime.datetime(2025, 9, 5, 10, 47), 'result': '0.06204151959759107', 'result_long': None, 'result_double': None}] Qualite : 0.06204151959759107 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26571940 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26571940_05-09-2025_10_47_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26571940 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_P26571940_05-09-2025_10_47_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26571973, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26571974, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26571975, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26571976, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26571977, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26571978, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26571979, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26571980, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26571981, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26571982, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26571983, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26571984, 'pht': 3726}}" where mtr_portfolio_id = 26571940 and dashboard_run_id = 2245639 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`=26571940 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14805408, 0.06204151959759107, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26571940_05-09-2025_10_47_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26571973, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26571974, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26571975, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26571976, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26571977, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26571978, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26571979, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26571980, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26571981, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26571982, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26571983, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26571984, '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 = 26572507 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': 3669481, 'mtr_portfolio_id': 26572507, 'created_at': datetime.datetime(2025, 9, 5, 11, 3), 'result': '0.04922533676166119', 'result_long': None, 'result_double': None}] Qualite : 0.04922533676166119 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26572507 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26572507_05-09-2025_11_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26572507 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_P26572507_05-09-2025_11_03_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26572517, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26572518, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26572519, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26572520, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26572521, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26572522, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26572523, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26572524, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26572525, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26572526, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26572527, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26572528, 'pht': 3726}}" where mtr_portfolio_id = 26572507 and dashboard_run_id = 2245639 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`=26572507 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14805409, 0.04922533676166119, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26572507_05-09-2025_11_03_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26572517, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26572518, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26572519, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26572520, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26572521, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26572522, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26572523, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26572524, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26572525, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26572526, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26572527, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26572528, '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 = 26573166 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 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 = 26573166 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 26573166 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26573166 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26573166 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26573166 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26573166_05-09-2025_11_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26573166 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_P26573166_05-09-2025_11_16_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26573191, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26573192, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26573193, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26573194, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26573195, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26573196, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26573197, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26573198, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26573199, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26573200, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26573201, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26573202, 'pht': 3726}}" where mtr_portfolio_id = 26573166 and dashboard_run_id = 2245639 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 = 26573687 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 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 = 26573687 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 26573687 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26573687 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26573687 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26573687 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26573687_05-09-2025_11_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26573687 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_P26573687_05-09-2025_11_32_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26573704, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26573705, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26573706, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26573707, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26573709, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26573710, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26573711, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26573712, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26573713, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26573714, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26573715, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26573716, 'pht': 3726}}" where mtr_portfolio_id = 26573687 and dashboard_run_id = 2245639 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 = 26573993 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 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 = 26573993 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 26573993 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26573993 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26573993 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26573993 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26573993_05-09-2025_11_46_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26573993 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_P26573993_05-09-2025_11_46_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26574001, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26574002, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26574003, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26574004, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26574005, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26574006, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26574007, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26574008, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26574009, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26574010, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26574011, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26574012, 'pht': 3726}}" where mtr_portfolio_id = 26573993 and dashboard_run_id = 2245639 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 = 26574368 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 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 = 26574368 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 26574368 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26574368 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26574368 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26574368 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26574368_05-09-2025_12_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26574368 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_P26574368_05-09-2025_12_02_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26574386, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26574387, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26574388, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26574389, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26574390, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26574391, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26574392, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26574393, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26574394, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26574395, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26574396, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26574397, 'pht': 3726}}" where mtr_portfolio_id = 26574368 and dashboard_run_id = 2245639 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 = 26577767 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': 3670048, 'mtr_portfolio_id': 26577767, 'created_at': datetime.datetime(2025, 9, 5, 13, 46, 58), 'result': '0.017310328078041233', 'result_long': None, 'result_double': None}] Qualite : 0.017310328078041233 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26577767 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26577767_05-09-2025_13_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26577767 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_P26577767_05-09-2025_13_46_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26577768, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26577769, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26577770, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26577771, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26577772, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26577773, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26577774, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26577775, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26577776, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26577777, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26577778, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26577779, 'pht': 3726}}" where mtr_portfolio_id = 26577767 and dashboard_run_id = 2245639 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`=26577767 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14805414, 0.017310328078041233, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26577767_05-09-2025_13_46_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26577768, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26577769, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26577770, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26577771, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26577772, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26577773, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26577774, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26577775, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26577776, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26577777, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26577778, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26577779, '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 = 26577916 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': 3670061, 'mtr_portfolio_id': 26577916, 'created_at': datetime.datetime(2025, 9, 5, 14, 2, 58), 'result': '0.040377773947672085', 'result_long': None, 'result_double': None}] Qualite : 0.040377773947672085 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26577916 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26577916_05-09-2025_14_02_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26577916 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_P26577916_05-09-2025_14_02_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26577919, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26577920, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26577921, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26577922, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26577923, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26577924, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26577925, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26577926, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26577927, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26577928, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26577929, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26577930, 'pht': 3726}}" where mtr_portfolio_id = 26577916 and dashboard_run_id = 2245639 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`=26577916 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14805415, 0.040377773947672085, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26577916_05-09-2025_14_02_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26577919, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26577920, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26577921, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26577922, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26577923, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26577924, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26577925, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26577926, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26577927, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26577928, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26577929, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26577930, '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 = 26578342 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': 3670109, 'mtr_portfolio_id': 26578342, 'created_at': datetime.datetime(2025, 9, 5, 14, 7, 1), 'result': '0.06605872505132636', 'result_long': None, 'result_double': None}] Qualite : 0.06605872505132636 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26578342 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26578342_05-09-2025_14_07_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26578342 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_P26578342_05-09-2025_14_07_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26578358, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26578359, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26578360, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26578361, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26578362, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26578363, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26578364, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26578365, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26578366, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26578367, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26578368, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26578369, 'pht': 3726}}" where mtr_portfolio_id = 26578342 and dashboard_run_id = 2245639 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`=26578342 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14805416, 0.06605872505132636, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26578342_05-09-2025_14_07_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26578358, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26578359, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26578360, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26578361, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26578362, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26578363, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26578364, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26578365, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26578366, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26578367, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26578368, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26578369, '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 (26552286,26552950,26553483,26553954,26555558,26555560,26556761,26556619,26556621,26557110,26557601,26557985,26558350,26558751,26559193,26561250,26561102,26561104,26561105,26561584,26562090,26562602,26562998,26563505,26564166,26565028,26565501,26568769,26568911,26568775,26568779,26569896,26570443,26571192,26571940,26572507,26573166,26573687,26573993,26574368,26577767,26577916,26578342) result : ((1381585163,), (1381585166,), (1381585170,), (1381585665,), (1381585668,), (1381585671,), (1381585674,), (1381585677,), (1381585680,), (1381586198,), (1381586202,), (1381586206,), (1381586210,), (1381586214,), (1381586704,), (1381586707,), (1381586710,), (1381586992,), (1381586994,), (1381586997,), (1381587000,), (1381587003,), (1381587006,), (1381587312,), (1381587313,), (1381587314,), (1381587315,), (1381587316,), (1381587317,), (1381587397,), (1381587398,), (1381587400,), (1381587401,), (1381587402,), (1381587480,), (1381587483,), (1381587484,), (1381587485,), (1381587536,), (1381587537,), (1381587539,), (1381587540,), (1381587541,), (1381587542,), (1381587601,), (1381587602,), (1381587603,), (1381587604,), (1381587605,), (1381587655,), (1381587657,), (1381587659,), (1381587816,), (1381587817,), (1381587818,), (1381587820,), (1381587821,), (1381587823,), (1381587981,), (1381587982,), (1381587983,), (1381587985,), (1381588048,), (1381588049,), (1381588050,), (1381588051,), (1381588053,), (1381588055,), (1381588093,), (1381588095,), (1381588097,), (1381588099,), (1381588102,), (1381588104,), (1381588400,), (1381588393,), (1381588395,), (1381588397,), (1381588567,), (1381588569,), (1381588571,), (1381588573,), (1381588575,), (1381588743,), (1381588744,), (1381588745,), (1381588746,), (1381588747,), (1381588749,), (1381588979,), (1381588981,), (1381588984,), (1381588986,), (1381589178,), (1381589180,), (1381589182,), (1381589184,), (1381589187,), (1381589189,), (1381589294,), (1381589295,), (1381589296,), (1381589297,), (1381589298,), (1381589300,), (1381589350,), (1381589351,), (1381589352,), (1381589353,), (1381589392,), (1381589394,), (1381589395,), (1381589397,), (1381589398,), (1381589435,), (1381589443,), (1381589444,), (1381589446,), (1381589447,), (1381589489,), (1381589490,), (1381589491,), (1381589492,), (1381589540,), (1381589541,), (1381589542,), (1381589543,), (1381589545,), (1381589546,), (1381589611,), (1381589613,), (1381589616,), (1381589620,), (1381589623,), (1381589726,), (1381589727,), (1381589728,), (1381589729,), (1381589730,), (1381589765,), (1381589766,), (1381589821,), (1381589822,), (1381589823,), (1381589824,), (1381589865,), (1381589860,), (1381589861,), (1381589862,), (1381589863,), (1381589970,), (1381589971,), (1381589973,), (1381589974,), (1381590017,), (1381590018,), (1381590019,), (1381590020,), (1381590021,), (1381590022,), (1381590076,), (1381590078,), (1381590079,), (1381590080,), (1381590082,), (1381590157,), (1381590159,), (1381590160,), (1381590161,), (1381590196,), (1381590197,), (1381590198,), (1381590199,), (1381590234,), (1381590235,), (1381590236,), (1381590237,), (1381590239,), (1381590316,), (1381590317,), (1381590318,), (1381590319,), (1381590321,), (1381590351,), (1381590352,), (1381590353,), (1381590354,), (1381590355,), (1381590356,), (1381590404,), (1381590405,), (1381590407,), (1381590408,), (1381590409,), (1381590410,), (1381590454,), (1381590456,), (1381590457,), (1381590458,), (1381590504,), (1381590505,), (1381590506,), (1381590507,), (1381590508,), (1381590509,), (1381590543,), (1381590544,), (1381590545,), (1381590546,), (1381590548,), (1381590617,), (1381590618,), (1381590619,), (1381590661,), (1381590663,), (1381590664,), (1381590665,), (1381590666,), (1381590667,), (1381590717,), (1381590712,), (1381590713,), (1381590714,), (1381590715,), (1381590716,), (1381590753,), (1381590754,), (1381590828,), (1381590830,), (1381590832,), (1381590835,), (1381590837,), (1381590877,), (1381590878,), (1381590879,), (1381590880,), (1381590881,), (1381590927,), (1381590928,), (1381590929,), (1381590930,), (1381590964,), (1381590965,), (1381590966,), (1381590967,), (1381591124,), (1381591169,), (1381591170,), (1381591171,), (1381591172,), (1381591173,), (1381591217,), (1381591218,), (1381591220,), (1381591224,), (1381591227,), (1381591229,), (1381591243,), (1381591244,), (1381591245,), (1381591246,), (1381591248,), (1381591413,), (1381591415,), (1381591417,), (1381591419,), (1381591421,), (1381595847,), (1381595882,), (1381595883,), (1381595884,), (1381595886,), (1381595887,), (1381595947,), (1381595948,), (1381595949,), (1381596040,), (1381596041,), (1381596042,), (1381596099,), (1381596100,), (1381596101,), (1381596102,), (1381596147,), (1381596148,), (1381596149,), (1381596150,), (1381596151,), (1381596152,), (1381596199,), (1381596200,), (1381596202,), (1381596203,), (1381596205,), (1381596237,), (1381596238,), (1381596239,), (1381596296,), (1381596297,), (1381596298,), (1381596299,), (1381596300,), (1381596349,), (1381596350,), (1381596352,), (1381596354,), (1381596355,), (1381596389,), (1381596391,), (1381596392,), (1381596393,), (1381596449,), (1381596450,), (1381596488,), (1381596489,), (1381596535,), (1381596536,), (1381596537,), (1381596539,), (1381596541,), (1381596577,), (1381596579,), (1381596580,), (1381596582,), (1381596628,), (1381596625,), (1381596626,), (1381596627,), (1381596664,), (1381596665,), (1381596666,), (1381596667,), (1381596710,), (1381596711,), (1381596712,), (1381596801,), (1381596802,), (1381596803,), (1381596845,), (1381596846,), (1381596847,), (1381596848,), (1381596849,), (1381596892,), (1381596893,), (1381596894,), (1381596895,), (1381596896,), (1381596897,), (1381596948,), (1381596950,), (1381596951,), (1381596952,), (1381596954,), (1381597020,), (1381597021,), (1381597022,), (1381597023,), (1381597064,), (1381597065,), (1381597066,), (1381597068,), (1381597069,), (1381597097,), (1381597099,), (1381597100,), (1381597101,), (1381597102,), (1381597103,), (1381597151,), (1381597152,), (1381597153,), (1381597154,), (1381597155,), (1381597197,), (1381597198,), (1381597199,), (1381597200,), (1381597201,), (1381597203,), (1381597207,), (1381597209,), (1381597210,), (1381597211,), (1381597212,), (1381597287,), (1381597288,), (1381597289,), (1381597290,), (1381597327,), (1381597329,), (1381597332,), (1381597334,), (1381597336,), (1381597339,), (1381597640,), (1381602249,), (1381604849,), (1381604850,), (1381604851,), (1381604852,), (1381604854,), (1381604855,), (1381604894,), (1381604896,), (1381604942,), (1381604943,), (1381604944,), (1381604972,), (1381604973,), (1381605075,), (1381605077,), (1381605080,), (1381605083,), (1381605086,), (1381605087,), (1381605161,), (1381605163,), (1381605165,), (1381605219,), (1381605216,), (1381605217,), (1381605218,), (1381605265,), (1381605266,), (1381605267,), (1381605268,), (1381605269,), (1381605271,), (1381605323,), (1381605324,), (1381605325,), (1381605326,), (1381605327,), (1381605414,), (1381605415,), (1381605416,), (1381605417,), (1381605418,), (1381605419,), (1381605453,), (1381605454,), (1381605455,), (1381605456,), (1381605457,), (1381605508,), (1381605509,), (1381605510,), (1381605511,), (1381605568,), (1381605569,), (1381605570,), (1381605571,), (1381605608,), (1381605609,), (1381605610,), (1381605611,), (1381605613,), (1381605672,), (1381605673,), (1381605674,), (1381605716,), (1381605717,), (1381605718,), (1381605719,), (1381605720,), (1381605766,), (1381605767,), (1381605768,), (1381605769,), (1381605770,), (1381605771,), (1381605810,), (1381605812,), (1381605814,), (1381605815,), (1381605905,), (1381605906,), (1381605907,), (1381605908,), (1381605909,), (1381605910,), (1381605954,), (1381605955,), (1381605957,), (1381605958,), (1381605959,), (1381605961,), (1381605994,), (1381605995,), (1381605996,), (1381605997,), (1381605998,), (1381605999,), (1381606049,), (1381597636,), (1381597638,), (1381597846,), (1381597847,), (1381597848,), (1381597849,), (1381597850,), (1381598044,), (1381598046,), (1381598048,), (1381598050,), (1381598052,), (1381598054,), (1381598238,), (1381598239,), (1381598240,), (1381598241,), (1381598266,), (1381598275,), (1381598276,), (1381598278,), (1381598280,), (1381598281,), (1381598328,), (1381598329,), (1381598330,), (1381598332,), (1381598333,), (1381601466,), (1381601468,), (1381601877,), (1381601880,), (1381601883,), (1381601886,), (1381601889,), (1381602252,), (1381602255,), (1381602258,), (1381602261,), (1381602264,), (1381602337,), (1381606047,), (1381606048,), (1381606093,), (1381606094,), (1381606095,), (1381606096,), (1381606097,), (1381606161,), (1381606162,), (1381606163,), (1381606164,), (1381606165,), (1381606198,), (1381606199,), (1381606200,), (1381606201,), (1381606252,), (1381606253,), (1381606254,), (1381606255,), (1381606256,), (1381606294,), (1381606295,), (1381606297,), (1381606298,), (1381606299,), (1381606300,), (1381606345,), (1381606346,), (1381606347,), (1381606411,), (1381606412,), (1381606414,), (1381606415,), (1381606416,), (1381606417,), (1381606463,), (1381606464,), (1381606465,), (1381606466,), (1381606498,), (1381606499,), (1381606500,), (1381606501,), (1381606594,), (1381606644,), (1381607065,), (1381607067,), (1381609098,), (1381609096,), (1381609167,), (1381610003,), (1381610005,), (1381610325,), (1381610326,), (1381610327,), (1381610328,), (1381610330,), (1381610549,), (1381610550,), (1381610551,), (1381610552,), (1381610656,), (1381610657,), (1381610658,), (1381610659,), (1381610660,), (1381610732,), (1381610733,), (1381610734,), (1381610735,), (1381610736,), (1381610737,), (1381610774,), (1381610775,), (1381610776,), (1381610777,), (1381610835,), (1381610836,), (1381610837,), (1381610838,), (1381610839,), (1381610872,), (1381610873,), (1381610874,), (1381610875,), (1381610877,), (1381610919,), (1381610917,), (1381610918,), (1381611027,), (1381611036,), (1381611037,), (1381611039,), (1381611071,), (1381611072,), (1381611073,), (1381611074,), (1381611075,), (1381611076,), (1381611119,), (1381611120,), (1381611121,), (1381611122,), (1381611123,), (1381611169,), (1381611170,), (1381611171,), (1381611173,), (1381611174,), (1381611175,), (1381611225,), (1381611226,), (1381611227,), (1381611228,), (1381611229,), (1381611239,), (1381611240,), (1381611241,), (1381611242,), (1381611243,), (1381611244,), (1381611280,), (1381611281,), (1381611282,), (1381611283,), (1381611313,), (1381611314,), (1381611315,), (1381611316,), (1381611338,), (1381611339,), (1381611340,), (1381611360,), (1381611361,), (1381611363,), (1381611364,), (1381611365,), (1381611366,), (1381611439,), (1381611440,), (1381611441,), (1381611442,), (1381611443,), (1381611444,), (1381611483,), (1381611484,), (1381611485,), (1381611486,), (1381611528,), (1381611529,), (1381611530,), (1381611531,), (1381611532,), (1381611534,), (1381611578,), (1381611574,), (1381611575,), (1381611576,), (1381611577,), (1381611626,), (1381611627,), (1381611628,), (1381611629,), (1381611630,), (1381611631,), (1381611698,), (1381611699,), (1381611701,), (1381611702,), (1381611703,), (1381611757,), (1381611758,), (1381611759,), (1381611760,), (1381611761,), (1381611800,), (1381611801,), (1381611802,), (1381611803,), (1381611804,), (1381611805,), (1381611848,), (1381611849,), (1381611850,), (1381611851,), (1381611887,), (1381611888,), (1381611889,), (1381611890,), (1381611891,), (1381611892,), (1381611964,), (1381611965,), (1381611966,), (1381611967,), (1381612075,), (1381612076,), (1381612077,), (1381612078,), (1381612079,), (1381612080,), (1381612135,), (1381612136,), (1381612137,), (1381612138,), (1381612180,), (1381612181,), (1381612183,), (1381612184,), (1381612185,), (1381612186,), (1381612233,), (1381612234,), (1381612235,), (1381612236,), (1381612292,), (1381612293,), (1381612295,), (1381612296,), (1381612297,), (1381612298,), (1381612347,), (1381612349,), (1381612350,), (1381612351,), (1381612390,), (1381612392,), (1381612393,), (1381612394,), (1381612395,), (1381612396,), (1381612459,), (1381612456,), (1381612457,), (1381612458,), (1381612488,), (1381612489,), (1381612490,), (1381612560,), (1381612561,), (1381612562,), (1381612563,), (1381612564,), (1381612597,), (1381612598,), (1381612600,), (1381612601,), (1381612602,), (1381612603,), (1381612660,), (1381612661,), (1381612662,), (1381612663,), (1381612664,), (1381612708,), (1381612709,), (1381612710,), (1381612711,), (1381612712,), (1381612713,), (1381612760,), (1381612761,), (1381612762,), (1381612763,), (1381612831,), (1381612832,), (1381612833,), (1381612834,), (1381612873,), (1381612874,), (1381612875,), (1381612876,), (1381612877,), (1381612878,), (1381612915,), (1381612916,), (1381612917,), (1381612918,), (1381612952,), (1381612953,), (1381612954,), (1381612955,), (1381612993,), (1381612995,), (1381612998,), (1381612999,), (1381613045,), (1381613046,), (1381613047,), (1381613049,), (1381613050,), (1381613431,), (1381613433,), (1381613435,), (1381613437,), (1381613502,), (1381613504,), (1381613506,), (1381613508,), (1381613854,), (1381613846,), (1381613848,), (1381613850,), (1381613852,), (1381614041,), (1381614042,), (1381614377,), (1381614379,), (1381614382,), (1381614385,), (1381614890,), (1381614892,), (1381614894,), (1381614895,), (1381614897,), (1381615278,), (1381615281,), (1381615283,), (1381615285,), (1381615287,), (1381615548,), (1381615549,), (1381615550,), (1381615551,), (1381615552,), (1381615772,), (1381615773,), (1381615774,), (1381615775,), (1381615776,), (1381615777,), (1381616157,), (1381616159,), (1381617539,), (1381622250,), (1381624479,), (1381624480,), (1381624481,), (1381624482,), (1381624525,), (1381624526,), (1381624527,), (1381624528,), (1381624576,), (1381624577,), (1381624578,), (1381624579,), (1381624580,), (1381624624,), (1381624625,), (1381624627,), (1381624628,), (1381624690,), (1381624691,), (1381624692,), (1381624693,), (1381624694,), (1381624768,), (1381624769,), (1381624770,), (1381624771,), (1381624851,), (1381624852,), (1381624853,), (1381624854,), (1381624855,), (1381624900,), (1381624901,), (1381624902,), (1381624903,), (1381624953,), (1381624954,), (1381624955,), (1381624956,), (1381624957,), (1381624958,), (1381625033,), (1381625034,), (1381625035,), (1381625037,), (1381625038,), (1381625113,), (1381625114,), (1381625115,), (1381625116,), (1381625117,), (1381625118,), (1381625154,), (1381625155,), (1381625156,), (1381625157,), (1381625212,), (1381625213,), (1381625214,), (1381625215,), (1381625216,), (1381625271,), (1381625266,), (1381625267,), (1381625268,), (1381625269,), (1381625270,), (1381625322,), (1381625323,), (1381625324,), (1381625325,), (1381625405,), (1381625406,), (1381625407,), (1381625408,), (1381625409,), (1381625410,), (1381625450,), (1381625451,), (1381625452,), (1381625454,), (1381625487,), (1381625499,), (1381625500,), (1381625502,), (1381625503,), (1381625504,), (1381625553,), (1381625555,), (1381625556,), (1381625557,), (1381625603,), (1381625604,), (1381625605,), (1381625606,), (1381625685,), (1381625686,), (1381625687,), (1381625688,), (1381625689,), (1381625690,), (1381625725,), (1381625726,), (1381625727,), (1381625728,), (1381625795,), (1381625796,), (1381625797,), (1381625835,), (1381625836,), (1381625838,), (1381625840,), (1381625841,), (1381625904,), (1381625906,), (1381625907,), (1381625947,), (1381625948,), (1381625949,), (1381625950,), (1381625951,), (1381625985,), (1381625997,), (1381625998,), (1381625999,), (1381626039,), (1381626040,), (1381626041,), (1381626042,), (1381626043,), (1381626044,), (1381626100,), (1381626095,), (1381626096,), (1381626097,), (1381626098,), (1381626099,), (1381626136,), (1381626137,), (1381626138,), (1381626139,), (1381626228,), (1381626229,), (1381626230,), (1381626231,), (1381626232,), (1381626233,), (1381626275,), (1381626276,), (1381626277,), (1381626278,), (1381626279,), (1381626333,), (1381626335,), (1381626336,), (1381626337,), (1381626338,), (1381626339,), (1381626375,), (1381626376,), (1381626377,), (1381626378,), (1381626433,), (1381626435,), (1381626436,), (1381626437,), (1381626438,), (1381626439,), (1381626510,), (1381626512,), (1381626514,), (1381626515,), (1381626516,), (1381626569,), (1381626570,), (1381626571,), (1381626572,), (1381626573,), (1381626575,), (1381626612,), (1381626614,), (1381626615,), (1381626646,), (1381626647,), (1381626648,), (1381626649,), (1381626686,), (1381626687,), (1381626688,), (1381626689,), (1381626690,), (1381626691,), (1381626775,), (1381626776,), (1381626777,), (1381626778,), (1381626836,), (1381626837,), (1381626838,), (1381626840,), (1381626855,), (1381626856,), (1381626857,), (1381626859,), (1381626906,), (1381623513,), (1381623514,), (1381623515,), (1381623752,), (1381623753,), (1381623754,), (1381623755,), (1381623857,), (1381623858,), (1381623859,), (1381623860,), (1381623962,), (1381623963,), (1381623964,), (1381623965,), (1381624483,), (1381626903,), (1381626904,), (1381626905,), (1381627263,), (1381627265,), (1381627267,), (1381627269,), (1381627271,), (1381627273,), (1381628004,), (1381628007,), (1381628011,), (1381628015,), (1381628793,), (1381628796,), (1381628799,), (1381628802,), (1381628806,), (1381629063,), (1381629065,), (1381629067,), (1381629686,), (1381629689,), (1381629692,), (1381629695,), (1381630124,), (1381630126,), (1381630128,), (1381630130,), (1381630133,), (1381630527,), (1381630529,), (1381630531,), (1381630533,), (1381630535,), (1381630537,), (1381630635,), (1381630636,), (1381630637,), (1381630638,), (1381630639,), (1381630640,), (1381630917,), (1381630919,), (1381630921,), (1381630923,), (1381630925,), (1381630927,), (1381630979,), (1381630981,), (1381630983,), (1381630985,), (1381631153,), (1381631155,), (1381631157,), (1381631159,), (1381631161,), (1381631233,), (1381631234,), (1381631236,), (1381631237,), (1381631238,), (1381631276,), (1381631277,), (1381631278,), (1381631279,), (1381631280,), (1381631281,), (1381631321,), (1381631323,), (1381631325,), (1381631327,), (1381631375,), (1381631376,), (1381631377,), (1381631378,), (1381631379,), (1381631380,), (1381631429,), (1381631425,), (1381631426,), (1381631427,), (1381631428,), (1381631468,), (1381631469,), (1381631470,), (1381631471,), (1381631518,), (1381631519,), (1381631520,), (1381631521,), (1381631558,), (1381631559,), (1381631561,), (1381631563,), (1381631564,), (1381631615,), (1381631616,), (1381631617,), (1381631619,), (1381631651,), (1381631652,), (1381631653,), (1381631654,), (1381631655,), (1381631656,), (1381631699,), (1381631700,), (1381631701,), (1381631738,), (1381631740,), (1381631741,), (1381631783,), (1381631784,), (1381631785,), (1381631786,), (1381631787,), (1381631822,), (1381631823,), (1381631824,), (1381631825,), (1381631826,), (1381631877,), (1381631878,), (1381631879,), (1381631881,), (1381631882,), (1381631916,), (1381631917,), (1381631918,), (1381631919,), (1381631920,), (1381631960,), (1381631961,), (1381631963,), (1381631964,), (1381631965,), (1381632004,), (1381632005,), (1381632006,), (1381632007,), (1381632008,), (1381632009,), (1381632049,), (1381632050,), (1381632051,), (1381632052,), (1381632053,), (1381632096,), (1381632091,), (1381632092,), (1381632093,), (1381632094,), (1381632095,), (1381632151,), (1381632152,), (1381632153,), (1381632154,), (1381632155,), (1381632156,), (1381632229,), (1381632230,), (1381632231,), (1381632232,), (1381632233,), (1381632290,), (1381632291,), (1381632292,), (1381632293,), (1381632294,), (1381632295,), (1381632333,), (1381632334,), (1381632335,), (1381632336,), (1381632391,), (1381632392,), (1381632394,), (1381632396,), (1381632398,), (1381632400,), (1381632451,), (1381632452,), (1381632453,), (1381632454,), (1381632455,), (1381632456,), (1381632565,), (1381632566,), (1381632567,), (1381632568,), (1381632614,), (1381632615,), (1381632616,), (1381632617,), (1381632618,), (1381632666,), (1381632667,), (1381632668,), (1381632669,), (1381632670,), (1381632702,), (1381632703,), (1381632704,), (1381632705,), (1381632752,), (1381632753,), (1381632754,), (1381632755,), (1381632756,), (1381632818,), (1381632819,), (1381632820,), (1381632821,), (1381632822,), (1381632824,), (1381632872,), (1381632873,), (1381632874,), (1381632875,), (1381632876,), (1381632910,), (1381632911,), (1381632912,), (1381632972,), (1381632968,), (1381632969,), (1381632970,), (1381633008,), (1381633009,), (1381633010,), (1381633011,), (1381633012,), (1381633085,), (1381633095,), (1381633096,), (1381633097,), (1381633128,), (1381633129,), (1381633130,), (1381633131,), (1381633177,), (1381633215,), (1381633217,), (1381633265,), (1381633266,), (1381633267,), (1381633268,), (1381633306,), (1381633307,), (1381633308,), (1381633309,), (1381633350,), (1381633351,), (1381633352,), (1381633353,), (1381633354,), (1381633387,), (1381633388,), (1381633389,), (1381633390,), (1381633427,), (1381633428,), (1381633429,), (1381633430,), (1381633464,), (1381633471,), (1381633472,), (1381633473,), (1381633474,), (1381633552,), (1381633553,), (1381633554,), (1381633555,), (1381634077,), (1381634081,), (1381634084,), (1381634087,), (1381634090,), (1381634840,), (1381634828,), (1381634831,), (1381634834,), (1381634837,), (1381635354,), (1381635356,), (1381635358,), (1381635360,), (1381635869,), (1381635872,), (1381635875,), (1381635878,), (1381635881,), (1381635884,), (1381636509,), (1381636512,), (1381636515,), (1381636973,), (1381636975,), (1381636977,), (1381636979,), (1381636981,), (1381637202,), (1381637204,), (1381637206,), (1381637208,), (1381637210,), (1381637361,), (1381637362,), (1381637363,), (1381637435,), (1381637436,), (1381637437,), (1381637438,), (1381637439,), (1381637440,), (1381637716,), (1381637720,), (1381637723,), (1381637726,), (1381637729,), (1381637910,), (1381637911,), (1381637912,), (1381637913,), (1381638029,), (1381638031,), (1381638033,), (1381638035,), (1381638038,), (1381638295,), (1381638296,), (1381638297,), (1381638299,), (1381638448,), (1381638449,), (1381638450,), (1381638495,), (1381638496,), (1381638497,), (1381638498,), (1381638499,), (1381638535,), (1381638536,), (1381638537,), (1381638538,), (1381638539,), (1381638598,), (1381638596,), (1381638597,), (1381638842,), (1381638845,), (1381638848,), (1381638851,), (1381638854,), (1381638857,), (1381639224,), (1381639225,), (1381639226,), (1381639227,), (1381639502,), (1381639504,), (1381639505,), (1381639506,), (1381639507,), (1381639571,), (1381639572,), (1381639573,), (1381639574,), (1381639575,), (1381639576,), (1381639808,), (1381639810,), (1381639812,), (1381639814,), (1381639816,), (1381640103,), (1381640104,), (1381640105,), (1381640106,), (1381640107,), (1381640108,), (1381640208,), (1381640209,), (1381640210,), (1381640259,), (1381640263,), (1381640265,), (1381640267,), (1381641167,), (1381641209,), (1381641210,), (1381641211,), (1381641212,), (1381641257,), (1381641270,), (1381641271,), (1381641272,), (1381641307,), (1381641308,), (1381641356,), (1381641357,), (1381641358,), (1381641359,), (1381641360,), (1381641400,), (1381641401,), (1381641402,), (1381641403,), (1381641450,), (1381641451,), (1381641452,), (1381641453,), (1381641493,), (1381641494,), (1381641495,), (1381641496,), (1381641497,), (1381641498,), (1381641645,), (1381641646,), (1381641647,), (1381641648,), (1381641649,), (1381641683,), (1381641684,), (1381641685,), (1381641733,), (1381641734,), (1381641735,), (1381641736,), (1381641737,), (1381641777,), (1381641778,), (1381641779,), (1381641780,), (1381641781,), (1381641782,), (1381641824,), (1381641825,), (1381641826,), (1381641827,), (1381641828,), (1381641871,), (1381641872,), (1381641873,), (1381641923,), (1381641919,), (1381641920,), (1381641921,), (1381641922,), (1381641961,), (1381641962,), (1381641963,), (1381641964,), (1381641965,), (1381641998,), (1381641999,), (1381642000,), (1381642040,), (1381642041,), (1381642042,), (1381642043,), (1381642095,), (1381642096,), (1381642097,), (1381642098,), (1381642267,), (1381642268,), (1381642269,), (1381642270,), (1381642271,), (1381642392,), (1381642393,), (1381642395,), (1381642397,), (1381642399,), (1381642401,), (1381642407,), (1381642408,), (1381642410,), (1381642440,), (1381642442,), (1381642487,), (1381642488,), (1381642489,), (1381642490,), (1381642491,), (1381642613,), (1381642615,), (1381642616,), (1381642617,), (1381642618,), (1381642665,), (1381642666,), (1381642667,), (1381642704,), (1381642705,), (1381642706,), (1381642707,), (1381642708,), (1381642744,), (1381642745,), (1381642746,), (1381642747,), (1381642748,), (1381642749,), (1381643030,), (1381643032,), (1381643034,), (1381643036,), (1381643038,), (1381643680,), (1381643668,), (1381643671,), (1381643674,), (1381643677,), (1381644349,), (1381644501,), (1381644504,), (1381644507,), (1381645106,), (1381645109,), (1381645112,), (1381645115,), (1381645118,), (1381645121,), (1381645833,), (1381645835,), (1381645837,), (1381645839,), (1381645841,), (1381645843,), (1381646507,), (1381646511,), (1381647197,), (1381647574,), (1381647716,), (1381647717,), (1381647718,), (1381647719,), (1381647801,), (1381647802,), (1381647803,), (1381647804,), (1381647805,), (1381647806,), (1381647847,), (1381647848,), (1381647849,), (1381647850,), (1381647851,), (1381647852,), (1381647977,), (1381647978,), (1381647979,), (1381647980,), (1381648043,), (1381648044,), (1381648045,), (1381648046,), (1381648146,), (1381648147,), (1381648148,), (1381648149,), (1381648150,), (1381648151,), (1381648204,), (1381648205,), (1381648206,), (1381648207,), (1381648376,), (1381650546,), (1381650547,), (1381650548,), (1381650549,), (1381650550,), (1381650594,), (1381650595,), (1381650596,), (1381650597,), (1381650598,), (1381650851,), (1381650852,), (1381650853,), (1381650854,), (1381650855,), (1381650856,), (1381651059,), (1381651060,), (1381651061,), (1381651062,), (1381651211,), (1381651214,), (1381651216,), (1381651218,), (1381651220,), (1381651684,), (1381651686,), (1381651688,), (1381651690,), (1381651692,), (1381651694,), (1381651925,), (1381651926,), (1381651927,), (1381651928,), (1381652119,), (1381652120,), (1381652121,), (1381652122,), (1381652123,), (1381652124,), (1381652388,), (1381652392,), (1381652396,), (1381652400,), (1381652404,), (1381652466,), (1381652467,), (1381652468,), (1381652469,), (1381652470,), (1381652471,), (1381652786,), (1381652789,), (1381652790,), (1381653283,), (1381653288,), (1381653293,), (1381653297,), (1381653299,), (1381653301,), (1381653689,), (1381653692,), (1381653695,), (1381653698,), (1381653700,), (1381654245,), (1381654246,), (1381654247,), (1381654248,), (1381654250,), (1381654432,), (1381654435,), (1381654438,), (1381654441,), (1381654444,), (1381654447,), (1381654841,), (1381654838,), (1381654839,), (1381654840,), (1381655026,), (1381655033,), (1381655034,), (1381655035,), (1381655036,), (1381655173,), (1381656296,), (1381656297,), (1381656501,), (1381656502,), (1381656503,), (1381656504,), (1381656505,), (1381656543,), (1381656544,), (1381656545,), (1381664392,), (1381648372,), (1381648373,), (1381648374,), (1381648375,), (1381648714,), (1381648716,), (1381648952,), (1381648953,), (1381648954,), (1381648987,), (1381648988,), (1381648989,), (1381648990,), (1381648991,), (1381649202,), (1381649288,), (1381649295,), (1381649301,), (1381649306,), (1381649506,), (1381649507,), (1381649508,), (1381649509,), (1381649554,), (1381649555,), (1381649556,), (1381649557,), (1381649619,), (1381649620,), (1381649621,), (1381649682,), (1381649683,), (1381649755,), (1381649756,), (1381649757,), (1381649758,), (1381649885,), (1381649886,), (1381649968,), (1381649969,), (1381649970,), (1381649971,), (1381649972,), (1381650236,), (1381650238,), (1381650240,), (1381650242,), (1381650244,), (1381650246,), (1381650395,), (1381650454,), (1381650455,), (1381650456,), (1381650492,), (1381650493,), (1381650494,), (1381650495,), (1381650496,), (1381650551,), (1381666765,), (1381666766,), (1381666767,), (1381666768,), (1381666805,), (1381666806,), (1381666807,), (1381666893,), (1381666895,), (1381667092,), (1381667093,), (1381667094,), (1381667095,), (1381667096,), (1381667151,), (1381667152,), (1381667196,), (1381667206,), (1381667207,), (1381667208,), (1381667271,), (1381667272,), (1381667273,), (1381667274,), (1381667275,), (1381667326,), (1381667327,), (1381667328,), (1381667329,), (1381667331,), (1381667332,), (1381667337,), (1381667338,), (1381667370,), (1381667371,), (1381667372,), (1381667373,), (1381667374,), (1381667375,), (1381667412,), (1381667413,), (1381667414,), (1381667415,), (1381667416,), (1381667417,), (1381667482,), (1381667483,), (1381667484,), (1381667485,), (1381667486,), (1381667695,), (1381667698,), (1381667700,), (1381667702,), (1381667704,), (1381667706,), (1381668105,), (1381668107,), (1381668109,), (1381668111,), (1381669152,), (1381669154,), (1381669156,), (1381669158,), (1381669160,), (1381669162,), (1381669879,), (1381669867,), (1381669870,), (1381669873,), (1381669876,), (1381670639,), (1381670642,), (1381670645,), (1381670648,), (1381670651,), (1381671222,), (1381671223,), (1381671224,), (1381671225,), (1381671226,), (1381671227,), (1381671259,), (1381671261,), (1381671263,), (1381671266,), (1381671823,), (1381671826,), (1381671829,), (1381671832,), (1381671835,), (1381671838,), (1381672620,), (1381672624,), (1381673631,), (1381674064,), (1381674065,), (1381674066,), (1381674067,), (1381674333,), (1381674335,), (1381674336,), (1381674338,), (1381674340,), (1381674342,), (1381674424,), (1381674425,), (1381674426,), (1381674599,), (1381674670,), (1381674671,), (1381674673,), (1381674675,), (1381674947,), (1381674948,), (1381674949,), (1381675685,), (1381675687,), (1381675689,), (1381675692,), (1381676401,), (1381676404,), (1381676407,), (1381676711,), (1381676714,), (1381676717,), (1381676720,), (1381676723,), (1381676726,), (1381677161,), (1381677603,), (1381677600,), (1381677601,), (1381677602,), (1381677866,), (1381677868,), (1381677870,), (1381677872,), (1381677874,), (1381677876,), (1381678330,), (1381678332,), (1381678334,), (1381678336,), (1381678338,), (1381678340,), (1381678725,), (1381678728,), (1381678731,), (1381678734,), (1381679081,), (1381679083,), (1381679085,), (1381679087,), (1381679089,), (1381679091,), (1381679798,), (1381679799,), (1381679800,), (1381679801,), (1381679802,), (1381679803,), (1381679997,), (1381679999,), (1381680001,), (1381680003,), (1381680175,), (1381680176,), (1381680177,), (1381680179,), (1381680181,), (1381680183,), (1381680217,), (1381680218,), (1381680219,), (1381680220,), (1381680221,), (1381680277,), (1381680278,), (1381680279,), (1381680280,), (1381680324,), (1381680325,), (1381680326,), (1381680327,), (1381680328,), (1381680411,), (1381680448,), (1381680449,), (1381680450,), (1381680452,), (1381680453,), (1381680618,), (1381680619,), (1381680620,), (1381680732,), (1381680733,), (1381680734,), (1381680735,), (1381680830,), (1381680826,), (1381680827,), (1381680828,), (1381680829,), (1381680948,), (1381680949,), (1381680950,), (1381680951,), (1381680952,), (1381680953,), (1381681286,), (1381681287,), (1381681288,), (1381681465,), (1381681466,), (1381681467,), (1381681468,), (1381681469,), (1381681470,), (1381681569,), (1381681571,), (1381681573,), (1381681575,), (1381681619,), (1381681679,), (1381681680,), (1381682031,), (1381682032,), (1381682033,), (1381682034,), (1381682035,), (1381682305,), (1381682307,), (1381682309,), (1381682311,), (1381682313,), (1381682861,), (1381682864,), (1381682867,), (1381682870,), (1381683522,), (1381683524,), (1381683526,), (1381683527,), (1381683529,), (1381683881,), (1381683882,), (1381683883,), (1381684170,), (1381684172,), (1381684174,), (1381684176,), (1381684178,), (1381684181,), (1381685167,), (1381685170,), (1381685173,), (1381685176,), (1381685925,), (1381685851,), (1381685921,), (1381685923,), (1381686253,), (1381686255,), (1381686257,), (1381686259,), (1381686261,), (1381686263,), (1381687155,), (1381687159,), (1381687163,), (1381687168,), (1381687611,), (1381687613,), (1381688047,), (1381688048,), (1381688049,), (1381688050,), (1381688100,), (1381688101,), (1381688103,), (1381688104,), (1381688105,), (1381688106,), (1381688195,), (1381688196,), (1381688197,), (1381688198,), (1381688519,), (1381688523,), (1381688526,), (1381688529,), (1381689398,), (1381689400,), (1381689735,), (1381689737,), (1381689739,), (1381690535,), (1381690537,), (1381690539,), (1381690541,), (1381690611,), (1381690613,), (1381690615,), (1381691098,), (1381691094,), (1381691096,), (1381691940,), (1381691944,), (1381691949,), (1381691953,), (1381693206,), (1381693209,), (1381693212,), (1381693215,), (1381693218,), (1381693221,), (1381694024,), (1381694026,), (1381694028,), (1381694489,), (1381694931,), (1381694934,), (1381694937,), (1381695484,), (1381695486,), (1381695488,), (1381695490,), (1381695859,), (1381695861,), (1381696170,), (1381696171,), (1381696172,), (1381696173,), (1381696174,), (1381696255,), (1381696257,), (1381696258,), (1381696468,), (1381696470,), (1381696472,), (1381696475,), (1381696477,), (1381696479,), (1381696989,), (1381696990,), (1381696991,), (1381696992,), (1381697277,), (1381697279,), (1381697281,), (1381697283,), (1381698077,), (1381698079,), (1381698081,), (1381698727,), (1381698729,), (1381698731,), (1381698733,), (1381698734,), (1381698735,), (1381698957,), (1381698951,), (1381698953,), (1381698955,), (1381699426,), (1381699427,), (1381699428,), (1381699669,), (1381699672,), (1381699675,), (1381699994,), (1381699999,), (1381700004,), (1381700754,), (1381700757,), (1381700761,), (1381700764,), (1381700767,), (1381701861,), (1381701940,), (1381701942,), (1381702812,), (1381702813,), (1381702814,), (1381702815,), (1381702921,), (1381702922,), (1381702926,), (1381703000,), (1381703100,), (1381703203,), (1381703199,), (1381703200,), (1381703201,), (1381703202,), (1381703401,), (1381703402,), (1381703403,), (1381703404,), (1381703405,), (1381703406,), (1381703782,), (1381703784,), (1381703786,), (1381703788,), (1381704069,), (1381704071,), (1381704073,), (1381704075,), (1381704077,), (1381704079,), (1381704595,), (1381704597,), (1381704599,), (1381704601,), (1381704851,), (1381704852,), (1381704853,), (1381704855,), (1381704856,), (1381704857,), (1381704926,), (1381704927,), (1381704928,), (1381704929,), (1381704971,), (1381704972,), (1381704973,), (1381704974,), (1381705033,), (1381705034,), (1381705035,), (1381705036,), (1381705037,), (1381705038,), (1381705074,), (1381705075,), (1381705076,), (1381705208,), (1381705211,), (1381705214,), (1381705217,), (1381705220,), (1381705223,), (1381705465,), (1381705466,), (1381705467,), (1381705468,), (1381705469,), (1381705470,), (1381705537,), (1381705538,), (1381705539,), (1381705540,), (1381705609,), (1381705610,), (1381705612,), (1381705614,), (1381705616,), (1381705864,), (1381705866,), (1381705868,), (1381705869,), (1381706135,), (1381706131,), (1381706132,), (1381706133,), (1381706134,), (1381706300,), (1381706302,), (1381706304,), (1381706491,), (1381706493,), (1381706495,), (1381706497,), (1381706499,), (1381706830,), (1381706832,), (1381706833,), (1381706834,), (1381707111,), (1381707183,), (1381707185,), (1381707187,), (1381707363,), (1381707364,), (1381707365,), (1381707366,), (1381707436,), (1381707437,), (1381707438,), (1381707439,), (1381707440,), (1381707441,), (1381707787,), (1381707789,), (1381707792,), (1381707794,), (1381707960,), (1381707961,), (1381707962,), (1381707963,), (1381708018,), (1381708019,), (1381708020,), (1381708021,), (1381708022,), (1381708076,), (1381708077,), (1381708078,), (1381708345,), (1381708347,), (1381708349,), (1381708351,), (1381708353,), (1381708504,), (1381708505,), (1381708506,), (1381708508,), (1381708509,), (1381708510,), (1381709750,), (1381709753,), (1381709756,), (1381709759,), (1381709763,), (1381709875,), (1381709879,), (1381709883,), (1381709887,), (1381710871,), (1381741764,), (1381741815,), (1381741816,), (1381741907,), (1381741909,), (1381741911,), (1381741913,), (1381741915,), (1381742222,), (1381742300,), (1381742301,), (1381742302,), (1381742303,), (1381742304,), (1381742346,), (1381742428,), (1381742429,), (1381742430,), (1381742431,), (1381742432,), (1381742611,), (1381742615,), (1381742619,), (1381742622,), (1381742841,), (1381742842,), (1381742843,), (1381742844,), (1381742845,), (1381742893,), (1381742894,), (1381742895,), (1381742896,), (1381742948,), (1381742949,), (1381742950,), (1381742953,), (1381743061,), (1381743062,), (1381743063,), (1381743064,), (1381743186,), (1381743187,), (1381743188,), (1381743189,), (1381743249,), (1381743250,), (1381743251,), (1381743252,), (1381743308,), (1381743309,), (1381743421,), (1381743457,), (1381743458,), (1381743459,), (1381743460,), (1381743533,), (1381743534,), (1381743535,), (1381743536,), (1381743537,), (1381743538,), (1381744115,), (1381744118,), (1381744122,), (1381744125,), (1381744128,), (1381744238,), (1381744241,), (1381744244,), (1381744982,), (1381744970,), (1381744973,), (1381744976,), (1381744979,), (1381745504,), (1381745508,), (1381745511,), (1381745514,), (1381745816,), (1381745819,), (1381745822,), (1381745825,), (1381745828,), (1381746484,), (1381746486,), (1381746488,), (1381746490,), (1381746492,), (1381746927,), (1381746930,), (1381746933,), (1381746936,), (1381746938,), (1381746940,), (1381747504,), (1381747506,), (1381747508,), (1381747510,), (1381747512,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'05092025': {'nb_upload': 29, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([26578342]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1381747512, 1381747510, 1381747508, 1381747506, 1381747504, 1381746940, 1381746938, 1381746936, 1381746933, 1381746930, 1381746927] map_info['map_portfolio_photo'] : {26578342: [1381747512, 1381747510, 1381747508, 1381747506, 1381747504, 1381746940, 1381746938, 1381746936, 1381746933, 1381746930, 1381746927, 1381746492, 1381746490, 1381746488, 1381746486, 1381746484, 1381745828, 1381745825, 1381745822, 1381745819, 1381745816, 1381745514, 1381745511, 1381745508, 1381745504, 1381744979, 1381744976, 1381744973, 1381744970]} final : True mtd_id 4302 list_pids : [1381747512, 1381747510, 1381747508, 1381747506, 1381747504, 1381746940, 1381746938, 1381746936, 1381746933, 1381746930, 1381746927] Looping around the photos to save general results len do output : 1 /26578342Didn'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, '3670109') ('4302', '26578342', '1381747512', None, None, None, None, None, '3670109') ('4302', None, None, None, None, None, None, None, '3670109') ('4302', '26578342', '1381747510', None, None, None, None, None, '3670109') ('4302', None, None, None, None, None, None, None, '3670109') ('4302', '26578342', '1381747508', None, None, None, None, None, '3670109') ('4302', None, None, None, None, None, None, None, '3670109') ('4302', '26578342', '1381747506', None, None, None, None, None, '3670109') ('4302', None, None, None, None, None, None, None, '3670109') ('4302', '26578342', '1381747504', None, None, None, None, None, '3670109') ('4302', None, None, None, None, None, None, None, '3670109') ('4302', '26578342', '1381746940', None, None, None, None, None, '3670109') ('4302', None, None, None, None, None, None, None, '3670109') ('4302', '26578342', '1381746938', None, None, None, None, None, '3670109') ('4302', None, None, None, None, None, None, None, '3670109') ('4302', '26578342', '1381746936', None, None, None, None, None, '3670109') ('4302', None, None, None, None, None, None, None, '3670109') ('4302', '26578342', '1381746933', None, None, None, None, None, '3670109') ('4302', None, None, None, None, None, None, None, '3670109') ('4302', '26578342', '1381746930', None, None, None, None, None, '3670109') ('4302', None, None, None, None, None, None, None, '3670109') ('4302', '26578342', '1381746927', None, None, None, None, None, '3670109') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 12 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, '26578342', 'None', None, None, None, None, '3670109'), ('4302', '26578342', '1381747512', None, None, None, None, None, '3670109'), ('4302', '26578342', '1381747510', None, None, None, None, None, '3670109'), ('4302', '26578342', '1381747508', None, None, None, None, None, '3670109'), ('4302', '26578342', '1381747506', None, None, None, None, None, '3670109'), ('4302', '26578342', '1381747504', None, None, None, None, None, '3670109'), ('4302', '26578342', '1381746940', None, None, None, None, None, '3670109'), ('4302', '26578342', '1381746938', None, None, None, None, None, '3670109'), ('4302', '26578342', '1381746936', None, None, None, None, None, '3670109'), ('4302', '26578342', '1381746933', None, None, None, None, None, '3670109'), ('4302', '26578342', '1381746930', None, None, None, None, None, '3670109'), ('4302', '26578342', '1381746927', None, None, None, None, None, '3670109')] time used for this insertion : 0.014397382736206055 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.6184847354888916 time spend to save output : 0.014626502990722656 total time spend for step 5 : 2.6331112384796143 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 (3670109) 2.57user 2.63system 0:11.43elapsed 45%CPU (0avgtext+0avgdata 160972maxresident)k 31264inputs+9192outputs (131major+78004minor)pagefaults 0swaps