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 : 1371917 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 (3684978) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (3684978) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26689024 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['3684978'] with mtr_portfolio_ids : ['26689024'] and first list_photo_ids : [] new path : /proc/1371917/ Name: python3 Umask: 0002 State: R (running) Tgid: 1371917 Ngid: 0 Pid: 1371917 PPid: 1371915 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 1371917 NSpid: 1371917 NSpgid: 1371351 NSsid: 1371351 VmPeak: 1107252 kB VmSize: 1107252 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98484 kB VmRSS: 98484 kB RssAnon: 60140 kB RssFile: 38344 kB RssShmem: 0 kB VmData: 866004 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 556 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: 79 nonvoluntary_ctxt_switches: 133 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '1371917', 'Ngid': '0', 'Pid': '1371917', 'PPid': '1371915', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '1371917', 'NSpid': '1371917', 'NSpgid': '1371351', 'NSsid': '1371351', 'VmPeak': '1107252 kB', 'VmSize': '1107252 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98484 kB', 'VmRSS': '98484 kB', 'RssAnon': '60140 kB', 'RssFile': '38344 kB', 'RssShmem': '0 kB', 'VmData': '866004 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '556 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': '79', 'nonvoluntary_ctxt_switches': '133'} ('datou_batch_current', '1371917', '1107252', '0', '1107252', '866004', '98484', b'', 'marlene', '3684978') 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 (26689024) 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 (3684978 ) ) 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 (26689024) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1382781598, 'portfolio_id': 26689024}, {'photo_id': 1382781593, 'portfolio_id': 26689024}, {'photo_id': 1382781591, 'portfolio_id': 26689024}, {'photo_id': 1382781589, 'portfolio_id': 26689024}, {'photo_id': 1382781586, 'portfolio_id': 26689024}, {'photo_id': 1382781581, 'portfolio_id': 26689024}, {'photo_id': 1382781574, 'portfolio_id': 26689024}, {'photo_id': 1382781572, 'portfolio_id': 26689024}, {'photo_id': 1382781570, 'portfolio_id': 26689024}, {'photo_id': 1382781565, 'portfolio_id': 26689024}, {'photo_id': 1382781555, 'portfolio_id': 26689024}, {'photo_id': 1382781552, 'portfolio_id': 26689024}, {'photo_id': 1382781547, 'portfolio_id': 26689024}, {'photo_id': 1382781545, 'portfolio_id': 26689024}, {'photo_id': 1382781543, 'portfolio_id': 26689024}, {'photo_id': 1382781542, 'portfolio_id': 26689024}, {'photo_id': 1382781523, 'portfolio_id': 26689024}, {'photo_id': 1382781519, 'portfolio_id': 26689024}, {'photo_id': 1382781515, 'portfolio_id': 26689024}, {'photo_id': 1382781513, 'portfolio_id': 26689024}, {'photo_id': 1382781511, 'portfolio_id': 26689024}, {'photo_id': 1382781501, 'portfolio_id': 26689024}, {'photo_id': 1382781497, 'portfolio_id': 26689024}, {'photo_id': 1382781494, 'portfolio_id': 26689024}, {'photo_id': 1382781491, 'portfolio_id': 26689024}, {'photo_id': 1382781486, 'portfolio_id': 26689024}, {'photo_id': 1382781476, 'portfolio_id': 26689024}, {'photo_id': 1382781446, 'portfolio_id': 26689024}, {'photo_id': 1382781444, 'portfolio_id': 26689024}, {'photo_id': 1382781440, 'portfolio_id': 26689024}] map_portfolio_id_photo_id: {26689024: [1382781598, 1382781593, 1382781591, 1382781589, 1382781586, 1382781581, 1382781574, 1382781572, 1382781570, 1382781565, 1382781555, 1382781552, 1382781547, 1382781545, 1382781543, 1382781542, 1382781523, 1382781519, 1382781515, 1382781513, 1382781511, 1382781501, 1382781497, 1382781494, 1382781491, 1382781486, 1382781476, 1382781446, 1382781444, 1382781440]} ##### 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.050486087799072266 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Tue Sep 9 16:06:30 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 (26689024) 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 : 26689024 get user id for portfolio 26689024 get sub ptf for main ptf 26689024, type 3726 and hashtags ['cartonnette', 'papier', 'Carton_gris', 'metal', 'plastique', 'autre_refus', 'kraft', 'mal_croppe', 'Teint_Dans_La_Masse', 'Carton_brun', 'flou', 'environnement'] 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`=26689024 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','papier','Carton_gris','metal','plastique','autre_refus','kraft','mal_croppe','Teint_Dans_La_Masse','Carton_brun','flou','environnement')) 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`=26689024 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','papier','Carton_gris','metal','plastique','autre_refus','kraft','mal_croppe','Teint_Dans_La_Masse','Carton_brun','flou','environnement')) AND mptpi.`min_score`=0.5 To do returned map {'flou': {'main_port_id': 26689024, 'sub_port_id': 26689028, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17988583, 'last_updated_at': datetime.datetime(2025, 9, 9, 16, 5), 'last_updated_at_desc': datetime.datetime(2025, 9, 9, 16, 5), 'last_updated_at_asc': datetime.datetime(2025, 9, 9, 16, 3)}, 'Carton_gris': {'main_port_id': 26689024, 'sub_port_id': 26689029, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17988584, 'last_updated_at': datetime.datetime(2025, 9, 9, 16, 5), 'last_updated_at_desc': datetime.datetime(2025, 9, 9, 16, 5), 'last_updated_at_asc': datetime.datetime(2025, 9, 9, 16, 3)}, 'environnement': {'main_port_id': 26689024, 'sub_port_id': 26689030, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17988585, 'last_updated_at': datetime.datetime(2025, 9, 9, 16, 5), 'last_updated_at_desc': datetime.datetime(2025, 9, 9, 16, 5), 'last_updated_at_asc': datetime.datetime(2025, 9, 9, 16, 3)}, 'kraft': {'main_port_id': 26689024, 'sub_port_id': 26689031, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17988586, 'last_updated_at': datetime.datetime(2025, 9, 9, 16, 5), 'last_updated_at_desc': datetime.datetime(2025, 9, 9, 16, 5), 'last_updated_at_asc': datetime.datetime(2025, 9, 9, 16, 3)}, 'papier': {'main_port_id': 26689024, 'sub_port_id': 26689032, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17988587, 'last_updated_at': datetime.datetime(2025, 9, 9, 16, 5), 'last_updated_at_desc': datetime.datetime(2025, 9, 9, 16, 5), 'last_updated_at_asc': datetime.datetime(2025, 9, 9, 16, 3)}, 'plastique': {'main_port_id': 26689024, 'sub_port_id': 26689033, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17988588, 'last_updated_at': datetime.datetime(2025, 9, 9, 16, 5), 'last_updated_at_desc': datetime.datetime(2025, 9, 9, 16, 5), 'last_updated_at_asc': datetime.datetime(2025, 9, 9, 16, 3)}, 'Carton_brun': {'main_port_id': 26689024, 'sub_port_id': 26689034, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17988589, 'last_updated_at': datetime.datetime(2025, 9, 9, 16, 5), 'last_updated_at_desc': datetime.datetime(2025, 9, 9, 16, 5), 'last_updated_at_asc': datetime.datetime(2025, 9, 9, 16, 3)}, 'cartonnette': {'main_port_id': 26689024, 'sub_port_id': 26689035, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17988590, 'last_updated_at': datetime.datetime(2025, 9, 9, 16, 5), 'last_updated_at_desc': datetime.datetime(2025, 9, 9, 16, 5), 'last_updated_at_asc': datetime.datetime(2025, 9, 9, 16, 3)}, 'autre_refus': {'main_port_id': 26689024, 'sub_port_id': 26689036, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17988591, 'last_updated_at': datetime.datetime(2025, 9, 9, 16, 5), 'last_updated_at_desc': datetime.datetime(2025, 9, 9, 16, 5), 'last_updated_at_asc': datetime.datetime(2025, 9, 9, 16, 3)}, 'Teint_Dans_La_Masse': {'main_port_id': 26689024, 'sub_port_id': 26689037, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17988592, 'last_updated_at': datetime.datetime(2025, 9, 9, 16, 5), 'last_updated_at_desc': datetime.datetime(2025, 9, 9, 16, 5), 'last_updated_at_asc': datetime.datetime(2025, 9, 9, 16, 3)}, 'metal': {'main_port_id': 26689024, 'sub_port_id': 26689038, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17988593, 'last_updated_at': datetime.datetime(2025, 9, 9, 16, 5), 'last_updated_at_desc': datetime.datetime(2025, 9, 9, 16, 5), 'last_updated_at_asc': datetime.datetime(2025, 9, 9, 16, 3)}, 'mal_croppe': {'main_port_id': 26689024, 'sub_port_id': 26689039, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17988594, 'last_updated_at': datetime.datetime(2025, 9, 9, 16, 5), 'last_updated_at_desc': datetime.datetime(2025, 9, 9, 16, 5), 'last_updated_at_asc': datetime.datetime(2025, 9, 9, 16, 3)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26689028 , 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=26689024 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 (26689028) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26689024) result : ((1382781440,), (1382781444,), (1382781446,), (1382781476,), (1382781486,), (1382781491,), (1382781494,), (1382781497,), (1382781501,), (1382781511,), (1382781513,), (1382781515,), (1382781519,), (1382781523,), (1382781542,), (1382781543,), (1382781545,), (1382781547,), (1382781552,), (1382781555,), (1382781565,), (1382781570,), (1382781572,), (1382781574,), (1382781581,), (1382781586,), (1382781589,), (1382781591,), (1382781593,), (1382781598,)) 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 26689029 , 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=26689024 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 (26689029) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26689024) result : ((1382781440,), (1382781444,), (1382781446,), (1382781476,), (1382781486,), (1382781491,), (1382781494,), (1382781497,), (1382781501,), (1382781511,), (1382781513,), (1382781515,), (1382781519,), (1382781523,), (1382781542,), (1382781543,), (1382781545,), (1382781547,), (1382781552,), (1382781555,), (1382781565,), (1382781570,), (1382781572,), (1382781574,), (1382781581,), (1382781586,), (1382781589,), (1382781591,), (1382781593,), (1382781598,)) 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 26689030 , 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=26689024 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 (26689030) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26689024) result : ((1382781440,), (1382781444,), (1382781446,), (1382781476,), (1382781486,), (1382781491,), (1382781494,), (1382781497,), (1382781501,), (1382781511,), (1382781513,), (1382781515,), (1382781519,), (1382781523,), (1382781542,), (1382781543,), (1382781545,), (1382781547,), (1382781552,), (1382781555,), (1382781565,), (1382781570,), (1382781572,), (1382781574,), (1382781581,), (1382781586,), (1382781589,), (1382781591,), (1382781593,), (1382781598,)) 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 26689031 , 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=26689024 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 (26689031) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26689024) result : ((1382781440,), (1382781444,), (1382781446,), (1382781476,), (1382781486,), (1382781491,), (1382781494,), (1382781497,), (1382781501,), (1382781511,), (1382781513,), (1382781515,), (1382781519,), (1382781523,), (1382781542,), (1382781543,), (1382781545,), (1382781547,), (1382781552,), (1382781555,), (1382781565,), (1382781570,), (1382781572,), (1382781574,), (1382781581,), (1382781586,), (1382781589,), (1382781591,), (1382781593,), (1382781598,)) 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 26689032 , 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=26689024 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 (26689032) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26689024) result : ((1382781440,), (1382781444,), (1382781446,), (1382781476,), (1382781486,), (1382781491,), (1382781494,), (1382781497,), (1382781501,), (1382781511,), (1382781513,), (1382781515,), (1382781519,), (1382781523,), (1382781542,), (1382781543,), (1382781545,), (1382781547,), (1382781552,), (1382781555,), (1382781565,), (1382781570,), (1382781572,), (1382781574,), (1382781581,), (1382781586,), (1382781589,), (1382781591,), (1382781593,), (1382781598,)) 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 26689033 , 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=26689024 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 (26689033) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26689024) result : ((1382781440,), (1382781444,), (1382781446,), (1382781476,), (1382781486,), (1382781491,), (1382781494,), (1382781497,), (1382781501,), (1382781511,), (1382781513,), (1382781515,), (1382781519,), (1382781523,), (1382781542,), (1382781543,), (1382781545,), (1382781547,), (1382781552,), (1382781555,), (1382781565,), (1382781570,), (1382781572,), (1382781574,), (1382781581,), (1382781586,), (1382781589,), (1382781591,), (1382781593,), (1382781598,)) 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 26689034 , 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=26689024 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 (26689034) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26689024) result : ((1382781440,), (1382781444,), (1382781446,), (1382781476,), (1382781486,), (1382781491,), (1382781494,), (1382781497,), (1382781501,), (1382781511,), (1382781513,), (1382781515,), (1382781519,), (1382781523,), (1382781542,), (1382781543,), (1382781545,), (1382781547,), (1382781552,), (1382781555,), (1382781565,), (1382781570,), (1382781572,), (1382781574,), (1382781581,), (1382781586,), (1382781589,), (1382781591,), (1382781593,), (1382781598,)) 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 26689035 , 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=26689024 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 (26689035) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26689024) result : ((1382781440,), (1382781444,), (1382781446,), (1382781476,), (1382781486,), (1382781491,), (1382781494,), (1382781497,), (1382781501,), (1382781511,), (1382781513,), (1382781515,), (1382781519,), (1382781523,), (1382781542,), (1382781543,), (1382781545,), (1382781547,), (1382781552,), (1382781555,), (1382781565,), (1382781570,), (1382781572,), (1382781574,), (1382781581,), (1382781586,), (1382781589,), (1382781591,), (1382781593,), (1382781598,)) 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 26689036 , 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=26689024 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 (26689036) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26689024) result : ((1382781440,), (1382781444,), (1382781446,), (1382781476,), (1382781486,), (1382781491,), (1382781494,), (1382781497,), (1382781501,), (1382781511,), (1382781513,), (1382781515,), (1382781519,), (1382781523,), (1382781542,), (1382781543,), (1382781545,), (1382781547,), (1382781552,), (1382781555,), (1382781565,), (1382781570,), (1382781572,), (1382781574,), (1382781581,), (1382781586,), (1382781589,), (1382781591,), (1382781593,), (1382781598,)) 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 26689037 , 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=26689024 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 (26689037) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26689024) result : ((1382781440,), (1382781444,), (1382781446,), (1382781476,), (1382781486,), (1382781491,), (1382781494,), (1382781497,), (1382781501,), (1382781511,), (1382781513,), (1382781515,), (1382781519,), (1382781523,), (1382781542,), (1382781543,), (1382781545,), (1382781547,), (1382781552,), (1382781555,), (1382781565,), (1382781570,), (1382781572,), (1382781574,), (1382781581,), (1382781586,), (1382781589,), (1382781591,), (1382781593,), (1382781598,)) 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 26689038 , 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=26689024 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 (26689038) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26689024) result : ((1382781440,), (1382781444,), (1382781446,), (1382781476,), (1382781486,), (1382781491,), (1382781494,), (1382781497,), (1382781501,), (1382781511,), (1382781513,), (1382781515,), (1382781519,), (1382781523,), (1382781542,), (1382781543,), (1382781545,), (1382781547,), (1382781552,), (1382781555,), (1382781565,), (1382781570,), (1382781572,), (1382781574,), (1382781581,), (1382781586,), (1382781589,), (1382781591,), (1382781593,), (1382781598,)) 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 26689039 , 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=26689024 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 (26689039) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26689024) result : ((1382781440,), (1382781444,), (1382781446,), (1382781476,), (1382781486,), (1382781491,), (1382781494,), (1382781497,), (1382781501,), (1382781511,), (1382781513,), (1382781515,), (1382781519,), (1382781523,), (1382781542,), (1382781543,), (1382781545,), (1382781547,), (1382781552,), (1382781555,), (1382781565,), (1382781570,), (1382781572,), (1382781574,), (1382781581,), (1382781586,), (1382781589,), (1382781591,), (1382781593,), (1382781598,)) 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`=26689024 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','papier','Carton_gris','metal','plastique','autre_refus','kraft','mal_croppe','Teint_Dans_La_Masse','Carton_brun','flou','environnement')) 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`=26689024 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','papier','Carton_gris','metal','plastique','autre_refus','kraft','mal_croppe','Teint_Dans_La_Masse','Carton_brun','flou','environnement')) AND mptpi.`min_score`=0.5 To do returned map {'flou': {'main_port_id': 26689024, 'sub_port_id': 26689040, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17988595, 'last_updated_at': datetime.datetime(2025, 9, 9, 16, 3, 3), 'last_updated_at_desc': datetime.datetime(2025, 9, 9, 16, 3, 3), 'last_updated_at_asc': datetime.datetime(2025, 9, 9, 16, 3, 3)}, 'Carton_gris': {'main_port_id': 26689024, 'sub_port_id': 26689041, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17988596, 'last_updated_at': datetime.datetime(2025, 9, 9, 16, 3, 3), 'last_updated_at_desc': datetime.datetime(2025, 9, 9, 16, 3, 3), 'last_updated_at_asc': datetime.datetime(2025, 9, 9, 16, 3, 3)}, 'environnement': {'main_port_id': 26689024, 'sub_port_id': 26689042, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17988597, 'last_updated_at': datetime.datetime(2025, 9, 9, 16, 3, 3), 'last_updated_at_desc': datetime.datetime(2025, 9, 9, 16, 3, 3), 'last_updated_at_asc': datetime.datetime(2025, 9, 9, 16, 3, 3)}, 'kraft': {'main_port_id': 26689024, 'sub_port_id': 26689043, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17988598, 'last_updated_at': datetime.datetime(2025, 9, 9, 16, 3, 3), 'last_updated_at_desc': datetime.datetime(2025, 9, 9, 16, 3, 3), 'last_updated_at_asc': datetime.datetime(2025, 9, 9, 16, 3, 3)}, 'papier': {'main_port_id': 26689024, 'sub_port_id': 26689044, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17988599, 'last_updated_at': datetime.datetime(2025, 9, 9, 16, 3, 3), 'last_updated_at_desc': datetime.datetime(2025, 9, 9, 16, 3, 3), 'last_updated_at_asc': datetime.datetime(2025, 9, 9, 16, 3, 3)}, 'plastique': {'main_port_id': 26689024, 'sub_port_id': 26689045, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17988600, 'last_updated_at': datetime.datetime(2025, 9, 9, 16, 3, 3), 'last_updated_at_desc': datetime.datetime(2025, 9, 9, 16, 3, 3), 'last_updated_at_asc': datetime.datetime(2025, 9, 9, 16, 3, 3)}, 'Carton_brun': {'main_port_id': 26689024, 'sub_port_id': 26689046, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17988601, 'last_updated_at': datetime.datetime(2025, 9, 9, 16, 3, 3), 'last_updated_at_desc': datetime.datetime(2025, 9, 9, 16, 3, 3), 'last_updated_at_asc': datetime.datetime(2025, 9, 9, 16, 3, 3)}, 'cartonnette': {'main_port_id': 26689024, 'sub_port_id': 26689047, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17988602, 'last_updated_at': datetime.datetime(2025, 9, 9, 16, 3, 3), 'last_updated_at_desc': datetime.datetime(2025, 9, 9, 16, 3, 3), 'last_updated_at_asc': datetime.datetime(2025, 9, 9, 16, 3, 3)}, 'autre_refus': {'main_port_id': 26689024, 'sub_port_id': 26689048, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17988603, 'last_updated_at': datetime.datetime(2025, 9, 9, 16, 3, 3), 'last_updated_at_desc': datetime.datetime(2025, 9, 9, 16, 3, 3), 'last_updated_at_asc': datetime.datetime(2025, 9, 9, 16, 3, 3)}, 'Teint_Dans_La_Masse': {'main_port_id': 26689024, 'sub_port_id': 26689049, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17988604, 'last_updated_at': datetime.datetime(2025, 9, 9, 16, 3, 3), 'last_updated_at_desc': datetime.datetime(2025, 9, 9, 16, 3, 3), 'last_updated_at_asc': datetime.datetime(2025, 9, 9, 16, 3, 3)}, 'metal': {'main_port_id': 26689024, 'sub_port_id': 26689050, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17988605, 'last_updated_at': datetime.datetime(2025, 9, 9, 16, 3, 3), 'last_updated_at_desc': datetime.datetime(2025, 9, 9, 16, 3, 3), 'last_updated_at_asc': datetime.datetime(2025, 9, 9, 16, 3, 3)}, 'mal_croppe': {'main_port_id': 26689024, 'sub_port_id': 26689051, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17988606, 'last_updated_at': datetime.datetime(2025, 9, 9, 16, 5), 'last_updated_at_desc': datetime.datetime(2025, 9, 9, 16, 5), 'last_updated_at_asc': datetime.datetime(2025, 9, 9, 16, 3, 3)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26689040,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26689028 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26689041,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26689029 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26689042,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26689030 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26689043,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26689031 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26689044,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26689032 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26689045,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26689033 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26689046,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26689034 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26689047,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26689035 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26689048,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26689036 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26689049,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26689037 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26689050,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26689038 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26689051,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26689039 lien utilise dans velours : https://marlene.fotonower.com/velours/26689040,26689041,26689042,26689043,26689044,26689045,26689046,26689047,26689048,26689049,26689050,26689051?tags=flou,Carton_gris,environnement,kraft,papier,plastique,Carton_brun,cartonnette,autre_refus,Teint_Dans_La_Masse,metal,mal_croppe After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([26689024]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1382781598, 1382781593, 1382781591, 1382781589, 1382781586, 1382781581, 1382781574, 1382781572, 1382781570, 1382781565, 1382781555, 1382781552, 1382781547, 1382781545, 1382781543, 1382781542] map_info['map_portfolio_photo'] : {26689024: [1382781598, 1382781593, 1382781591, 1382781589, 1382781586, 1382781581, 1382781574, 1382781572, 1382781570, 1382781565, 1382781555, 1382781552, 1382781547, 1382781545, 1382781543, 1382781542, 1382781523, 1382781519, 1382781515, 1382781513, 1382781511, 1382781501, 1382781497, 1382781494, 1382781491, 1382781486, 1382781476, 1382781446, 1382781444, 1382781440]} final : False mtd_id 4302 list_pids : [1382781598, 1382781593, 1382781591, 1382781589, 1382781586, 1382781581, 1382781574, 1382781572, 1382781570, 1382781565, 1382781555, 1382781552, 1382781547, 1382781545, 1382781543, 1382781542] Looping around the photos to save general results len do output : 1 /26689024. 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, '3684978') ('4302', '26689024', '1382781598', None, None, None, None, None, '3684978') ('4302', None, None, None, None, None, None, None, '3684978') ('4302', '26689024', '1382781593', None, None, None, None, None, '3684978') ('4302', None, None, None, None, None, None, None, '3684978') ('4302', '26689024', '1382781591', None, None, None, None, None, '3684978') ('4302', None, None, None, None, None, None, None, '3684978') ('4302', '26689024', '1382781589', None, None, None, None, None, '3684978') ('4302', None, None, None, None, None, None, None, '3684978') ('4302', '26689024', '1382781586', None, None, None, None, None, '3684978') ('4302', None, None, None, None, None, None, None, '3684978') ('4302', '26689024', '1382781581', None, None, None, None, None, '3684978') ('4302', None, None, None, None, None, None, None, '3684978') ('4302', '26689024', '1382781574', None, None, None, None, None, '3684978') ('4302', None, None, None, None, None, None, None, '3684978') ('4302', '26689024', '1382781572', None, None, None, None, None, '3684978') ('4302', None, None, None, None, None, None, None, '3684978') ('4302', '26689024', '1382781570', None, None, None, None, None, '3684978') ('4302', None, None, None, None, None, None, None, '3684978') ('4302', '26689024', '1382781565', None, None, None, None, None, '3684978') ('4302', None, None, None, None, None, None, None, '3684978') ('4302', '26689024', '1382781555', None, None, None, None, None, '3684978') ('4302', None, None, None, None, None, None, None, '3684978') ('4302', '26689024', '1382781552', None, None, None, None, None, '3684978') ('4302', None, None, None, None, None, None, None, '3684978') ('4302', '26689024', '1382781547', None, None, None, None, None, '3684978') ('4302', None, None, None, None, None, None, None, '3684978') ('4302', '26689024', '1382781545', None, None, None, None, None, '3684978') ('4302', None, None, None, None, None, None, None, '3684978') ('4302', '26689024', '1382781543', None, None, None, None, None, '3684978') ('4302', None, None, None, None, None, None, None, '3684978') ('4302', '26689024', '1382781542', None, None, None, None, None, '3684978') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 17 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, '26689024', "{'flou': 26689028, 'Carton_gris': 26689029, 'environnement': 26689030, 'kraft': 26689031, 'papier': 26689032, 'plastique': 26689033, 'Carton_brun': 26689034, 'cartonnette': 26689035, 'autre_refus': 26689036, 'Teint_Dans_La_Masse': 26689037, 'metal': 26689038, 'mal_croppe': 26689039}", None, None, None, None, '3684978'), ('4302', '26689024', '1382781598', None, None, None, None, None, '3684978'), ('4302', '26689024', '1382781593', None, None, None, None, None, '3684978'), ('4302', '26689024', '1382781591', None, None, None, None, None, '3684978'), ('4302', '26689024', '1382781589', None, None, None, None, None, '3684978'), ('4302', '26689024', '1382781586', None, None, None, None, None, '3684978'), ('4302', '26689024', '1382781581', None, None, None, None, None, '3684978'), ('4302', '26689024', '1382781574', None, None, None, None, None, '3684978'), ('4302', '26689024', '1382781572', None, None, None, None, None, '3684978'), ('4302', '26689024', '1382781570', None, None, None, None, None, '3684978'), ('4302', '26689024', '1382781565', None, None, None, None, None, '3684978'), ('4302', '26689024', '1382781555', None, None, None, None, None, '3684978'), ('4302', '26689024', '1382781552', None, None, None, None, None, '3684978'), ('4302', '26689024', '1382781547', None, None, None, None, None, '3684978'), ('4302', '26689024', '1382781545', None, None, None, None, None, '3684978'), ('4302', '26689024', '1382781543', None, None, None, None, None, '3684978'), ('4302', '26689024', '1382781542', None, None, None, None, None, '3684978')] time used for this insertion : 0.03188896179199219 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.592147588729858 time spend to save output : 0.032225608825683594 total time spend for step 1 : 4.624373197555542 step2:final Tue Sep 9 16:06:35 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 (26689024) 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 26689024 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1382781446,1382781444,1382781440,1382781501,1382781497,1382781494,1382781491,1382781486,1382781476,1382781574,1382781523,1382781572,1382781519,1382781515,1382781570,1382781513,1382781565,1382781511,1382781555,1382781552,1382781547,1382781545,1382781543,1382781542,1382781598,1382781593,1382781591,1382781589,1382781586,1382781581); 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([26689024]) Inside saveOutput : final : False verbose : True original output for save of step final : {1382781598: ('0.008153125035702377',), 1382781593: ('0.008153125035702377',), 1382781591: ('0.008153125035702377',), 1382781589: ('0.008153125035702377',), 1382781586: ('0.008153125035702377',), 1382781581: ('0.008153125035702377',), 1382781574: ('0.008153125035702377',), 1382781572: ('0.008153125035702377',), 1382781570: ('0.008153125035702377',), 1382781565: ('0.008153125035702377',), 1382781555: ('0.008153125035702377',), 1382781552: ('0.008153125035702377',), 1382781547: ('0.008153125035702377',), 1382781545: ('0.008153125035702377',), 1382781543: ('0.008153125035702377',), 1382781542: ('0.008153125035702377',)} new output for save of step final : {1382781598: ('0.008153125035702377',), 1382781593: ('0.008153125035702377',), 1382781591: ('0.008153125035702377',), 1382781589: ('0.008153125035702377',), 1382781586: ('0.008153125035702377',), 1382781581: ('0.008153125035702377',), 1382781574: ('0.008153125035702377',), 1382781572: ('0.008153125035702377',), 1382781570: ('0.008153125035702377',), 1382781565: ('0.008153125035702377',), 1382781555: ('0.008153125035702377',), 1382781552: ('0.008153125035702377',), 1382781547: ('0.008153125035702377',), 1382781545: ('0.008153125035702377',), 1382781543: ('0.008153125035702377',), 1382781542: ('0.008153125035702377',)} [1382781598, 1382781593, 1382781591, 1382781589, 1382781586, 1382781581, 1382781574, 1382781572, 1382781570, 1382781565, 1382781555, 1382781552, 1382781547, 1382781545, 1382781543, 1382781542] map_info['map_portfolio_photo'] : {26689024: [1382781598, 1382781593, 1382781591, 1382781589, 1382781586, 1382781581, 1382781574, 1382781572, 1382781570, 1382781565, 1382781555, 1382781552, 1382781547, 1382781545, 1382781543, 1382781542, 1382781523, 1382781519, 1382781515, 1382781513, 1382781511, 1382781501, 1382781497, 1382781494, 1382781491, 1382781486, 1382781476, 1382781446, 1382781444, 1382781440]} final : False mtd_id 4302 list_pids : [1382781598, 1382781593, 1382781591, 1382781589, 1382781586, 1382781581, 1382781574, 1382781572, 1382781570, 1382781565, 1382781555, 1382781552, 1382781547, 1382781545, 1382781543, 1382781542] Looping around the photos to save general results len do output : 16 /1382781598.Didn't retrieve data . /1382781593.Didn't retrieve data . /1382781591.Didn't retrieve data . /1382781589.Didn't retrieve data . /1382781586.Didn't retrieve data . /1382781581.Didn't retrieve data . /1382781574.Didn't retrieve data . /1382781572.Didn't retrieve data . /1382781570.Didn't retrieve data . /1382781565.Didn't retrieve data . /1382781555.Didn't retrieve data . /1382781552.Didn't retrieve data . /1382781547.Didn't retrieve data . /1382781545.Didn't retrieve data . /1382781543.Didn't retrieve data . /1382781542.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, '3684978') ('4302', '26689024', '1382781598', None, None, None, None, None, '3684978') ('4302', None, None, None, None, None, None, None, '3684978') ('4302', '26689024', '1382781593', None, None, None, None, None, '3684978') ('4302', None, None, None, None, None, None, None, '3684978') ('4302', '26689024', '1382781591', None, None, None, None, None, '3684978') ('4302', None, None, None, None, None, None, None, '3684978') ('4302', '26689024', '1382781589', None, None, None, None, None, '3684978') ('4302', None, None, None, None, None, None, None, '3684978') ('4302', '26689024', '1382781586', None, None, None, None, None, '3684978') ('4302', None, None, None, None, None, None, None, '3684978') ('4302', '26689024', '1382781581', None, None, None, None, None, '3684978') ('4302', None, None, None, None, None, None, None, '3684978') ('4302', '26689024', '1382781574', None, None, None, None, None, '3684978') ('4302', None, None, None, None, None, None, None, '3684978') ('4302', '26689024', '1382781572', None, None, None, None, None, '3684978') ('4302', None, None, None, None, None, None, None, '3684978') ('4302', '26689024', '1382781570', None, None, None, None, None, '3684978') ('4302', None, None, None, None, None, None, None, '3684978') ('4302', '26689024', '1382781565', None, None, None, None, None, '3684978') ('4302', None, None, None, None, None, None, None, '3684978') ('4302', '26689024', '1382781555', None, None, None, None, None, '3684978') ('4302', None, None, None, None, None, None, None, '3684978') ('4302', '26689024', '1382781552', None, None, None, None, None, '3684978') ('4302', None, None, None, None, None, None, None, '3684978') ('4302', '26689024', '1382781547', None, None, None, None, None, '3684978') ('4302', None, None, None, None, None, None, None, '3684978') ('4302', '26689024', '1382781545', None, None, None, None, None, '3684978') ('4302', None, None, None, None, None, None, None, '3684978') ('4302', '26689024', '1382781543', None, None, None, None, None, '3684978') ('4302', None, None, None, None, None, None, None, '3684978') ('4302', '26689024', '1382781542', None, None, None, None, None, '3684978') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 48 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', '26689024', '1382781598', '0.008153125035702377', None, None, None, None, '3684978'), ('4302', '26689024', '1382781593', '0.008153125035702377', None, None, None, None, '3684978'), ('4302', '26689024', '1382781591', '0.008153125035702377', None, None, None, None, '3684978'), ('4302', '26689024', '1382781589', '0.008153125035702377', None, None, None, None, '3684978'), ('4302', '26689024', '1382781586', '0.008153125035702377', None, None, None, None, '3684978'), ('4302', '26689024', '1382781581', '0.008153125035702377', None, None, None, None, '3684978'), ('4302', '26689024', '1382781574', '0.008153125035702377', None, None, None, None, '3684978'), ('4302', '26689024', '1382781572', '0.008153125035702377', None, None, None, None, '3684978'), ('4302', '26689024', '1382781570', '0.008153125035702377', None, None, None, None, '3684978'), ('4302', '26689024', '1382781565', '0.008153125035702377', None, None, None, None, '3684978'), ('4302', '26689024', '1382781555', '0.008153125035702377', None, None, None, None, '3684978'), ('4302', '26689024', '1382781552', '0.008153125035702377', None, None, None, None, '3684978'), ('4302', '26689024', '1382781547', '0.008153125035702377', None, None, None, None, '3684978'), ('4302', '26689024', '1382781545', '0.008153125035702377', None, None, None, None, '3684978'), ('4302', '26689024', '1382781543', '0.008153125035702377', None, None, None, None, '3684978'), ('4302', '26689024', '1382781542', '0.008153125035702377', None, None, None, None, '3684978')] time used for this insertion : 0.03434419631958008 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.1808300018310547 time spend to save output : 0.0350651741027832 total time spend for step 2 : 0.2158951759338379 step3:velours_tree Tue Sep 9 16:06:35 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 : {26689024: [{'flou': 26689028, 'Carton_gris': 26689029, 'environnement': 26689030, 'kraft': 26689031, 'papier': 26689032, 'plastique': 26689033, 'Carton_brun': 26689034, 'cartonnette': 26689035, 'autre_refus': 26689036, 'Teint_Dans_La_Masse': 26689037, 'metal': 26689038, 'mal_croppe': 26689039}]} input_args_next_step : {26689024: ()} output_args : {26689024: [{'flou': 26689028, 'Carton_gris': 26689029, 'environnement': 26689030, 'kraft': 26689031, 'papier': 26689032, 'plastique': 26689033, 'Carton_brun': 26689034, 'cartonnette': 26689035, 'autre_refus': 26689036, 'Teint_Dans_La_Masse': 26689037, 'metal': 26689038, 'mal_croppe': 26689039}]} args : 26689024 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 : ({'flou': 26689028, 'Carton_gris': 26689029, 'environnement': 26689030, 'kraft': 26689031, 'papier': 26689032, 'plastique': 26689033, 'Carton_brun': 26689034, 'cartonnette': 26689035, 'autre_refus': 26689036, 'Teint_Dans_La_Masse': 26689037, 'metal': 26689038, 'mal_croppe': 26689039},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (26689024) 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([26689024]) 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.31163954734802246 time spend to save output : 5.054473876953125e-05 total time spend for step 3 : 0.311690092086792 step4:send_mail_cod Tue Sep 9 16:06:35 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 : {1382781598: ('0.008153125035702377',), 1382781593: ('0.008153125035702377',), 1382781591: ('0.008153125035702377',), 1382781589: ('0.008153125035702377',), 1382781586: ('0.008153125035702377',), 1382781581: ('0.008153125035702377',), 1382781574: ('0.008153125035702377',), 1382781572: ('0.008153125035702377',), 1382781570: ('0.008153125035702377',), 1382781565: ('0.008153125035702377',), 1382781555: ('0.008153125035702377',), 1382781552: ('0.008153125035702377',), 1382781547: ('0.008153125035702377',), 1382781545: ('0.008153125035702377',), 1382781543: ('0.008153125035702377',), 1382781542: ('0.008153125035702377',)} input_args_next_step : {1382781598: ()} output_args : {1382781598: ('0.008153125035702377',), 1382781593: ('0.008153125035702377',), 1382781591: ('0.008153125035702377',), 1382781589: ('0.008153125035702377',), 1382781586: ('0.008153125035702377',), 1382781581: ('0.008153125035702377',), 1382781574: ('0.008153125035702377',), 1382781572: ('0.008153125035702377',), 1382781570: ('0.008153125035702377',), 1382781565: ('0.008153125035702377',), 1382781555: ('0.008153125035702377',), 1382781552: ('0.008153125035702377',), 1382781547: ('0.008153125035702377',), 1382781545: ('0.008153125035702377',), 1382781543: ('0.008153125035702377',), 1382781542: ('0.008153125035702377',)} args : 1382781598 depend.output_id : 0 input_args_next_step : {1382781598: ('0.008153125035702377',), 1382781593: ()} output_args : {1382781598: ('0.008153125035702377',), 1382781593: ('0.008153125035702377',), 1382781591: ('0.008153125035702377',), 1382781589: ('0.008153125035702377',), 1382781586: ('0.008153125035702377',), 1382781581: ('0.008153125035702377',), 1382781574: ('0.008153125035702377',), 1382781572: ('0.008153125035702377',), 1382781570: ('0.008153125035702377',), 1382781565: ('0.008153125035702377',), 1382781555: ('0.008153125035702377',), 1382781552: ('0.008153125035702377',), 1382781547: ('0.008153125035702377',), 1382781545: ('0.008153125035702377',), 1382781543: ('0.008153125035702377',), 1382781542: ('0.008153125035702377',)} args : 1382781593 depend.output_id : 0 input_args_next_step : {1382781598: ('0.008153125035702377',), 1382781593: ('0.008153125035702377',), 1382781591: ()} output_args : {1382781598: ('0.008153125035702377',), 1382781593: ('0.008153125035702377',), 1382781591: ('0.008153125035702377',), 1382781589: ('0.008153125035702377',), 1382781586: ('0.008153125035702377',), 1382781581: ('0.008153125035702377',), 1382781574: ('0.008153125035702377',), 1382781572: ('0.008153125035702377',), 1382781570: ('0.008153125035702377',), 1382781565: ('0.008153125035702377',), 1382781555: ('0.008153125035702377',), 1382781552: ('0.008153125035702377',), 1382781547: ('0.008153125035702377',), 1382781545: ('0.008153125035702377',), 1382781543: ('0.008153125035702377',), 1382781542: ('0.008153125035702377',)} args : 1382781591 depend.output_id : 0 input_args_next_step : {1382781598: ('0.008153125035702377',), 1382781593: ('0.008153125035702377',), 1382781591: ('0.008153125035702377',), 1382781589: ()} output_args : {1382781598: ('0.008153125035702377',), 1382781593: ('0.008153125035702377',), 1382781591: ('0.008153125035702377',), 1382781589: ('0.008153125035702377',), 1382781586: ('0.008153125035702377',), 1382781581: ('0.008153125035702377',), 1382781574: ('0.008153125035702377',), 1382781572: ('0.008153125035702377',), 1382781570: ('0.008153125035702377',), 1382781565: ('0.008153125035702377',), 1382781555: ('0.008153125035702377',), 1382781552: ('0.008153125035702377',), 1382781547: ('0.008153125035702377',), 1382781545: ('0.008153125035702377',), 1382781543: ('0.008153125035702377',), 1382781542: ('0.008153125035702377',)} args : 1382781589 depend.output_id : 0 input_args_next_step : {1382781598: ('0.008153125035702377',), 1382781593: ('0.008153125035702377',), 1382781591: ('0.008153125035702377',), 1382781589: ('0.008153125035702377',), 1382781586: ()} output_args : {1382781598: ('0.008153125035702377',), 1382781593: ('0.008153125035702377',), 1382781591: ('0.008153125035702377',), 1382781589: ('0.008153125035702377',), 1382781586: ('0.008153125035702377',), 1382781581: ('0.008153125035702377',), 1382781574: ('0.008153125035702377',), 1382781572: ('0.008153125035702377',), 1382781570: ('0.008153125035702377',), 1382781565: ('0.008153125035702377',), 1382781555: ('0.008153125035702377',), 1382781552: ('0.008153125035702377',), 1382781547: ('0.008153125035702377',), 1382781545: ('0.008153125035702377',), 1382781543: ('0.008153125035702377',), 1382781542: ('0.008153125035702377',)} args : 1382781586 depend.output_id : 0 input_args_next_step : {1382781598: ('0.008153125035702377',), 1382781593: ('0.008153125035702377',), 1382781591: ('0.008153125035702377',), 1382781589: ('0.008153125035702377',), 1382781586: ('0.008153125035702377',), 1382781581: ()} output_args : {1382781598: ('0.008153125035702377',), 1382781593: ('0.008153125035702377',), 1382781591: ('0.008153125035702377',), 1382781589: ('0.008153125035702377',), 1382781586: ('0.008153125035702377',), 1382781581: ('0.008153125035702377',), 1382781574: ('0.008153125035702377',), 1382781572: ('0.008153125035702377',), 1382781570: ('0.008153125035702377',), 1382781565: ('0.008153125035702377',), 1382781555: ('0.008153125035702377',), 1382781552: ('0.008153125035702377',), 1382781547: ('0.008153125035702377',), 1382781545: ('0.008153125035702377',), 1382781543: ('0.008153125035702377',), 1382781542: ('0.008153125035702377',)} args : 1382781581 depend.output_id : 0 input_args_next_step : {1382781598: ('0.008153125035702377',), 1382781593: ('0.008153125035702377',), 1382781591: ('0.008153125035702377',), 1382781589: ('0.008153125035702377',), 1382781586: ('0.008153125035702377',), 1382781581: ('0.008153125035702377',), 1382781574: ()} output_args : {1382781598: ('0.008153125035702377',), 1382781593: ('0.008153125035702377',), 1382781591: ('0.008153125035702377',), 1382781589: ('0.008153125035702377',), 1382781586: ('0.008153125035702377',), 1382781581: ('0.008153125035702377',), 1382781574: ('0.008153125035702377',), 1382781572: ('0.008153125035702377',), 1382781570: ('0.008153125035702377',), 1382781565: ('0.008153125035702377',), 1382781555: ('0.008153125035702377',), 1382781552: ('0.008153125035702377',), 1382781547: ('0.008153125035702377',), 1382781545: ('0.008153125035702377',), 1382781543: ('0.008153125035702377',), 1382781542: ('0.008153125035702377',)} args : 1382781574 depend.output_id : 0 input_args_next_step : {1382781598: ('0.008153125035702377',), 1382781593: ('0.008153125035702377',), 1382781591: ('0.008153125035702377',), 1382781589: ('0.008153125035702377',), 1382781586: ('0.008153125035702377',), 1382781581: ('0.008153125035702377',), 1382781574: ('0.008153125035702377',), 1382781572: ()} output_args : {1382781598: ('0.008153125035702377',), 1382781593: ('0.008153125035702377',), 1382781591: ('0.008153125035702377',), 1382781589: ('0.008153125035702377',), 1382781586: ('0.008153125035702377',), 1382781581: ('0.008153125035702377',), 1382781574: ('0.008153125035702377',), 1382781572: ('0.008153125035702377',), 1382781570: ('0.008153125035702377',), 1382781565: ('0.008153125035702377',), 1382781555: ('0.008153125035702377',), 1382781552: ('0.008153125035702377',), 1382781547: ('0.008153125035702377',), 1382781545: ('0.008153125035702377',), 1382781543: ('0.008153125035702377',), 1382781542: ('0.008153125035702377',)} args : 1382781572 depend.output_id : 0 input_args_next_step : {1382781598: ('0.008153125035702377',), 1382781593: ('0.008153125035702377',), 1382781591: ('0.008153125035702377',), 1382781589: ('0.008153125035702377',), 1382781586: ('0.008153125035702377',), 1382781581: ('0.008153125035702377',), 1382781574: ('0.008153125035702377',), 1382781572: ('0.008153125035702377',), 1382781570: ()} output_args : {1382781598: ('0.008153125035702377',), 1382781593: ('0.008153125035702377',), 1382781591: ('0.008153125035702377',), 1382781589: ('0.008153125035702377',), 1382781586: ('0.008153125035702377',), 1382781581: ('0.008153125035702377',), 1382781574: ('0.008153125035702377',), 1382781572: ('0.008153125035702377',), 1382781570: ('0.008153125035702377',), 1382781565: ('0.008153125035702377',), 1382781555: ('0.008153125035702377',), 1382781552: ('0.008153125035702377',), 1382781547: ('0.008153125035702377',), 1382781545: ('0.008153125035702377',), 1382781543: ('0.008153125035702377',), 1382781542: ('0.008153125035702377',)} args : 1382781570 depend.output_id : 0 input_args_next_step : {1382781598: ('0.008153125035702377',), 1382781593: ('0.008153125035702377',), 1382781591: ('0.008153125035702377',), 1382781589: ('0.008153125035702377',), 1382781586: ('0.008153125035702377',), 1382781581: ('0.008153125035702377',), 1382781574: ('0.008153125035702377',), 1382781572: ('0.008153125035702377',), 1382781570: ('0.008153125035702377',), 1382781565: ()} output_args : {1382781598: ('0.008153125035702377',), 1382781593: ('0.008153125035702377',), 1382781591: ('0.008153125035702377',), 1382781589: ('0.008153125035702377',), 1382781586: ('0.008153125035702377',), 1382781581: ('0.008153125035702377',), 1382781574: ('0.008153125035702377',), 1382781572: ('0.008153125035702377',), 1382781570: ('0.008153125035702377',), 1382781565: ('0.008153125035702377',), 1382781555: ('0.008153125035702377',), 1382781552: ('0.008153125035702377',), 1382781547: ('0.008153125035702377',), 1382781545: ('0.008153125035702377',), 1382781543: ('0.008153125035702377',), 1382781542: ('0.008153125035702377',)} args : 1382781565 depend.output_id : 0 input_args_next_step : {1382781598: ('0.008153125035702377',), 1382781593: ('0.008153125035702377',), 1382781591: ('0.008153125035702377',), 1382781589: ('0.008153125035702377',), 1382781586: ('0.008153125035702377',), 1382781581: ('0.008153125035702377',), 1382781574: ('0.008153125035702377',), 1382781572: ('0.008153125035702377',), 1382781570: ('0.008153125035702377',), 1382781565: ('0.008153125035702377',), 1382781555: ()} output_args : {1382781598: ('0.008153125035702377',), 1382781593: ('0.008153125035702377',), 1382781591: ('0.008153125035702377',), 1382781589: ('0.008153125035702377',), 1382781586: ('0.008153125035702377',), 1382781581: ('0.008153125035702377',), 1382781574: ('0.008153125035702377',), 1382781572: ('0.008153125035702377',), 1382781570: ('0.008153125035702377',), 1382781565: ('0.008153125035702377',), 1382781555: ('0.008153125035702377',), 1382781552: ('0.008153125035702377',), 1382781547: ('0.008153125035702377',), 1382781545: ('0.008153125035702377',), 1382781543: ('0.008153125035702377',), 1382781542: ('0.008153125035702377',)} args : 1382781555 depend.output_id : 0 input_args_next_step : {1382781598: ('0.008153125035702377',), 1382781593: ('0.008153125035702377',), 1382781591: ('0.008153125035702377',), 1382781589: ('0.008153125035702377',), 1382781586: ('0.008153125035702377',), 1382781581: ('0.008153125035702377',), 1382781574: ('0.008153125035702377',), 1382781572: ('0.008153125035702377',), 1382781570: ('0.008153125035702377',), 1382781565: ('0.008153125035702377',), 1382781555: ('0.008153125035702377',), 1382781552: ()} output_args : {1382781598: ('0.008153125035702377',), 1382781593: ('0.008153125035702377',), 1382781591: ('0.008153125035702377',), 1382781589: ('0.008153125035702377',), 1382781586: ('0.008153125035702377',), 1382781581: ('0.008153125035702377',), 1382781574: ('0.008153125035702377',), 1382781572: ('0.008153125035702377',), 1382781570: ('0.008153125035702377',), 1382781565: ('0.008153125035702377',), 1382781555: ('0.008153125035702377',), 1382781552: ('0.008153125035702377',), 1382781547: ('0.008153125035702377',), 1382781545: ('0.008153125035702377',), 1382781543: ('0.008153125035702377',), 1382781542: ('0.008153125035702377',)} args : 1382781552 depend.output_id : 0 input_args_next_step : {1382781598: ('0.008153125035702377',), 1382781593: ('0.008153125035702377',), 1382781591: ('0.008153125035702377',), 1382781589: ('0.008153125035702377',), 1382781586: ('0.008153125035702377',), 1382781581: ('0.008153125035702377',), 1382781574: ('0.008153125035702377',), 1382781572: ('0.008153125035702377',), 1382781570: ('0.008153125035702377',), 1382781565: ('0.008153125035702377',), 1382781555: ('0.008153125035702377',), 1382781552: ('0.008153125035702377',), 1382781547: ()} output_args : {1382781598: ('0.008153125035702377',), 1382781593: ('0.008153125035702377',), 1382781591: ('0.008153125035702377',), 1382781589: ('0.008153125035702377',), 1382781586: ('0.008153125035702377',), 1382781581: ('0.008153125035702377',), 1382781574: ('0.008153125035702377',), 1382781572: ('0.008153125035702377',), 1382781570: ('0.008153125035702377',), 1382781565: ('0.008153125035702377',), 1382781555: ('0.008153125035702377',), 1382781552: ('0.008153125035702377',), 1382781547: ('0.008153125035702377',), 1382781545: ('0.008153125035702377',), 1382781543: ('0.008153125035702377',), 1382781542: ('0.008153125035702377',)} args : 1382781547 depend.output_id : 0 input_args_next_step : {1382781598: ('0.008153125035702377',), 1382781593: ('0.008153125035702377',), 1382781591: ('0.008153125035702377',), 1382781589: ('0.008153125035702377',), 1382781586: ('0.008153125035702377',), 1382781581: ('0.008153125035702377',), 1382781574: ('0.008153125035702377',), 1382781572: ('0.008153125035702377',), 1382781570: ('0.008153125035702377',), 1382781565: ('0.008153125035702377',), 1382781555: ('0.008153125035702377',), 1382781552: ('0.008153125035702377',), 1382781547: ('0.008153125035702377',), 1382781545: ()} output_args : {1382781598: ('0.008153125035702377',), 1382781593: ('0.008153125035702377',), 1382781591: ('0.008153125035702377',), 1382781589: ('0.008153125035702377',), 1382781586: ('0.008153125035702377',), 1382781581: ('0.008153125035702377',), 1382781574: ('0.008153125035702377',), 1382781572: ('0.008153125035702377',), 1382781570: ('0.008153125035702377',), 1382781565: ('0.008153125035702377',), 1382781555: ('0.008153125035702377',), 1382781552: ('0.008153125035702377',), 1382781547: ('0.008153125035702377',), 1382781545: ('0.008153125035702377',), 1382781543: ('0.008153125035702377',), 1382781542: ('0.008153125035702377',)} args : 1382781545 depend.output_id : 0 input_args_next_step : {1382781598: ('0.008153125035702377',), 1382781593: ('0.008153125035702377',), 1382781591: ('0.008153125035702377',), 1382781589: ('0.008153125035702377',), 1382781586: ('0.008153125035702377',), 1382781581: ('0.008153125035702377',), 1382781574: ('0.008153125035702377',), 1382781572: ('0.008153125035702377',), 1382781570: ('0.008153125035702377',), 1382781565: ('0.008153125035702377',), 1382781555: ('0.008153125035702377',), 1382781552: ('0.008153125035702377',), 1382781547: ('0.008153125035702377',), 1382781545: ('0.008153125035702377',), 1382781543: ()} output_args : {1382781598: ('0.008153125035702377',), 1382781593: ('0.008153125035702377',), 1382781591: ('0.008153125035702377',), 1382781589: ('0.008153125035702377',), 1382781586: ('0.008153125035702377',), 1382781581: ('0.008153125035702377',), 1382781574: ('0.008153125035702377',), 1382781572: ('0.008153125035702377',), 1382781570: ('0.008153125035702377',), 1382781565: ('0.008153125035702377',), 1382781555: ('0.008153125035702377',), 1382781552: ('0.008153125035702377',), 1382781547: ('0.008153125035702377',), 1382781545: ('0.008153125035702377',), 1382781543: ('0.008153125035702377',), 1382781542: ('0.008153125035702377',)} args : 1382781543 depend.output_id : 0 input_args_next_step : {1382781598: ('0.008153125035702377',), 1382781593: ('0.008153125035702377',), 1382781591: ('0.008153125035702377',), 1382781589: ('0.008153125035702377',), 1382781586: ('0.008153125035702377',), 1382781581: ('0.008153125035702377',), 1382781574: ('0.008153125035702377',), 1382781572: ('0.008153125035702377',), 1382781570: ('0.008153125035702377',), 1382781565: ('0.008153125035702377',), 1382781555: ('0.008153125035702377',), 1382781552: ('0.008153125035702377',), 1382781547: ('0.008153125035702377',), 1382781545: ('0.008153125035702377',), 1382781543: ('0.008153125035702377',), 1382781542: ()} output_args : {1382781598: ('0.008153125035702377',), 1382781593: ('0.008153125035702377',), 1382781591: ('0.008153125035702377',), 1382781589: ('0.008153125035702377',), 1382781586: ('0.008153125035702377',), 1382781581: ('0.008153125035702377',), 1382781574: ('0.008153125035702377',), 1382781572: ('0.008153125035702377',), 1382781570: ('0.008153125035702377',), 1382781565: ('0.008153125035702377',), 1382781555: ('0.008153125035702377',), 1382781552: ('0.008153125035702377',), 1382781547: ('0.008153125035702377',), 1382781545: ('0.008153125035702377',), 1382781543: ('0.008153125035702377',), 1382781542: ('0.008153125035702377',)} args : 1382781542 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 : {26689024: [{'flou': 26689028, 'Carton_gris': 26689029, 'environnement': 26689030, 'kraft': 26689031, 'papier': 26689032, 'plastique': 26689033, 'Carton_brun': 26689034, 'cartonnette': 26689035, 'autre_refus': 26689036, 'Teint_Dans_La_Masse': 26689037, 'metal': 26689038, 'mal_croppe': 26689039}]} input_args_next_step : {1382781598: ('0.008153125035702377',), 1382781593: ('0.008153125035702377',), 1382781591: ('0.008153125035702377',), 1382781589: ('0.008153125035702377',), 1382781586: ('0.008153125035702377',), 1382781581: ('0.008153125035702377',), 1382781574: ('0.008153125035702377',), 1382781572: ('0.008153125035702377',), 1382781570: ('0.008153125035702377',), 1382781565: ('0.008153125035702377',), 1382781555: ('0.008153125035702377',), 1382781552: ('0.008153125035702377',), 1382781547: ('0.008153125035702377',), 1382781545: ('0.008153125035702377',), 1382781543: ('0.008153125035702377',), 1382781542: ('0.008153125035702377',), 26689024: ()} output_args : {26689024: [{'flou': 26689028, 'Carton_gris': 26689029, 'environnement': 26689030, 'kraft': 26689031, 'papier': 26689032, 'plastique': 26689033, 'Carton_brun': 26689034, 'cartonnette': 26689035, 'autre_refus': 26689036, 'Teint_Dans_La_Masse': 26689037, 'metal': 26689038, 'mal_croppe': 26689039}]} args : 26689024 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 :17, first value : ('0.008153125035702377',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (26689024) 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 (1382781598,1382781593,1382781591,1382781589,1382781586,1382781581,1382781574,1382781572,1382781570,1382781565,1382781555,1382781552,1382781547,1382781545,1382781543,1382781542) Found this number of photos: 16 ##### Call download_photos : nb_thread : 5 begin to download photo : 1382781542 begin to download photo : 1382781552 begin to download photo : 1382781572 begin to download photo : 1382781589 download finish for photo 1382781572 begin to download photo : 1382781574 download finish for photo 1382781552 begin to download photo : 1382781555 download finish for photo 1382781542 begin to download photo : 1382781543 download finish for photo 1382781589 begin to download photo : 1382781591 download finish for photo 1382781555 begin to download photo : 1382781565 download finish for photo 1382781543 begin to download photo : 1382781545 download finish for photo 1382781574 begin to download photo : 1382781581 download finish for photo 1382781591 begin to download photo : 1382781593 download finish for photo 1382781593 begin to download photo : 1382781598 download finish for photo 1382781545 begin to download photo : 1382781547 download finish for photo 1382781565 begin to download photo : 1382781570 download finish for photo 1382781581 begin to download photo : 1382781586 download finish for photo 1382781598 download finish for photo 1382781570 download finish for photo 1382781547 download finish for photo 1382781586 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette266890281757426796/ imagette266890311757426796/ imagette266890331757426796/ imagette266890351757426796/ imagette266890361757426796/ imagette266890381757426796/ imagette266890391757426796/ imagette266890291757426796/ imagette266890341757426796/ imagette266890371757426796/ length of list_filenames : 16 ; length of list_pids : 16 ; length of list_args : 16 results_Auto_P26689024_09-09-2025_16_06_36.pdf 26689028 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=26689028 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette266890281757426796 26689031 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=26689031 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette266890311757426796 26689033 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=26689033 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette266890331757426796 26689035 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=26689035 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette266890351757426796 26689036 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=26689036 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette266890361757426796 26689038 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=26689038 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette266890381757426796 26689039 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=26689039 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette266890391757426796 26689029 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=26689029 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette266890291757426796 26689034 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=26689034 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette266890341757426796 26689037 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=26689037 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette266890371757426796 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=26689024 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/26689040,26689041,26689042,26689043,26689044,26689045,26689046,26689047,26689048,26689049,26689050,26689051?tags=flou,Carton_gris,environnement,kraft,papier,plastique,Carton_brun,cartonnette,autre_refus,Teint_Dans_La_Masse,metal,mal_croppe your option no_mail is active, we will not send the real mail to your client args[1382781598] : ('0.008153125035702377',) no score found for photo 1382781598 We are sending mail with results at report@fotonower.com args[1382781593] : ('0.008153125035702377',) no score found for photo 1382781593 We are sending mail with results at report@fotonower.com args[1382781591] : ('0.008153125035702377',) no score found for photo 1382781591 We are sending mail with results at report@fotonower.com args[1382781589] : ('0.008153125035702377',) no score found for photo 1382781589 We are sending mail with results at report@fotonower.com args[1382781586] : ('0.008153125035702377',) no score found for photo 1382781586 We are sending mail with results at report@fotonower.com args[1382781581] : ('0.008153125035702377',) no score found for photo 1382781581 We are sending mail with results at report@fotonower.com args[1382781574] : ('0.008153125035702377',) no score found for photo 1382781574 We are sending mail with results at report@fotonower.com args[1382781572] : ('0.008153125035702377',) no score found for photo 1382781572 We are sending mail with results at report@fotonower.com args[1382781570] : ('0.008153125035702377',) no score found for photo 1382781570 We are sending mail with results at report@fotonower.com args[1382781565] : ('0.008153125035702377',) no score found for photo 1382781565 We are sending mail with results at report@fotonower.com args[1382781555] : ('0.008153125035702377',) no score found for photo 1382781555 We are sending mail with results at report@fotonower.com args[1382781552] : ('0.008153125035702377',) no score found for photo 1382781552 We are sending mail with results at report@fotonower.com args[1382781547] : ('0.008153125035702377',) no score found for photo 1382781547 We are sending mail with results at report@fotonower.com args[1382781545] : ('0.008153125035702377',) no score found for photo 1382781545 We are sending mail with results at report@fotonower.com args[1382781543] : ('0.008153125035702377',) no score found for photo 1382781543 We are sending mail with results at report@fotonower.com args[1382781542] : ('0.008153125035702377',) no score found for photo 1382781542 We are sending mail with results at report@fotonower.com refus_total : 0.008153125035702377 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=26689024 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_P26689024_09-09-2025_16_06_36.pdf results_Auto_P26689024_09-09-2025_16_06_36.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26689024_09-09-2025_16_06_36.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','26689024','results_Auto_P26689024_09-09-2025_16_06_36.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26689024_09-09-2025_16_06_36.pdf','pdf','','0.13','0.008153125035702377') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([26689024]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1382781598, 1382781593, 1382781591, 1382781589, 1382781586, 1382781581, 1382781574, 1382781572, 1382781570, 1382781565, 1382781555, 1382781552, 1382781547, 1382781545, 1382781543, 1382781542] map_info['map_portfolio_photo'] : {26689024: [1382781598, 1382781593, 1382781591, 1382781589, 1382781586, 1382781581, 1382781574, 1382781572, 1382781570, 1382781565, 1382781555, 1382781552, 1382781547, 1382781545, 1382781543, 1382781542, 1382781523, 1382781519, 1382781515, 1382781513, 1382781511, 1382781501, 1382781497, 1382781494, 1382781491, 1382781486, 1382781476, 1382781446, 1382781444, 1382781440]} final : False mtd_id 4302 list_pids : [1382781598, 1382781593, 1382781591, 1382781589, 1382781586, 1382781581, 1382781574, 1382781572, 1382781570, 1382781565, 1382781555, 1382781552, 1382781547, 1382781545, 1382781543, 1382781542] 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, '3684978') ('4302', '26689024', '1382781598', None, None, None, None, None, '3684978') ('4302', None, None, None, None, None, None, None, '3684978') ('4302', '26689024', '1382781593', None, None, None, None, None, '3684978') ('4302', None, None, None, None, None, None, None, '3684978') ('4302', '26689024', '1382781591', None, None, None, None, None, '3684978') ('4302', None, None, None, None, None, None, None, '3684978') ('4302', '26689024', '1382781589', None, None, None, None, None, '3684978') ('4302', None, None, None, None, None, None, None, '3684978') ('4302', '26689024', '1382781586', None, None, None, None, None, '3684978') ('4302', None, None, None, None, None, None, None, '3684978') ('4302', '26689024', '1382781581', None, None, None, None, None, '3684978') ('4302', None, None, None, None, None, None, None, '3684978') ('4302', '26689024', '1382781574', None, None, None, None, None, '3684978') ('4302', None, None, None, None, None, None, None, '3684978') ('4302', '26689024', '1382781572', None, None, None, None, None, '3684978') ('4302', None, None, None, None, None, None, None, '3684978') ('4302', '26689024', '1382781570', None, None, None, None, None, '3684978') ('4302', None, None, None, None, None, None, None, '3684978') ('4302', '26689024', '1382781565', None, None, None, None, None, '3684978') ('4302', None, None, None, None, None, None, None, '3684978') ('4302', '26689024', '1382781555', None, None, None, None, None, '3684978') ('4302', None, None, None, None, None, None, None, '3684978') ('4302', '26689024', '1382781552', None, None, None, None, None, '3684978') ('4302', None, None, None, None, None, None, None, '3684978') ('4302', '26689024', '1382781547', None, None, None, None, None, '3684978') ('4302', None, None, None, None, None, None, None, '3684978') ('4302', '26689024', '1382781545', None, None, None, None, None, '3684978') ('4302', None, None, None, None, None, None, None, '3684978') ('4302', '26689024', '1382781543', None, None, None, None, None, '3684978') ('4302', None, None, None, None, None, None, None, '3684978') ('4302', '26689024', '1382781542', None, None, None, None, None, '3684978') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 16 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '26689024', '1382781598', None, None, None, None, None, '3684978'), ('4302', '26689024', '1382781593', None, None, None, None, None, '3684978'), ('4302', '26689024', '1382781591', None, None, None, None, None, '3684978'), ('4302', '26689024', '1382781589', None, None, None, None, None, '3684978'), ('4302', '26689024', '1382781586', None, None, None, None, None, '3684978'), ('4302', '26689024', '1382781581', None, None, None, None, None, '3684978'), ('4302', '26689024', '1382781574', None, None, None, None, None, '3684978'), ('4302', '26689024', '1382781572', None, None, None, None, None, '3684978'), ('4302', '26689024', '1382781570', None, None, None, None, None, '3684978'), ('4302', '26689024', '1382781565', None, None, None, None, None, '3684978'), ('4302', '26689024', '1382781555', None, None, None, None, None, '3684978'), ('4302', '26689024', '1382781552', None, None, None, None, None, '3684978'), ('4302', '26689024', '1382781547', None, None, None, None, None, '3684978'), ('4302', '26689024', '1382781545', None, None, None, None, None, '3684978'), ('4302', '26689024', '1382781543', None, None, None, None, None, '3684978'), ('4302', '26689024', '1382781542', None, None, None, None, None, '3684978')] time used for this insertion : 0.0441594123840332 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.243962526321411 time spend to save output : 0.044550418853759766 total time spend for step 4 : 2.288512945175171 step5:split_time_score Tue Sep 9 16:06:38 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 : ['26689024'] 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 : [('26689024',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (26689024) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1382781589: {'path': 'temp/1757426795_1371917_1382781589_f5e49c2bdf908c8e5c5e97f3ee24b111.jpg', 'extension': 'jpg'}, 1382781591: {'path': 'temp/1757426795_1371917_1382781591_09f6c11c4c54f44582a34216054ff8f2.jpg', 'extension': 'jpg'}, 1382781593: {'path': 'temp/1757426795_1371917_1382781593_de63537171bdad44fce874df12ae01d2.jpg', 'extension': 'jpg'}, 1382781598: {'path': 'temp/1757426795_1371917_1382781598_086ae4ebbdf427e37a7ddec99bc2a127.jpg', 'extension': 'jpg'}, 1382781552: {'path': 'temp/1757426795_1371917_1382781552_b0e95f7b04f5b94a50dfcf7b65a8961e.jpg', 'extension': 'jpg'}, 1382781555: {'path': 'temp/1757426795_1371917_1382781555_d5045a8e05b24edfcabc89a1775b96cb.jpg', 'extension': 'jpg'}, 1382781565: {'path': 'temp/1757426795_1371917_1382781565_c2d2a663e4200faa5472f09e44210c26.jpg', 'extension': 'jpg'}, 1382781570: {'path': 'temp/1757426795_1371917_1382781570_dbdd65800dcef4283a9ffa891bdab497.jpg', 'extension': 'jpg'}, 1382781542: {'path': 'temp/1757426795_1371917_1382781542_eb9b31a273acc635efe92f3e356f1e7a.jpg', 'extension': 'jpg'}, 1382781543: {'path': 'temp/1757426795_1371917_1382781543_029b6b8c14a78e855280fc77ec213ebf.jpg', 'extension': 'jpg'}, 1382781545: {'path': 'temp/1757426795_1371917_1382781545_3116e46632007787e939191ff92e66d8.jpg', 'extension': 'jpg'}, 1382781547: {'path': 'temp/1757426795_1371917_1382781547_c73c1ba49fa9bbe698f63e5f53838ec8.jpg', 'extension': 'jpg'}, 1382781572: {'path': 'temp/1757426795_1371917_1382781572_44f0bcc679172a42de529a4901070da6.jpg', 'extension': 'jpg'}, 1382781574: {'path': 'temp/1757426795_1371917_1382781574_fe6a34623689f930edad74a410e5669e.jpg', 'extension': 'jpg'}, 1382781581: {'path': 'temp/1757426795_1371917_1382781581_ce2d9252a763f4174761bb3ca3b9907f.jpg', 'extension': 'jpg'}, 1382781586: {'path': 'temp/1757426795_1371917_1382781586_925cfda87fb42f8f42c7b7f2eeeb8d36.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 = 26689024; (('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 = 26689024 group by h (('16', 30),) 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=26689024 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 (26689024) 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 (26689024) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 09092025 26689024 Nombre de photos uploadées : 30 / 23040 (0%) 09092025 26689024 Nombre de photos taguées (types de déchets): 0 / 30 (0%) 09092025 26689024 Nombre de photos taguées (volume) : 0 / 30 (0%) [{'photo_id': 1382781446, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/9/e7aca3e7ac8ff3520ba956a8595838ce.jpg', 'username': None, 'uploaded_at': 1757426468, 'text': 'image_09092025_16_00_13_010219m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1382781444, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/9/fadbcb5ff4d1a69b8e46d43be39274a1.jpg', 'username': None, 'uploaded_at': 1757426468, 'text': 'image_09092025_16_00_24_010137m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1382781440, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/9/e66d8ba94c3f605f344f3d3625790517.jpg', 'username': None, 'uploaded_at': 1757426468, 'text': 'image_09092025_16_00_34_010133m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1382781501, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/9/86205a905925b2776b04535cbc5c4034.jpg', 'username': None, 'uploaded_at': 1757426528, 'text': 'image_09092025_16_00_54_10134.jpg'}] 0 [] elapsed_time : load_data_split_time_score 3.0994415283203125e-06 elapsed_time : order_list_meta_photo_and_scores 1.3828277587890625e-05 ?????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0014483928680419922 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 26689024, '2025-09-09' ) 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-09' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2253579,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.700951099395752 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= 2253579 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2253579, 'dashboard_run_id': 2265513, 'mtr_portfolio_id': 26665951, 'dashboard_result_id': 14949109, '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_P26665951_09-09-2025_06_01_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26665956, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26665957, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26665958, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26665959, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26665960, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26665961, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26665962, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26665963, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26665964, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26665965, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26665966, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26665967, 'pht': 3726}}"}, {'dashboat_entry_day': 2253579, 'dashboard_run_id': 2265513, 'mtr_portfolio_id': 26666470, 'dashboard_result_id': 14949110, '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_P26666470_09-09-2025_06_01_30.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26666477, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26666478, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26666479, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26666480, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26666481, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26666482, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26666483, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26666484, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26666485, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26666486, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26666487, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26666488, 'pht': 3726}}"}, {'dashboat_entry_day': 2253579, 'dashboard_run_id': 2265513, 'mtr_portfolio_id': 26666997, 'dashboard_result_id': 14949111, '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_P26666997_09-09-2025_06_02_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26667000, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26667001, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26667002, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26667003, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26667004, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26667005, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26667006, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26667007, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26667008, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26667009, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26667010, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26667011, 'pht': 3726}}"}, {'dashboat_entry_day': 2253579, 'dashboard_run_id': 2265513, 'mtr_portfolio_id': 26667314, 'dashboard_result_id': 14949112, '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_P26667314_09-09-2025_06_02_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26667321, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26667322, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26667323, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26667324, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26667325, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26667326, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26667327, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26667328, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26667329, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26667330, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26667331, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26667332, 'pht': 3726}}"}, {'dashboat_entry_day': 2253579, 'dashboard_run_id': 2265513, 'mtr_portfolio_id': 26668399, 'dashboard_result_id': 14949113, '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_P26668399_09-09-2025_06_02_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26668401, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26668402, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26668403, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26668404, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26668405, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26668406, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26668407, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26668408, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26668409, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26668410, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26668411, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26668412, 'pht': 3726}}"}, {'dashboat_entry_day': 2253579, 'dashboard_run_id': 2265513, 'mtr_portfolio_id': 26668763, 'dashboard_result_id': 14949114, '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_P26668763_09-09-2025_06_03_31.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26668767, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26668768, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26668769, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26668770, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26668771, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26668772, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26668773, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26668774, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26668775, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26668776, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26668777, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26668778, 'pht': 3726}}"}, {'dashboat_entry_day': 2253579, 'dashboard_run_id': 2265513, 'mtr_portfolio_id': 26669124, 'dashboard_result_id': 14949115, '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_P26669124_09-09-2025_06_04_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26669142, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26669143, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26669144, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26669145, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26669146, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26669147, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26669148, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26669149, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26669150, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26669151, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26669152, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26669153, 'pht': 3726}}"}, {'dashboat_entry_day': 2253579, 'dashboard_run_id': 2265513, 'mtr_portfolio_id': 26669820, 'dashboard_result_id': 14949116, '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_P26669820_09-09-2025_06_04_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26669828, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26669829, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26669830, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26669831, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26669832, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26669833, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26669834, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26669835, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26669836, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26669837, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26669838, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26669839, 'pht': 3726}}"}, {'dashboat_entry_day': 2253579, 'dashboard_run_id': 2265513, 'mtr_portfolio_id': 26670286, 'dashboard_result_id': 14949117, '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_P26670286_09-09-2025_06_05_03.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26670290, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26670291, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26670292, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26670293, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26670294, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26670295, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26670296, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26670297, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26670298, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26670299, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26670300, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26670301, 'pht': 3726}}"}, {'dashboat_entry_day': 2253579, 'dashboard_run_id': 2265513, 'mtr_portfolio_id': 26670744, 'dashboard_result_id': 14949118, '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_P26670744_09-09-2025_06_05_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26670763, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26670764, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26670765, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26670766, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26670767, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26670768, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26670769, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26670770, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26670771, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26670772, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26670773, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26670774, 'pht': 3726}}"}, {'dashboat_entry_day': 2253579, 'dashboard_run_id': 2265513, 'mtr_portfolio_id': 26671134, 'dashboard_result_id': 14949119, '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_P26671134_09-09-2025_06_05_42.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26671145, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26671146, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26671147, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26671148, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26671149, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26671150, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26671152, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26671154, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26671155, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26671156, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26671157, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26671158, 'pht': 3726}}"}, {'dashboat_entry_day': 2253579, 'dashboard_run_id': 2265513, 'mtr_portfolio_id': 26671697, 'dashboard_result_id': 14949120, '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_P26671697_09-09-2025_06_06_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26671731, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26671732, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26671733, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26671734, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26671735, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26671736, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26671737, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26671738, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26671739, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26671740, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26671741, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26671742, 'pht': 3726}}"}, {'dashboat_entry_day': 2253579, 'dashboard_run_id': 2265513, 'mtr_portfolio_id': 26672133, 'dashboard_result_id': 14949121, '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_P26672133_09-09-2025_06_06_32.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26672145, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26672146, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26672147, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26672148, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26672149, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26672150, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26672151, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26672152, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26672153, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26672154, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26672155, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26672156, 'pht': 3726}}"}, {'dashboat_entry_day': 2253579, 'dashboard_run_id': 2265513, 'mtr_portfolio_id': 26672645, 'dashboard_result_id': 14949122, '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_P26672645_09-09-2025_06_07_02.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26672657, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26672658, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26672659, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26672660, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26672661, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26672662, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26672663, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26672664, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26672665, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26672666, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26672667, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26672668, 'pht': 3726}}"}, {'dashboat_entry_day': 2253579, 'dashboard_run_id': 2265513, 'mtr_portfolio_id': 26673061, 'dashboard_result_id': 14949123, '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_P26673061_09-09-2025_06_07_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26673069, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26673070, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26673071, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26673072, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26673073, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26673074, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26673075, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26673076, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26673077, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26673078, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26673079, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26673080, 'pht': 3726}}"}, {'dashboat_entry_day': 2253579, 'dashboard_run_id': 2265513, 'mtr_portfolio_id': 26674196, 'dashboard_result_id': 14949124, '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_P26674196_09-09-2025_06_07_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26674199, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26674200, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26674201, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26674202, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26674203, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26674204, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26674205, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26674206, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26674207, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26674208, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26674209, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26674210, 'pht': 3726}}"}, {'dashboat_entry_day': 2253579, 'dashboard_run_id': 2265513, 'mtr_portfolio_id': 26674397, 'dashboard_result_id': 14949125, '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_P26674397_09-09-2025_06_08_33.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26674402, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26674403, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26674404, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26674405, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26674406, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26674407, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26674408, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26674409, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26674410, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26674411, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26674412, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26674413, 'pht': 3726}}"}, {'dashboat_entry_day': 2253579, 'dashboard_run_id': 2265513, 'mtr_portfolio_id': 26674770, 'dashboard_result_id': 14949126, '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_P26674770_09-09-2025_08_59_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26674779, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26674780, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26674781, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26674782, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26674783, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26674784, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26674785, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26674786, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26674787, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26674788, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26674789, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26674790, 'pht': 3726}}"}, {'dashboat_entry_day': 2253579, 'dashboard_run_id': 2265513, 'mtr_portfolio_id': 26678188, 'dashboard_result_id': 14949127, '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_P26678188_09-09-2025_10_18_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26678190, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26678191, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26678192, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26678193, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26678194, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26678195, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26678196, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26678197, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26678198, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26678199, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26678200, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26678201, 'pht': 3726}}"}, {'dashboat_entry_day': 2253579, 'dashboard_run_id': 2265513, 'mtr_portfolio_id': 26678700, 'dashboard_result_id': 14949128, '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_P26678700_09-09-2025_10_32_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26678707, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26678708, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26678709, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26678710, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26678711, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26678712, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26678713, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26678714, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26678715, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26678716, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26678717, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26678718, 'pht': 3726}}"}, {'dashboat_entry_day': 2253579, 'dashboard_run_id': 2265513, 'mtr_portfolio_id': 26679249, 'dashboard_result_id': 14949129, '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_P26679249_09-09-2025_10_48_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26679255, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26679256, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26679257, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26679258, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26679259, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26679260, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26679261, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26679262, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26679263, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26679264, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26679265, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26679266, 'pht': 3726}}"}, {'dashboat_entry_day': 2253579, 'dashboard_run_id': 2265513, 'mtr_portfolio_id': 26679775, 'dashboard_result_id': 14949130, '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_P26679775_09-09-2025_11_02_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26679784, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26679785, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26679786, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26679787, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26679788, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26679789, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26679790, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26679791, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26679792, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26679793, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26679794, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26679795, 'pht': 3726}}"}, {'dashboat_entry_day': 2253579, 'dashboard_run_id': 2265513, 'mtr_portfolio_id': 26680309, 'dashboard_result_id': 14949131, '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_P26680309_09-09-2025_11_18_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26680328, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26680329, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26680330, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26680331, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26680332, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26680333, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26680334, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26680335, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26680336, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26680337, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26680338, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26680339, 'pht': 3726}}"}, {'dashboat_entry_day': 2253579, 'dashboard_run_id': 2265513, 'mtr_portfolio_id': 26681052, 'dashboard_result_id': 14949132, '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_P26681052_09-09-2025_11_32_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26681066, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26681067, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26681068, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26681069, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26681070, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26681071, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26681072, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26681073, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26681074, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26681075, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26681076, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26681077, 'pht': 3726}}"}, {'dashboat_entry_day': 2253579, 'dashboard_run_id': 2265513, 'mtr_portfolio_id': 26681532, 'dashboard_result_id': 14949133, '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_P26681532_09-09-2025_11_48_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26681550, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26681551, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26681552, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26681553, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26681554, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26681555, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26681556, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26681557, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26681558, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26681559, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26681560, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26681561, 'pht': 3726}}"}, {'dashboat_entry_day': 2253579, 'dashboard_run_id': 2265513, 'mtr_portfolio_id': 26682215, 'dashboard_result_id': 14949134, '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_P26682215_09-09-2025_12_02_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26682229, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26682230, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26682231, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26682232, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26682233, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26682234, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26682235, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26682236, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26682237, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26682238, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26682239, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26682240, 'pht': 3726}}"}, {'dashboat_entry_day': 2253579, 'dashboard_run_id': 2265513, 'mtr_portfolio_id': 26682684, 'dashboard_result_id': 14949135, '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_P26682684_09-09-2025_12_18_30.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26682745, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26682746, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26682747, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26682748, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26682749, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26682750, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26682751, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26682752, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26682753, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26682754, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26682755, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26682756, 'pht': 3726}}"}, {'dashboat_entry_day': 2253579, 'dashboard_run_id': 2265513, 'mtr_portfolio_id': 26683262, 'dashboard_result_id': 14949136, '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_P26683262_09-09-2025_14_00_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26683280, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26683281, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26683282, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26683283, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26683284, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26683285, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26683286, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26683287, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26683288, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26683289, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26683290, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26683291, 'pht': 3726}}"}, {'dashboat_entry_day': 2253579, 'dashboard_run_id': 2265513, 'mtr_portfolio_id': 26684809, 'dashboard_result_id': 14949137, '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_P26684809_09-09-2025_13_48_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26684810, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26684811, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26684812, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26684813, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26684814, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26684815, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26684816, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26684817, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26684818, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26684819, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26684820, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26684821, 'pht': 3726}}"}, {'dashboat_entry_day': 2253579, 'dashboard_run_id': 2265513, 'mtr_portfolio_id': 26685159, 'dashboard_result_id': 14949138, '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_P26685159_09-09-2025_14_03_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26685164, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26685165, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26685166, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26685167, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26685168, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26685169, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26685170, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26685171, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26685172, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26685173, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26685174, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26685175, 'pht': 3726}}"}, {'dashboat_entry_day': 2253579, 'dashboard_run_id': 2265513, 'mtr_portfolio_id': 26685486, 'dashboard_result_id': 14949139, '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_P26685486_09-09-2025_14_19_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26685494, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26685495, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26685496, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26685497, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26685498, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26685499, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26685500, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26685501, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26685502, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26685503, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26685504, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26685505, 'pht': 3726}}"}, {'dashboat_entry_day': 2253579, 'dashboard_run_id': 2265513, 'mtr_portfolio_id': 26686010, 'dashboard_result_id': 14949140, '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_P26686010_09-09-2025_14_32_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26686017, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26686018, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26686019, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26686020, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26686021, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26686022, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26686023, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26686024, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26686025, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26686026, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26686027, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26686028, 'pht': 3726}}"}, {'dashboat_entry_day': 2253579, 'dashboard_run_id': 2265513, 'mtr_portfolio_id': 26686405, 'dashboard_result_id': 14949141, '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_P26686405_09-09-2025_14_48_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26686411, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26686412, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26686413, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26686414, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26686415, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26686416, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26686417, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26686418, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26686419, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26686420, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26686421, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26686422, 'pht': 3726}}"}, {'dashboat_entry_day': 2253579, 'dashboard_run_id': 2265513, 'mtr_portfolio_id': 26686864, 'dashboard_result_id': 14949142, '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_P26686864_09-09-2025_15_02_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26686870, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26686871, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26686872, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26686873, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26686874, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26686875, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26686876, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26686877, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26686878, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26686879, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26686880, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26686881, 'pht': 3726}}"}, {'dashboat_entry_day': 2253579, 'dashboard_run_id': 2265513, 'mtr_portfolio_id': 26687278, 'dashboard_result_id': 14949143, '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_P26687278_09-09-2025_15_20_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26687285, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26687286, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26687287, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26687288, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26687289, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26687290, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26687291, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26687292, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26687293, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26687294, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26687295, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26687296, 'pht': 3726}}"}, {'dashboat_entry_day': 2253579, 'dashboard_run_id': 2265513, 'mtr_portfolio_id': 26687736, 'dashboard_result_id': 14949144, '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_P26687736_09-09-2025_15_33_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26687747, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26687748, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26687749, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26687750, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26687751, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26687752, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26687753, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26687754, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26687755, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26687756, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26687757, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26687758, 'pht': 3726}}"}, {'dashboat_entry_day': 2253579, 'dashboard_run_id': 2265513, 'mtr_portfolio_id': 26688236, 'dashboard_result_id': 14949145, '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_P26688236_09-09-2025_15_51_36.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26688257, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26688258, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26688259, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26688260, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26688261, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26688262, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26688263, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26688264, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26688265, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26688266, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26688267, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26688268, 'pht': 3726}}"}, {'dashboat_entry_day': 2253579, 'dashboard_run_id': 2265513, 'mtr_portfolio_id': 26688635, 'dashboard_result_id': 14949146, '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_P26688635_09-09-2025_16_03_34.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26688637, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26688638, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26688639, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26688640, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26688641, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26688642, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26688643, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26688644, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26688645, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26688646, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26688647, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26688648, 'pht': 3726}}"}, {'dashboat_entry_day': 2253579, 'dashboard_run_id': 2265513, 'mtr_portfolio_id': 26689024, 'dashboard_result_id': 14949147, '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_P26689024_09-09-2025_16_05_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26689028, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26689029, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26689030, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26689031, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26689032, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26689033, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26689034, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26689035, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26689036, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26689037, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26689038, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26689039, '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 = 26665951 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': 3682647, 'mtr_portfolio_id': 26665951, 'created_at': datetime.datetime(2025, 9, 9, 6, 0, 57), 'result': '0.050389988143182296', 'result_long': None, 'result_double': None}] Qualite : 0.050389988143182296 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26665951 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26665951_09-09-2025_06_01_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26665951 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_P26665951_09-09-2025_06_01_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26665956, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26665957, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26665958, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26665959, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26665960, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26665961, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26665962, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26665963, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26665964, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26665965, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26665966, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26665967, 'pht': 3726}}" where mtr_portfolio_id = 26665951 and dashboard_run_id = 2265513 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`=26665951 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14949109, 0.050389988143182296, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26665951_09-09-2025_06_01_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26665956, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26665957, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26665958, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26665959, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26665960, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26665961, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26665962, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26665963, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26665964, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26665965, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26665966, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26665967, '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 = 26666470 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': 3682648, 'mtr_portfolio_id': 26666470, 'created_at': datetime.datetime(2025, 9, 9, 6, 1, 28), 'result': '0.052715171053135106', 'result_long': None, 'result_double': None}] Qualite : 0.052715171053135106 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26666470 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26666470_09-09-2025_06_01_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26666470 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_P26666470_09-09-2025_06_01_30.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26666477, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26666478, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26666479, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26666480, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26666481, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26666482, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26666483, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26666484, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26666485, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26666486, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26666487, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26666488, 'pht': 3726}}" where mtr_portfolio_id = 26666470 and dashboard_run_id = 2265513 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`=26666470 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14949110, 0.052715171053135106, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26666470_09-09-2025_06_01_30.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26666477, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26666478, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26666479, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26666480, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26666481, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26666482, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26666483, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26666484, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26666485, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26666486, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26666487, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26666488, '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 = 26666997 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': 3682649, 'mtr_portfolio_id': 26666997, 'created_at': datetime.datetime(2025, 9, 9, 6, 1, 58), 'result': '0.07067176584757011', 'result_long': None, 'result_double': None}] Qualite : 0.07067176584757011 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26666997 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26666997_09-09-2025_06_02_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26666997 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_P26666997_09-09-2025_06_02_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26667000, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26667001, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26667002, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26667003, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26667004, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26667005, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26667006, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26667007, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26667008, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26667009, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26667010, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26667011, 'pht': 3726}}" where mtr_portfolio_id = 26666997 and dashboard_run_id = 2265513 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`=26666997 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14949111, 0.07067176584757011, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26666997_09-09-2025_06_02_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26667000, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26667001, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26667002, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26667003, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26667004, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26667005, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26667006, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26667007, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26667008, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26667009, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26667010, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26667011, '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 = 26667314 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': 3682650, 'mtr_portfolio_id': 26667314, 'created_at': datetime.datetime(2025, 9, 9, 6, 2, 30), 'result': '0.07133135033351763', 'result_long': None, 'result_double': None}] Qualite : 0.07133135033351763 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26667314 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26667314_09-09-2025_06_02_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26667314 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_P26667314_09-09-2025_06_02_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26667321, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26667322, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26667323, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26667324, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26667325, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26667326, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26667327, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26667328, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26667329, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26667330, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26667331, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26667332, 'pht': 3726}}" where mtr_portfolio_id = 26667314 and dashboard_run_id = 2265513 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`=26667314 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14949112, 0.07133135033351763, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26667314_09-09-2025_06_02_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26667321, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26667322, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26667323, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26667324, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26667325, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26667326, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26667327, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26667328, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26667329, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26667330, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26667331, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26667332, '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 = 26668399 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': 3682651, 'mtr_portfolio_id': 26668399, 'created_at': datetime.datetime(2025, 9, 9, 6, 2, 57), 'result': '0.04170839703830682', 'result_long': None, 'result_double': None}] Qualite : 0.04170839703830682 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26668399 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26668399_09-09-2025_06_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26668399 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_P26668399_09-09-2025_06_02_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26668401, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26668402, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26668403, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26668404, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26668405, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26668406, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26668407, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26668408, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26668409, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26668410, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26668411, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26668412, 'pht': 3726}}" where mtr_portfolio_id = 26668399 and dashboard_run_id = 2265513 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`=26668399 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14949113, 0.04170839703830682, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26668399_09-09-2025_06_02_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26668401, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26668402, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26668403, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26668404, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26668405, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26668406, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26668407, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26668408, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26668409, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26668410, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26668411, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26668412, '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 = 26668763 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': 3682652, 'mtr_portfolio_id': 26668763, 'created_at': datetime.datetime(2025, 9, 9, 6, 3, 28), 'result': '0.05141645040090347', 'result_long': None, 'result_double': None}] Qualite : 0.05141645040090347 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26668763 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26668763_09-09-2025_06_03_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26668763 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_P26668763_09-09-2025_06_03_31.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26668767, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26668768, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26668769, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26668770, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26668771, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26668772, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26668773, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26668774, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26668775, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26668776, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26668777, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26668778, 'pht': 3726}}" where mtr_portfolio_id = 26668763 and dashboard_run_id = 2265513 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`=26668763 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14949114, 0.05141645040090347, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26668763_09-09-2025_06_03_31.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26668767, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26668768, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26668769, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26668770, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26668771, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26668772, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26668773, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26668774, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26668775, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26668776, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26668777, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26668778, '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 = 26669124 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': 3682653, 'mtr_portfolio_id': 26669124, 'created_at': datetime.datetime(2025, 9, 9, 6, 3, 58), 'result': '0.04270834225482556', 'result_long': None, 'result_double': None}] Qualite : 0.04270834225482556 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26669124 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26669124_09-09-2025_06_04_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26669124 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_P26669124_09-09-2025_06_04_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26669142, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26669143, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26669144, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26669145, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26669146, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26669147, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26669148, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26669149, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26669150, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26669151, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26669152, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26669153, 'pht': 3726}}" where mtr_portfolio_id = 26669124 and dashboard_run_id = 2265513 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`=26669124 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14949115, 0.04270834225482556, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26669124_09-09-2025_06_04_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26669142, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26669143, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26669144, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26669145, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26669146, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26669147, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26669148, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26669149, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26669150, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26669151, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26669152, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26669153, '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 = 26669820 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': 3682654, 'mtr_portfolio_id': 26669820, 'created_at': datetime.datetime(2025, 9, 9, 6, 4, 29), 'result': '0.035313723721439066', 'result_long': None, 'result_double': None}] Qualite : 0.035313723721439066 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26669820 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26669820_09-09-2025_06_04_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26669820 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_P26669820_09-09-2025_06_04_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26669828, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26669829, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26669830, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26669831, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26669832, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26669833, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26669834, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26669835, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26669836, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26669837, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26669838, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26669839, 'pht': 3726}}" where mtr_portfolio_id = 26669820 and dashboard_run_id = 2265513 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`=26669820 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14949116, 0.035313723721439066, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26669820_09-09-2025_06_04_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26669828, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26669829, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26669830, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26669831, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26669832, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26669833, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26669834, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26669835, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26669836, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26669837, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26669838, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26669839, '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 = 26670286 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': 3682655, 'mtr_portfolio_id': 26670286, 'created_at': datetime.datetime(2025, 9, 9, 6, 5), 'result': '0.05178657613991953', 'result_long': None, 'result_double': None}] Qualite : 0.05178657613991953 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26670286 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26670286_09-09-2025_06_05_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26670286 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_P26670286_09-09-2025_06_05_03.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26670290, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26670291, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26670292, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26670293, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26670294, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26670295, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26670296, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26670297, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26670298, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26670299, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26670300, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26670301, 'pht': 3726}}" where mtr_portfolio_id = 26670286 and dashboard_run_id = 2265513 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`=26670286 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14949117, 0.05178657613991953, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26670286_09-09-2025_06_05_03.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26670290, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26670291, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26670292, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26670293, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26670294, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26670295, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26670296, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26670297, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26670298, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26670299, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26670300, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26670301, '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 = 26670744 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': 3682656, 'mtr_portfolio_id': 26670744, 'created_at': datetime.datetime(2025, 9, 9, 6, 5, 30), 'result': '0.05170990512872997', 'result_long': None, 'result_double': None}] Qualite : 0.05170990512872997 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26670744 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26670744_09-09-2025_06_05_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26670744 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_P26670744_09-09-2025_06_05_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26670763, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26670764, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26670765, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26670766, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26670767, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26670768, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26670769, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26670770, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26670771, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26670772, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26670773, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26670774, 'pht': 3726}}" where mtr_portfolio_id = 26670744 and dashboard_run_id = 2265513 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`=26670744 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14949118, 0.05170990512872997, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26670744_09-09-2025_06_05_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26670763, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26670764, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26670765, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26670766, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26670767, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26670768, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26670769, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26670770, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26670771, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26670772, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26670773, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26670774, '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 = 26671134 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': 3682657, 'mtr_portfolio_id': 26671134, 'created_at': datetime.datetime(2025, 9, 9, 6, 5, 40), 'result': '0.049280891076028885', 'result_long': None, 'result_double': None}] Qualite : 0.049280891076028885 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26671134 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26671134_09-09-2025_06_05_42.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26671134 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_P26671134_09-09-2025_06_05_42.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26671145, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26671146, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26671147, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26671148, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26671149, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26671150, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26671152, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26671154, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26671155, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26671156, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26671157, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26671158, 'pht': 3726}}" where mtr_portfolio_id = 26671134 and dashboard_run_id = 2265513 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`=26671134 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14949119, 0.049280891076028885, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26671134_09-09-2025_06_05_42.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26671145, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26671146, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26671147, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26671148, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26671149, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26671150, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26671152, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26671154, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26671155, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26671156, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26671157, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26671158, '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 = 26671697 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': 3682658, 'mtr_portfolio_id': 26671697, 'created_at': datetime.datetime(2025, 9, 9, 6, 5, 58), 'result': '0.051077693266027596', 'result_long': None, 'result_double': None}] Qualite : 0.051077693266027596 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26671697 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26671697_09-09-2025_06_06_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26671697 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_P26671697_09-09-2025_06_06_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26671731, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26671732, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26671733, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26671734, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26671735, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26671736, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26671737, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26671738, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26671739, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26671740, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26671741, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26671742, 'pht': 3726}}" where mtr_portfolio_id = 26671697 and dashboard_run_id = 2265513 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`=26671697 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14949120, 0.051077693266027596, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26671697_09-09-2025_06_06_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26671731, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26671732, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26671733, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26671734, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26671735, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26671736, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26671737, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26671738, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26671739, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26671740, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26671741, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26671742, '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 = 26672133 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': 3682659, 'mtr_portfolio_id': 26672133, 'created_at': datetime.datetime(2025, 9, 9, 6, 6, 29), 'result': '0.08192827917858833', 'result_long': None, 'result_double': None}] Qualite : 0.08192827917858833 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26672133 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26672133_09-09-2025_06_06_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26672133 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_P26672133_09-09-2025_06_06_32.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26672145, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26672146, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26672147, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26672148, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26672149, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26672150, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26672151, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26672152, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26672153, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26672154, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26672155, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26672156, 'pht': 3726}}" where mtr_portfolio_id = 26672133 and dashboard_run_id = 2265513 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`=26672133 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14949121, 0.08192827917858833, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26672133_09-09-2025_06_06_32.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26672145, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26672146, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26672147, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26672148, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26672149, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26672150, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26672151, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26672152, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26672153, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26672154, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26672155, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26672156, '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 = 26672645 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': 3682660, 'mtr_portfolio_id': 26672645, 'created_at': datetime.datetime(2025, 9, 9, 6, 7), 'result': '0.04794720727428164', 'result_long': None, 'result_double': None}] Qualite : 0.04794720727428164 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26672645 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26672645_09-09-2025_06_07_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26672645 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_P26672645_09-09-2025_06_07_02.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26672657, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26672658, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26672659, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26672660, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26672661, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26672662, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26672663, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26672664, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26672665, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26672666, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26672667, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26672668, 'pht': 3726}}" where mtr_portfolio_id = 26672645 and dashboard_run_id = 2265513 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`=26672645 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14949122, 0.04794720727428164, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26672645_09-09-2025_06_07_02.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26672657, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26672658, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26672659, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26672660, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26672661, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26672662, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26672663, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26672664, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26672665, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26672666, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26672667, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26672668, '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 = 26673061 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': 3682661, 'mtr_portfolio_id': 26673061, 'created_at': datetime.datetime(2025, 9, 9, 6, 7, 29), 'result': '0.049283104467753455', 'result_long': None, 'result_double': None}] Qualite : 0.049283104467753455 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26673061 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26673061_09-09-2025_06_07_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26673061 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_P26673061_09-09-2025_06_07_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26673069, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26673070, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26673071, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26673072, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26673073, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26673074, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26673075, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26673076, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26673077, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26673078, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26673079, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26673080, 'pht': 3726}}" where mtr_portfolio_id = 26673061 and dashboard_run_id = 2265513 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`=26673061 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14949123, 0.049283104467753455, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26673061_09-09-2025_06_07_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26673069, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26673070, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26673071, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26673072, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26673073, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26673074, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26673075, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26673076, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26673077, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26673078, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26673079, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26673080, '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 = 26674196 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': 3682662, 'mtr_portfolio_id': 26674196, 'created_at': datetime.datetime(2025, 9, 9, 6, 7, 57), 'result': '0.054113474413085574', 'result_long': None, 'result_double': None}] Qualite : 0.054113474413085574 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26674196 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26674196_09-09-2025_06_07_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26674196 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_P26674196_09-09-2025_06_07_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26674199, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26674200, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26674201, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26674202, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26674203, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26674204, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26674205, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26674206, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26674207, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26674208, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26674209, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26674210, 'pht': 3726}}" where mtr_portfolio_id = 26674196 and dashboard_run_id = 2265513 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`=26674196 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14949124, 0.054113474413085574, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26674196_09-09-2025_06_07_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26674199, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26674200, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26674201, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26674202, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26674203, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26674204, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26674205, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26674206, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26674207, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26674208, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26674209, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26674210, '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 = 26674397 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': 3682663, 'mtr_portfolio_id': 26674397, 'created_at': datetime.datetime(2025, 9, 9, 6, 8, 30), 'result': '0.06827761438954877', 'result_long': None, 'result_double': None}] Qualite : 0.06827761438954877 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26674397 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26674397_09-09-2025_06_08_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26674397 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_P26674397_09-09-2025_06_08_33.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26674402, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26674403, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26674404, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26674405, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26674406, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26674407, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26674408, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26674409, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26674410, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26674411, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26674412, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26674413, 'pht': 3726}}" where mtr_portfolio_id = 26674397 and dashboard_run_id = 2265513 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`=26674397 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14949125, 0.06827761438954877, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26674397_09-09-2025_06_08_33.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26674402, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26674403, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26674404, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26674405, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26674406, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26674407, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26674408, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26674409, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26674410, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26674411, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26674412, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26674413, '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 = 26674770 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': 3682583, 'mtr_portfolio_id': 26674770, 'created_at': datetime.datetime(2025, 9, 9, 8, 59, 57), 'result': '0.05322324101949038', 'result_long': None, 'result_double': None}] Qualite : 0.05322324101949038 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26674770 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26674770_09-09-2025_08_59_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26674770 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_P26674770_09-09-2025_08_59_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26674779, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26674780, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26674781, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26674782, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26674783, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26674784, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26674785, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26674786, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26674787, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26674788, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26674789, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26674790, 'pht': 3726}}" where mtr_portfolio_id = 26674770 and dashboard_run_id = 2265513 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`=26674770 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14949126, 0.05322324101949038, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26674770_09-09-2025_08_59_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26674779, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26674780, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26674781, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26674782, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26674783, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26674784, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26674785, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26674786, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26674787, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26674788, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26674789, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26674790, '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 = 26678188 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': 3683364, 'mtr_portfolio_id': 26678188, 'created_at': datetime.datetime(2025, 9, 9, 10, 18, 58), 'result': '0.025788329520295653', 'result_long': None, 'result_double': None}] Qualite : 0.025788329520295653 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26678188 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26678188_09-09-2025_10_18_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26678188 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_P26678188_09-09-2025_10_18_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26678190, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26678191, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26678192, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26678193, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26678194, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26678195, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26678196, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26678197, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26678198, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26678199, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26678200, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26678201, 'pht': 3726}}" where mtr_portfolio_id = 26678188 and dashboard_run_id = 2265513 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`=26678188 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14949127, 0.025788329520295653, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26678188_09-09-2025_10_18_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26678190, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26678191, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26678192, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26678193, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26678194, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26678195, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26678196, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26678197, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26678198, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26678199, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26678200, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26678201, '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 = 26678700 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': 3683410, 'mtr_portfolio_id': 26678700, 'created_at': datetime.datetime(2025, 9, 9, 10, 32, 57), 'result': '0.06138995695646494', 'result_long': None, 'result_double': None}] Qualite : 0.06138995695646494 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26678700 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26678700_09-09-2025_10_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26678700 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_P26678700_09-09-2025_10_32_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26678707, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26678708, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26678709, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26678710, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26678711, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26678712, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26678713, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26678714, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26678715, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26678716, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26678717, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26678718, 'pht': 3726}}" where mtr_portfolio_id = 26678700 and dashboard_run_id = 2265513 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`=26678700 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14949128, 0.06138995695646494, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26678700_09-09-2025_10_32_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26678707, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26678708, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26678709, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26678710, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26678711, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26678712, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26678713, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26678714, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26678715, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26678716, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26678717, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26678718, '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 = 26679249 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': 3683494, 'mtr_portfolio_id': 26679249, 'created_at': datetime.datetime(2025, 9, 9, 10, 48, 58), 'result': '0.02889670551077109', 'result_long': None, 'result_double': None}] Qualite : 0.02889670551077109 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26679249 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26679249_09-09-2025_10_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26679249 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_P26679249_09-09-2025_10_48_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26679255, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26679256, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26679257, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26679258, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26679259, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26679260, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26679261, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26679262, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26679263, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26679264, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26679265, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26679266, 'pht': 3726}}" where mtr_portfolio_id = 26679249 and dashboard_run_id = 2265513 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`=26679249 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14949129, 0.02889670551077109, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26679249_09-09-2025_10_48_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26679255, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26679256, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26679257, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26679258, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26679259, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26679260, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26679261, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26679262, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26679263, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26679264, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26679265, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26679266, '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 = 26679775 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': 3683577, 'mtr_portfolio_id': 26679775, 'created_at': datetime.datetime(2025, 9, 9, 11, 2, 59), 'result': '0.022492366342729685', 'result_long': None, 'result_double': None}] Qualite : 0.022492366342729685 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26679775 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26679775_09-09-2025_11_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26679775 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_P26679775_09-09-2025_11_02_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26679784, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26679785, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26679786, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26679787, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26679788, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26679789, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26679790, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26679791, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26679792, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26679793, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26679794, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26679795, 'pht': 3726}}" where mtr_portfolio_id = 26679775 and dashboard_run_id = 2265513 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`=26679775 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14949130, 0.022492366342729685, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26679775_09-09-2025_11_02_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26679784, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26679785, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26679786, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26679787, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26679788, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26679789, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26679790, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26679791, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26679792, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26679793, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26679794, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26679795, '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 = 26680309 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': 3683672, 'mtr_portfolio_id': 26680309, 'created_at': datetime.datetime(2025, 9, 9, 11, 18, 58), 'result': '0.03175616611629535', 'result_long': None, 'result_double': None}] Qualite : 0.03175616611629535 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26680309 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26680309_09-09-2025_11_18_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26680309 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_P26680309_09-09-2025_11_18_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26680328, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26680329, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26680330, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26680331, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26680332, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26680333, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26680334, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26680335, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26680336, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26680337, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26680338, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26680339, 'pht': 3726}}" where mtr_portfolio_id = 26680309 and dashboard_run_id = 2265513 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`=26680309 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14949131, 0.03175616611629535, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26680309_09-09-2025_11_18_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26680328, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26680329, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26680330, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26680331, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26680332, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26680333, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26680334, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26680335, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26680336, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26680337, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26680338, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26680339, '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 = 26681052 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': 3683773, 'mtr_portfolio_id': 26681052, 'created_at': datetime.datetime(2025, 9, 9, 11, 32, 57), 'result': '0.04065304722993697', 'result_long': None, 'result_double': None}] Qualite : 0.04065304722993697 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26681052 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26681052_09-09-2025_11_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26681052 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_P26681052_09-09-2025_11_32_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26681066, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26681067, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26681068, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26681069, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26681070, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26681071, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26681072, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26681073, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26681074, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26681075, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26681076, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26681077, 'pht': 3726}}" where mtr_portfolio_id = 26681052 and dashboard_run_id = 2265513 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`=26681052 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14949132, 0.04065304722993697, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26681052_09-09-2025_11_32_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26681066, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26681067, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26681068, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26681069, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26681070, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26681071, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26681072, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26681073, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26681074, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26681075, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26681076, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26681077, '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 = 26681532 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': 3683862, 'mtr_portfolio_id': 26681532, 'created_at': datetime.datetime(2025, 9, 9, 11, 48, 57), 'result': '0.04552230045232157', 'result_long': None, 'result_double': None}] Qualite : 0.04552230045232157 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26681532 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26681532_09-09-2025_11_48_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26681532 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_P26681532_09-09-2025_11_48_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26681550, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26681551, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26681552, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26681553, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26681554, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26681555, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26681556, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26681557, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26681558, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26681559, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26681560, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26681561, 'pht': 3726}}" where mtr_portfolio_id = 26681532 and dashboard_run_id = 2265513 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`=26681532 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14949133, 0.04552230045232157, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26681532_09-09-2025_11_48_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26681550, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26681551, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26681552, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26681553, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26681554, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26681555, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26681556, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26681557, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26681558, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26681559, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26681560, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26681561, '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 = 26682215 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': 3683946, 'mtr_portfolio_id': 26682215, 'created_at': datetime.datetime(2025, 9, 9, 12, 2, 57), 'result': '0.045279369160612475', 'result_long': None, 'result_double': None}] Qualite : 0.045279369160612475 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26682215 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26682215_09-09-2025_12_02_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26682215 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_P26682215_09-09-2025_12_02_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26682229, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26682230, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26682231, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26682232, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26682233, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26682234, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26682235, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26682236, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26682237, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26682238, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26682239, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26682240, 'pht': 3726}}" where mtr_portfolio_id = 26682215 and dashboard_run_id = 2265513 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`=26682215 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14949134, 0.045279369160612475, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26682215_09-09-2025_12_02_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26682229, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26682230, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26682231, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26682232, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26682233, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26682234, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26682235, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26682236, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26682237, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26682238, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26682239, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26682240, '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 = 26682684 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': 3684038, 'mtr_portfolio_id': 26682684, 'created_at': datetime.datetime(2025, 9, 9, 12, 18, 30), 'result': '0.05445635696233005', 'result_long': None, 'result_double': None}] Qualite : 0.05445635696233005 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26682684 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26682684_09-09-2025_12_18_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26682684 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_P26682684_09-09-2025_12_18_30.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26682745, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26682746, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26682747, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26682748, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26682749, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26682750, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26682751, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26682752, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26682753, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26682754, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26682755, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26682756, 'pht': 3726}}" where mtr_portfolio_id = 26682684 and dashboard_run_id = 2265513 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`=26682684 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14949135, 0.05445635696233005, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26682684_09-09-2025_12_18_30.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26682745, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26682746, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26682747, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26682748, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26682749, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26682750, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26682751, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26682752, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26682753, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26682754, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26682755, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26682756, '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 = 26683262 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': 3684101, 'mtr_portfolio_id': 26683262, 'created_at': datetime.datetime(2025, 9, 9, 14, 0, 58), 'result': '0.07218838003902625', 'result_long': None, 'result_double': None}] Qualite : 0.07218838003902625 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26683262 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26683262_09-09-2025_14_00_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26683262 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_P26683262_09-09-2025_14_00_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26683280, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26683281, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26683282, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26683283, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26683284, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26683285, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26683286, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26683287, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26683288, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26683289, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26683290, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26683291, 'pht': 3726}}" where mtr_portfolio_id = 26683262 and dashboard_run_id = 2265513 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`=26683262 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14949136, 0.07218838003902625, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26683262_09-09-2025_14_00_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26683280, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26683281, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26683282, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26683283, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26683284, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26683285, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26683286, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26683287, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26683288, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26683289, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26683290, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26683291, '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 = 26684809 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': 3684353, 'mtr_portfolio_id': 26684809, 'created_at': datetime.datetime(2025, 9, 9, 13, 48, 58), 'result': '0.03320604514766383', 'result_long': None, 'result_double': None}] Qualite : 0.03320604514766383 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26684809 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26684809_09-09-2025_13_48_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26684809 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_P26684809_09-09-2025_13_48_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26684810, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26684811, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26684812, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26684813, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26684814, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26684815, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26684816, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26684817, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26684818, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26684819, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26684820, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26684821, 'pht': 3726}}" where mtr_portfolio_id = 26684809 and dashboard_run_id = 2265513 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`=26684809 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14949137, 0.03320604514766383, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26684809_09-09-2025_13_48_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26684810, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26684811, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26684812, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26684813, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26684814, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26684815, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26684816, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26684817, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26684818, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26684819, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26684820, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26684821, '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 = 26685159 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': 3684388, 'mtr_portfolio_id': 26685159, 'created_at': datetime.datetime(2025, 9, 9, 14, 3), 'result': '0.03139665871665343', 'result_long': None, 'result_double': None}] Qualite : 0.03139665871665343 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26685159 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26685159_09-09-2025_14_03_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26685159 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_P26685159_09-09-2025_14_03_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26685164, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26685165, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26685166, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26685167, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26685168, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26685169, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26685170, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26685171, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26685172, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26685173, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26685174, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26685175, 'pht': 3726}}" where mtr_portfolio_id = 26685159 and dashboard_run_id = 2265513 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`=26685159 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14949138, 0.03139665871665343, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26685159_09-09-2025_14_03_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26685164, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26685165, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26685166, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26685167, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26685168, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26685169, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26685170, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26685171, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26685172, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26685173, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26685174, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26685175, '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 = 26685486 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': 3684442, 'mtr_portfolio_id': 26685486, 'created_at': datetime.datetime(2025, 9, 9, 14, 18, 59), 'result': '0.0395835266092014', 'result_long': None, 'result_double': None}] Qualite : 0.0395835266092014 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26685486 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26685486_09-09-2025_14_19_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26685486 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_P26685486_09-09-2025_14_19_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26685494, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26685495, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26685496, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26685497, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26685498, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26685499, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26685500, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26685501, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26685502, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26685503, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26685504, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26685505, 'pht': 3726}}" where mtr_portfolio_id = 26685486 and dashboard_run_id = 2265513 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`=26685486 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14949139, 0.0395835266092014, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26685486_09-09-2025_14_19_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26685494, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26685495, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26685496, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26685497, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26685498, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26685499, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26685500, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26685501, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26685502, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26685503, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26685504, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26685505, '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 = 26686010 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': 3684502, 'mtr_portfolio_id': 26686010, 'created_at': datetime.datetime(2025, 9, 9, 14, 32, 59), 'result': '0.037577143146675714', 'result_long': None, 'result_double': None}] Qualite : 0.037577143146675714 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26686010 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26686010_09-09-2025_14_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26686010 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_P26686010_09-09-2025_14_32_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26686017, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26686018, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26686019, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26686020, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26686021, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26686022, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26686023, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26686024, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26686025, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26686026, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26686027, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26686028, 'pht': 3726}}" where mtr_portfolio_id = 26686010 and dashboard_run_id = 2265513 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`=26686010 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14949140, 0.037577143146675714, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26686010_09-09-2025_14_32_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26686017, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26686018, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26686019, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26686020, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26686021, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26686022, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26686023, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26686024, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26686025, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26686026, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26686027, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26686028, '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 = 26686405 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': 3684562, 'mtr_portfolio_id': 26686405, 'created_at': datetime.datetime(2025, 9, 9, 14, 48, 58), 'result': '0.036924898408126974', 'result_long': None, 'result_double': None}] Qualite : 0.036924898408126974 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26686405 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26686405_09-09-2025_14_48_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26686405 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_P26686405_09-09-2025_14_48_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26686411, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26686412, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26686413, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26686414, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26686415, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26686416, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26686417, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26686418, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26686419, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26686420, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26686421, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26686422, 'pht': 3726}}" where mtr_portfolio_id = 26686405 and dashboard_run_id = 2265513 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`=26686405 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14949141, 0.036924898408126974, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26686405_09-09-2025_14_48_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26686411, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26686412, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26686413, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26686414, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26686415, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26686416, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26686417, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26686418, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26686419, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26686420, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26686421, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26686422, '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 = 26686864 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': 3684620, 'mtr_portfolio_id': 26686864, 'created_at': datetime.datetime(2025, 9, 9, 15, 2, 57), 'result': '0.03268577124513389', 'result_long': None, 'result_double': None}] Qualite : 0.03268577124513389 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26686864 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26686864_09-09-2025_15_02_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26686864 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_P26686864_09-09-2025_15_02_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26686870, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26686871, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26686872, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26686873, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26686874, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26686875, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26686876, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26686877, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26686878, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26686879, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26686880, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26686881, 'pht': 3726}}" where mtr_portfolio_id = 26686864 and dashboard_run_id = 2265513 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`=26686864 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14949142, 0.03268577124513389, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26686864_09-09-2025_15_02_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26686870, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26686871, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26686872, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26686873, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26686874, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26686875, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26686876, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26686877, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26686878, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26686879, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26686880, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26686881, '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 = 26687278 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': 3684683, 'mtr_portfolio_id': 26687278, 'created_at': datetime.datetime(2025, 9, 9, 15, 20, 31), 'result': '0.08976896353271258', 'result_long': None, 'result_double': None}] Qualite : 0.08976896353271258 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26687278 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26687278_09-09-2025_15_20_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26687278 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_P26687278_09-09-2025_15_20_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26687285, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26687286, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26687287, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26687288, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26687289, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26687290, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26687291, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26687292, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26687293, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26687294, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26687295, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26687296, 'pht': 3726}}" where mtr_portfolio_id = 26687278 and dashboard_run_id = 2265513 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`=26687278 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14949143, 0.08976896353271258, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26687278_09-09-2025_15_20_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26687285, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26687286, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26687287, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26687288, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26687289, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26687290, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26687291, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26687292, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26687293, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26687294, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26687295, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26687296, '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 = 26687736 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': 3684768, 'mtr_portfolio_id': 26687736, 'created_at': datetime.datetime(2025, 9, 9, 15, 33, 2), 'result': '0.05053483726011613', 'result_long': None, 'result_double': None}] Qualite : 0.05053483726011613 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26687736 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26687736_09-09-2025_15_33_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26687736 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_P26687736_09-09-2025_15_33_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26687747, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26687748, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26687749, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26687750, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26687751, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26687752, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26687753, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26687754, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26687755, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26687756, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26687757, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26687758, 'pht': 3726}}" where mtr_portfolio_id = 26687736 and dashboard_run_id = 2265513 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`=26687736 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14949144, 0.05053483726011613, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26687736_09-09-2025_15_33_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26687747, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26687748, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26687749, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26687750, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26687751, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26687752, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26687753, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26687754, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26687755, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26687756, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26687757, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26687758, '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 = 26688236 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': 3684865, 'mtr_portfolio_id': 26688236, 'created_at': datetime.datetime(2025, 9, 9, 15, 51, 35), 'result': '0.052830028821233214', 'result_long': None, 'result_double': None}] Qualite : 0.052830028821233214 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26688236 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26688236_09-09-2025_15_51_36.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26688236 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_P26688236_09-09-2025_15_51_36.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26688257, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26688258, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26688259, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26688260, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26688261, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26688262, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26688263, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26688264, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26688265, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26688266, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26688267, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26688268, 'pht': 3726}}" where mtr_portfolio_id = 26688236 and dashboard_run_id = 2265513 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`=26688236 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14949145, 0.052830028821233214, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26688236_09-09-2025_15_51_36.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26688257, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26688258, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26688259, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26688260, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26688261, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26688262, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26688263, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26688264, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26688265, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26688266, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26688267, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26688268, '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 = 26688635 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': 3684914, 'mtr_portfolio_id': 26688635, 'created_at': datetime.datetime(2025, 9, 9, 16, 3, 33), 'result': '0.08049922298721926', 'result_long': None, 'result_double': None}] Qualite : 0.08049922298721926 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26688635 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26688635_09-09-2025_16_03_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26688635 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_P26688635_09-09-2025_16_03_34.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26688637, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26688638, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26688639, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26688640, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26688641, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26688642, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26688643, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26688644, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26688645, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26688646, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26688647, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26688648, 'pht': 3726}}" where mtr_portfolio_id = 26688635 and dashboard_run_id = 2265513 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`=26688635 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14949146, 0.08049922298721926, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26688635_09-09-2025_16_03_34.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26688637, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26688638, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26688639, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26688640, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26688641, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26688642, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26688643, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26688644, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26688645, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26688646, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26688647, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26688648, '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 = 26689024 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': 3684978, 'mtr_portfolio_id': 26689024, 'created_at': datetime.datetime(2025, 9, 9, 16, 6, 35), 'result': '0.008153125035702377', 'result_long': None, 'result_double': None}] Qualite : 0.008153125035702377 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26689024 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26689024_09-09-2025_16_06_36.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26689024 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_P26689024_09-09-2025_16_06_36.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26689028, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26689029, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26689030, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26689031, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26689032, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26689033, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26689034, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26689035, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26689036, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26689037, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26689038, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26689039, 'pht': 3726}}" where mtr_portfolio_id = 26689024 and dashboard_run_id = 2265513 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`=26689024 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14949147, 0.008153125035702377, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26689024_09-09-2025_16_06_36.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26689028, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26689029, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26689030, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26689031, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26689032, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26689033, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26689034, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26689035, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26689036, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26689037, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26689038, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26689039, '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 (26665951,26666470,26666997,26667314,26668399,26668763,26669124,26669820,26670286,26670744,26671134,26671697,26672133,26672645,26673061,26674196,26674397,26674770,26678188,26678700,26679249,26679775,26680309,26681052,26681532,26682215,26682684,26683262,26684809,26685159,26685486,26686010,26686405,26686864,26687278,26687736,26688236,26688635,26689024) result : ((1382694087,), (1382694183,), (1382694245,), (1382694319,), (1382694895,), (1382694983,), (1382695070,), (1382695164,), (1382695818,), (1382695895,), (1382695984,), (1382696065,), (1382696130,), (1382696190,), (1382696400,), (1382696407,), (1382696438,), (1382696470,), (1382696837,), (1382696868,), (1382696928,), (1382696966,), (1382696999,), (1382697040,), (1382697100,), (1382697146,), (1382697174,), (1382697194,), (1382697215,), (1382697218,), (1382697224,), (1382697271,), (1382697272,), (1382697291,), (1382697326,), (1382697385,), (1382697470,), (1382697558,), (1382697652,), (1382698439,), (1382698441,), (1382698443,), (1382698446,), (1382698451,), (1382698455,), (1382698698,), (1382698753,), (1382698793,), (1382698825,), (1382698855,), (1382698894,), (1382698911,), (1382698928,), (1382698938,), (1382698948,), (1382698964,), (1382699012,), (1382699014,), (1382699017,), (1382699021,), (1382699030,), (1382699038,), (1382699054,), (1382699056,), (1382699058,), (1382699060,), (1382699061,), (1382699073,), (1382699077,), (1382699081,), (1382699083,), (1382699089,), (1382699095,), (1382699099,), (1382699104,), (1382699110,), (1382699281,), (1382699199,), (1382699230,), (1382699263,), (1382699321,), (1382699322,), (1382699324,), (1382699328,), (1382699395,), (1382699396,), (1382699398,), (1382699403,), (1382699429,), (1382699433,), (1382699438,), (1382699441,), (1382699466,), (1382699467,), (1382699468,), (1382699473,), (1382699477,), (1382699484,), (1382699612,), (1382699647,), (1382699675,), (1382699722,), (1382700012,), (1382700045,), (1382700074,), (1382700103,), (1382700433,), (1382700465,), (1382700502,), (1382700533,), (1382700741,), (1382700750,), (1382700754,), (1382700756,), (1382700958,), (1382700969,), (1382700971,), (1382700974,), (1382700978,), (1382700981,), (1382701248,), (1382701333,), (1382701237,), (1382701240,), (1382701241,), (1382701244,), (1382701310,), (1382701311,), (1382701313,), (1382701318,), (1382701321,), (1382701324,), (1382701330,), (1382701341,), (1382701347,), (1382701362,), (1382701364,), (1382701366,), (1382701369,), (1382701375,), (1382701408,), (1382701411,), (1382701412,), (1382701416,), (1382701419,), (1382701439,), (1382701441,), (1382701449,), (1382701453,), (1382701463,), (1382701520,), (1382701522,), (1382701525,), (1382701530,), (1382701549,), (1382701552,), (1382701555,), (1382701589,), (1382701591,), (1382701592,), (1382701595,), (1382701616,), (1382701617,), (1382701619,), (1382701623,), (1382701626,), (1382701631,), (1382701641,), (1382701642,), (1382701643,), (1382701645,), (1382701651,), (1382701663,), (1382701668,), (1382701673,), (1382701677,), (1382701680,), (1382701685,), (1382701689,), (1382701690,), (1382701692,), (1382701694,), (1382701696,), (1382701707,), (1382701710,), (1382701714,), (1382701716,), (1382701718,), (1382701720,), (1382701734,), (1382701741,), (1382701744,), (1382701747,), (1382701749,), (1382701751,), (1382701762,), (1382701769,), (1382701773,), (1382701777,), (1382701784,), (1382701755,), (1382701758,), (1382701791,), (1382701794,), (1382701798,), (1382701802,), (1382701805,), (1382701808,), (1382701828,), (1382701830,), (1382701832,), (1382701835,), (1382701841,), (1382701854,), (1382701856,), (1382701908,), (1382701922,), (1382701925,), (1382701929,), (1382701933,), (1382701960,), (1382701962,), (1382701966,), (1382701971,), (1382701975,), (1382702002,), (1382702004,), (1382702005,), (1382702007,), (1382702013,), (1382702035,), (1382702062,), (1382702067,), (1382702072,), (1382702076,), (1382702080,), (1382702087,), (1382702090,), (1382702092,), (1382702097,), (1382702101,), (1382702115,), (1382702119,), (1382702123,), (1382702126,), (1382702156,), (1382702160,), (1382702162,), (1382702165,), (1382702185,), (1382702187,), (1382702189,), (1382702192,), (1382702195,), (1382702218,), (1382702219,), (1382702230,), (1382702237,), (1382702241,), (1382702246,), (1382706399,), (1382706429,), (1382706431,), (1382706513,), (1382706515,), (1382706516,), (1382706519,), (1382706522,), (1382706544,), (1382706545,), (1382706548,), (1382706552,), (1382706575,), (1382706580,), (1382706585,), (1382706589,), (1382706595,), (1382706609,), (1382706615,), (1382706619,), (1382706636,), (1382706637,), (1382706638,), (1382706640,), (1382706645,), (1382706672,), (1382706674,), (1382706676,), (1382706680,), (1382706685,), (1382706700,), (1382706703,), (1382706706,), (1382706708,), (1382706735,), (1382706765,), (1382706769,), (1382706774,), (1382706805,), (1382706808,), (1382706810,), (1382706813,), (1382706872,), (1382706874,), (1382706876,), (1382706880,), (1382706885,), (1382706914,), (1382706915,), (1382706917,), (1382706920,), (1382706923,), (1382706940,), (1382706941,), (1382706943,), (1382706946,), (1382706980,), (1382706963,), (1382706965,), (1382706968,), (1382706971,), (1382706976,), (1382706990,), (1382706992,), (1382706995,), (1382706999,), (1382707003,), (1382707006,), (1382707022,), (1382707028,), (1382707029,), (1382707109,), (1382707112,), (1382707116,), (1382707120,), (1382707124,), (1382707146,), (1382707147,), (1382707148,), (1382707150,), (1382707155,), (1382707174,), (1382707397,), (1382707425,), (1382707452,), (1382707483,), (1382707513,), (1382707747,), (1382707773,), (1382707885,), (1382707887,), (1382707888,), (1382708041,), (1382708071,), (1382708103,), (1382708139,), (1382708321,), (1382708324,), (1382708327,), (1382708343,), (1382708345,), (1382708348,), (1382708372,), (1382708375,), (1382708378,), (1382708389,), (1382708419,), (1382708421,), (1382708423,), (1382708745,), (1382708775,), (1382708807,), (1382708837,), (1382708869,), (1382709572,), (1382709404,), (1382709461,), (1382709516,), (1382709816,), (1382709853,), (1382709878,), (1382710151,), (1382710173,), (1382710205,), (1382710216,), (1382710238,), (1382710240,), (1382710248,), (1382710250,), (1382710251,), (1382710254,), (1382710257,), (1382710261,), (1382710266,), (1382710391,), (1382710422,), (1382710454,), (1382710493,), (1382710527,), (1382710561,), (1382710684,), (1382710715,), (1382711170,), (1382711231,), (1382711643,), (1382711682,), (1382711742,), (1382711773,), (1382712106,), (1382712136,), (1382712141,), (1382712162,), (1382712216,), (1382712277,), (1382712279,), (1382712282,), (1382712286,), (1382712317,), (1382712333,), (1382712337,), (1382712342,), (1382712347,), (1382712352,), (1382712568,), (1382712599,), (1382712630,), (1382712663,), (1382712694,), (1382712729,), (1382712836,), (1382712861,), (1382712863,), (1382712865,), (1382712931,), (1382712965,), (1382712974,), (1382712986,), (1382713010,), (1382713049,), (1382713052,), (1382713058,), (1382713062,), (1382713064,), (1382713066,), (1382713103,), (1382713269,), (1382713304,), (1382713423,), (1382713077,), (1382713087,), (1382713094,), (1382713099,), (1382713102,), (1382713125,), (1382713159,), (1382713190,), (1382713231,), (1382713511,), (1382713541,), (1382713571,), (1382713878,), (1382713908,), (1382713938,), (1382713942,), (1382713946,), (1382713975,), (1382713977,), (1382713979,), (1382713982,), (1382713990,), (1382714291,), (1382714323,), (1382714353,), (1382714477,), (1382714478,), (1382714479,), (1382714481,), (1382714500,), (1382714501,), (1382714505,), (1382714510,), (1382714514,), (1382714517,), (1382714522,), (1382714532,), (1382714544,), (1382714549,), (1382714559,), (1382714561,), (1382714563,), (1382714566,), (1382714570,), (1382714598,), (1382714600,), (1382714602,), (1382714605,), (1382714632,), (1382714634,), (1382714637,), (1382714641,), (1382714673,), (1382714676,), (1382714679,), (1382714683,), (1382714686,), (1382714704,), (1382714707,), (1382714710,), (1382714744,), (1382714745,), (1382714746,), (1382714749,), (1382714804,), (1382714802,), (1382714803,), (1382714827,), (1382714830,), (1382714886,), (1382714887,), (1382714888,), (1382714892,), (1382714896,), (1382714924,), (1382714926,), (1382714928,), (1382714931,), (1382714935,), (1382714941,), (1382714965,), (1382714970,), (1382714975,), (1382714981,), (1382714985,), (1382714989,), (1382715003,), (1382715006,), (1382715007,), (1382715008,), (1382715013,), (1382715017,), (1382715027,), (1382715030,), (1382715034,), (1382715037,), (1382715047,), (1382715060,), (1382715074,), (1382715112,), (1382715115,), (1382715117,), (1382715120,), (1382715142,), (1382715144,), (1382715147,), (1382715150,), (1382715190,), (1382715192,), (1382715215,), (1382715218,), (1382715222,), (1382715228,), (1382715257,), (1382715263,), (1382715276,), (1382715299,), (1382715300,), (1382715301,), (1382715305,), (1382715333,), (1382715336,), (1382715338,), (1382715341,), (1382715346,), (1382715349,), (1382715363,), (1382715368,), (1382715373,), (1382715379,), (1382715383,), (1382715388,), (1382715393,), (1382715395,), (1382715414,), (1382715398,), (1382715401,), (1382715405,), (1382715408,), (1382715411,), (1382715449,), (1382715451,), (1382715453,), (1382715455,), (1382715459,), (1382715463,), (1382715485,), (1382715487,), (1382715488,), (1382715500,), (1382715513,), (1382715530,), (1382715533,), (1382715535,), (1382715567,), (1382715568,), (1382715569,), (1382715571,), (1382715591,), (1382715595,), (1382715600,), (1382715619,), (1382715620,), (1382715621,), (1382715633,), (1382715636,), (1382715639,), (1382715642,), (1382715649,), (1382715650,), (1382715659,), (1382715661,), (1382715663,), (1382715666,), (1382715681,), (1382715684,), (1382715689,), (1382715696,), (1382715702,), (1382715711,), (1382715713,), (1382715715,), (1382715728,), (1382715730,), (1382715742,), (1382715807,), (1382715810,), (1382715813,), (1382715815,), (1382716517,), (1382716576,), (1382716637,), (1382716691,), (1382716752,), (1382716895,), (1382716947,), (1382717004,), (1382717059,), (1382717386,), (1382718157,), (1382717203,), (1382717254,), (1382717293,), (1382717346,), (1382717714,), (1382717744,), (1382717775,), (1382717809,), (1382717841,), (1382717896,), (1382718081,), (1382718125,), (1382718295,), (1382718352,), (1382718631,), (1382718658,), (1382718687,), (1382718706,), (1382718707,), (1382718735,), (1382718769,), (1382718962,), (1382718993,), (1382719024,), (1382719081,), (1382719084,), (1382719087,), (1382719100,), (1382719105,), (1382719120,), (1382719154,), (1382719156,), (1382719160,), (1382719162,), (1382719164,), (1382719168,), (1382719186,), (1382719219,), (1382719225,), (1382719229,), (1382719233,), (1382719237,), (1382719245,), (1382719247,), (1382719251,), (1382719269,), (1382719272,), (1382719275,), (1382719279,), (1382719282,), (1382719292,), (1382719295,), (1382719300,), (1382719304,), (1382719313,), (1382719315,), (1382719318,), (1382719332,), (1382719335,), (1382719337,), (1382719339,), (1382719341,), (1382719353,), (1382719355,), (1382719358,), (1382719363,), (1382719366,), (1382719369,), (1382719385,), (1382719387,), (1382719389,), (1382719404,), (1382719405,), (1382719396,), (1382719397,), (1382719400,), (1382719401,), (1382719409,), (1382719410,), (1382719411,), (1382719460,), (1382719461,), (1382719462,), (1382719466,), (1382719470,), (1382719496,), (1382719499,), (1382719504,), (1382719509,), (1382719515,), (1382719520,), (1382719528,), (1382719531,), (1382719535,), (1382719552,), (1382719555,), (1382719560,), (1382719564,), (1382719568,), (1382719571,), (1382719590,), (1382719596,), (1382719604,), (1382719614,), (1382719616,), (1382719618,), (1382719680,), (1382719681,), (1382719683,), (1382719686,), (1382719692,), (1382719695,), (1382719698,), (1382719700,), (1382719706,), (1382719710,), (1382719714,), (1382719718,), (1382719722,), (1382719728,), (1382719732,), (1382719739,), (1382719741,), (1382719743,), (1382719745,), (1382719774,), (1382719779,), (1382719784,), (1382719788,), (1382719797,), (1382719812,), (1382719844,), (1382719846,), (1382719848,), (1382719854,), (1382719856,), (1382719858,), (1382719859,), (1382719860,), (1382719861,), (1382719870,), (1382719902,), (1382719904,), (1382719905,), (1382719909,), (1382719912,), (1382719936,), (1382719929,), (1382719930,), (1382719932,), (1382719934,), (1382719955,), (1382719958,), (1382719960,), (1382719963,), (1382719966,), (1382719977,), (1382719983,), (1382719987,), (1382719990,), (1382719993,), (1382720000,), (1382720007,), (1382720009,), (1382720013,), (1382720016,), (1382720019,), (1382720021,), (1382720033,), (1382720039,), (1382720043,), (1382720047,), (1382720055,), (1382720060,), (1382720063,), (1382720070,), (1382720077,), (1382720087,), (1382720090,), (1382720092,), (1382720093,), (1382720095,), (1382720097,), (1382720101,), (1382720108,), (1382720117,), (1382720174,), (1382720194,), (1382720196,), (1382720198,), (1382720200,), (1382720202,), (1382720207,), (1382720208,), (1382720210,), (1382720219,), (1382720240,), (1382720241,), (1382720242,), (1382720245,), (1382720248,), (1382720251,), (1382720267,), (1382720271,), (1382720322,), (1382720328,), (1382720330,), (1382720343,), (1382720385,), (1382720386,), (1382720389,), (1382720392,), (1382720397,), (1382720406,), (1382720412,), (1382720413,), (1382720414,), (1382720415,), (1382720418,), (1382720421,), (1382720429,), (1382720478,), (1382720464,), (1382720472,), (1382720475,), (1382720490,), (1382720494,), (1382720502,), (1382720507,), (1382720527,), (1382720554,), (1382720556,), (1382720559,), (1382720562,), (1382720564,), (1382720577,), (1382720579,), (1382720582,), (1382720611,), (1382720612,), (1382720613,), (1382720615,), (1382720620,), (1382720630,), (1382720632,), (1382720634,), (1382720638,), (1382720641,), (1382720645,), (1382720671,), (1382720687,), (1382720705,), (1382720719,), (1382720724,), (1382720728,), (1382720735,), (1382720739,), (1382720741,), (1382720753,), (1382720755,), (1382720758,), (1382720773,), (1382720777,), (1382720781,), (1382720803,), (1382720805,), (1382720809,), (1382720812,), (1382720816,), (1382720818,), (1382720830,), (1382720853,), (1382720882,), (1382720910,), (1382721214,), (1382721234,), (1382721263,), (1382721580,), (1382721604,), (1382721630,), (1382721655,), (1382721681,), (1382721706,), (1382721822,), (1382721851,), (1382721877,), (1382721902,), (1382721929,), (1382722069,), (1382722015,), (1382722043,), (1382722317,), (1382722344,), (1382722371,), (1382722396,), (1382722423,), (1382722787,), (1382722864,), (1382722914,), (1382722974,), (1382723027,), (1382723079,), (1382723162,), (1382723207,), (1382723267,), (1382723321,), (1382723449,), (1382723478,), (1382723505,), (1382723541,), (1382723569,), (1382723641,), (1382723642,), (1382723661,), (1382723664,), (1382723693,), (1382723695,), (1382723722,), (1382723723,), (1382723753,), (1382723756,), (1382723782,), (1382723785,), (1382723832,), (1382723864,), (1382723872,), (1382723902,), (1382723915,), (1382723919,), (1382723923,), (1382723924,), (1382723926,), (1382723930,), (1382723936,), (1382723947,), (1382723951,), (1382723969,), (1382727871,), (1382727904,), (1382727940,), (1382727941,), (1382727967,), (1382727970,), (1382727974,), (1382727995,), (1382728025,), (1382728028,), (1382728031,), (1382728035,), (1382728039,), (1382728057,), (1382728060,), (1382728063,), (1382728066,), (1382728070,), (1382728085,), (1382728088,), (1382728105,), (1382728107,), (1382728111,), (1382728137,), (1382728140,), (1382728142,), (1382728147,), (1382728151,), (1382728157,), (1382728159,), (1382728162,), (1382728166,), (1382728171,), (1382728174,), (1382728183,), (1382728179,), (1382728181,), (1382728200,), (1382728201,), (1382728203,), (1382728206,), (1382728209,), (1382728238,), (1382728244,), (1382728246,), (1382728251,), (1382728256,), (1382728260,), (1382728270,), (1382728274,), (1382728279,), (1382728284,), (1382728289,), (1382728294,), (1382728314,), (1382728317,), (1382728320,), (1382728338,), (1382728341,), (1382728342,), (1382728345,), (1382728347,), (1382728351,), (1382728371,), (1382728380,), (1382728382,), (1382728388,), (1382728393,), (1382728396,), (1382728409,), (1382728416,), (1382728420,), (1382728426,), (1382728478,), (1382728482,), (1382728487,), (1382728492,), (1382728496,), (1382728508,), (1382728510,), (1382728514,), (1382728516,), (1382728518,), (1382728520,), (1382728533,), (1382728543,), (1382728551,), (1382728555,), (1382728566,), (1382728569,), (1382728573,), (1382728578,), (1382728582,), (1382728586,), (1382728602,), (1382728606,), (1382728610,), (1382728614,), (1382728622,), (1382728626,), (1382728663,), (1382728666,), (1382728670,), (1382728674,), (1382728677,), (1382728699,), (1382728703,), (1382728708,), (1382728712,), (1382728717,), (1382728723,), (1382728759,), (1382728745,), (1382728751,), (1382728755,), (1382728779,), (1382728781,), (1382728783,), (1382728785,), (1382728788,), (1382728798,), (1382728801,), (1382728806,), (1382728809,), (1382728817,), (1382728822,), (1382728829,), (1382728836,), (1382728848,), (1382728852,), (1382728855,), (1382728870,), (1382728873,), (1382728916,), (1382728964,), (1382728967,), (1382729036,), (1382742279,), (1382747835,), (1382747925,), (1382748668,), (1382748729,), (1382748779,), (1382748811,), (1382749453,), (1382749539,), (1382749609,), (1382749675,), (1382749712,), (1382750004,), (1382750006,), (1382750009,), (1382750012,), (1382750031,), (1382750034,), (1382750038,), (1382750043,), (1382750060,), (1382750062,), (1382750065,), (1382750069,), (1382750074,), (1382750090,), (1382750092,), (1382750094,), (1382750097,), (1382750101,), (1382750106,), (1382750122,), (1382750124,), (1382750127,), (1382750131,), (1382750149,), (1382750151,), (1382750157,), (1382750163,), (1382750168,), (1382750186,), (1382750188,), (1382750191,), (1382750195,), (1382750198,), (1382750216,), (1382750221,), (1382750224,), (1382750228,), (1382750230,), (1382750243,), (1382750245,), (1382750247,), (1382750252,), (1382750257,), (1382750261,), (1382750276,), (1382750281,), (1382750286,), (1382750289,), (1382750293,), (1382750302,), (1382750305,), (1382750309,), (1382750314,), (1382750316,), (1382750320,), (1382750336,), (1382750339,), (1382750340,), (1382750345,), (1382750351,), (1382750354,), (1382750390,), (1382750373,), (1382750376,), (1382750379,), (1382750383,), (1382750386,), (1382750400,), (1382750402,), (1382750405,), (1382750409,), (1382750412,), (1382750449,), (1382750451,), (1382750454,), (1382750458,), (1382750478,), (1382750482,), (1382750487,), (1382750520,), (1382750523,), (1382750526,), (1382750530,), (1382750534,), (1382750545,), (1382750552,), (1382750555,), (1382750558,), (1382750560,), (1382750570,), (1382750574,), (1382750577,), (1382750581,), (1382750598,), (1382750600,), (1382750604,), (1382750639,), (1382750642,), (1382750646,), (1382750651,), (1382750658,), (1382750663,), (1382750676,), (1382750678,), (1382750682,), (1382750688,), (1382750704,), (1382750705,), (1382750707,), (1382750712,), (1382750715,), (1382750729,), (1382750731,), (1382750733,), (1382750739,), (1382750764,), (1382750767,), (1382750771,), (1382750774,), (1382750777,), (1382750798,), (1382750800,), (1382750802,), (1382750863,), (1382750872,), (1382750873,), (1382750878,), (1382750879,), (1382750883,), (1382750884,), (1382750887,), (1382750888,), (1382750898,), (1382750896,), (1382750924,), (1382750926,), (1382750929,), (1382750933,), (1382750975,), (1382750979,), (1382750983,), (1382750987,), (1382750992,), (1382751005,), (1382751010,), (1382751012,), (1382751033,), (1382751036,), (1382751078,), (1382751080,), (1382751108,), (1382751110,), (1382751114,), (1382751119,), (1382751208,), (1382751209,), (1382751211,), (1382751213,), (1382751231,), (1382751236,), (1382751241,), (1382751244,), (1382751249,), (1382751266,), (1382751269,), (1382751272,), (1382751276,), (1382751308,), (1382751310,), (1382751312,), (1382751315,), (1382751340,), (1382751342,), (1382751344,), (1382751348,), (1382751351,), (1382751357,), (1382751367,), (1382751368,), (1382751369,), (1382751372,), (1382751405,), (1382751407,), (1382751409,), (1382751422,), (1382751447,), (1382751449,), (1382751451,), (1382751454,), (1382751472,), (1382751638,), (1382751618,), (1382751625,), (1382751628,), (1382751632,), (1382751658,), (1382751662,), (1382751707,), (1382751710,), (1382751715,), (1382751719,), (1382751724,), (1382751737,), (1382751741,), (1382751745,), (1382751751,), (1382751755,), (1382751760,), (1382751783,), (1382751786,), (1382751790,), (1382751796,), (1382751856,), (1382751859,), (1382751861,), (1382752193,), (1382752197,), (1382752201,), (1382752208,), (1382752250,), (1382752253,), (1382752256,), (1382752283,), (1382752286,), (1382753295,), (1382753379,), (1382753470,), (1382753556,), (1382753653,), (1382753747,), (1382754098,), (1382754155,), (1382754193,), (1382754225,), (1382754679,), (1382754396,), (1382754458,), (1382754499,), (1382754540,), (1382754622,), (1382754916,), (1382754922,), (1382754939,), (1382754964,), (1382754967,), (1382755235,), (1382755269,), (1382755327,), (1382755781,), (1382755782,), (1382755783,), (1382755797,), (1382755830,), (1382755864,), (1382755944,), (1382755946,), (1382755975,), (1382756027,), (1382756073,), (1382756102,), (1382756279,), (1382756285,), (1382756292,), (1382756385,), (1382756389,), (1382756395,), (1382756399,), (1382756403,), (1382756407,), (1382756413,), (1382756415,), (1382756422,), (1382756424,), (1382756426,), (1382756430,), (1382756434,), (1382756440,), (1382756442,), (1382756444,), (1382756449,), (1382756452,), (1382756464,), (1382756466,), (1382756476,), (1382756480,), (1382756488,), (1382756568,), (1382756571,), (1382756574,), (1382756578,), (1382756658,), (1382756663,), (1382756664,), (1382756681,), (1382756683,), (1382756686,), (1382756691,), (1382756699,), (1382756723,), (1382756725,), (1382756729,), (1382756733,), (1382756736,), (1382756751,), (1382756753,), (1382756755,), (1382756796,), (1382756858,), (1382756782,), (1382756785,), (1382756787,), (1382756793,), (1382756813,), (1382756814,), (1382756816,), (1382756820,), (1382756824,), (1382756829,), (1382756847,), (1382756850,), (1382756855,), (1382756862,), (1382756866,), (1382756870,), (1382756873,), (1382756874,), (1382756875,), (1382756881,), (1382756884,), (1382756886,), (1382756889,), (1382756891,), (1382756899,), (1382756902,), (1382756917,), (1382756920,), (1382756923,), (1382756982,), (1382757014,), (1382757015,), (1382757051,), (1382757053,), (1382757055,), (1382757058,), (1382757073,), (1382757075,), (1382757076,), (1382757079,), (1382757083,), (1382757096,), (1382757098,), (1382757100,), (1382757105,), (1382757109,), (1382757140,), (1382757143,), (1382757144,), (1382757178,), (1382757179,), (1382757182,), (1382757185,), (1382757189,), (1382757192,), (1382757197,), (1382757198,), (1382757202,), (1382757205,), (1382757207,), (1382757209,), (1382757212,), (1382757218,), (1382757219,), (1382757220,), (1382757222,), (1382757241,), (1382757247,), (1382757248,), (1382757308,), (1382757277,), (1382757279,), (1382757283,), (1382757614,), (1382757646,), (1382757671,), (1382757675,), (1382757678,), (1382757956,), (1382757995,), (1382758025,), (1382758069,), (1382758431,), (1382758523,), (1382758553,), (1382758584,), (1382758760,), (1382758763,), (1382758790,), (1382758820,), (1382758853,), (1382758883,), (1382759223,), (1382759279,), (1382759331,), (1382759385,), (1382759785,), (1382759841,), (1382759896,), (1382759952,), (1382760007,), (1382760055,), (1382760160,), (1382760188,), (1382760220,), (1382760248,), (1382760368,), (1382760416,), (1382760760,), (1382760789,), (1382760796,), (1382760802,), (1382760805,), (1382760822,), (1382760825,), (1382760827,), (1382760831,), (1382760853,), (1382761116,), (1382761148,), (1382761180,), (1382761209,), (1382761393,), (1382761395,), (1382761397,), (1382761582,), (1382761583,), (1382761585,), (1382761589,), (1382761592,), (1382761595,), (1382761615,), (1382761623,), (1382761651,), (1382761683,), (1382761953,), (1382761978,), (1382761982,), (1382761985,), (1382761988,), (1382762094,), (1382762171,), (1382762020,), (1382762025,), (1382762054,), (1382762089,), (1382762091,), (1382762104,), (1382762113,), (1382762121,), (1382762143,), (1382762145,), (1382762147,), (1382762157,), (1382762162,), (1382762167,), (1382762169,), (1382762181,), (1382762184,), (1382762187,), (1382762192,), (1382762194,), (1382762196,), (1382762200,), (1382762216,), (1382762219,), (1382762221,), (1382762247,), (1382762251,), (1382762259,), (1382762285,), (1382762291,), (1382762294,), (1382762297,), (1382762300,), (1382762308,), (1382762309,), (1382762310,), (1382762314,), (1382762335,), (1382762339,), (1382762342,), (1382762347,), (1382762351,), (1382762354,), (1382762365,), (1382762367,), (1382762370,), (1382762374,), (1382762376,), (1382762379,), (1382762398,), (1382762400,), (1382762403,), (1382762406,), (1382762417,), (1382762419,), (1382762422,), (1382762425,), (1382762428,), (1382762431,), (1382762466,), (1382762474,), (1382762481,), (1382762484,), (1382762503,), (1382762532,), (1382762565,), (1382762596,), (1382762632,), (1382762691,), (1382763694,), (1382763746,), (1382763795,), (1382764061,), (1382764062,), (1382764114,), (1382764117,), (1382764164,), (1382764170,), (1382764229,), (1382764250,), (1382764295,), (1382764331,), (1382764554,), (1382764456,), (1382764458,), (1382764489,), (1382764517,), (1382764544,), (1382764639,), (1382764640,), (1382764641,), (1382764644,), (1382764648,), (1382764662,), (1382764663,), (1382764665,), (1382764667,), (1382764671,), (1382764673,), (1382764682,), (1382764684,), (1382764686,), (1382764688,), (1382764704,), (1382764706,), (1382764708,), (1382764740,), (1382764743,), (1382764745,), (1382764765,), (1382764770,), (1382764774,), (1382764779,), (1382764784,), (1382764787,), (1382764793,), (1382764796,), (1382764813,), (1382764817,), (1382764820,), (1382764846,), (1382764872,), (1382764874,), (1382764876,), (1382764913,), (1382764915,), (1382764917,), (1382764922,), (1382764925,), (1382764936,), (1382764938,), (1382764941,), (1382764943,), (1382764945,), (1382764985,), (1382764987,), (1382765008,), (1382765041,), (1382765044,), (1382765048,), (1382765088,), (1382765136,), (1382765082,), (1382765086,), (1382765109,), (1382765110,), (1382765114,), (1382765119,), (1382765123,), (1382765126,), (1382765145,), (1382765147,), (1382765149,), (1382765151,), (1382765167,), (1382765170,), (1382765173,), (1382765177,), (1382765181,), (1382765203,), (1382765206,), (1382765229,), (1382765232,), (1382765235,), (1382765264,), (1382765269,), (1382765270,), (1382765272,), (1382765276,), (1382765298,), (1382765306,), (1382765308,), (1382765311,), (1382765316,), (1382765343,), (1382765347,), (1382765349,), (1382765352,), (1382765357,), (1382765367,), (1382765368,), (1382765369,), (1382765372,), (1382765374,), (1382765407,), (1382765469,), (1382771656,), (1382771653,), (1382771654,), (1382771678,), (1382771681,), (1382771698,), (1382771719,), (1382771723,), (1382771727,), (1382771759,), (1382771763,), (1382771783,), (1382771785,), (1382771788,), (1382771792,), (1382771795,), (1382771814,), (1382771816,), (1382771818,), (1382771821,), (1382771836,), (1382771839,), (1382771840,), (1382771842,), (1382771846,), (1382771852,), (1382771888,), (1382771890,), (1382771892,), (1382771896,), (1382771900,), (1382771924,), (1382771927,), (1382771930,), (1382771934,), (1382771937,), (1382771957,), (1382771959,), (1382771961,), (1382771963,), (1382771967,), (1382771971,), (1382771978,), (1382771981,), (1382771984,), (1382771987,), (1382772030,), (1382772031,), (1382772033,), (1382772056,), (1382772059,), (1382772062,), (1382772069,), (1382772070,), (1382772072,), (1382772074,), (1382772083,), (1382772089,), (1382772092,), (1382772096,), (1382772126,), (1382772179,), (1382772113,), (1382772116,), (1382772118,), (1382772120,), (1382772124,), (1382772136,), (1382772139,), (1382772142,), (1382772145,), (1382772149,), (1382772153,), (1382772168,), (1382772171,), (1382772174,), (1382772177,), (1382772189,), (1382772191,), (1382772194,), (1382772198,), (1382772201,), (1382772204,), (1382772210,), (1382772211,), (1382772214,), (1382772217,), (1382772220,), (1382772234,), (1382772236,), (1382772242,), (1382772256,), (1382772265,), (1382772268,), (1382772299,), (1382772302,), (1382772304,), (1382772307,), (1382772310,), (1382772312,), (1382772342,), (1382772343,), (1382772346,), (1382772348,), (1382772350,), (1382772352,), (1382772359,), (1382772361,), (1382772364,), (1382772367,), (1382772369,), (1382772374,), (1382772377,), (1382772382,), (1382772389,), (1382772395,), (1382772399,), (1382772417,), (1382772419,), (1382772421,), (1382772424,), (1382772429,), (1382772442,), (1382772445,), (1382772463,), (1382772469,), (1382772475,), (1382772480,), (1382772518,), (1382772521,), (1382772523,), (1382772526,), (1382772541,), (1382772544,), (1382772550,), (1382772554,), (1382772559,), (1382772561,), (1382772567,), (1382772568,), (1382772571,), (1382772573,), (1382772581,), (1382772582,), (1382772585,), (1382772586,), (1382772588,), (1382772589,), (1382772592,), (1382772593,), (1382772596,), (1382772597,), (1382772620,), (1382772627,), (1382772635,), (1382772662,), (1382773257,), (1382773133,), (1382773195,), (1382775718,), (1382775770,), (1382776031,), (1382776092,), (1382776176,), (1382776854,), (1382776899,), (1382777110,), (1382777111,), (1382777113,), (1382777116,), (1382777120,), (1382777124,), (1382777146,), (1382777150,), (1382777153,), (1382777155,), (1382777174,), (1382777176,), (1382777180,), (1382777186,), (1382777273,), (1382777310,), (1382777312,), (1382777313,), (1382777344,), (1382777347,), (1382777349,), (1382777354,), (1382777358,), (1382777380,), (1382777384,), (1382777389,), (1382777394,), (1382777399,), (1382777404,), (1382777413,), (1382777414,), (1382777416,), (1382777425,), (1382777429,), (1382777438,), (1382777455,), (1382777523,), (1382777579,), (1382777474,), (1382777477,), (1382777494,), (1382777502,), (1382777513,), (1382777531,), (1382777537,), (1382777543,), (1382777549,), (1382777554,), (1382777562,), (1382777574,), (1382777575,), (1382777577,), (1382777588,), (1382777591,), (1382777594,), (1382777604,), (1382777606,), (1382777610,), (1382777651,), (1382777653,), (1382777692,), (1382777693,), (1382777694,), (1382777698,), (1382777702,), (1382777809,), (1382777812,), (1382777814,), (1382777817,), (1382777844,), (1382777847,), (1382777849,), (1382777852,), (1382777856,), (1382777890,), (1382777891,), (1382777894,), (1382777900,), (1382777907,), (1382777911,), (1382777916,), (1382777918,), (1382777923,), (1382777975,), (1382777978,), (1382778054,), (1382778057,), (1382778081,), (1382778112,), (1382778114,), (1382778115,), (1382778164,), (1382778157,), (1382778161,), (1382778197,), (1382778200,), (1382778230,), (1382778232,), (1382778234,), (1382778236,), (1382778239,), (1382778275,), (1382778277,), (1382778279,), (1382778282,), (1382778285,), (1382778289,), (1382778298,), (1382778300,), (1382778306,), (1382778312,), (1382778324,), (1382778330,), (1382778334,), (1382778338,), (1382778343,), (1382778348,), (1382778365,), (1382778369,), (1382778371,), (1382778387,), (1382778388,), (1382778391,), (1382778395,), (1382778401,), (1382778405,), (1382778418,), (1382778420,), (1382778423,), (1382778437,), (1382778439,), (1382778442,), (1382778444,), (1382778446,), (1382778457,), (1382778460,), (1382778462,), (1382778465,), (1382778469,), (1382778495,), (1382778497,), (1382778498,), (1382778504,), (1382778508,), (1382778540,), (1382778544,), (1382778548,), (1382778553,), (1382778556,), (1382778558,), (1382778587,), (1382778590,), (1382778595,), (1382778598,), (1382778600,), (1382778602,), (1382778612,), (1382778616,), (1382778620,), (1382778624,), (1382778626,), (1382778631,), (1382778634,), (1382778642,), (1382778646,), (1382778650,), (1382778655,), (1382778669,), (1382778671,), (1382778673,), (1382778677,), (1382778681,), (1382778701,), (1382778705,), (1382778709,), (1382778712,), (1382778716,), (1382778721,), (1382778763,), (1382778828,), (1382778751,), (1382778756,), (1382778758,), (1382778760,), (1382778775,), (1382778783,), (1382778787,), (1382778791,), (1382778795,), (1382778803,), (1382778809,), (1382778818,), (1382778822,), (1382778826,), (1382778835,), (1382778838,), (1382778841,), (1382778847,), (1382778857,), (1382778858,), (1382778860,), (1382778864,), (1382778867,), (1382778870,), (1382778892,), (1382778894,), (1382778896,), (1382778899,), (1382778901,), (1382778903,), (1382778937,), (1382778943,), (1382778950,), (1382778958,), (1382778974,), (1382778996,), (1382779004,), (1382779008,), (1382779012,), (1382779014,), (1382779018,), (1382779023,), (1382779038,), (1382779043,), (1382779047,), (1382779052,), (1382779057,), (1382779059,), (1382779092,), (1382779097,), (1382779101,), (1382779105,), (1382779107,), (1382779110,), (1382779115,), (1382779117,), (1382779119,), (1382779122,), (1382779125,), (1382779128,), (1382779140,), (1382779144,), (1382779148,), (1382779152,), (1382779156,), (1382779160,), (1382779170,), (1382779172,), (1382779174,), (1382779176,), (1382779179,), (1382779182,), (1382779204,), (1382779207,), (1382779210,), (1382779214,), (1382779220,), (1382779225,), (1382779235,), (1382779238,), (1382779241,), (1382779244,), (1382779247,), (1382779250,), (1382779259,), (1382779264,), (1382779269,), (1382779272,), (1382779274,), (1382779277,), (1382779306,), (1382779308,), (1382779315,), (1382779321,), (1382779325,), (1382779330,), (1382779338,), (1382779350,), (1382779363,), (1382779365,), (1382779367,), (1382779371,), (1382779388,), (1382779396,), (1382779401,), (1382779415,), (1382779417,), (1382779419,), (1382779380,), (1382779382,), (1382779385,), (1382779426,), (1382779430,), (1382779434,), (1382779435,), (1382779436,), (1382779438,), (1382779442,), (1382779444,), (1382779446,), (1382779449,), (1382779451,), (1382779463,), (1382779465,), (1382779468,), (1382779472,), (1382779475,), (1382779479,), (1382779487,), (1382779488,), (1382779489,), (1382779491,), (1382779505,), (1382779510,), (1382779514,), (1382779519,), (1382779524,), (1382779526,), (1382779542,), (1382779544,), (1382779546,), (1382779556,), (1382779557,), (1382779561,), (1382779564,), (1382779567,), (1382779575,), (1382779582,), (1382779584,), (1382779605,), (1382779609,), (1382779612,), (1382779617,), (1382779621,), (1382779631,), (1382779634,), (1382779637,), (1382779641,), (1382779666,), (1382779668,), (1382779670,), (1382779695,), (1382779696,), (1382779697,), (1382779701,), (1382779735,), (1382779738,), (1382779741,), (1382779748,), (1382779754,), (1382779758,), (1382779768,), (1382779775,), (1382779779,), (1382779801,), (1382779804,), (1382779807,), (1382779810,), (1382779813,), (1382779816,), (1382779819,), (1382779822,), (1382779824,), (1382779827,), (1382779831,), (1382779885,), (1382779950,), (1382779860,), (1382779864,), (1382779869,), (1382779876,), (1382779881,), (1382779898,), (1382779900,), (1382779902,), (1382779904,), (1382779907,), (1382779910,), (1382779923,), (1382779937,), (1382779943,), (1382779948,), (1382779955,), (1382779957,), (1382779959,), (1382779963,), (1382779965,), (1382779968,), (1382779979,), (1382779983,), (1382779986,), (1382779989,), (1382779992,), (1382780004,), (1382780015,), (1382780016,), (1382780018,), (1382780020,), (1382780022,), (1382780034,), (1382780038,), (1382780042,), (1382780045,), (1382780053,), (1382780057,), (1382780061,), (1382780063,), (1382780065,), (1382780067,), (1382780071,), (1382780074,), (1382780083,), (1382780088,), (1382780091,), (1382780094,), (1382780097,), (1382780106,), (1382780121,), (1382780126,), (1382780131,), (1382780135,), (1382780140,), (1382780144,), (1382780152,), (1382780156,), (1382780159,), (1382780165,), (1382780168,), (1382780187,), (1382780188,), (1382780190,), (1382780195,), (1382780201,), (1382780221,), (1382780223,), (1382780227,), (1382780231,), (1382780236,), (1382780240,), (1382780265,), (1382780266,), (1382780267,), (1382780269,), (1382780270,), (1382780277,), (1382780279,), (1382780285,), (1382780287,), (1382780289,), (1382780299,), (1382780302,), (1382780305,), (1382780308,), (1382780312,), (1382780317,), (1382780333,), (1382780337,), (1382780339,), (1382780342,), (1382780344,), (1382780376,), (1382780374,), (1382780456,), (1382780458,), (1382780460,), (1382780462,), (1382780473,), (1382780475,), (1382780476,), (1382780480,), (1382780484,), (1382780489,), (1382780509,), (1382780510,), (1382780512,), (1382780519,), (1382780530,), (1382780538,), (1382780561,), (1382780563,), (1382780566,), (1382780569,), (1382780574,), (1382780576,), (1382780581,), (1382780584,), (1382780588,), (1382780592,), (1382780603,), (1382780604,), (1382780608,), (1382780609,), (1382780613,), (1382780614,), (1382780617,), (1382780618,), (1382780620,), (1382780621,), (1382780622,), (1382780623,), (1382780627,), (1382780635,), (1382780639,), (1382780643,), (1382780646,), (1382780648,), (1382780655,), (1382780659,), (1382780662,), (1382780667,), (1382780706,), (1382780713,), (1382780717,), (1382780723,), (1382780726,), (1382780729,), (1382780737,), (1382780741,), (1382780750,), (1382780765,), (1382780773,), (1382780775,), (1382780778,), (1382780785,), (1382780790,), (1382780795,), (1382780813,), (1382780815,), (1382780819,), (1382780823,), (1382780826,), (1382780829,), (1382780831,), (1382780837,), (1382780841,), (1382780843,), (1382780853,), (1382780855,), (1382780858,), (1382780861,), (1382780866,), (1382780870,), (1382780920,), (1382780921,), (1382780984,), (1382780990,), (1382780991,), (1382780993,), (1382780994,), (1382780915,), (1382780917,), (1382780918,), (1382780919,), (1382780926,), (1382780929,), (1382780932,), (1382780935,), (1382780938,), (1382780940,), (1382780960,), (1382780970,), (1382780974,), (1382780978,), (1382780981,), (1382781005,), (1382781016,), (1382781026,), (1382781034,), (1382781039,), (1382781040,), (1382781045,), (1382781047,), (1382781051,), (1382781054,), (1382781057,), (1382781070,), (1382781072,), (1382781074,), (1382781076,), (1382781078,), (1382781080,), (1382781087,), (1382781091,), (1382781094,), (1382781096,), (1382781106,), (1382781111,), (1382781115,), (1382781119,), (1382781122,), (1382781125,), (1382781147,), (1382781151,), (1382781155,), (1382781160,), (1382781187,), (1382781189,), (1382781192,), (1382781197,), (1382781201,), (1382781205,), (1382781213,), (1382781214,), (1382781217,), (1382781220,), (1382781224,), (1382781228,), (1382781234,), (1382781235,), (1382781241,), (1382781285,), (1382781287,), (1382781289,), (1382781291,), (1382781297,), (1382781303,), (1382781322,), (1382781330,), (1382781334,), (1382781337,), (1382781341,), (1382781344,), (1382781354,), (1382781358,), (1382781361,), (1382781364,), (1382781367,), (1382781369,), (1382781377,), (1382781381,), (1382781386,), (1382781390,), (1382781394,), (1382781449,), (1382781440,), (1382781444,), (1382781446,), (1382781476,), (1382781486,), (1382781491,), (1382781494,), (1382781497,), (1382781501,), (1382781511,), (1382781513,), (1382781515,), (1382781519,), (1382781523,), (1382781542,), (1382781543,), (1382781545,), (1382781547,), (1382781552,), (1382781555,), (1382781565,), (1382781570,), (1382781572,), (1382781574,), (1382781581,), (1382781586,), (1382781589,), (1382781591,), (1382781593,), (1382781598,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'09092025': {'nb_upload': 30, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([26689024]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1382781598, 1382781593, 1382781591, 1382781589, 1382781586, 1382781581, 1382781574, 1382781572, 1382781570, 1382781565, 1382781555, 1382781552, 1382781547, 1382781545, 1382781543, 1382781542] map_info['map_portfolio_photo'] : {26689024: [1382781598, 1382781593, 1382781591, 1382781589, 1382781586, 1382781581, 1382781574, 1382781572, 1382781570, 1382781565, 1382781555, 1382781552, 1382781547, 1382781545, 1382781543, 1382781542, 1382781523, 1382781519, 1382781515, 1382781513, 1382781511, 1382781501, 1382781497, 1382781494, 1382781491, 1382781486, 1382781476, 1382781446, 1382781444, 1382781440]} final : True mtd_id 4302 list_pids : [1382781598, 1382781593, 1382781591, 1382781589, 1382781586, 1382781581, 1382781574, 1382781572, 1382781570, 1382781565, 1382781555, 1382781552, 1382781547, 1382781545, 1382781543, 1382781542] Looping around the photos to save general results len do output : 1 /26689024Didn'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, '3684978') ('4302', '26689024', '1382781598', None, None, None, None, None, '3684978') ('4302', None, None, None, None, None, None, None, '3684978') ('4302', '26689024', '1382781593', None, None, None, None, None, '3684978') ('4302', None, None, None, None, None, None, None, '3684978') ('4302', '26689024', '1382781591', None, None, None, None, None, '3684978') ('4302', None, None, None, None, None, None, None, '3684978') ('4302', '26689024', '1382781589', None, None, None, None, None, '3684978') ('4302', None, None, None, None, None, None, None, '3684978') ('4302', '26689024', '1382781586', None, None, None, None, None, '3684978') ('4302', None, None, None, None, None, None, None, '3684978') ('4302', '26689024', '1382781581', None, None, None, None, None, '3684978') ('4302', None, None, None, None, None, None, None, '3684978') ('4302', '26689024', '1382781574', None, None, None, None, None, '3684978') ('4302', None, None, None, None, None, None, None, '3684978') ('4302', '26689024', '1382781572', None, None, None, None, None, '3684978') ('4302', None, None, None, None, None, None, None, '3684978') ('4302', '26689024', '1382781570', None, None, None, None, None, '3684978') ('4302', None, None, None, None, None, None, None, '3684978') ('4302', '26689024', '1382781565', None, None, None, None, None, '3684978') ('4302', None, None, None, None, None, None, None, '3684978') ('4302', '26689024', '1382781555', None, None, None, None, None, '3684978') ('4302', None, None, None, None, None, None, None, '3684978') ('4302', '26689024', '1382781552', None, None, None, None, None, '3684978') ('4302', None, None, None, None, None, None, None, '3684978') ('4302', '26689024', '1382781547', None, None, None, None, None, '3684978') ('4302', None, None, None, None, None, None, None, '3684978') ('4302', '26689024', '1382781545', None, None, None, None, None, '3684978') ('4302', None, None, None, None, None, None, None, '3684978') ('4302', '26689024', '1382781543', None, None, None, None, None, '3684978') ('4302', None, None, None, None, None, None, None, '3684978') ('4302', '26689024', '1382781542', None, None, None, None, None, '3684978') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 17 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, '26689024', 'None', None, None, None, None, '3684978'), ('4302', '26689024', '1382781598', None, None, None, None, None, '3684978'), ('4302', '26689024', '1382781593', None, None, None, None, None, '3684978'), ('4302', '26689024', '1382781591', None, None, None, None, None, '3684978'), ('4302', '26689024', '1382781589', None, None, None, None, None, '3684978'), ('4302', '26689024', '1382781586', None, None, None, None, None, '3684978'), ('4302', '26689024', '1382781581', None, None, None, None, None, '3684978'), ('4302', '26689024', '1382781574', None, None, None, None, None, '3684978'), ('4302', '26689024', '1382781572', None, None, None, None, None, '3684978'), ('4302', '26689024', '1382781570', None, None, None, None, None, '3684978'), ('4302', '26689024', '1382781565', None, None, None, None, None, '3684978'), ('4302', '26689024', '1382781555', None, None, None, None, None, '3684978'), ('4302', '26689024', '1382781552', None, None, None, None, None, '3684978'), ('4302', '26689024', '1382781547', None, None, None, None, None, '3684978'), ('4302', '26689024', '1382781545', None, None, None, None, None, '3684978'), ('4302', '26689024', '1382781543', None, None, None, None, None, '3684978'), ('4302', '26689024', '1382781542', None, None, None, None, None, '3684978')] time used for this insertion : 0.03665566444396973 save_final save missing photos in datou_result : time spend for datou_step_exec : 7.668292760848999 time spend to save output : 0.036900997161865234 total time spend for step 5 : 7.705193758010864 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 (3684978) 2.45user 2.26system 0:19.94elapsed 23%CPU (0avgtext+0avgdata 158844maxresident)k 56inputs+8552outputs (32major+75255minor)pagefaults 0swaps