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 : 3623456 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 (2795899) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2795899) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22675633 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2795899'] with mtr_portfolio_ids : ['22675633'] and first list_photo_ids : [] new path : /proc/3623456/ Name: python3 Umask: 0002 State: R (running) Tgid: 3623456 Ngid: 0 Pid: 3623456 PPid: 3623455 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 3623456 NSpid: 3623456 NSpgid: 3622556 NSsid: 3622556 VmPeak: 1107228 kB VmSize: 1107228 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98868 kB VmRSS: 98868 kB RssAnon: 60196 kB RssFile: 38672 kB RssShmem: 0 kB VmData: 865976 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 564 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63054 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: 38 nonvoluntary_ctxt_switches: 157 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '3623456', 'Ngid': '0', 'Pid': '3623456', 'PPid': '3623455', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '3623456', 'NSpid': '3623456', 'NSpgid': '3622556', 'NSsid': '3622556', 'VmPeak': '1107228 kB', 'VmSize': '1107228 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98868 kB', 'VmRSS': '98868 kB', 'RssAnon': '60196 kB', 'RssFile': '38672 kB', 'RssShmem': '0 kB', 'VmData': '865976 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '564 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63054', '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': '38', 'nonvoluntary_ctxt_switches': '157'} ('datou_batch_current', '3623456', '1107228', '0', '1107228', '865976', '98868', b'', 'marlene', '2795899') 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 (22675633) 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 (2795899 ) ) 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 (22675633) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1356051184, 'portfolio_id': 22675633}, {'photo_id': 1356051130, 'portfolio_id': 22675633}, {'photo_id': 1356051124, 'portfolio_id': 22675633}, {'photo_id': 1356051119, 'portfolio_id': 22675633}, {'photo_id': 1356051112, 'portfolio_id': 22675633}, {'photo_id': 1356050482, 'portfolio_id': 22675633}, {'photo_id': 1356050436, 'portfolio_id': 22675633}, {'photo_id': 1356050404, 'portfolio_id': 22675633}, {'photo_id': 1356049997, 'portfolio_id': 22675633}, {'photo_id': 1356049953, 'portfolio_id': 22675633}, {'photo_id': 1356049923, 'portfolio_id': 22675633}, {'photo_id': 1356049859, 'portfolio_id': 22675633}, {'photo_id': 1356049282, 'portfolio_id': 22675633}, {'photo_id': 1356049235, 'portfolio_id': 22675633}, {'photo_id': 1356049190, 'portfolio_id': 22675633}, {'photo_id': 1356049129, 'portfolio_id': 22675633}, {'photo_id': 1356045467, 'portfolio_id': 22675633}] map_portfolio_id_photo_id: {22675633: [1356051184, 1356051130, 1356051124, 1356051119, 1356051112, 1356050482, 1356050436, 1356050404, 1356049997, 1356049953, 1356049923, 1356049859, 1356049282, 1356049235, 1356049190, 1356049129, 1356045467]} ##### 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.01955723762512207 #### 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 May 6 05:48: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 (22675633) 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 : 22675633 get user id for portfolio 22675633 get sub ptf for main ptf 22675633, type 3726 and hashtags ['kraft', 'Teint_Dans_La_Masse', 'Carton_brun', 'autre_refus', 'plastique', 'mal_croppe', 'Carton_gris', 'flou', 'metal', 'papier', 'environnement', 'cartonnette'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22675633 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','Teint_Dans_La_Masse','Carton_brun','autre_refus','plastique','mal_croppe','Carton_gris','flou','metal','papier','environnement','cartonnette')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22675633 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','Teint_Dans_La_Masse','Carton_brun','autre_refus','plastique','mal_croppe','Carton_gris','flou','metal','papier','environnement','cartonnette')) AND mptpi.`min_score`=0.5 To do returned map {'metal': {'main_port_id': 22675633, 'sub_port_id': 22675739, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15096543, 'last_updated_at': datetime.datetime(2025, 5, 5, 14, 16, 29), 'last_updated_at_desc': datetime.datetime(2025, 5, 5, 14, 16, 29), 'last_updated_at_asc': datetime.datetime(2025, 5, 5, 14, 13, 27)}, 'papier': {'main_port_id': 22675633, 'sub_port_id': 22675740, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15096544, 'last_updated_at': datetime.datetime(2025, 5, 5, 14, 16, 29), 'last_updated_at_desc': datetime.datetime(2025, 5, 5, 14, 16, 29), 'last_updated_at_asc': datetime.datetime(2025, 5, 5, 14, 13, 27)}, 'Carton_gris': {'main_port_id': 22675633, 'sub_port_id': 22675741, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15096545, 'last_updated_at': datetime.datetime(2025, 5, 5, 14, 16, 29), 'last_updated_at_desc': datetime.datetime(2025, 5, 5, 14, 16, 29), 'last_updated_at_asc': datetime.datetime(2025, 5, 5, 14, 13, 27)}, 'autre_refus': {'main_port_id': 22675633, 'sub_port_id': 22675742, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15096546, 'last_updated_at': datetime.datetime(2025, 5, 5, 14, 16, 29), 'last_updated_at_desc': datetime.datetime(2025, 5, 5, 14, 16, 29), 'last_updated_at_asc': datetime.datetime(2025, 5, 5, 14, 13, 27)}, 'Teint_Dans_La_Masse': {'main_port_id': 22675633, 'sub_port_id': 22675743, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15096547, 'last_updated_at': datetime.datetime(2025, 5, 5, 14, 16, 29), 'last_updated_at_desc': datetime.datetime(2025, 5, 5, 14, 16, 29), 'last_updated_at_asc': datetime.datetime(2025, 5, 5, 14, 13, 27)}, 'cartonnette': {'main_port_id': 22675633, 'sub_port_id': 22675744, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15096548, 'last_updated_at': datetime.datetime(2025, 5, 5, 14, 16, 29), 'last_updated_at_desc': datetime.datetime(2025, 5, 5, 14, 16, 29), 'last_updated_at_asc': datetime.datetime(2025, 5, 5, 14, 13, 27)}, 'kraft': {'main_port_id': 22675633, 'sub_port_id': 22675745, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15096549, 'last_updated_at': datetime.datetime(2025, 5, 5, 14, 16, 29), 'last_updated_at_desc': datetime.datetime(2025, 5, 5, 14, 16, 29), 'last_updated_at_asc': datetime.datetime(2025, 5, 5, 14, 13, 27)}, 'flou': {'main_port_id': 22675633, 'sub_port_id': 22675746, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15096550, 'last_updated_at': datetime.datetime(2025, 5, 5, 14, 16, 29), 'last_updated_at_desc': datetime.datetime(2025, 5, 5, 14, 16, 29), 'last_updated_at_asc': datetime.datetime(2025, 5, 5, 14, 13, 27)}, 'mal_croppe': {'main_port_id': 22675633, 'sub_port_id': 22675747, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15096551, 'last_updated_at': datetime.datetime(2025, 5, 5, 14, 16, 29), 'last_updated_at_desc': datetime.datetime(2025, 5, 5, 14, 16, 29), 'last_updated_at_asc': datetime.datetime(2025, 5, 5, 14, 13, 27)}, 'environnement': {'main_port_id': 22675633, 'sub_port_id': 22675748, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15096552, 'last_updated_at': datetime.datetime(2025, 5, 5, 14, 16, 29), 'last_updated_at_desc': datetime.datetime(2025, 5, 5, 14, 16, 29), 'last_updated_at_asc': datetime.datetime(2025, 5, 5, 14, 13, 27)}, 'plastique': {'main_port_id': 22675633, 'sub_port_id': 22675749, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15096553, 'last_updated_at': datetime.datetime(2025, 5, 5, 14, 16, 29), 'last_updated_at_desc': datetime.datetime(2025, 5, 5, 14, 16, 29), 'last_updated_at_asc': datetime.datetime(2025, 5, 5, 14, 13, 27)}, 'Carton_brun': {'main_port_id': 22675633, 'sub_port_id': 22675750, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15096554, 'last_updated_at': datetime.datetime(2025, 5, 5, 14, 16, 29), 'last_updated_at_desc': datetime.datetime(2025, 5, 5, 14, 16, 29), 'last_updated_at_asc': datetime.datetime(2025, 5, 5, 14, 13, 27)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22675739 , 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=22675633 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 (22675739) result : ((1356054603,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22675633) result : ((1356045467,), (1356049129,), (1356049190,), (1356049235,), (1356049282,), (1356049859,), (1356049923,), (1356049953,), (1356049997,), (1356050404,), (1356050436,), (1356050482,), (1356051112,), (1356051119,), (1356051124,), (1356051130,), (1356051184,)) 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 22675740 , 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=22675633 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 (22675740) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22675633) result : ((1356045467,), (1356049129,), (1356049190,), (1356049235,), (1356049282,), (1356049859,), (1356049923,), (1356049953,), (1356049997,), (1356050404,), (1356050436,), (1356050482,), (1356051112,), (1356051119,), (1356051124,), (1356051130,), (1356051184,)) 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 22675741 , 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=22675633 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 (22675741) result : ((1356052152,), (1356052616,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22675633) result : ((1356045467,), (1356049129,), (1356049190,), (1356049235,), (1356049282,), (1356049859,), (1356049923,), (1356049953,), (1356049997,), (1356050404,), (1356050436,), (1356050482,), (1356051112,), (1356051119,), (1356051124,), (1356051130,), (1356051184,)) 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 22675742 , 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=22675633 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 (22675742) result : ((1356052141,), (1356054597,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22675633) result : ((1356045467,), (1356049129,), (1356049190,), (1356049235,), (1356049282,), (1356049859,), (1356049923,), (1356049953,), (1356049997,), (1356050404,), (1356050436,), (1356050482,), (1356051112,), (1356051119,), (1356051124,), (1356051130,), (1356051184,)) 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 22675743 , 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=22675633 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 (22675743) result : ((1356050964,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22675633) result : ((1356045467,), (1356049129,), (1356049190,), (1356049235,), (1356049282,), (1356049859,), (1356049923,), (1356049953,), (1356049997,), (1356050404,), (1356050436,), (1356050482,), (1356051112,), (1356051119,), (1356051124,), (1356051130,), (1356051184,)) 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 22675744 , 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=22675633 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 (22675744) result : ((1356050969,), (1356054598,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22675633) result : ((1356045467,), (1356049129,), (1356049190,), (1356049235,), (1356049282,), (1356049859,), (1356049923,), (1356049953,), (1356049997,), (1356050404,), (1356050436,), (1356050482,), (1356051112,), (1356051119,), (1356051124,), (1356051130,), (1356051184,)) 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 22675745 , 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=22675633 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 (22675745) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22675633) result : ((1356045467,), (1356049129,), (1356049190,), (1356049235,), (1356049282,), (1356049859,), (1356049923,), (1356049953,), (1356049997,), (1356050404,), (1356050436,), (1356050482,), (1356051112,), (1356051119,), (1356051124,), (1356051130,), (1356051184,)) 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 22675746 , 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=22675633 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 (22675746) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22675633) result : ((1356045467,), (1356049129,), (1356049190,), (1356049235,), (1356049282,), (1356049859,), (1356049923,), (1356049953,), (1356049997,), (1356050404,), (1356050436,), (1356050482,), (1356051112,), (1356051119,), (1356051124,), (1356051130,), (1356051184,)) 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 22675747 , 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=22675633 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 (22675747) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22675633) result : ((1356045467,), (1356049129,), (1356049190,), (1356049235,), (1356049282,), (1356049859,), (1356049923,), (1356049953,), (1356049997,), (1356050404,), (1356050436,), (1356050482,), (1356051112,), (1356051119,), (1356051124,), (1356051130,), (1356051184,)) 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 22675748 , 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=22675633 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 (22675748) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22675633) result : ((1356045467,), (1356049129,), (1356049190,), (1356049235,), (1356049282,), (1356049859,), (1356049923,), (1356049953,), (1356049997,), (1356050404,), (1356050436,), (1356050482,), (1356051112,), (1356051119,), (1356051124,), (1356051130,), (1356051184,)) 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 22675749 , 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=22675633 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 (22675749) result : ((1356050974,), (1356052166,), (1356054600,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22675633) result : ((1356045467,), (1356049129,), (1356049190,), (1356049235,), (1356049282,), (1356049859,), (1356049923,), (1356049953,), (1356049997,), (1356050404,), (1356050436,), (1356050482,), (1356051112,), (1356051119,), (1356051124,), (1356051130,), (1356051184,)) 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 22675750 , 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=22675633 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 (22675750) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22675633) result : ((1356045467,), (1356049129,), (1356049190,), (1356049235,), (1356049282,), (1356049859,), (1356049923,), (1356049953,), (1356049997,), (1356050404,), (1356050436,), (1356050482,), (1356051112,), (1356051119,), (1356051124,), (1356051130,), (1356051184,)) 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`=22675633 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','Teint_Dans_La_Masse','Carton_brun','autre_refus','plastique','mal_croppe','Carton_gris','flou','metal','papier','environnement','cartonnette')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22675633 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','Teint_Dans_La_Masse','Carton_brun','autre_refus','plastique','mal_croppe','Carton_gris','flou','metal','papier','environnement','cartonnette')) AND mptpi.`min_score`=0.5 To do returned map {'metal': {'main_port_id': 22675633, 'sub_port_id': 22675754, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15096555, 'last_updated_at': datetime.datetime(2025, 5, 5, 14, 13, 28), 'last_updated_at_desc': datetime.datetime(2025, 5, 5, 14, 13, 28), 'last_updated_at_asc': datetime.datetime(2025, 5, 5, 14, 13, 28)}, 'papier': {'main_port_id': 22675633, 'sub_port_id': 22675755, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15096556, 'last_updated_at': datetime.datetime(2025, 5, 5, 14, 13, 28), 'last_updated_at_desc': datetime.datetime(2025, 5, 5, 14, 13, 28), 'last_updated_at_asc': datetime.datetime(2025, 5, 5, 14, 13, 28)}, 'Carton_gris': {'main_port_id': 22675633, 'sub_port_id': 22675757, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15096557, 'last_updated_at': datetime.datetime(2025, 5, 5, 14, 13, 28), 'last_updated_at_desc': datetime.datetime(2025, 5, 5, 14, 13, 28), 'last_updated_at_asc': datetime.datetime(2025, 5, 5, 14, 13, 28)}, 'autre_refus': {'main_port_id': 22675633, 'sub_port_id': 22675758, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15096558, 'last_updated_at': datetime.datetime(2025, 5, 5, 14, 13, 28), 'last_updated_at_desc': datetime.datetime(2025, 5, 5, 14, 13, 28), 'last_updated_at_asc': datetime.datetime(2025, 5, 5, 14, 13, 28)}, 'Teint_Dans_La_Masse': {'main_port_id': 22675633, 'sub_port_id': 22675759, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15096559, 'last_updated_at': datetime.datetime(2025, 5, 5, 14, 13, 28), 'last_updated_at_desc': datetime.datetime(2025, 5, 5, 14, 13, 28), 'last_updated_at_asc': datetime.datetime(2025, 5, 5, 14, 13, 28)}, 'cartonnette': {'main_port_id': 22675633, 'sub_port_id': 22675761, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15096560, 'last_updated_at': datetime.datetime(2025, 5, 5, 14, 13, 28), 'last_updated_at_desc': datetime.datetime(2025, 5, 5, 14, 13, 28), 'last_updated_at_asc': datetime.datetime(2025, 5, 5, 14, 13, 28)}, 'kraft': {'main_port_id': 22675633, 'sub_port_id': 22675762, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15096561, 'last_updated_at': datetime.datetime(2025, 5, 5, 14, 13, 28), 'last_updated_at_desc': datetime.datetime(2025, 5, 5, 14, 13, 28), 'last_updated_at_asc': datetime.datetime(2025, 5, 5, 14, 13, 28)}, 'flou': {'main_port_id': 22675633, 'sub_port_id': 22675763, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15096562, 'last_updated_at': datetime.datetime(2025, 5, 5, 14, 13, 28), 'last_updated_at_desc': datetime.datetime(2025, 5, 5, 14, 13, 28), 'last_updated_at_asc': datetime.datetime(2025, 5, 5, 14, 13, 28)}, 'mal_croppe': {'main_port_id': 22675633, 'sub_port_id': 22675764, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15096563, 'last_updated_at': datetime.datetime(2025, 5, 5, 14, 13, 28), 'last_updated_at_desc': datetime.datetime(2025, 5, 5, 14, 13, 28), 'last_updated_at_asc': datetime.datetime(2025, 5, 5, 14, 13, 28)}, 'environnement': {'main_port_id': 22675633, 'sub_port_id': 22675766, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15096564, 'last_updated_at': datetime.datetime(2025, 5, 5, 14, 13, 28), 'last_updated_at_desc': datetime.datetime(2025, 5, 5, 14, 13, 28), 'last_updated_at_asc': datetime.datetime(2025, 5, 5, 14, 13, 28)}, 'plastique': {'main_port_id': 22675633, 'sub_port_id': 22675767, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15096565, 'last_updated_at': datetime.datetime(2025, 5, 5, 14, 13, 28), 'last_updated_at_desc': datetime.datetime(2025, 5, 5, 14, 13, 28), 'last_updated_at_asc': datetime.datetime(2025, 5, 5, 14, 13, 28)}, 'Carton_brun': {'main_port_id': 22675633, 'sub_port_id': 22675768, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15096566, 'last_updated_at': datetime.datetime(2025, 5, 5, 14, 16, 29), 'last_updated_at_desc': datetime.datetime(2025, 5, 5, 14, 16, 29), 'last_updated_at_asc': datetime.datetime(2025, 5, 5, 14, 13, 28)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22675754,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22675739 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22675755,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22675740 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22675757,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22675741 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22675758,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22675742 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22675759,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22675743 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22675761,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22675744 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22675762,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22675745 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22675763,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22675746 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22675764,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22675747 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22675766,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22675748 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22675767,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22675749 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22675768,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22675750 lien utilise dans velours : https://www.fotonower.com/velours/22675754,22675755,22675757,22675758,22675759,22675761,22675762,22675763,22675764,22675766,22675767,22675768?tags=metal,papier,Carton_gris,autre_refus,Teint_Dans_La_Masse,cartonnette,kraft,flou,mal_croppe,environnement,plastique,Carton_brun After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22675633]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1356051184, 1356051130, 1356051124, 1356051119, 1356051112, 1356050482, 1356050436, 1356050404, 1356049997, 1356049953, 1356049923, 1356049859, 1356049282, 1356049235, 1356049190, 1356049129, 1356045467] map_info['map_portfolio_photo'] : {22675633: [1356051184, 1356051130, 1356051124, 1356051119, 1356051112, 1356050482, 1356050436, 1356050404, 1356049997, 1356049953, 1356049923, 1356049859, 1356049282, 1356049235, 1356049190, 1356049129, 1356045467]} final : False mtd_id 4302 list_pids : [1356051184, 1356051130, 1356051124, 1356051119, 1356051112, 1356050482, 1356050436, 1356050404, 1356049997, 1356049953, 1356049923, 1356049859, 1356049282, 1356049235, 1356049190, 1356049129, 1356045467] Looping around the photos to save general results len do output : 1 /22675633. 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, '2795899') ('4302', '22675633', '1356051184', None, None, None, None, None, '2795899') ('4302', None, None, None, None, None, None, None, '2795899') ('4302', '22675633', '1356051130', None, None, None, None, None, '2795899') ('4302', None, None, None, None, None, None, None, '2795899') ('4302', '22675633', '1356051124', None, None, None, None, None, '2795899') ('4302', None, None, None, None, None, None, None, '2795899') ('4302', '22675633', '1356051119', None, None, None, None, None, '2795899') ('4302', None, None, None, None, None, None, None, '2795899') ('4302', '22675633', '1356051112', None, None, None, None, None, '2795899') ('4302', None, None, None, None, None, None, None, '2795899') ('4302', '22675633', '1356050482', None, None, None, None, None, '2795899') ('4302', None, None, None, None, None, None, None, '2795899') ('4302', '22675633', '1356050436', None, None, None, None, None, '2795899') ('4302', None, None, None, None, None, None, None, '2795899') ('4302', '22675633', '1356050404', None, None, None, None, None, '2795899') ('4302', None, None, None, None, None, None, None, '2795899') ('4302', '22675633', '1356049997', None, None, None, None, None, '2795899') ('4302', None, None, None, None, None, None, None, '2795899') ('4302', '22675633', '1356049953', None, None, None, None, None, '2795899') ('4302', None, None, None, None, None, None, None, '2795899') ('4302', '22675633', '1356049923', None, None, None, None, None, '2795899') ('4302', None, None, None, None, None, None, None, '2795899') ('4302', '22675633', '1356049859', None, None, None, None, None, '2795899') ('4302', None, None, None, None, None, None, None, '2795899') ('4302', '22675633', '1356049282', None, None, None, None, None, '2795899') ('4302', None, None, None, None, None, None, None, '2795899') ('4302', '22675633', '1356049235', None, None, None, None, None, '2795899') ('4302', None, None, None, None, None, None, None, '2795899') ('4302', '22675633', '1356049190', None, None, None, None, None, '2795899') ('4302', None, None, None, None, None, None, None, '2795899') ('4302', '22675633', '1356049129', None, None, None, None, None, '2795899') ('4302', None, None, None, None, None, None, None, '2795899') ('4302', '22675633', '1356045467', None, None, None, None, None, '2795899') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 18 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, '22675633', "{'metal': 22675739, 'papier': 22675740, 'Carton_gris': 22675741, 'autre_refus': 22675742, 'Teint_Dans_La_Masse': 22675743, 'cartonnette': 22675744, 'kraft': 22675745, 'flou': 22675746, 'mal_croppe': 22675747, 'environnement': 22675748, 'plastique': 22675749, 'Carton_brun': 22675750}", None, None, None, None, '2795899'), ('4302', '22675633', '1356051184', None, None, None, None, None, '2795899'), ('4302', '22675633', '1356051130', None, None, None, None, None, '2795899'), ('4302', '22675633', '1356051124', None, None, None, None, None, '2795899'), ('4302', '22675633', '1356051119', None, None, None, None, None, '2795899'), ('4302', '22675633', '1356051112', None, None, None, None, None, '2795899'), ('4302', '22675633', '1356050482', None, None, None, None, None, '2795899'), ('4302', '22675633', '1356050436', None, None, None, None, None, '2795899'), ('4302', '22675633', '1356050404', None, None, None, None, None, '2795899'), ('4302', '22675633', '1356049997', None, None, None, None, None, '2795899'), ('4302', '22675633', '1356049953', None, None, None, None, None, '2795899'), ('4302', '22675633', '1356049923', None, None, None, None, None, '2795899'), ('4302', '22675633', '1356049859', None, None, None, None, None, '2795899'), ('4302', '22675633', '1356049282', None, None, None, None, None, '2795899'), ('4302', '22675633', '1356049235', None, None, None, None, None, '2795899'), ('4302', '22675633', '1356049190', None, None, None, None, None, '2795899'), ('4302', '22675633', '1356049129', None, None, None, None, None, '2795899'), ('4302', '22675633', '1356045467', None, None, None, None, None, '2795899')] time used for this insertion : 0.016875028610229492 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.4318335056304932 time spend to save output : 0.017214536666870117 total time spend for step 1 : 1.4490480422973633 step2:final Tue May 6 05:48:31 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 (22675633) 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 22675633 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1356045467,1356049282,1356049235,1356049190,1356049129,1356049997,1356049953,1356049923,1356049859,1356050482,1356050436,1356050404,1356051130,1356051124,1356051119,1356051112,1356051184); 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([22675633]) Inside saveOutput : final : False verbose : True original output for save of step final : {1356051184: ('0.05625592494018894',), 1356051130: ('0.05625592494018894',), 1356051124: ('0.05625592494018894',), 1356051119: ('0.05625592494018894',), 1356051112: ('0.05625592494018894',), 1356050482: ('0.05625592494018894',), 1356050436: ('0.05625592494018894',), 1356050404: ('0.05625592494018894',), 1356049997: ('0.05625592494018894',), 1356049953: ('0.05625592494018894',), 1356049923: ('0.05625592494018894',), 1356049859: ('0.05625592494018894',), 1356049282: ('0.05625592494018894',), 1356049235: ('0.05625592494018894',), 1356049190: ('0.05625592494018894',), 1356049129: ('0.05625592494018894',), 1356045467: ('0.05625592494018894',)} new output for save of step final : {1356051184: ('0.05625592494018894',), 1356051130: ('0.05625592494018894',), 1356051124: ('0.05625592494018894',), 1356051119: ('0.05625592494018894',), 1356051112: ('0.05625592494018894',), 1356050482: ('0.05625592494018894',), 1356050436: ('0.05625592494018894',), 1356050404: ('0.05625592494018894',), 1356049997: ('0.05625592494018894',), 1356049953: ('0.05625592494018894',), 1356049923: ('0.05625592494018894',), 1356049859: ('0.05625592494018894',), 1356049282: ('0.05625592494018894',), 1356049235: ('0.05625592494018894',), 1356049190: ('0.05625592494018894',), 1356049129: ('0.05625592494018894',), 1356045467: ('0.05625592494018894',)} [1356051184, 1356051130, 1356051124, 1356051119, 1356051112, 1356050482, 1356050436, 1356050404, 1356049997, 1356049953, 1356049923, 1356049859, 1356049282, 1356049235, 1356049190, 1356049129, 1356045467] map_info['map_portfolio_photo'] : {22675633: [1356051184, 1356051130, 1356051124, 1356051119, 1356051112, 1356050482, 1356050436, 1356050404, 1356049997, 1356049953, 1356049923, 1356049859, 1356049282, 1356049235, 1356049190, 1356049129, 1356045467]} final : False mtd_id 4302 list_pids : [1356051184, 1356051130, 1356051124, 1356051119, 1356051112, 1356050482, 1356050436, 1356050404, 1356049997, 1356049953, 1356049923, 1356049859, 1356049282, 1356049235, 1356049190, 1356049129, 1356045467] Looping around the photos to save general results len do output : 17 /1356051184.Didn't retrieve data . /1356051130.Didn't retrieve data . /1356051124.Didn't retrieve data . /1356051119.Didn't retrieve data . /1356051112.Didn't retrieve data . /1356050482.Didn't retrieve data . /1356050436.Didn't retrieve data . /1356050404.Didn't retrieve data . /1356049997.Didn't retrieve data . /1356049953.Didn't retrieve data . /1356049923.Didn't retrieve data . /1356049859.Didn't retrieve data . /1356049282.Didn't retrieve data . /1356049235.Didn't retrieve data . /1356049190.Didn't retrieve data . /1356049129.Didn't retrieve data . /1356045467.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, '2795899') ('4302', '22675633', '1356051184', None, None, None, None, None, '2795899') ('4302', None, None, None, None, None, None, None, '2795899') ('4302', '22675633', '1356051130', None, None, None, None, None, '2795899') ('4302', None, None, None, None, None, None, None, '2795899') ('4302', '22675633', '1356051124', None, None, None, None, None, '2795899') ('4302', None, None, None, None, None, None, None, '2795899') ('4302', '22675633', '1356051119', None, None, None, None, None, '2795899') ('4302', None, None, None, None, None, None, None, '2795899') ('4302', '22675633', '1356051112', None, None, None, None, None, '2795899') ('4302', None, None, None, None, None, None, None, '2795899') ('4302', '22675633', '1356050482', None, None, None, None, None, '2795899') ('4302', None, None, None, None, None, None, None, '2795899') ('4302', '22675633', '1356050436', None, None, None, None, None, '2795899') ('4302', None, None, None, None, None, None, None, '2795899') ('4302', '22675633', '1356050404', None, None, None, None, None, '2795899') ('4302', None, None, None, None, None, None, None, '2795899') ('4302', '22675633', '1356049997', None, None, None, None, None, '2795899') ('4302', None, None, None, None, None, None, None, '2795899') ('4302', '22675633', '1356049953', None, None, None, None, None, '2795899') ('4302', None, None, None, None, None, None, None, '2795899') ('4302', '22675633', '1356049923', None, None, None, None, None, '2795899') ('4302', None, None, None, None, None, None, None, '2795899') ('4302', '22675633', '1356049859', None, None, None, None, None, '2795899') ('4302', None, None, None, None, None, None, None, '2795899') ('4302', '22675633', '1356049282', None, None, None, None, None, '2795899') ('4302', None, None, None, None, None, None, None, '2795899') ('4302', '22675633', '1356049235', None, None, None, None, None, '2795899') ('4302', None, None, None, None, None, None, None, '2795899') ('4302', '22675633', '1356049190', None, None, None, None, None, '2795899') ('4302', None, None, None, None, None, None, None, '2795899') ('4302', '22675633', '1356049129', None, None, None, None, None, '2795899') ('4302', None, None, None, None, None, None, None, '2795899') ('4302', '22675633', '1356045467', None, None, None, None, None, '2795899') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 51 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', '22675633', '1356051184', '0.05625592494018894', None, None, None, None, '2795899'), ('4302', '22675633', '1356051130', '0.05625592494018894', None, None, None, None, '2795899'), ('4302', '22675633', '1356051124', '0.05625592494018894', None, None, None, None, '2795899'), ('4302', '22675633', '1356051119', '0.05625592494018894', None, None, None, None, '2795899'), ('4302', '22675633', '1356051112', '0.05625592494018894', None, None, None, None, '2795899'), ('4302', '22675633', '1356050482', '0.05625592494018894', None, None, None, None, '2795899'), ('4302', '22675633', '1356050436', '0.05625592494018894', None, None, None, None, '2795899'), ('4302', '22675633', '1356050404', '0.05625592494018894', None, None, None, None, '2795899'), ('4302', '22675633', '1356049997', '0.05625592494018894', None, None, None, None, '2795899'), ('4302', '22675633', '1356049953', '0.05625592494018894', None, None, None, None, '2795899'), ('4302', '22675633', '1356049923', '0.05625592494018894', None, None, None, None, '2795899'), ('4302', '22675633', '1356049859', '0.05625592494018894', None, None, None, None, '2795899'), ('4302', '22675633', '1356049282', '0.05625592494018894', None, None, None, None, '2795899'), ('4302', '22675633', '1356049235', '0.05625592494018894', None, None, None, None, '2795899'), ('4302', '22675633', '1356049190', '0.05625592494018894', None, None, None, None, '2795899'), ('4302', '22675633', '1356049129', '0.05625592494018894', None, None, None, None, '2795899'), ('4302', '22675633', '1356045467', '0.05625592494018894', None, None, None, None, '2795899')] time used for this insertion : 0.015225410461425781 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06471705436706543 time spend to save output : 0.016103744506835938 total time spend for step 2 : 0.08082079887390137 step3:velours_tree Tue May 6 05:48:31 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 : {22675633: [{'metal': 22675739, 'papier': 22675740, 'Carton_gris': 22675741, 'autre_refus': 22675742, 'Teint_Dans_La_Masse': 22675743, 'cartonnette': 22675744, 'kraft': 22675745, 'flou': 22675746, 'mal_croppe': 22675747, 'environnement': 22675748, 'plastique': 22675749, 'Carton_brun': 22675750}]} input_args_next_step : {22675633: ()} output_args : {22675633: [{'metal': 22675739, 'papier': 22675740, 'Carton_gris': 22675741, 'autre_refus': 22675742, 'Teint_Dans_La_Masse': 22675743, 'cartonnette': 22675744, 'kraft': 22675745, 'flou': 22675746, 'mal_croppe': 22675747, 'environnement': 22675748, 'plastique': 22675749, 'Carton_brun': 22675750}]} args : 22675633 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'metal': 22675739, 'papier': 22675740, 'Carton_gris': 22675741, 'autre_refus': 22675742, 'Teint_Dans_La_Masse': 22675743, 'cartonnette': 22675744, 'kraft': 22675745, 'flou': 22675746, 'mal_croppe': 22675747, 'environnement': 22675748, 'plastique': 22675749, 'Carton_brun': 22675750},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22675633) 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([22675633]) 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.2984480857849121 time spend to save output : 4.673004150390625e-05 total time spend for step 3 : 0.298494815826416 step4:send_mail_cod Tue May 6 05:48:31 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 : {1356051184: ('0.05625592494018894',), 1356051130: ('0.05625592494018894',), 1356051124: ('0.05625592494018894',), 1356051119: ('0.05625592494018894',), 1356051112: ('0.05625592494018894',), 1356050482: ('0.05625592494018894',), 1356050436: ('0.05625592494018894',), 1356050404: ('0.05625592494018894',), 1356049997: ('0.05625592494018894',), 1356049953: ('0.05625592494018894',), 1356049923: ('0.05625592494018894',), 1356049859: ('0.05625592494018894',), 1356049282: ('0.05625592494018894',), 1356049235: ('0.05625592494018894',), 1356049190: ('0.05625592494018894',), 1356049129: ('0.05625592494018894',), 1356045467: ('0.05625592494018894',)} input_args_next_step : {1356051184: ()} output_args : {1356051184: ('0.05625592494018894',), 1356051130: ('0.05625592494018894',), 1356051124: ('0.05625592494018894',), 1356051119: ('0.05625592494018894',), 1356051112: ('0.05625592494018894',), 1356050482: ('0.05625592494018894',), 1356050436: ('0.05625592494018894',), 1356050404: ('0.05625592494018894',), 1356049997: ('0.05625592494018894',), 1356049953: ('0.05625592494018894',), 1356049923: ('0.05625592494018894',), 1356049859: ('0.05625592494018894',), 1356049282: ('0.05625592494018894',), 1356049235: ('0.05625592494018894',), 1356049190: ('0.05625592494018894',), 1356049129: ('0.05625592494018894',), 1356045467: ('0.05625592494018894',)} args : 1356051184 depend.output_id : 0 input_args_next_step : {1356051184: ('0.05625592494018894',), 1356051130: ()} output_args : {1356051184: ('0.05625592494018894',), 1356051130: ('0.05625592494018894',), 1356051124: ('0.05625592494018894',), 1356051119: ('0.05625592494018894',), 1356051112: ('0.05625592494018894',), 1356050482: ('0.05625592494018894',), 1356050436: ('0.05625592494018894',), 1356050404: ('0.05625592494018894',), 1356049997: ('0.05625592494018894',), 1356049953: ('0.05625592494018894',), 1356049923: ('0.05625592494018894',), 1356049859: ('0.05625592494018894',), 1356049282: ('0.05625592494018894',), 1356049235: ('0.05625592494018894',), 1356049190: ('0.05625592494018894',), 1356049129: ('0.05625592494018894',), 1356045467: ('0.05625592494018894',)} args : 1356051130 depend.output_id : 0 input_args_next_step : {1356051184: ('0.05625592494018894',), 1356051130: ('0.05625592494018894',), 1356051124: ()} output_args : {1356051184: ('0.05625592494018894',), 1356051130: ('0.05625592494018894',), 1356051124: ('0.05625592494018894',), 1356051119: ('0.05625592494018894',), 1356051112: ('0.05625592494018894',), 1356050482: ('0.05625592494018894',), 1356050436: ('0.05625592494018894',), 1356050404: ('0.05625592494018894',), 1356049997: ('0.05625592494018894',), 1356049953: ('0.05625592494018894',), 1356049923: ('0.05625592494018894',), 1356049859: ('0.05625592494018894',), 1356049282: ('0.05625592494018894',), 1356049235: ('0.05625592494018894',), 1356049190: ('0.05625592494018894',), 1356049129: ('0.05625592494018894',), 1356045467: ('0.05625592494018894',)} args : 1356051124 depend.output_id : 0 input_args_next_step : {1356051184: ('0.05625592494018894',), 1356051130: ('0.05625592494018894',), 1356051124: ('0.05625592494018894',), 1356051119: ()} output_args : {1356051184: ('0.05625592494018894',), 1356051130: ('0.05625592494018894',), 1356051124: ('0.05625592494018894',), 1356051119: ('0.05625592494018894',), 1356051112: ('0.05625592494018894',), 1356050482: ('0.05625592494018894',), 1356050436: ('0.05625592494018894',), 1356050404: ('0.05625592494018894',), 1356049997: ('0.05625592494018894',), 1356049953: ('0.05625592494018894',), 1356049923: ('0.05625592494018894',), 1356049859: ('0.05625592494018894',), 1356049282: ('0.05625592494018894',), 1356049235: ('0.05625592494018894',), 1356049190: ('0.05625592494018894',), 1356049129: ('0.05625592494018894',), 1356045467: ('0.05625592494018894',)} args : 1356051119 depend.output_id : 0 input_args_next_step : {1356051184: ('0.05625592494018894',), 1356051130: ('0.05625592494018894',), 1356051124: ('0.05625592494018894',), 1356051119: ('0.05625592494018894',), 1356051112: ()} output_args : {1356051184: ('0.05625592494018894',), 1356051130: ('0.05625592494018894',), 1356051124: ('0.05625592494018894',), 1356051119: ('0.05625592494018894',), 1356051112: ('0.05625592494018894',), 1356050482: ('0.05625592494018894',), 1356050436: ('0.05625592494018894',), 1356050404: ('0.05625592494018894',), 1356049997: ('0.05625592494018894',), 1356049953: ('0.05625592494018894',), 1356049923: ('0.05625592494018894',), 1356049859: ('0.05625592494018894',), 1356049282: ('0.05625592494018894',), 1356049235: ('0.05625592494018894',), 1356049190: ('0.05625592494018894',), 1356049129: ('0.05625592494018894',), 1356045467: ('0.05625592494018894',)} args : 1356051112 depend.output_id : 0 input_args_next_step : {1356051184: ('0.05625592494018894',), 1356051130: ('0.05625592494018894',), 1356051124: ('0.05625592494018894',), 1356051119: ('0.05625592494018894',), 1356051112: ('0.05625592494018894',), 1356050482: ()} output_args : {1356051184: ('0.05625592494018894',), 1356051130: ('0.05625592494018894',), 1356051124: ('0.05625592494018894',), 1356051119: ('0.05625592494018894',), 1356051112: ('0.05625592494018894',), 1356050482: ('0.05625592494018894',), 1356050436: ('0.05625592494018894',), 1356050404: ('0.05625592494018894',), 1356049997: ('0.05625592494018894',), 1356049953: ('0.05625592494018894',), 1356049923: ('0.05625592494018894',), 1356049859: ('0.05625592494018894',), 1356049282: ('0.05625592494018894',), 1356049235: ('0.05625592494018894',), 1356049190: ('0.05625592494018894',), 1356049129: ('0.05625592494018894',), 1356045467: ('0.05625592494018894',)} args : 1356050482 depend.output_id : 0 input_args_next_step : {1356051184: ('0.05625592494018894',), 1356051130: ('0.05625592494018894',), 1356051124: ('0.05625592494018894',), 1356051119: ('0.05625592494018894',), 1356051112: ('0.05625592494018894',), 1356050482: ('0.05625592494018894',), 1356050436: ()} output_args : {1356051184: ('0.05625592494018894',), 1356051130: ('0.05625592494018894',), 1356051124: ('0.05625592494018894',), 1356051119: ('0.05625592494018894',), 1356051112: ('0.05625592494018894',), 1356050482: ('0.05625592494018894',), 1356050436: ('0.05625592494018894',), 1356050404: ('0.05625592494018894',), 1356049997: ('0.05625592494018894',), 1356049953: ('0.05625592494018894',), 1356049923: ('0.05625592494018894',), 1356049859: ('0.05625592494018894',), 1356049282: ('0.05625592494018894',), 1356049235: ('0.05625592494018894',), 1356049190: ('0.05625592494018894',), 1356049129: ('0.05625592494018894',), 1356045467: ('0.05625592494018894',)} args : 1356050436 depend.output_id : 0 input_args_next_step : {1356051184: ('0.05625592494018894',), 1356051130: ('0.05625592494018894',), 1356051124: ('0.05625592494018894',), 1356051119: ('0.05625592494018894',), 1356051112: ('0.05625592494018894',), 1356050482: ('0.05625592494018894',), 1356050436: ('0.05625592494018894',), 1356050404: ()} output_args : {1356051184: ('0.05625592494018894',), 1356051130: ('0.05625592494018894',), 1356051124: ('0.05625592494018894',), 1356051119: ('0.05625592494018894',), 1356051112: ('0.05625592494018894',), 1356050482: ('0.05625592494018894',), 1356050436: ('0.05625592494018894',), 1356050404: ('0.05625592494018894',), 1356049997: ('0.05625592494018894',), 1356049953: ('0.05625592494018894',), 1356049923: ('0.05625592494018894',), 1356049859: ('0.05625592494018894',), 1356049282: ('0.05625592494018894',), 1356049235: ('0.05625592494018894',), 1356049190: ('0.05625592494018894',), 1356049129: ('0.05625592494018894',), 1356045467: ('0.05625592494018894',)} args : 1356050404 depend.output_id : 0 input_args_next_step : {1356051184: ('0.05625592494018894',), 1356051130: ('0.05625592494018894',), 1356051124: ('0.05625592494018894',), 1356051119: ('0.05625592494018894',), 1356051112: ('0.05625592494018894',), 1356050482: ('0.05625592494018894',), 1356050436: ('0.05625592494018894',), 1356050404: ('0.05625592494018894',), 1356049997: ()} output_args : {1356051184: ('0.05625592494018894',), 1356051130: ('0.05625592494018894',), 1356051124: ('0.05625592494018894',), 1356051119: ('0.05625592494018894',), 1356051112: ('0.05625592494018894',), 1356050482: ('0.05625592494018894',), 1356050436: ('0.05625592494018894',), 1356050404: ('0.05625592494018894',), 1356049997: ('0.05625592494018894',), 1356049953: ('0.05625592494018894',), 1356049923: ('0.05625592494018894',), 1356049859: ('0.05625592494018894',), 1356049282: ('0.05625592494018894',), 1356049235: ('0.05625592494018894',), 1356049190: ('0.05625592494018894',), 1356049129: ('0.05625592494018894',), 1356045467: ('0.05625592494018894',)} args : 1356049997 depend.output_id : 0 input_args_next_step : {1356051184: ('0.05625592494018894',), 1356051130: ('0.05625592494018894',), 1356051124: ('0.05625592494018894',), 1356051119: ('0.05625592494018894',), 1356051112: ('0.05625592494018894',), 1356050482: ('0.05625592494018894',), 1356050436: ('0.05625592494018894',), 1356050404: ('0.05625592494018894',), 1356049997: ('0.05625592494018894',), 1356049953: ()} output_args : {1356051184: ('0.05625592494018894',), 1356051130: ('0.05625592494018894',), 1356051124: ('0.05625592494018894',), 1356051119: ('0.05625592494018894',), 1356051112: ('0.05625592494018894',), 1356050482: ('0.05625592494018894',), 1356050436: ('0.05625592494018894',), 1356050404: ('0.05625592494018894',), 1356049997: ('0.05625592494018894',), 1356049953: ('0.05625592494018894',), 1356049923: ('0.05625592494018894',), 1356049859: ('0.05625592494018894',), 1356049282: ('0.05625592494018894',), 1356049235: ('0.05625592494018894',), 1356049190: ('0.05625592494018894',), 1356049129: ('0.05625592494018894',), 1356045467: ('0.05625592494018894',)} args : 1356049953 depend.output_id : 0 input_args_next_step : {1356051184: ('0.05625592494018894',), 1356051130: ('0.05625592494018894',), 1356051124: ('0.05625592494018894',), 1356051119: ('0.05625592494018894',), 1356051112: ('0.05625592494018894',), 1356050482: ('0.05625592494018894',), 1356050436: ('0.05625592494018894',), 1356050404: ('0.05625592494018894',), 1356049997: ('0.05625592494018894',), 1356049953: ('0.05625592494018894',), 1356049923: ()} output_args : {1356051184: ('0.05625592494018894',), 1356051130: ('0.05625592494018894',), 1356051124: ('0.05625592494018894',), 1356051119: ('0.05625592494018894',), 1356051112: ('0.05625592494018894',), 1356050482: ('0.05625592494018894',), 1356050436: ('0.05625592494018894',), 1356050404: ('0.05625592494018894',), 1356049997: ('0.05625592494018894',), 1356049953: ('0.05625592494018894',), 1356049923: ('0.05625592494018894',), 1356049859: ('0.05625592494018894',), 1356049282: ('0.05625592494018894',), 1356049235: ('0.05625592494018894',), 1356049190: ('0.05625592494018894',), 1356049129: ('0.05625592494018894',), 1356045467: ('0.05625592494018894',)} args : 1356049923 depend.output_id : 0 input_args_next_step : {1356051184: ('0.05625592494018894',), 1356051130: ('0.05625592494018894',), 1356051124: ('0.05625592494018894',), 1356051119: ('0.05625592494018894',), 1356051112: ('0.05625592494018894',), 1356050482: ('0.05625592494018894',), 1356050436: ('0.05625592494018894',), 1356050404: ('0.05625592494018894',), 1356049997: ('0.05625592494018894',), 1356049953: ('0.05625592494018894',), 1356049923: ('0.05625592494018894',), 1356049859: ()} output_args : {1356051184: ('0.05625592494018894',), 1356051130: ('0.05625592494018894',), 1356051124: ('0.05625592494018894',), 1356051119: ('0.05625592494018894',), 1356051112: ('0.05625592494018894',), 1356050482: ('0.05625592494018894',), 1356050436: ('0.05625592494018894',), 1356050404: ('0.05625592494018894',), 1356049997: ('0.05625592494018894',), 1356049953: ('0.05625592494018894',), 1356049923: ('0.05625592494018894',), 1356049859: ('0.05625592494018894',), 1356049282: ('0.05625592494018894',), 1356049235: ('0.05625592494018894',), 1356049190: ('0.05625592494018894',), 1356049129: ('0.05625592494018894',), 1356045467: ('0.05625592494018894',)} args : 1356049859 depend.output_id : 0 input_args_next_step : {1356051184: ('0.05625592494018894',), 1356051130: ('0.05625592494018894',), 1356051124: ('0.05625592494018894',), 1356051119: ('0.05625592494018894',), 1356051112: ('0.05625592494018894',), 1356050482: ('0.05625592494018894',), 1356050436: ('0.05625592494018894',), 1356050404: ('0.05625592494018894',), 1356049997: ('0.05625592494018894',), 1356049953: ('0.05625592494018894',), 1356049923: ('0.05625592494018894',), 1356049859: ('0.05625592494018894',), 1356049282: ()} output_args : {1356051184: ('0.05625592494018894',), 1356051130: ('0.05625592494018894',), 1356051124: ('0.05625592494018894',), 1356051119: ('0.05625592494018894',), 1356051112: ('0.05625592494018894',), 1356050482: ('0.05625592494018894',), 1356050436: ('0.05625592494018894',), 1356050404: ('0.05625592494018894',), 1356049997: ('0.05625592494018894',), 1356049953: ('0.05625592494018894',), 1356049923: ('0.05625592494018894',), 1356049859: ('0.05625592494018894',), 1356049282: ('0.05625592494018894',), 1356049235: ('0.05625592494018894',), 1356049190: ('0.05625592494018894',), 1356049129: ('0.05625592494018894',), 1356045467: ('0.05625592494018894',)} args : 1356049282 depend.output_id : 0 input_args_next_step : {1356051184: ('0.05625592494018894',), 1356051130: ('0.05625592494018894',), 1356051124: ('0.05625592494018894',), 1356051119: ('0.05625592494018894',), 1356051112: ('0.05625592494018894',), 1356050482: ('0.05625592494018894',), 1356050436: ('0.05625592494018894',), 1356050404: ('0.05625592494018894',), 1356049997: ('0.05625592494018894',), 1356049953: ('0.05625592494018894',), 1356049923: ('0.05625592494018894',), 1356049859: ('0.05625592494018894',), 1356049282: ('0.05625592494018894',), 1356049235: ()} output_args : {1356051184: ('0.05625592494018894',), 1356051130: ('0.05625592494018894',), 1356051124: ('0.05625592494018894',), 1356051119: ('0.05625592494018894',), 1356051112: ('0.05625592494018894',), 1356050482: ('0.05625592494018894',), 1356050436: ('0.05625592494018894',), 1356050404: ('0.05625592494018894',), 1356049997: ('0.05625592494018894',), 1356049953: ('0.05625592494018894',), 1356049923: ('0.05625592494018894',), 1356049859: ('0.05625592494018894',), 1356049282: ('0.05625592494018894',), 1356049235: ('0.05625592494018894',), 1356049190: ('0.05625592494018894',), 1356049129: ('0.05625592494018894',), 1356045467: ('0.05625592494018894',)} args : 1356049235 depend.output_id : 0 input_args_next_step : {1356051184: ('0.05625592494018894',), 1356051130: ('0.05625592494018894',), 1356051124: ('0.05625592494018894',), 1356051119: ('0.05625592494018894',), 1356051112: ('0.05625592494018894',), 1356050482: ('0.05625592494018894',), 1356050436: ('0.05625592494018894',), 1356050404: ('0.05625592494018894',), 1356049997: ('0.05625592494018894',), 1356049953: ('0.05625592494018894',), 1356049923: ('0.05625592494018894',), 1356049859: ('0.05625592494018894',), 1356049282: ('0.05625592494018894',), 1356049235: ('0.05625592494018894',), 1356049190: ()} output_args : {1356051184: ('0.05625592494018894',), 1356051130: ('0.05625592494018894',), 1356051124: ('0.05625592494018894',), 1356051119: ('0.05625592494018894',), 1356051112: ('0.05625592494018894',), 1356050482: ('0.05625592494018894',), 1356050436: ('0.05625592494018894',), 1356050404: ('0.05625592494018894',), 1356049997: ('0.05625592494018894',), 1356049953: ('0.05625592494018894',), 1356049923: ('0.05625592494018894',), 1356049859: ('0.05625592494018894',), 1356049282: ('0.05625592494018894',), 1356049235: ('0.05625592494018894',), 1356049190: ('0.05625592494018894',), 1356049129: ('0.05625592494018894',), 1356045467: ('0.05625592494018894',)} args : 1356049190 depend.output_id : 0 input_args_next_step : {1356051184: ('0.05625592494018894',), 1356051130: ('0.05625592494018894',), 1356051124: ('0.05625592494018894',), 1356051119: ('0.05625592494018894',), 1356051112: ('0.05625592494018894',), 1356050482: ('0.05625592494018894',), 1356050436: ('0.05625592494018894',), 1356050404: ('0.05625592494018894',), 1356049997: ('0.05625592494018894',), 1356049953: ('0.05625592494018894',), 1356049923: ('0.05625592494018894',), 1356049859: ('0.05625592494018894',), 1356049282: ('0.05625592494018894',), 1356049235: ('0.05625592494018894',), 1356049190: ('0.05625592494018894',), 1356049129: ()} output_args : {1356051184: ('0.05625592494018894',), 1356051130: ('0.05625592494018894',), 1356051124: ('0.05625592494018894',), 1356051119: ('0.05625592494018894',), 1356051112: ('0.05625592494018894',), 1356050482: ('0.05625592494018894',), 1356050436: ('0.05625592494018894',), 1356050404: ('0.05625592494018894',), 1356049997: ('0.05625592494018894',), 1356049953: ('0.05625592494018894',), 1356049923: ('0.05625592494018894',), 1356049859: ('0.05625592494018894',), 1356049282: ('0.05625592494018894',), 1356049235: ('0.05625592494018894',), 1356049190: ('0.05625592494018894',), 1356049129: ('0.05625592494018894',), 1356045467: ('0.05625592494018894',)} args : 1356049129 depend.output_id : 0 input_args_next_step : {1356051184: ('0.05625592494018894',), 1356051130: ('0.05625592494018894',), 1356051124: ('0.05625592494018894',), 1356051119: ('0.05625592494018894',), 1356051112: ('0.05625592494018894',), 1356050482: ('0.05625592494018894',), 1356050436: ('0.05625592494018894',), 1356050404: ('0.05625592494018894',), 1356049997: ('0.05625592494018894',), 1356049953: ('0.05625592494018894',), 1356049923: ('0.05625592494018894',), 1356049859: ('0.05625592494018894',), 1356049282: ('0.05625592494018894',), 1356049235: ('0.05625592494018894',), 1356049190: ('0.05625592494018894',), 1356049129: ('0.05625592494018894',), 1356045467: ()} output_args : {1356051184: ('0.05625592494018894',), 1356051130: ('0.05625592494018894',), 1356051124: ('0.05625592494018894',), 1356051119: ('0.05625592494018894',), 1356051112: ('0.05625592494018894',), 1356050482: ('0.05625592494018894',), 1356050436: ('0.05625592494018894',), 1356050404: ('0.05625592494018894',), 1356049997: ('0.05625592494018894',), 1356049953: ('0.05625592494018894',), 1356049923: ('0.05625592494018894',), 1356049859: ('0.05625592494018894',), 1356049282: ('0.05625592494018894',), 1356049235: ('0.05625592494018894',), 1356049190: ('0.05625592494018894',), 1356049129: ('0.05625592494018894',), 1356045467: ('0.05625592494018894',)} args : 1356045467 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 : {22675633: [{'metal': 22675739, 'papier': 22675740, 'Carton_gris': 22675741, 'autre_refus': 22675742, 'Teint_Dans_La_Masse': 22675743, 'cartonnette': 22675744, 'kraft': 22675745, 'flou': 22675746, 'mal_croppe': 22675747, 'environnement': 22675748, 'plastique': 22675749, 'Carton_brun': 22675750}]} input_args_next_step : {1356051184: ('0.05625592494018894',), 1356051130: ('0.05625592494018894',), 1356051124: ('0.05625592494018894',), 1356051119: ('0.05625592494018894',), 1356051112: ('0.05625592494018894',), 1356050482: ('0.05625592494018894',), 1356050436: ('0.05625592494018894',), 1356050404: ('0.05625592494018894',), 1356049997: ('0.05625592494018894',), 1356049953: ('0.05625592494018894',), 1356049923: ('0.05625592494018894',), 1356049859: ('0.05625592494018894',), 1356049282: ('0.05625592494018894',), 1356049235: ('0.05625592494018894',), 1356049190: ('0.05625592494018894',), 1356049129: ('0.05625592494018894',), 1356045467: ('0.05625592494018894',), 22675633: ()} output_args : {22675633: [{'metal': 22675739, 'papier': 22675740, 'Carton_gris': 22675741, 'autre_refus': 22675742, 'Teint_Dans_La_Masse': 22675743, 'cartonnette': 22675744, 'kraft': 22675745, 'flou': 22675746, 'mal_croppe': 22675747, 'environnement': 22675748, 'plastique': 22675749, 'Carton_brun': 22675750}]} args : 22675633 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 :18, first value : ('0.05625592494018894',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22675633) 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 (1356051184,1356051130,1356051124,1356051119,1356051112,1356050482,1356050436,1356050404,1356049997,1356049953,1356049923,1356049859,1356049282,1356049235,1356049190,1356049129,1356045467) Found this number of photos: 17 ##### Call download_photos : nb_thread : 5 begin to download photo : 1356045467 begin to download photo : 1356049282 begin to download photo : 1356049997 begin to download photo : 1356051112 begin to download photo : 1356051184 download finish for photo 1356049282 begin to download photo : 1356049859 download finish for photo 1356051184 download finish for photo 1356051112 begin to download photo : 1356051119 download finish for photo 1356049997 begin to download photo : 1356050404 download finish for photo 1356045467 begin to download photo : 1356049129 download finish for photo 1356051119 begin to download photo : 1356051124 download finish for photo 1356049859 begin to download photo : 1356049923 download finish for photo 1356049129 begin to download photo : 1356049190 download finish for photo 1356050404 begin to download photo : 1356050436 download finish for photo 1356049923 begin to download photo : 1356049953 download finish for photo 1356051124 begin to download photo : 1356051130 download finish for photo 1356050436 begin to download photo : 1356050482 download finish for photo 1356049190 begin to download photo : 1356049235 download finish for photo 1356051130 download finish for photo 1356050482 download finish for photo 1356049953 download finish for photo 1356049235 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 17 ; length of list_pids : 17 ; length of list_args : 17 results_Auto_P22675633_06-05-2025_05_48_32.pdf 22675739 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=22675739 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1356054603: '1746447853_702668_1356049923_dae28fc6c4ebc4d18fc81c35e7190fc5_rle_crop_3784751493_0.png'} change filename to text .imagette226757391746503312/ imagette226757391746503312/1746447853_702668_1356049923_dae28fc6c4ebc4d18fc81c35e7190fc5_rle_crop_3784751493_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/5/0906dd0f5cfd4dbc9694abebe7fc7e5e_87471666.png imagette226757391746503312 22675742 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=22675742 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1356052141: '1746447433_697328_1356051184_4f4c6b461e363f01e37eab3ec0728bd2_rle_crop_3784746418_0.png', 1356054597: '1746447853_702668_1356049923_dae28fc6c4ebc4d18fc81c35e7190fc5_rle_crop_3784751497_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/5/3556b43fe4908af8b8acec36b6397081_4865297.png change filename to text .imagette226757421746503312/ imagette226757421746503312/1746447853_702668_1356049923_dae28fc6c4ebc4d18fc81c35e7190fc5_rle_crop_3784751497_0.png.png imagette226757421746503312/1746447433_697328_1356051184_4f4c6b461e363f01e37eab3ec0728bd2_rle_crop_3784746418_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/5/bab27023de254d325a1114c84a2faa27_64179281.png imagette226757421746503312 22675744 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=22675744 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1356050969: '1746447252_694531_1356049190_2b5432b1abd7638f1101111c587d0235_rle_crop_3784736643_0.png', 1356054598: '1746447853_702668_1356049923_dae28fc6c4ebc4d18fc81c35e7190fc5_rle_crop_3784751498_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/5/617b2dc385c53beabc087a0c26016758_76749455.png change filename to text .imagette226757441746503312/ imagette226757441746503312/1746447853_702668_1356049923_dae28fc6c4ebc4d18fc81c35e7190fc5_rle_crop_3784751498_0.png.png imagette226757441746503312/1746447252_694531_1356049190_2b5432b1abd7638f1101111c587d0235_rle_crop_3784736643_0.png.png imagette226757451746503313/ imagette226757461746503313/ imagette226757471746503313/ wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/5/bf986ea0513aaf017f49e04ea8279489_70027261.png imagette226757441746503312 22675745 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=22675745 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette226757451746503313 22675746 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=22675746 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette226757461746503313 22675747 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=22675747 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette226757471746503313 22675749 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=22675749 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1356050974: '1746447252_694531_1356049235_b9bd6a1c836502991197922fc3096d5b_rle_crop_3784736630_0.png', 1356052166: '1746447433_697328_1356051184_4f4c6b461e363f01e37eab3ec0728bd2_rle_crop_3784746417_0.png', 1356054600: '1746447853_702668_1356049923_dae28fc6c4ebc4d18fc81c35e7190fc5_rle_crop_3784751503_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/5/f723be2f22d47981551a91dbe3c93b2c_8589898.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/5/4101e7e24525d30134fe16fcd7e79146_40349632.png change filename to text .imagette226757491746503313/ imagette226757491746503313/1746447433_697328_1356051184_4f4c6b461e363f01e37eab3ec0728bd2_rle_crop_3784746417_0.png.png imagette226757491746503313/1746447252_694531_1356049235_b9bd6a1c836502991197922fc3096d5b_rle_crop_3784736630_0.png.png imagette226757491746503313/1746447853_702668_1356049923_dae28fc6c4ebc4d18fc81c35e7190fc5_rle_crop_3784751503_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/5/aad9add67c9d52c65d9be195bb9b1ef2_26749030.png imagette226757491746503313 22675741 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=22675741 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1356052152: '1746447433_697328_1356051119_4718c43e751bc92cc6839949823873fc_rle_crop_3784746435_0.png', 1356052616: '1746447493_698399_1356050436_d8e1d65e1bdcd0eb59a5ecca9a4c9560_rle_crop_3784746631_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/5/8ff8de5aeb5fbb8e9a6e09d345728f5d_48047574.png change filename to text .imagette226757411746503313/ imagette226757411746503313/1746447493_698399_1356050436_d8e1d65e1bdcd0eb59a5ecca9a4c9560_rle_crop_3784746631_0.png.png imagette226757411746503313/1746447433_697328_1356051119_4718c43e751bc92cc6839949823873fc_rle_crop_3784746435_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/5/c06dae33bbbfa2a0184192bf7aeca764_93896421.png imagette226757411746503313 22675743 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=22675743 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1356050964: '1746447252_694531_1356049235_b9bd6a1c836502991197922fc3096d5b_rle_crop_3784736633_0.png'} change filename to text .imagette226757431746503313/ imagette226757431746503313/1746447252_694531_1356049235_b9bd6a1c836502991197922fc3096d5b_rle_crop_3784736633_0.png.png imagette226757501746503313/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/5/6604bd860c017ff54c50f86e50d07a3c_54871122.png imagette226757431746503313 22675750 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=22675750 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette226757501746503313 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=22675633 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/22675754,22675755,22675757,22675758,22675759,22675761,22675762,22675763,22675764,22675766,22675767,22675768?tags=metal,papier,Carton_gris,autre_refus,Teint_Dans_La_Masse,cartonnette,kraft,flou,mal_croppe,environnement,plastique,Carton_brun your option no_mail is active, we will not send the real mail to your client args[1356051184] : ('0.05625592494018894',) no score found for photo 1356051184 We are sending mail with results at report@fotonower.com args[1356051130] : ('0.05625592494018894',) no score found for photo 1356051130 We are sending mail with results at report@fotonower.com args[1356051124] : ('0.05625592494018894',) no score found for photo 1356051124 We are sending mail with results at report@fotonower.com args[1356051119] : ('0.05625592494018894',) no score found for photo 1356051119 We are sending mail with results at report@fotonower.com args[1356051112] : ('0.05625592494018894',) no score found for photo 1356051112 We are sending mail with results at report@fotonower.com args[1356050482] : ('0.05625592494018894',) no score found for photo 1356050482 We are sending mail with results at report@fotonower.com args[1356050436] : ('0.05625592494018894',) no score found for photo 1356050436 We are sending mail with results at report@fotonower.com args[1356050404] : ('0.05625592494018894',) no score found for photo 1356050404 We are sending mail with results at report@fotonower.com args[1356049997] : ('0.05625592494018894',) no score found for photo 1356049997 We are sending mail with results at report@fotonower.com args[1356049953] : ('0.05625592494018894',) no score found for photo 1356049953 We are sending mail with results at report@fotonower.com args[1356049923] : ('0.05625592494018894',) no score found for photo 1356049923 We are sending mail with results at report@fotonower.com args[1356049859] : ('0.05625592494018894',) no score found for photo 1356049859 We are sending mail with results at report@fotonower.com args[1356049282] : ('0.05625592494018894',) no score found for photo 1356049282 We are sending mail with results at report@fotonower.com args[1356049235] : ('0.05625592494018894',) no score found for photo 1356049235 We are sending mail with results at report@fotonower.com args[1356049190] : ('0.05625592494018894',) no score found for photo 1356049190 We are sending mail with results at report@fotonower.com args[1356049129] : ('0.05625592494018894',) no score found for photo 1356049129 We are sending mail with results at report@fotonower.com args[1356045467] : ('0.05625592494018894',) no score found for photo 1356045467 We are sending mail with results at report@fotonower.com refus_total : 0.05625592494018894 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=22675633 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_P22675633_06-05-2025_05_48_32.pdf results_Auto_P22675633_06-05-2025_05_48_32.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22675633_06-05-2025_05_48_32.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','22675633','results_Auto_P22675633_06-05-2025_05_48_32.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22675633_06-05-2025_05_48_32.pdf','pdf','','0.16','0.05625592494018894') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22675633]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1356051184, 1356051130, 1356051124, 1356051119, 1356051112, 1356050482, 1356050436, 1356050404, 1356049997, 1356049953, 1356049923, 1356049859, 1356049282, 1356049235, 1356049190, 1356049129, 1356045467] map_info['map_portfolio_photo'] : {22675633: [1356051184, 1356051130, 1356051124, 1356051119, 1356051112, 1356050482, 1356050436, 1356050404, 1356049997, 1356049953, 1356049923, 1356049859, 1356049282, 1356049235, 1356049190, 1356049129, 1356045467]} final : False mtd_id 4302 list_pids : [1356051184, 1356051130, 1356051124, 1356051119, 1356051112, 1356050482, 1356050436, 1356050404, 1356049997, 1356049953, 1356049923, 1356049859, 1356049282, 1356049235, 1356049190, 1356049129, 1356045467] 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, '2795899') ('4302', '22675633', '1356051184', None, None, None, None, None, '2795899') ('4302', None, None, None, None, None, None, None, '2795899') ('4302', '22675633', '1356051130', None, None, None, None, None, '2795899') ('4302', None, None, None, None, None, None, None, '2795899') ('4302', '22675633', '1356051124', None, None, None, None, None, '2795899') ('4302', None, None, None, None, None, None, None, '2795899') ('4302', '22675633', '1356051119', None, None, None, None, None, '2795899') ('4302', None, None, None, None, None, None, None, '2795899') ('4302', '22675633', '1356051112', None, None, None, None, None, '2795899') ('4302', None, None, None, None, None, None, None, '2795899') ('4302', '22675633', '1356050482', None, None, None, None, None, '2795899') ('4302', None, None, None, None, None, None, None, '2795899') ('4302', '22675633', '1356050436', None, None, None, None, None, '2795899') ('4302', None, None, None, None, None, None, None, '2795899') ('4302', '22675633', '1356050404', None, None, None, None, None, '2795899') ('4302', None, None, None, None, None, None, None, '2795899') ('4302', '22675633', '1356049997', None, None, None, None, None, '2795899') ('4302', None, None, None, None, None, None, None, '2795899') ('4302', '22675633', '1356049953', None, None, None, None, None, '2795899') ('4302', None, None, None, None, None, None, None, '2795899') ('4302', '22675633', '1356049923', None, None, None, None, None, '2795899') ('4302', None, None, None, None, None, None, None, '2795899') ('4302', '22675633', '1356049859', None, None, None, None, None, '2795899') ('4302', None, None, None, None, None, None, None, '2795899') ('4302', '22675633', '1356049282', None, None, None, None, None, '2795899') ('4302', None, None, None, None, None, None, None, '2795899') ('4302', '22675633', '1356049235', None, None, None, None, None, '2795899') ('4302', None, None, None, None, None, None, None, '2795899') ('4302', '22675633', '1356049190', None, None, None, None, None, '2795899') ('4302', None, None, None, None, None, None, None, '2795899') ('4302', '22675633', '1356049129', None, None, None, None, None, '2795899') ('4302', None, None, None, None, None, None, None, '2795899') ('4302', '22675633', '1356045467', None, None, None, None, None, '2795899') 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', '22675633', '1356051184', None, None, None, None, None, '2795899'), ('4302', '22675633', '1356051130', None, None, None, None, None, '2795899'), ('4302', '22675633', '1356051124', None, None, None, None, None, '2795899'), ('4302', '22675633', '1356051119', None, None, None, None, None, '2795899'), ('4302', '22675633', '1356051112', None, None, None, None, None, '2795899'), ('4302', '22675633', '1356050482', None, None, None, None, None, '2795899'), ('4302', '22675633', '1356050436', None, None, None, None, None, '2795899'), ('4302', '22675633', '1356050404', None, None, None, None, None, '2795899'), ('4302', '22675633', '1356049997', None, None, None, None, None, '2795899'), ('4302', '22675633', '1356049953', None, None, None, None, None, '2795899'), ('4302', '22675633', '1356049923', None, None, None, None, None, '2795899'), ('4302', '22675633', '1356049859', None, None, None, None, None, '2795899'), ('4302', '22675633', '1356049282', None, None, None, None, None, '2795899'), ('4302', '22675633', '1356049235', None, None, None, None, None, '2795899'), ('4302', '22675633', '1356049190', None, None, None, None, None, '2795899'), ('4302', '22675633', '1356049129', None, None, None, None, None, '2795899'), ('4302', '22675633', '1356045467', None, None, None, None, None, '2795899')] time used for this insertion : 0.013418436050415039 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.194676637649536 time spend to save output : 0.013711690902709961 total time spend for step 4 : 3.208388328552246 step5:split_time_score Tue May 6 05:48: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 : ['22675633'] 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 : [('22675633',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22675633) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1356051184: {'path': 'temp/1746503311_3623456_1356051184_4f4c6b461e363f01e37eab3ec0728bd2.jpg', 'extension': 'jpg'}, 1356051112: {'path': 'temp/1746503311_3623456_1356051112_84262b4d81c5ebae1697f894590d4b5e.jpg', 'extension': 'jpg'}, 1356051119: {'path': 'temp/1746503311_3623456_1356051119_4718c43e751bc92cc6839949823873fc.jpg', 'extension': 'jpg'}, 1356051124: {'path': 'temp/1746503311_3623456_1356051124_ccc1b0605b780c4a9d6627d7e8bfe36e.jpg', 'extension': 'jpg'}, 1356051130: {'path': 'temp/1746503311_3623456_1356051130_f6f98e0374fa592e7f8b4d0373dc322a.jpg', 'extension': 'jpg'}, 1356049997: {'path': 'temp/1746503311_3623456_1356049997_8829d61d28ad6f374fb9486e8899c0f6.jpg', 'extension': 'jpg'}, 1356050404: {'path': 'temp/1746503311_3623456_1356050404_cbbde507ab1e3e0e264272c21cb8156d.jpg', 'extension': 'jpg'}, 1356050436: {'path': 'temp/1746503311_3623456_1356050436_d8e1d65e1bdcd0eb59a5ecca9a4c9560.jpg', 'extension': 'jpg'}, 1356050482: {'path': 'temp/1746503311_3623456_1356050482_4956a9b74bf25e950f8f5a1950c999e8.jpg', 'extension': 'jpg'}, 1356049282: {'path': 'temp/1746503311_3623456_1356049282_58cd0ad066a70283328ed7fb83d17769.jpg', 'extension': 'jpg'}, 1356049859: {'path': 'temp/1746503311_3623456_1356049859_eef3a2863ccfdc960d5d28e0edc96270.jpg', 'extension': 'jpg'}, 1356049923: {'path': 'temp/1746503311_3623456_1356049923_dae28fc6c4ebc4d18fc81c35e7190fc5.jpg', 'extension': 'jpg'}, 1356049953: {'path': 'temp/1746503311_3623456_1356049953_82d0ba251372d669c2a022920e7d3b35.jpg', 'extension': 'jpg'}, 1356045467: {'path': 'temp/1746503311_3623456_1356045467_02ab27e4568469646f40280aafd39dc1.jpg', 'extension': 'jpg'}, 1356049129: {'path': 'temp/1746503311_3623456_1356049129_44d3fb7481dc875513051c1ff2447f8d.jpg', 'extension': 'jpg'}, 1356049190: {'path': 'temp/1746503311_3623456_1356049190_2b5432b1abd7638f1101111c587d0235.jpg', 'extension': 'jpg'}, 1356049235: {'path': 'temp/1746503311_3623456_1356049235_b9bd6a1c836502991197922fc3096d5b.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 = 22675633; (('arc_en_ciel_jrm',), ('arc_en_ciel_jrm_bis',)) 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 = 22675633 group by h (('14', 17),) 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=22675633 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 (22675633) 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 (22675633) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 05052025 22675633 Nombre de photos uploadées : 17 / 23040 (0%) 05052025 22675633 Nombre de photos taguées (types de déchets): 0 / 17 (0%) 05052025 22675633 Nombre de photos taguées (volume) : 0 / 17 (0%) [{'photo_id': 1356045467, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/5/02ab27e4568469646f40280aafd39dc1.jpg', 'username': None, 'uploaded_at': 1746446647, 'text': 'image_05052025_14_03_04_10137.jpg'}, {'photo_id': 1356049282, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/5/58cd0ad066a70283328ed7fb83d17769.jpg', 'username': None, 'uploaded_at': 1746447127, 'text': 'image_05052025_14_10_54_10135.jpg'}, {'photo_id': 1356049235, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/5/b9bd6a1c836502991197922fc3096d5b.jpg', 'username': None, 'uploaded_at': 1746447127, 'text': 'image_05052025_14_11_14_010135m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1356049190, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/5/2b5432b1abd7638f1101111c587d0235.jpg', 'username': None, 'uploaded_at': 1746447127, 'text': 'image_05052025_14_11_24_010135m0.jpg 2e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 1.430511474609375e-06 elapsed_time : order_list_meta_photo_and_scores 4.5299530029296875e-06 ????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0007863044738769531 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 22675633, '2025-05-05' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1773347,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.02509450912475586 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= 1773347 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1773347, 'dashboard_run_id': 1785146, 'mtr_portfolio_id': 22656512, 'dashboard_result_id': 10325145, '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_P22656512_06-05-2025_05_34_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22656513, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22656514, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22656515, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22656516, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22656517, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22656518, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22656519, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22656520, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22656521, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22656522, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22656523, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22656524, 'pht': 3726}}"}, {'dashboat_entry_day': 1773347, 'dashboard_run_id': 1785146, 'mtr_portfolio_id': 22656738, 'dashboard_result_id': 10325146, '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_P22656738_06-05-2025_05_35_30.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22656768, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22656769, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22656770, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22656771, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22656772, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22656773, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22656774, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22656775, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22656776, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22656777, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22656778, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22656779, 'pht': 3726}}"}, {'dashboat_entry_day': 1773347, 'dashboard_run_id': 1785146, 'mtr_portfolio_id': 22657101, 'dashboard_result_id': 10325147, '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_P22657101_06-05-2025_05_36_02.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22657129, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22657130, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22657131, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22657132, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22657133, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22657134, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22657135, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22657136, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22657137, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22657138, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22657139, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22657140, 'pht': 3726}}"}, {'dashboat_entry_day': 1773347, 'dashboard_run_id': 1785146, 'mtr_portfolio_id': 22657344, 'dashboard_result_id': 10325148, '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_P22657344_06-05-2025_05_36_33.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22657378, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22657379, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22657380, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22657381, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22657382, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22657383, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22657384, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22657385, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22657386, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22657387, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22657388, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22657389, 'pht': 3726}}"}, {'dashboat_entry_day': 1773347, 'dashboard_run_id': 1785146, 'mtr_portfolio_id': 22658111, 'dashboard_result_id': 10325149, '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_P22658111_06-05-2025_05_37_02.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22658136, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22658137, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22658138, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22658139, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22658140, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22658141, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22658142, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22658143, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22658144, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22658145, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22658146, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22658147, 'pht': 3726}}"}, {'dashboat_entry_day': 1773347, 'dashboard_run_id': 1785146, 'mtr_portfolio_id': 22658598, 'dashboard_result_id': 10325150, '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_P22658598_06-05-2025_05_37_30.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22658623, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22658624, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22658625, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22658626, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22658627, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22658628, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22658629, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22658630, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22658631, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22658632, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22658633, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22658634, 'pht': 3726}}"}, {'dashboat_entry_day': 1773347, 'dashboard_run_id': 1785146, 'mtr_portfolio_id': 22658886, 'dashboard_result_id': 10325151, '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_P22658886_06-05-2025_05_38_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22658911, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22658912, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22658913, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22658914, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22658915, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22658916, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22658917, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22658918, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22658919, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22658920, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22658921, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22658922, 'pht': 3726}}"}, {'dashboat_entry_day': 1773347, 'dashboard_run_id': 1785146, 'mtr_portfolio_id': 22659324, 'dashboard_result_id': 10325152, '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_P22659324_06-05-2025_05_38_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22659330, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22659331, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22659332, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22659333, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22659334, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22659335, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22659336, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22659337, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22659338, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22659339, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22659340, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22659341, 'pht': 3726}}"}, {'dashboat_entry_day': 1773347, 'dashboard_run_id': 1785146, 'mtr_portfolio_id': 22659888, 'dashboard_result_id': 10325153, '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_P22659888_06-05-2025_05_39_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22659917, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22659918, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22659919, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22659920, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22659921, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22659922, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22659923, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22659924, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22659925, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22659926, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22659927, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22659928, 'pht': 3726}}"}, {'dashboat_entry_day': 1773347, 'dashboard_run_id': 1785146, 'mtr_portfolio_id': 22660372, 'dashboard_result_id': 10325154, '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_P22660372_06-05-2025_05_39_33.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22660402, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22660403, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22660404, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22660405, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22660406, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22660407, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22660408, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22660409, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22660410, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22660411, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22660412, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22660413, 'pht': 3726}}"}, {'dashboat_entry_day': 1773347, 'dashboard_run_id': 1785146, 'mtr_portfolio_id': 22660885, 'dashboard_result_id': 10325155, '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_P22660885_06-05-2025_05_40_03.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22660890, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22660891, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22660892, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22660893, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22660894, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22660895, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22660896, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22660897, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22660898, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22660899, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22660900, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22660901, 'pht': 3726}}"}, {'dashboat_entry_day': 1773347, 'dashboard_run_id': 1785146, 'mtr_portfolio_id': 22661429, 'dashboard_result_id': 10325156, '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_P22661429_06-05-2025_05_40_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22661469, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22661470, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22661471, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22661472, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22661473, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22661474, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22661475, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22661476, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22661477, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22661478, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22661479, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22661480, 'pht': 3726}}"}, {'dashboat_entry_day': 1773347, 'dashboard_run_id': 1785146, 'mtr_portfolio_id': 22661981, 'dashboard_result_id': 10325157, '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_P22661981_06-05-2025_05_41_35.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22662012, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22662013, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22662014, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22662015, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22662016, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22662017, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22662018, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22662019, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22662020, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22662021, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22662022, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22662023, 'pht': 3726}}"}, {'dashboat_entry_day': 1773347, 'dashboard_run_id': 1785146, 'mtr_portfolio_id': 22662597, 'dashboard_result_id': 10325158, '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_P22662597_06-05-2025_05_41_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22662600, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22662601, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22662602, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22662603, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22662604, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22662605, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22662606, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22662607, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22662608, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22662609, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22662610, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22662611, 'pht': 3726}}"}, {'dashboat_entry_day': 1773347, 'dashboard_run_id': 1785146, 'mtr_portfolio_id': 22662926, 'dashboard_result_id': 10325159, '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_P22662926_06-05-2025_05_42_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22662982, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22662983, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22662984, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22662985, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22662986, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22662987, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22662988, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22662989, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22662990, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22662991, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22662992, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22662993, 'pht': 3726}}"}, {'dashboat_entry_day': 1773347, 'dashboard_run_id': 1785146, 'mtr_portfolio_id': 22663690, 'dashboard_result_id': 10325160, '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_P22663690_06-05-2025_05_42_34.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22663759, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22663760, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22663761, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22663762, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22663763, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22663764, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22663765, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22663766, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22663767, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22663768, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22663769, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22663770, 'pht': 3726}}"}, {'dashboat_entry_day': 1773347, 'dashboard_run_id': 1785146, 'mtr_portfolio_id': 22665500, 'dashboard_result_id': 10325161, '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_P22665500_06-05-2025_05_43_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22665502, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22665503, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22665504, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22665505, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22665506, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22665507, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22665508, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22665509, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22665510, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22665511, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22665512, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22665513, 'pht': 3726}}"}, {'dashboat_entry_day': 1773347, 'dashboard_run_id': 1785146, 'mtr_portfolio_id': 22666082, 'dashboard_result_id': 10325162, '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_P22666082_06-05-2025_05_43_29.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22666113, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22666114, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22666115, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22666116, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22666117, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22666118, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22666119, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22666120, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22666121, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22666122, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22666123, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22666124, 'pht': 3726}}"}, {'dashboat_entry_day': 1773347, 'dashboard_run_id': 1785146, 'mtr_portfolio_id': 22666582, 'dashboard_result_id': 10325163, '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_P22666582_06-05-2025_05_43_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22666595, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22666596, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22666597, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22666598, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22666599, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22666600, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22666601, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22666602, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22666603, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22666604, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22666605, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22666606, 'pht': 3726}}"}, {'dashboat_entry_day': 1773347, 'dashboard_run_id': 1785146, 'mtr_portfolio_id': 22667066, 'dashboard_result_id': 10325164, '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_P22667066_06-05-2025_05_44_36.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22667071, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22667072, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22667073, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22667074, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22667075, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22667076, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22667077, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22667078, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22667079, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22667080, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22667081, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22667082, 'pht': 3726}}"}, {'dashboat_entry_day': 1773347, 'dashboard_run_id': 1785146, 'mtr_portfolio_id': 22667518, 'dashboard_result_id': 10325165, '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_P22667518_06-05-2025_05_45_03.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22667549, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22667550, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22667551, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22667552, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22667553, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22667554, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22667555, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22667556, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22667557, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22667558, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22667559, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22667560, 'pht': 3726}}"}, {'dashboat_entry_day': 1773347, 'dashboard_run_id': 1785146, 'mtr_portfolio_id': 22668049, 'dashboard_result_id': 10325166, '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_P22668049_06-05-2025_05_45_34.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22668063, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22668064, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22668065, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22668066, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22668067, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22668068, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22668069, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22668070, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22668071, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22668072, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22668073, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22668074, 'pht': 3726}}"}, {'dashboat_entry_day': 1773347, 'dashboard_run_id': 1785146, 'mtr_portfolio_id': 22668860, 'dashboard_result_id': 10325167, '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_P22668860_06-05-2025_05_45_40.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22668862, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22668863, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22668864, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22668865, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22668866, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22668867, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22668868, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22668869, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22668870, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22668871, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22668872, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22668873, 'pht': 3726}}"}, {'dashboat_entry_day': 1773347, 'dashboard_run_id': 1785146, 'mtr_portfolio_id': 22669512, 'dashboard_result_id': 10325168, '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_P22669512_06-05-2025_05_46_03.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22669515, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22669516, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22669517, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22669518, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22669519, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22669520, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22669521, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22669522, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22669523, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22669524, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22669525, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22669526, 'pht': 3726}}"}, {'dashboat_entry_day': 1773347, 'dashboard_run_id': 1785146, 'mtr_portfolio_id': 22669909, 'dashboard_result_id': 10325169, '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_P22669909_06-05-2025_05_46_33.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22669916, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22669917, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22669918, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22669919, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22669920, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22669921, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22669922, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22669923, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22669924, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22669925, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22669926, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22669927, 'pht': 3726}}"}, {'dashboat_entry_day': 1773347, 'dashboard_run_id': 1785146, 'mtr_portfolio_id': 22670698, 'dashboard_result_id': 10325170, '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_P22670698_06-05-2025_05_47_02.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22670706, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22670707, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22670708, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22670709, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22670710, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22670711, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22670712, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22670713, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22670714, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22670715, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22670716, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22670717, 'pht': 3726}}"}, {'dashboat_entry_day': 1773347, 'dashboard_run_id': 1785146, 'mtr_portfolio_id': 22671325, 'dashboard_result_id': 10325171, '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_P22671325_06-05-2025_05_47_28.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22671382, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22671383, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22671384, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22671385, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22671386, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22671387, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22671388, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22671389, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22671390, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22671391, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22671392, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22671393, 'pht': 3726}}"}, {'dashboat_entry_day': 1773347, 'dashboard_run_id': 1785146, 'mtr_portfolio_id': 22674910, 'dashboard_result_id': 10325172, '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_P22674910_06-05-2025_05_48_03.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22674913, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22674914, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22674915, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22674916, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22674917, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22674918, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22674919, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22674920, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22674921, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22674922, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22674923, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22674924, 'pht': 3726}}"}, {'dashboat_entry_day': 1773347, 'dashboard_run_id': 1785146, 'mtr_portfolio_id': 22675633, 'dashboard_result_id': 10325173, '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_P22675633_05-05-2025_14_16_30.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22675739, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22675740, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22675741, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22675742, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22675743, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22675744, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22675745, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22675746, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22675747, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22675748, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22675749, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22675750, 'pht': 3726}}"}, {'dashboat_entry_day': 1773347, 'dashboard_run_id': 1785146, 'mtr_portfolio_id': 22675861, 'dashboard_result_id': 10325174, '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_P22675861_05-05-2025_14_32_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22675866, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22675867, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22675868, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22675869, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22675870, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22675871, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22675872, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22675873, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22675874, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22675875, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22675876, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22675877, 'pht': 3726}}"}, {'dashboat_entry_day': 1773347, 'dashboard_run_id': 1785146, 'mtr_portfolio_id': 22676642, 'dashboard_result_id': 10325175, '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_P22676642_05-05-2025_14_50_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22676671, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22676672, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22676673, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22676674, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22676675, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22676676, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22676677, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22676678, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22676679, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22676680, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22676681, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22676682, 'pht': 3726}}"}, {'dashboat_entry_day': 1773347, 'dashboard_run_id': 1785146, 'mtr_portfolio_id': 22677428, 'dashboard_result_id': 10325176, '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_P22677428_05-05-2025_15_02_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22677434, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22677435, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22677436, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22677437, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22677438, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22677439, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22677440, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22677441, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22677442, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22677443, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22677444, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22677445, 'pht': 3726}}"}, {'dashboat_entry_day': 1773347, 'dashboard_run_id': 1785146, 'mtr_portfolio_id': 22678082, 'dashboard_result_id': 10325177, '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_P22678082_05-05-2025_15_16_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22678193, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22678194, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22678195, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22678196, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22678197, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22678198, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22678199, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22678200, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22678201, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22678202, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22678203, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22678204, 'pht': 3726}}"}, {'dashboat_entry_day': 1773347, 'dashboard_run_id': 1785146, 'mtr_portfolio_id': 22678978, 'dashboard_result_id': 10325178, '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_P22678978_05-05-2025_15_32_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22679015, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22679016, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22679017, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22679018, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22679019, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22679020, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22679021, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22679022, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22679023, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22679024, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22679025, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22679026, 'pht': 3726}}"}, {'dashboat_entry_day': 1773347, 'dashboard_run_id': 1785146, 'mtr_portfolio_id': 22679715, 'dashboard_result_id': 10325179, '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_P22679715_05-05-2025_15_49_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22679762, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22679763, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22679764, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22679765, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22679766, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22679767, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22679768, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22679769, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22679770, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22679771, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22679772, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22679773, 'pht': 3726}}"}, {'dashboat_entry_day': 1773347, 'dashboard_run_id': 1785146, 'mtr_portfolio_id': 22680674, 'dashboard_result_id': 10325180, '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_P22680674_05-05-2025_16_06_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22680705, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22680706, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22680707, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22680708, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22680709, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22680710, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22680711, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22680712, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22680713, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22680714, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22680715, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22680716, 'pht': 3726}}"}, {'dashboat_entry_day': 1773347, 'dashboard_run_id': 1785146, 'mtr_portfolio_id': 22681652, 'dashboard_result_id': 10325181, '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_P22681652_05-05-2025_16_19_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22681691, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22681692, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22681693, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22681694, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22681695, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22681696, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22681697, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22681698, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22681699, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22681700, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22681701, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22681702, 'pht': 3726}}"}, {'dashboat_entry_day': 1773347, 'dashboard_run_id': 1785146, 'mtr_portfolio_id': 22682426, 'dashboard_result_id': 10325182, '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_P22682426_05-05-2025_16_32_57.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22682467, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22682468, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22682469, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22682470, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22682471, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22682472, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22682473, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22682474, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22682475, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22682476, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22682477, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22682478, 'pht': 3726}}"}, {'dashboat_entry_day': 1773347, 'dashboard_run_id': 1785146, 'mtr_portfolio_id': 22683199, 'dashboard_result_id': 10325183, '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_P22683199_05-05-2025_17_00_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22683299, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22683300, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22683301, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22683303, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22683304, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22683305, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22683306, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22683307, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22683308, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22683309, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22683310, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22683311, 'pht': 3726}}"}, {'dashboat_entry_day': 1773347, 'dashboard_run_id': 1785146, 'mtr_portfolio_id': 22684721, 'dashboard_result_id': 10325184, '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_P22684721_05-05-2025_17_02_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22684760, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22684761, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22684762, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22684763, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22684764, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22684765, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22684766, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22684767, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22684768, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22684769, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22684770, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22684771, 'pht': 3726}}"}, {'dashboat_entry_day': 1773347, 'dashboard_run_id': 1785146, 'mtr_portfolio_id': 22684898, 'dashboard_result_id': 10325185, '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_P22684898_05-05-2025_17_17_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22684923, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22684924, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22684925, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22684926, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22684927, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22684928, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22684929, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22684930, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22684931, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22684932, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22684933, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22684934, 'pht': 3726}}"}, {'dashboat_entry_day': 1773347, 'dashboard_run_id': 1785146, 'mtr_portfolio_id': 22685390, 'dashboard_result_id': 10325186, '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_P22685390_05-05-2025_18_04_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22685423, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22685424, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22685425, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22685426, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22685427, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22685428, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22685429, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22685430, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22685431, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22685432, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22685433, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22685434, 'pht': 3726}}"}, {'dashboat_entry_day': 1773347, 'dashboard_run_id': 1785146, 'mtr_portfolio_id': 22687133, 'dashboard_result_id': 10325187, '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_P22687133_05-05-2025_18_19_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22687160, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22687161, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22687162, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22687163, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22687164, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22687165, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22687166, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22687167, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22687168, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22687169, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22687170, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22687171, 'pht': 3726}}"}, {'dashboat_entry_day': 1773347, 'dashboard_run_id': 1785146, 'mtr_portfolio_id': 22687701, 'dashboard_result_id': 10325188, '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_P22687701_05-05-2025_18_32_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22687870, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22687871, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22687872, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22687873, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22687874, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22687875, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22687876, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22687877, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22687878, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22687879, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22687880, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22687881, 'pht': 3726}}"}, {'dashboat_entry_day': 1773347, 'dashboard_run_id': 1785146, 'mtr_portfolio_id': 22688424, 'dashboard_result_id': 10325189, '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_P22688424_05-05-2025_18_51_27.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22688517, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22688518, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22688519, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22688520, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22688521, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22688522, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22688523, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22688524, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22688525, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22688526, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22688527, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22688528, 'pht': 3726}}"}, {'dashboat_entry_day': 1773347, 'dashboard_run_id': 1785146, 'mtr_portfolio_id': 22689449, 'dashboard_result_id': 10325190, '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_P22689449_05-05-2025_19_02_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22689521, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22689528, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22689530, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22689531, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22689532, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22689533, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22689534, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22689535, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22689536, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22689537, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22689538, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22689539, 'pht': 3726}}"}, {'dashboat_entry_day': 1773347, 'dashboard_run_id': 1785146, 'mtr_portfolio_id': 22690184, 'dashboard_result_id': 10325191, '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_P22690184_05-05-2025_19_16_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22690233, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22690234, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22690235, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22690236, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22690237, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22690238, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22690239, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22690240, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22690241, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22690242, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22690243, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22690244, 'pht': 3726}}"}, {'dashboat_entry_day': 1773347, 'dashboard_run_id': 1785146, 'mtr_portfolio_id': 22690943, 'dashboard_result_id': 10325192, '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_P22690943_05-05-2025_19_33_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22690949, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22690950, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22690951, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22690952, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22690953, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22690954, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22690955, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22690956, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22690957, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22690958, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22690959, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22690960, 'pht': 3726}}"}, {'dashboat_entry_day': 1773347, 'dashboard_run_id': 1785146, 'mtr_portfolio_id': 22691558, 'dashboard_result_id': 10325193, '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_P22691558_05-05-2025_19_47_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22691603, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22691604, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22691605, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22691606, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22691607, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22691608, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22691609, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22691610, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22691611, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22691612, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22691613, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22691614, 'pht': 3726}}"}, {'dashboat_entry_day': 1773347, 'dashboard_run_id': 1785146, 'mtr_portfolio_id': 22692320, 'dashboard_result_id': 10325194, '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_P22692320_05-05-2025_20_03_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22692342, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22692343, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22692344, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22692345, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22692346, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22692347, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22692348, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22692349, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22692350, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22692351, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22692352, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22692353, 'pht': 3726}}"}, {'dashboat_entry_day': 1773347, 'dashboard_run_id': 1785146, 'mtr_portfolio_id': 22692960, 'dashboard_result_id': 10325195, '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_P22692960_05-05-2025_20_17_29.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22693005, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22693006, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22693007, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22693008, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22693009, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22693010, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22693011, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22693012, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22693013, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22693014, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22693015, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22693017, 'pht': 3726}}"}, {'dashboat_entry_day': 1773347, 'dashboard_run_id': 1785146, 'mtr_portfolio_id': 22693771, 'dashboard_result_id': 10325196, '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_P22693771_05-05-2025_20_32_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22693811, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22693812, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22693813, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22693814, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22693815, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22693816, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22693817, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22693818, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22693819, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22693820, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22693821, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22693822, 'pht': 3726}}"}, {'dashboat_entry_day': 1773347, 'dashboard_run_id': 1785146, 'mtr_portfolio_id': 22694805, 'dashboard_result_id': 10325197, '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_P22694805_05-05-2025_21_02_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22694856, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22694857, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22694858, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22694859, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22694860, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22694861, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22694862, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22694863, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22694864, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22694865, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22694866, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22694867, '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 = 22656512 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': 2795871, 'mtr_portfolio_id': 22656512, 'created_at': datetime.datetime(2025, 5, 6, 5, 34, 31), 'result': '0.05157433408739275', 'result_long': None, 'result_double': None}] Qualite : 0.05157433408739275 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22656512 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22656512_06-05-2025_05_34_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22656512 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_P22656512_06-05-2025_05_34_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22656513, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22656514, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22656515, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22656516, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22656517, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22656518, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22656519, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22656520, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22656521, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22656522, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22656523, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22656524, 'pht': 3726}}" where mtr_portfolio_id = 22656512 and dashboard_run_id = 1785146 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`=22656512 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10325145, 0.05157433408739275, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22656512_06-05-2025_05_34_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22656513, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22656514, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22656515, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22656516, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22656517, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22656518, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22656519, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22656520, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22656521, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22656522, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22656523, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22656524, '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 = 22656738 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': 2795872, 'mtr_portfolio_id': 22656738, 'created_at': datetime.datetime(2025, 5, 6, 5, 35, 28), 'result': '0.040341085395889306', 'result_long': None, 'result_double': None}] Qualite : 0.040341085395889306 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22656738 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22656738_06-05-2025_05_35_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22656738 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_P22656738_06-05-2025_05_35_30.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22656768, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22656769, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22656770, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22656771, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22656772, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22656773, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22656774, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22656775, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22656776, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22656777, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22656778, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22656779, 'pht': 3726}}" where mtr_portfolio_id = 22656738 and dashboard_run_id = 1785146 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`=22656738 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10325146, 0.040341085395889306, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22656738_06-05-2025_05_35_30.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22656768, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22656769, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22656770, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22656771, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22656772, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22656773, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22656774, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22656775, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22656776, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22656777, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22656778, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22656779, '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 = 22657101 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': 2795873, 'mtr_portfolio_id': 22657101, 'created_at': datetime.datetime(2025, 5, 6, 5, 35, 58), 'result': '0.03336086508262298', 'result_long': None, 'result_double': None}] Qualite : 0.03336086508262298 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22657101 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22657101_06-05-2025_05_36_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22657101 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_P22657101_06-05-2025_05_36_02.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22657129, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22657130, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22657131, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22657132, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22657133, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22657134, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22657135, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22657136, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22657137, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22657138, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22657139, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22657140, 'pht': 3726}}" where mtr_portfolio_id = 22657101 and dashboard_run_id = 1785146 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`=22657101 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10325147, 0.03336086508262298, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22657101_06-05-2025_05_36_02.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22657129, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22657130, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22657131, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22657132, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22657133, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22657134, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22657135, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22657136, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22657137, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22657138, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22657139, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22657140, '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 = 22657344 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': 2795874, 'mtr_portfolio_id': 22657344, 'created_at': datetime.datetime(2025, 5, 6, 5, 36, 29), 'result': '0.03422604457866366', 'result_long': None, 'result_double': None}] Qualite : 0.03422604457866366 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22657344 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22657344_06-05-2025_05_36_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22657344 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_P22657344_06-05-2025_05_36_33.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22657378, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22657379, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22657380, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22657381, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22657382, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22657383, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22657384, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22657385, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22657386, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22657387, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22657388, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22657389, 'pht': 3726}}" where mtr_portfolio_id = 22657344 and dashboard_run_id = 1785146 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`=22657344 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10325148, 0.03422604457866366, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22657344_06-05-2025_05_36_33.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22657378, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22657379, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22657380, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22657381, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22657382, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22657383, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22657384, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22657385, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22657386, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22657387, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22657388, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22657389, '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 = 22658111 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': 2795875, 'mtr_portfolio_id': 22658111, 'created_at': datetime.datetime(2025, 5, 6, 5, 36, 59), 'result': '0.03594302952275285', 'result_long': None, 'result_double': None}] Qualite : 0.03594302952275285 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22658111 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22658111_06-05-2025_05_37_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22658111 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_P22658111_06-05-2025_05_37_02.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22658136, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22658137, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22658138, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22658139, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22658140, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22658141, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22658142, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22658143, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22658144, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22658145, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22658146, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22658147, 'pht': 3726}}" where mtr_portfolio_id = 22658111 and dashboard_run_id = 1785146 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`=22658111 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10325149, 0.03594302952275285, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22658111_06-05-2025_05_37_02.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22658136, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22658137, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22658138, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22658139, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22658140, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22658141, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22658142, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22658143, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22658144, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22658145, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22658146, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22658147, '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 = 22658598 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': 2795876, 'mtr_portfolio_id': 22658598, 'created_at': datetime.datetime(2025, 5, 6, 5, 37, 27), 'result': '0.04411340629116678', 'result_long': None, 'result_double': None}] Qualite : 0.04411340629116678 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22658598 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22658598_06-05-2025_05_37_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22658598 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_P22658598_06-05-2025_05_37_30.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22658623, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22658624, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22658625, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22658626, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22658627, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22658628, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22658629, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22658630, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22658631, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22658632, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22658633, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22658634, 'pht': 3726}}" where mtr_portfolio_id = 22658598 and dashboard_run_id = 1785146 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`=22658598 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10325150, 0.04411340629116678, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22658598_06-05-2025_05_37_30.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22658623, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22658624, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22658625, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22658626, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22658627, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22658628, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22658629, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22658630, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22658631, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22658632, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22658633, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22658634, '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 = 22658886 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': 2795877, 'mtr_portfolio_id': 22658886, 'created_at': datetime.datetime(2025, 5, 6, 5, 37, 58), 'result': '0.027229869049469172', 'result_long': None, 'result_double': None}] Qualite : 0.027229869049469172 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22658886 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22658886_06-05-2025_05_38_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22658886 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_P22658886_06-05-2025_05_38_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22658911, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22658912, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22658913, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22658914, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22658915, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22658916, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22658917, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22658918, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22658919, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22658920, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22658921, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22658922, 'pht': 3726}}" where mtr_portfolio_id = 22658886 and dashboard_run_id = 1785146 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`=22658886 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10325151, 0.027229869049469172, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22658886_06-05-2025_05_38_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22658911, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22658912, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22658913, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22658914, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22658915, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22658916, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22658917, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22658918, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22658919, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22658920, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22658921, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22658922, '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 = 22659324 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': 2795878, 'mtr_portfolio_id': 22659324, 'created_at': datetime.datetime(2025, 5, 6, 5, 38, 27), 'result': '0.04038546850435437', 'result_long': None, 'result_double': None}] Qualite : 0.04038546850435437 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22659324 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22659324_06-05-2025_05_38_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22659324 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_P22659324_06-05-2025_05_38_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22659330, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22659331, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22659332, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22659333, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22659334, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22659335, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22659336, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22659337, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22659338, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22659339, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22659340, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22659341, 'pht': 3726}}" where mtr_portfolio_id = 22659324 and dashboard_run_id = 1785146 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`=22659324 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10325152, 0.04038546850435437, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22659324_06-05-2025_05_38_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22659330, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22659331, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22659332, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22659333, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22659334, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22659335, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22659336, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22659337, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22659338, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22659339, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22659340, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22659341, '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 = 22659888 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': 2795879, 'mtr_portfolio_id': 22659888, 'created_at': datetime.datetime(2025, 5, 6, 5, 38, 59), 'result': '0.03744648533008863', 'result_long': None, 'result_double': None}] Qualite : 0.03744648533008863 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22659888 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22659888_06-05-2025_05_39_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22659888 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_P22659888_06-05-2025_05_39_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22659917, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22659918, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22659919, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22659920, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22659921, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22659922, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22659923, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22659924, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22659925, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22659926, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22659927, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22659928, 'pht': 3726}}" where mtr_portfolio_id = 22659888 and dashboard_run_id = 1785146 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`=22659888 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10325153, 0.03744648533008863, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22659888_06-05-2025_05_39_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22659917, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22659918, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22659919, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22659920, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22659921, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22659922, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22659923, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22659924, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22659925, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22659926, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22659927, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22659928, '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 = 22660372 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': 2795880, 'mtr_portfolio_id': 22660372, 'created_at': datetime.datetime(2025, 5, 6, 5, 39, 30), 'result': '0.04958081522741809', 'result_long': None, 'result_double': None}] Qualite : 0.04958081522741809 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22660372 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22660372_06-05-2025_05_39_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22660372 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_P22660372_06-05-2025_05_39_33.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22660402, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22660403, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22660404, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22660405, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22660406, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22660407, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22660408, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22660409, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22660410, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22660411, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22660412, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22660413, 'pht': 3726}}" where mtr_portfolio_id = 22660372 and dashboard_run_id = 1785146 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`=22660372 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10325154, 0.04958081522741809, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22660372_06-05-2025_05_39_33.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22660402, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22660403, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22660404, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22660405, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22660406, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22660407, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22660408, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22660409, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22660410, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22660411, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22660412, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22660413, '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 = 22660885 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': 2795881, 'mtr_portfolio_id': 22660885, 'created_at': datetime.datetime(2025, 5, 6, 5, 40), 'result': '0.03480492237576512', 'result_long': None, 'result_double': None}] Qualite : 0.03480492237576512 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22660885 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22660885_06-05-2025_05_40_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22660885 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_P22660885_06-05-2025_05_40_03.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22660890, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22660891, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22660892, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22660893, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22660894, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22660895, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22660896, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22660897, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22660898, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22660899, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22660900, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22660901, 'pht': 3726}}" where mtr_portfolio_id = 22660885 and dashboard_run_id = 1785146 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`=22660885 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10325155, 0.03480492237576512, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22660885_06-05-2025_05_40_03.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22660890, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22660891, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22660892, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22660893, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22660894, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22660895, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22660896, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22660897, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22660898, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22660899, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22660900, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22660901, '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 = 22661429 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': 2795882, 'mtr_portfolio_id': 22661429, 'created_at': datetime.datetime(2025, 5, 6, 5, 40, 31), 'result': '0.03594402777782403', 'result_long': None, 'result_double': None}] Qualite : 0.03594402777782403 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22661429 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22661429_06-05-2025_05_40_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22661429 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_P22661429_06-05-2025_05_40_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22661469, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22661470, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22661471, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22661472, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22661473, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22661474, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22661475, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22661476, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22661477, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22661478, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22661479, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22661480, 'pht': 3726}}" where mtr_portfolio_id = 22661429 and dashboard_run_id = 1785146 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`=22661429 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10325156, 0.03594402777782403, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22661429_06-05-2025_05_40_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22661469, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22661470, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22661471, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22661472, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22661473, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22661474, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22661475, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22661476, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22661477, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22661478, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22661479, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22661480, '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 = 22661981 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': 2795883, 'mtr_portfolio_id': 22661981, 'created_at': datetime.datetime(2025, 5, 6, 5, 41, 28), 'result': '0.052903313201339494', 'result_long': None, 'result_double': None}] Qualite : 0.052903313201339494 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22661981 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22661981_06-05-2025_05_41_35.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22661981 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_P22661981_06-05-2025_05_41_35.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22662012, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22662013, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22662014, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22662015, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22662016, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22662017, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22662018, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22662019, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22662020, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22662021, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22662022, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22662023, 'pht': 3726}}" where mtr_portfolio_id = 22661981 and dashboard_run_id = 1785146 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`=22661981 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10325157, 0.052903313201339494, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22661981_06-05-2025_05_41_35.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22662012, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22662013, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22662014, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22662015, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22662016, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22662017, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22662018, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22662019, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22662020, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22662021, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22662022, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22662023, '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 = 22662597 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': 2795884, 'mtr_portfolio_id': 22662597, 'created_at': datetime.datetime(2025, 5, 6, 5, 41, 29), 'result': '0.05118492651661762', 'result_long': None, 'result_double': None}] Qualite : 0.05118492651661762 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22662597 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22662597_06-05-2025_05_41_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22662597 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_P22662597_06-05-2025_05_41_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22662600, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22662601, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22662602, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22662603, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22662604, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22662605, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22662606, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22662607, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22662608, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22662609, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22662610, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22662611, 'pht': 3726}}" where mtr_portfolio_id = 22662597 and dashboard_run_id = 1785146 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`=22662597 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10325158, 0.05118492651661762, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22662597_06-05-2025_05_41_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22662600, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22662601, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22662602, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22662603, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22662604, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22662605, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22662606, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22662607, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22662608, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22662609, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22662610, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22662611, '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 = 22662926 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': 2795885, 'mtr_portfolio_id': 22662926, 'created_at': datetime.datetime(2025, 5, 6, 5, 41, 57), 'result': '0.0327759593515431', 'result_long': None, 'result_double': None}] Qualite : 0.0327759593515431 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22662926 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22662926_06-05-2025_05_42_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22662926 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_P22662926_06-05-2025_05_42_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22662982, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22662983, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22662984, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22662985, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22662986, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22662987, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22662988, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22662989, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22662990, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22662991, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22662992, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22662993, 'pht': 3726}}" where mtr_portfolio_id = 22662926 and dashboard_run_id = 1785146 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`=22662926 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10325159, 0.0327759593515431, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22662926_06-05-2025_05_42_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22662982, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22662983, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22662984, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22662985, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22662986, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22662987, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22662988, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22662989, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22662990, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22662991, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22662992, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22662993, '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 = 22663690 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': 2795886, 'mtr_portfolio_id': 22663690, 'created_at': datetime.datetime(2025, 5, 6, 5, 42, 29), 'result': '0.0395937432015203', 'result_long': None, 'result_double': None}] Qualite : 0.0395937432015203 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22663690 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22663690_06-05-2025_05_42_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22663690 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_P22663690_06-05-2025_05_42_34.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22663759, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22663760, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22663761, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22663762, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22663763, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22663764, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22663765, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22663766, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22663767, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22663768, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22663769, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22663770, 'pht': 3726}}" where mtr_portfolio_id = 22663690 and dashboard_run_id = 1785146 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`=22663690 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10325160, 0.0395937432015203, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22663690_06-05-2025_05_42_34.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22663759, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22663760, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22663761, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22663762, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22663763, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22663764, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22663765, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22663766, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22663767, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22663768, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22663769, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22663770, '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 = 22665500 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': 2795887, 'mtr_portfolio_id': 22665500, 'created_at': datetime.datetime(2025, 5, 6, 5, 42, 57), 'result': '0.047845018928116524', 'result_long': None, 'result_double': None}] Qualite : 0.047845018928116524 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22665500 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22665500_06-05-2025_05_43_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22665500 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_P22665500_06-05-2025_05_43_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22665502, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22665503, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22665504, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22665505, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22665506, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22665507, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22665508, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22665509, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22665510, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22665511, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22665512, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22665513, 'pht': 3726}}" where mtr_portfolio_id = 22665500 and dashboard_run_id = 1785146 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`=22665500 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10325161, 0.047845018928116524, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22665500_06-05-2025_05_43_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22665502, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22665503, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22665504, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22665505, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22665506, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22665507, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22665508, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22665509, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22665510, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22665511, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22665512, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22665513, '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 = 22666082 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': 2795888, 'mtr_portfolio_id': 22666082, 'created_at': datetime.datetime(2025, 5, 6, 5, 43, 27), 'result': '0.022641617000049765', 'result_long': None, 'result_double': None}] Qualite : 0.022641617000049765 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22666082 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22666082_06-05-2025_05_43_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22666082 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_P22666082_06-05-2025_05_43_29.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22666113, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22666114, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22666115, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22666116, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22666117, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22666118, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22666119, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22666120, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22666121, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22666122, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22666123, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22666124, 'pht': 3726}}" where mtr_portfolio_id = 22666082 and dashboard_run_id = 1785146 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`=22666082 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10325162, 0.022641617000049765, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22666082_06-05-2025_05_43_29.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22666113, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22666114, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22666115, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22666116, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22666117, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22666118, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22666119, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22666120, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22666121, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22666122, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22666123, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22666124, '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 = 22666582 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': 2795889, 'mtr_portfolio_id': 22666582, 'created_at': datetime.datetime(2025, 5, 6, 5, 43, 56), 'result': '0.027856140417051395', 'result_long': None, 'result_double': None}] Qualite : 0.027856140417051395 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22666582 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22666582_06-05-2025_05_43_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22666582 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_P22666582_06-05-2025_05_43_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22666595, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22666596, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22666597, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22666598, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22666599, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22666600, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22666601, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22666602, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22666603, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22666604, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22666605, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22666606, 'pht': 3726}}" where mtr_portfolio_id = 22666582 and dashboard_run_id = 1785146 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`=22666582 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10325163, 0.027856140417051395, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22666582_06-05-2025_05_43_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22666595, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22666596, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22666597, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22666598, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22666599, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22666600, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22666601, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22666602, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22666603, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22666604, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22666605, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22666606, '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 = 22667066 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': 2795890, 'mtr_portfolio_id': 22667066, 'created_at': datetime.datetime(2025, 5, 6, 5, 44, 31), 'result': '0.05688577817105095', 'result_long': None, 'result_double': None}] Qualite : 0.05688577817105095 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22667066 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22667066_06-05-2025_05_44_36.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22667066 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_P22667066_06-05-2025_05_44_36.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22667071, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22667072, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22667073, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22667074, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22667075, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22667076, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22667077, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22667078, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22667079, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22667080, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22667081, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22667082, 'pht': 3726}}" where mtr_portfolio_id = 22667066 and dashboard_run_id = 1785146 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`=22667066 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10325164, 0.05688577817105095, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22667066_06-05-2025_05_44_36.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22667071, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22667072, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22667073, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22667074, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22667075, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22667076, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22667077, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22667078, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22667079, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22667080, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22667081, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22667082, '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 = 22667518 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': 2795891, 'mtr_portfolio_id': 22667518, 'created_at': datetime.datetime(2025, 5, 6, 5, 45), 'result': '0.04747044755823545', 'result_long': None, 'result_double': None}] Qualite : 0.04747044755823545 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22667518 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22667518_06-05-2025_05_45_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22667518 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_P22667518_06-05-2025_05_45_03.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22667549, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22667550, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22667551, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22667552, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22667553, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22667554, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22667555, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22667556, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22667557, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22667558, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22667559, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22667560, 'pht': 3726}}" where mtr_portfolio_id = 22667518 and dashboard_run_id = 1785146 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`=22667518 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10325165, 0.04747044755823545, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22667518_06-05-2025_05_45_03.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22667549, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22667550, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22667551, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22667552, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22667553, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22667554, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22667555, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22667556, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22667557, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22667558, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22667559, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22667560, '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 = 22668049 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': 2795892, 'mtr_portfolio_id': 22668049, 'created_at': datetime.datetime(2025, 5, 6, 5, 45, 31), 'result': '0.037517930038611126', 'result_long': None, 'result_double': None}] Qualite : 0.037517930038611126 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22668049 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22668049_06-05-2025_05_45_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22668049 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_P22668049_06-05-2025_05_45_34.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22668063, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22668064, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22668065, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22668066, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22668067, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22668068, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22668069, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22668070, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22668071, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22668072, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22668073, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22668074, 'pht': 3726}}" where mtr_portfolio_id = 22668049 and dashboard_run_id = 1785146 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`=22668049 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10325166, 0.037517930038611126, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22668049_06-05-2025_05_45_34.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22668063, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22668064, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22668065, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22668066, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22668067, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22668068, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22668069, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22668070, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22668071, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22668072, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22668073, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22668074, '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 = 22668860 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': 2795893, 'mtr_portfolio_id': 22668860, 'created_at': datetime.datetime(2025, 5, 6, 5, 45, 37), 'result': '0.04588196202783174', 'result_long': None, 'result_double': None}] Qualite : 0.04588196202783174 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22668860 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22668860_06-05-2025_05_45_40.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22668860 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_P22668860_06-05-2025_05_45_40.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22668862, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22668863, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22668864, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22668865, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22668866, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22668867, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22668868, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22668869, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22668870, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22668871, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22668872, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22668873, 'pht': 3726}}" where mtr_portfolio_id = 22668860 and dashboard_run_id = 1785146 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`=22668860 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10325167, 0.04588196202783174, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22668860_06-05-2025_05_45_40.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22668862, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22668863, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22668864, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22668865, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22668866, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22668867, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22668868, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22668869, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22668870, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22668871, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22668872, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22668873, '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 = 22669512 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': 2795894, 'mtr_portfolio_id': 22669512, 'created_at': datetime.datetime(2025, 5, 6, 5, 45, 58), 'result': '0.048822839327327464', 'result_long': None, 'result_double': None}] Qualite : 0.048822839327327464 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22669512 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22669512_06-05-2025_05_46_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22669512 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_P22669512_06-05-2025_05_46_03.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22669515, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22669516, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22669517, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22669518, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22669519, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22669520, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22669521, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22669522, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22669523, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22669524, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22669525, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22669526, 'pht': 3726}}" where mtr_portfolio_id = 22669512 and dashboard_run_id = 1785146 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`=22669512 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10325168, 0.048822839327327464, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22669512_06-05-2025_05_46_03.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22669515, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22669516, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22669517, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22669518, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22669519, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22669520, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22669521, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22669522, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22669523, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22669524, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22669525, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22669526, '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 = 22669909 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': 2795895, 'mtr_portfolio_id': 22669909, 'created_at': datetime.datetime(2025, 5, 6, 5, 46, 29), 'result': '0.05599995435404507', 'result_long': None, 'result_double': None}] Qualite : 0.05599995435404507 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22669909 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22669909_06-05-2025_05_46_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22669909 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_P22669909_06-05-2025_05_46_33.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22669916, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22669917, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22669918, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22669919, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22669920, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22669921, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22669922, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22669923, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22669924, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22669925, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22669926, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22669927, 'pht': 3726}}" where mtr_portfolio_id = 22669909 and dashboard_run_id = 1785146 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`=22669909 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10325169, 0.05599995435404507, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22669909_06-05-2025_05_46_33.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22669916, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22669917, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22669918, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22669919, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22669920, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22669921, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22669922, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22669923, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22669924, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22669925, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22669926, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22669927, '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 = 22670698 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': 2795896, 'mtr_portfolio_id': 22670698, 'created_at': datetime.datetime(2025, 5, 6, 5, 47), 'result': '0.0430730301478421', 'result_long': None, 'result_double': None}] Qualite : 0.0430730301478421 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22670698 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22670698_06-05-2025_05_47_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22670698 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_P22670698_06-05-2025_05_47_02.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22670706, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22670707, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22670708, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22670709, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22670710, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22670711, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22670712, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22670713, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22670714, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22670715, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22670716, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22670717, 'pht': 3726}}" where mtr_portfolio_id = 22670698 and dashboard_run_id = 1785146 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`=22670698 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10325170, 0.0430730301478421, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22670698_06-05-2025_05_47_02.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22670706, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22670707, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22670708, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22670709, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22670710, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22670711, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22670712, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22670713, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22670714, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22670715, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22670716, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22670717, '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 = 22671325 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': 2795897, 'mtr_portfolio_id': 22671325, 'created_at': datetime.datetime(2025, 5, 6, 5, 47, 27), 'result': '0.026297346929430896', 'result_long': None, 'result_double': None}] Qualite : 0.026297346929430896 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22671325 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22671325_06-05-2025_05_47_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22671325 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_P22671325_06-05-2025_05_47_28.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22671382, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22671383, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22671384, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22671385, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22671386, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22671387, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22671388, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22671389, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22671390, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22671391, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22671392, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22671393, 'pht': 3726}}" where mtr_portfolio_id = 22671325 and dashboard_run_id = 1785146 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`=22671325 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10325171, 0.026297346929430896, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22671325_06-05-2025_05_47_28.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22671382, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22671383, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22671384, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22671385, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22671386, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22671387, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22671388, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22671389, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22671390, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22671391, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22671392, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22671393, '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 = 22674910 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': 2795898, 'mtr_portfolio_id': 22674910, 'created_at': datetime.datetime(2025, 5, 6, 5, 47, 57), 'result': '0.04950370822325937', 'result_long': None, 'result_double': None}] Qualite : 0.04950370822325937 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22674910 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22674910_06-05-2025_05_48_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22674910 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_P22674910_06-05-2025_05_48_03.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22674913, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22674914, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22674915, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22674916, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22674917, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22674918, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22674919, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22674920, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22674921, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22674922, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22674923, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22674924, 'pht': 3726}}" where mtr_portfolio_id = 22674910 and dashboard_run_id = 1785146 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`=22674910 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10325172, 0.04950370822325937, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22674910_06-05-2025_05_48_03.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22674913, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22674914, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22674915, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22674916, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22674917, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22674918, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22674919, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22674920, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22674921, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22674922, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22674923, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22674924, '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 = 22675633 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': 2795899, 'mtr_portfolio_id': 22675633, 'created_at': datetime.datetime(2025, 5, 6, 5, 48, 31), 'result': '0.05625592494018894', 'result_long': None, 'result_double': None}] Qualite : 0.05625592494018894 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22675633 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22675633_06-05-2025_05_48_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22675633 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_P22675633_06-05-2025_05_48_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22675739, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22675740, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22675741, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22675742, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22675743, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22675744, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22675745, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22675746, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22675747, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22675748, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22675749, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22675750, 'pht': 3726}}" where mtr_portfolio_id = 22675633 and dashboard_run_id = 1785146 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`=22675633 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10325173, 0.05625592494018894, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22675633_06-05-2025_05_48_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22675739, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22675740, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22675741, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22675742, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22675743, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22675744, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22675745, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22675746, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22675747, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22675748, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22675749, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22675750, '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 = 22675861 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': 2792837, 'mtr_portfolio_id': 22675861, 'created_at': datetime.datetime(2025, 5, 5, 14, 32, 57), 'result': '0.06675943254014464', 'result_long': None, 'result_double': None}] Qualite : 0.06675943254014464 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22675861 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22675861_05-05-2025_14_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22675861 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_P22675861_05-05-2025_14_32_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22675866, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22675867, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22675868, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22675869, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22675870, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22675871, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22675872, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22675873, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22675874, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22675875, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22675876, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22675877, 'pht': 3726}}" where mtr_portfolio_id = 22675861 and dashboard_run_id = 1785146 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`=22675861 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10325174, 0.06675943254014464, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22675861_05-05-2025_14_32_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22675866, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22675867, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22675868, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22675869, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22675870, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22675871, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22675872, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22675873, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22675874, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22675875, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22675876, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22675877, '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 = 22676642 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': 2792935, 'mtr_portfolio_id': 22676642, 'created_at': datetime.datetime(2025, 5, 5, 14, 50, 58), 'result': '0.04732899611536382', 'result_long': None, 'result_double': None}] Qualite : 0.04732899611536382 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22676642 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22676642_05-05-2025_14_50_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22676642 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_P22676642_05-05-2025_14_50_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22676671, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22676672, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22676673, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22676674, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22676675, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22676676, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22676677, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22676678, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22676679, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22676680, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22676681, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22676682, 'pht': 3726}}" where mtr_portfolio_id = 22676642 and dashboard_run_id = 1785146 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`=22676642 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10325175, 0.04732899611536382, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22676642_05-05-2025_14_50_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22676671, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22676672, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22676673, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22676674, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22676675, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22676676, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22676677, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22676678, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22676679, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22676680, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22676681, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22676682, '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 = 22677428 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': 2793001, 'mtr_portfolio_id': 22677428, 'created_at': datetime.datetime(2025, 5, 5, 15, 2, 58), 'result': '0.07974599543982608', 'result_long': None, 'result_double': None}] Qualite : 0.07974599543982608 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22677428 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22677428_05-05-2025_15_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22677428 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_P22677428_05-05-2025_15_02_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22677434, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22677435, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22677436, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22677437, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22677438, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22677439, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22677440, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22677441, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22677442, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22677443, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22677444, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22677445, 'pht': 3726}}" where mtr_portfolio_id = 22677428 and dashboard_run_id = 1785146 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`=22677428 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10325176, 0.07974599543982608, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22677428_05-05-2025_15_02_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22677434, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22677435, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22677436, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22677437, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22677438, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22677439, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22677440, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22677441, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22677442, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22677443, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22677444, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22677445, '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 = 22678082 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': 2793054, 'mtr_portfolio_id': 22678082, 'created_at': datetime.datetime(2025, 5, 5, 15, 16, 58), 'result': '0.019988350378350915', 'result_long': None, 'result_double': None}] Qualite : 0.019988350378350915 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22678082 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22678082_05-05-2025_15_16_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22678082 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_P22678082_05-05-2025_15_16_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22678193, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22678194, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22678195, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22678196, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22678197, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22678198, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22678199, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22678200, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22678201, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22678202, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22678203, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22678204, 'pht': 3726}}" where mtr_portfolio_id = 22678082 and dashboard_run_id = 1785146 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`=22678082 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10325177, 0.019988350378350915, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22678082_05-05-2025_15_16_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22678193, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22678194, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22678195, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22678196, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22678197, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22678198, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22678199, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22678200, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22678201, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22678202, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22678203, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22678204, '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 = 22678978 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': 2793135, 'mtr_portfolio_id': 22678978, 'created_at': datetime.datetime(2025, 5, 5, 15, 32, 59), 'result': '0.05748767947780928', 'result_long': None, 'result_double': None}] Qualite : 0.05748767947780928 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22678978 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22678978_05-05-2025_15_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22678978 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_P22678978_05-05-2025_15_32_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22679015, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22679016, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22679017, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22679018, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22679019, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22679020, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22679021, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22679022, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22679023, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22679024, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22679025, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22679026, 'pht': 3726}}" where mtr_portfolio_id = 22678978 and dashboard_run_id = 1785146 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`=22678978 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10325178, 0.05748767947780928, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22678978_05-05-2025_15_32_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22679015, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22679016, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22679017, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22679018, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22679019, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22679020, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22679021, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22679022, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22679023, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22679024, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22679025, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22679026, '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 = 22679715 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': 2793199, 'mtr_portfolio_id': 22679715, 'created_at': datetime.datetime(2025, 5, 5, 15, 49, 1), 'result': '0.04915537258119139', 'result_long': None, 'result_double': None}] Qualite : 0.04915537258119139 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22679715 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22679715_05-05-2025_15_49_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22679715 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_P22679715_05-05-2025_15_49_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22679762, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22679763, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22679764, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22679765, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22679766, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22679767, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22679768, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22679769, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22679770, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22679771, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22679772, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22679773, 'pht': 3726}}" where mtr_portfolio_id = 22679715 and dashboard_run_id = 1785146 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`=22679715 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10325179, 0.04915537258119139, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22679715_05-05-2025_15_49_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22679762, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22679763, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22679764, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22679765, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22679766, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22679767, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22679768, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22679769, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22679770, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22679771, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22679772, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22679773, '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 = 22680674 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': 2793269, 'mtr_portfolio_id': 22680674, 'created_at': datetime.datetime(2025, 5, 5, 16, 6, 58), 'result': '0.030174438442649148', 'result_long': None, 'result_double': None}] Qualite : 0.030174438442649148 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22680674 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22680674_05-05-2025_16_06_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22680674 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_P22680674_05-05-2025_16_06_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22680705, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22680706, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22680707, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22680708, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22680709, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22680710, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22680711, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22680712, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22680713, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22680714, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22680715, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22680716, 'pht': 3726}}" where mtr_portfolio_id = 22680674 and dashboard_run_id = 1785146 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`=22680674 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10325180, 0.030174438442649148, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22680674_05-05-2025_16_06_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22680705, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22680706, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22680707, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22680708, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22680709, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22680710, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22680711, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22680712, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22680713, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22680714, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22680715, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22680716, '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 = 22681652 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': 2793398, 'mtr_portfolio_id': 22681652, 'created_at': datetime.datetime(2025, 5, 5, 16, 18, 59), 'result': '0.04428377223037476', 'result_long': None, 'result_double': None}] Qualite : 0.04428377223037476 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22681652 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22681652_05-05-2025_16_19_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22681652 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_P22681652_05-05-2025_16_19_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22681691, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22681692, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22681693, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22681694, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22681695, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22681696, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22681697, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22681698, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22681699, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22681700, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22681701, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22681702, 'pht': 3726}}" where mtr_portfolio_id = 22681652 and dashboard_run_id = 1785146 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`=22681652 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10325181, 0.04428377223037476, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22681652_05-05-2025_16_19_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22681691, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22681692, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22681693, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22681694, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22681695, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22681696, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22681697, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22681698, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22681699, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22681700, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22681701, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22681702, '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 = 22682426 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': 2793436, 'mtr_portfolio_id': 22682426, 'created_at': datetime.datetime(2025, 5, 5, 16, 32, 56), 'result': '0.06238732556410151', 'result_long': None, 'result_double': None}] Qualite : 0.06238732556410151 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22682426 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22682426_05-05-2025_16_32_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22682426 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_P22682426_05-05-2025_16_32_57.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22682467, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22682468, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22682469, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22682470, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22682471, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22682472, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22682473, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22682474, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22682475, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22682476, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22682477, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22682478, 'pht': 3726}}" where mtr_portfolio_id = 22682426 and dashboard_run_id = 1785146 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`=22682426 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10325182, 0.06238732556410151, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22682426_05-05-2025_16_32_57.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22682467, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22682468, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22682469, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22682470, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22682471, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22682472, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22682473, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22682474, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22682475, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22682476, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22682477, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22682478, '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 = 22683199 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': 2793495, 'mtr_portfolio_id': 22683199, 'created_at': datetime.datetime(2025, 5, 5, 17, 0), 'result': '0.033776122122280275', 'result_long': None, 'result_double': None}] Qualite : 0.033776122122280275 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22683199 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22683199_05-05-2025_17_00_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22683199 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_P22683199_05-05-2025_17_00_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22683299, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22683300, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22683301, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22683303, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22683304, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22683305, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22683306, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22683307, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22683308, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22683309, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22683310, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22683311, 'pht': 3726}}" where mtr_portfolio_id = 22683199 and dashboard_run_id = 1785146 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`=22683199 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10325183, 0.033776122122280275, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22683199_05-05-2025_17_00_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22683299, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22683300, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22683301, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22683303, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22683304, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22683305, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22683306, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22683307, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22683308, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22683309, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22683310, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22683311, '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 = 22684721 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': 2793612, 'mtr_portfolio_id': 22684721, 'created_at': datetime.datetime(2025, 5, 5, 17, 2, 58), 'result': '0.013850791895886005', 'result_long': None, 'result_double': None}] Qualite : 0.013850791895886005 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22684721 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22684721_05-05-2025_17_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22684721 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_P22684721_05-05-2025_17_02_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22684760, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22684761, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22684762, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22684763, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22684764, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22684765, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22684766, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22684767, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22684768, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22684769, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22684770, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22684771, 'pht': 3726}}" where mtr_portfolio_id = 22684721 and dashboard_run_id = 1785146 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`=22684721 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10325184, 0.013850791895886005, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22684721_05-05-2025_17_02_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22684760, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22684761, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22684762, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22684763, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22684764, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22684765, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22684766, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22684767, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22684768, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22684769, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22684770, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22684771, '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 = 22684898 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': 2793618, 'mtr_portfolio_id': 22684898, 'created_at': datetime.datetime(2025, 5, 5, 17, 16, 57), 'result': '0.03954717478191133', 'result_long': None, 'result_double': None}] Qualite : 0.03954717478191133 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22684898 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22684898_05-05-2025_17_17_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22684898 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_P22684898_05-05-2025_17_17_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22684923, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22684924, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22684925, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22684926, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22684927, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22684928, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22684929, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22684930, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22684931, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22684932, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22684933, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22684934, 'pht': 3726}}" where mtr_portfolio_id = 22684898 and dashboard_run_id = 1785146 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`=22684898 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10325185, 0.03954717478191133, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22684898_05-05-2025_17_17_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22684923, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22684924, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22684925, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22684926, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22684927, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22684928, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22684929, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22684930, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22684931, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22684932, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22684933, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22684934, '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 = 22685390 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': 2793667, 'mtr_portfolio_id': 22685390, 'created_at': datetime.datetime(2025, 5, 5, 18, 4, 59), 'result': '0.049804582767277644', 'result_long': None, 'result_double': None}] Qualite : 0.049804582767277644 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22685390 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22685390_05-05-2025_18_04_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22685390 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_P22685390_05-05-2025_18_04_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22685423, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22685424, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22685425, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22685426, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22685427, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22685428, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22685429, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22685430, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22685431, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22685432, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22685433, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22685434, 'pht': 3726}}" where mtr_portfolio_id = 22685390 and dashboard_run_id = 1785146 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`=22685390 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10325186, 0.049804582767277644, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22685390_05-05-2025_18_04_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22685423, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22685424, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22685425, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22685426, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22685427, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22685428, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22685429, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22685430, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22685431, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22685432, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22685433, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22685434, '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 = 22687133 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': 2793912, 'mtr_portfolio_id': 22687133, 'created_at': datetime.datetime(2025, 5, 5, 18, 19), 'result': '0.06676758719334318', 'result_long': None, 'result_double': None}] Qualite : 0.06676758719334318 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22687133 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22687133_05-05-2025_18_19_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22687133 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_P22687133_05-05-2025_18_19_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22687160, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22687161, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22687162, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22687163, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22687164, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22687165, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22687166, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22687167, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22687168, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22687169, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22687170, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22687171, 'pht': 3726}}" where mtr_portfolio_id = 22687133 and dashboard_run_id = 1785146 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`=22687133 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10325187, 0.06676758719334318, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22687133_05-05-2025_18_19_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22687160, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22687161, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22687162, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22687163, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22687164, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22687165, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22687166, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22687167, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22687168, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22687169, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22687170, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22687171, '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 = 22687701 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': 2793951, 'mtr_portfolio_id': 22687701, 'created_at': datetime.datetime(2025, 5, 5, 18, 32, 57), 'result': '0.06082990742207395', 'result_long': None, 'result_double': None}] Qualite : 0.06082990742207395 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22687701 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22687701_05-05-2025_18_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22687701 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_P22687701_05-05-2025_18_32_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22687870, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22687871, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22687872, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22687873, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22687874, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22687875, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22687876, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22687877, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22687878, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22687879, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22687880, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22687881, 'pht': 3726}}" where mtr_portfolio_id = 22687701 and dashboard_run_id = 1785146 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`=22687701 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10325188, 0.06082990742207395, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22687701_05-05-2025_18_32_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22687870, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22687871, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22687872, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22687873, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22687874, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22687875, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22687876, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22687877, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22687878, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22687879, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22687880, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22687881, '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 = 22688424 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': 2794013, 'mtr_portfolio_id': 22688424, 'created_at': datetime.datetime(2025, 5, 5, 18, 51, 27), 'result': '0.04409615141575872', 'result_long': None, 'result_double': None}] Qualite : 0.04409615141575872 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22688424 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22688424_05-05-2025_18_51_27.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22688424 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_P22688424_05-05-2025_18_51_27.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22688517, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22688518, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22688519, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22688520, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22688521, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22688522, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22688523, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22688524, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22688525, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22688526, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22688527, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22688528, 'pht': 3726}}" where mtr_portfolio_id = 22688424 and dashboard_run_id = 1785146 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`=22688424 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10325189, 0.04409615141575872, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22688424_05-05-2025_18_51_27.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22688517, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22688518, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22688519, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22688520, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22688521, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22688522, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22688523, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22688524, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22688525, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22688526, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22688527, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22688528, '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 = 22689449 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': 2794097, 'mtr_portfolio_id': 22689449, 'created_at': datetime.datetime(2025, 5, 5, 19, 2, 59), 'result': '0.06785820916259788', 'result_long': None, 'result_double': None}] Qualite : 0.06785820916259788 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22689449 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22689449_05-05-2025_19_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22689449 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_P22689449_05-05-2025_19_02_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22689521, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22689528, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22689530, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22689531, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22689532, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22689533, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22689534, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22689535, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22689536, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22689537, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22689538, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22689539, 'pht': 3726}}" where mtr_portfolio_id = 22689449 and dashboard_run_id = 1785146 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`=22689449 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10325190, 0.06785820916259788, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22689449_05-05-2025_19_02_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22689521, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22689528, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22689530, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22689531, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22689532, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22689533, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22689534, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22689535, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22689536, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22689537, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22689538, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22689539, '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 = 22690184 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': 2794166, 'mtr_portfolio_id': 22690184, 'created_at': datetime.datetime(2025, 5, 5, 19, 16, 58), 'result': '0.05728365200658555', 'result_long': None, 'result_double': None}] Qualite : 0.05728365200658555 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22690184 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22690184_05-05-2025_19_16_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22690184 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_P22690184_05-05-2025_19_16_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22690233, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22690234, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22690235, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22690236, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22690237, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22690238, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22690239, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22690240, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22690241, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22690242, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22690243, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22690244, 'pht': 3726}}" where mtr_portfolio_id = 22690184 and dashboard_run_id = 1785146 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`=22690184 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10325191, 0.05728365200658555, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22690184_05-05-2025_19_16_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22690233, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22690234, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22690235, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22690236, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22690237, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22690238, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22690239, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22690240, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22690241, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22690242, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22690243, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22690244, '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 = 22690943 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': 2794223, 'mtr_portfolio_id': 22690943, 'created_at': datetime.datetime(2025, 5, 5, 19, 32, 59), 'result': '0.046945279014402194', 'result_long': None, 'result_double': None}] Qualite : 0.046945279014402194 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22690943 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22690943_05-05-2025_19_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22690943 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_P22690943_05-05-2025_19_33_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22690949, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22690950, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22690951, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22690952, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22690953, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22690954, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22690955, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22690956, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22690957, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22690958, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22690959, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22690960, 'pht': 3726}}" where mtr_portfolio_id = 22690943 and dashboard_run_id = 1785146 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`=22690943 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10325192, 0.046945279014402194, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22690943_05-05-2025_19_33_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22690949, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22690950, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22690951, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22690952, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22690953, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22690954, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22690955, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22690956, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22690957, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22690958, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22690959, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22690960, '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 = 22691558 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': 2794298, 'mtr_portfolio_id': 22691558, 'created_at': datetime.datetime(2025, 5, 5, 19, 46, 59), 'result': '0.04839286232552978', 'result_long': None, 'result_double': None}] Qualite : 0.04839286232552978 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22691558 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22691558_05-05-2025_19_47_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22691558 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_P22691558_05-05-2025_19_47_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22691603, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22691604, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22691605, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22691606, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22691607, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22691608, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22691609, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22691610, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22691611, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22691612, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22691613, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22691614, 'pht': 3726}}" where mtr_portfolio_id = 22691558 and dashboard_run_id = 1785146 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`=22691558 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10325193, 0.04839286232552978, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22691558_05-05-2025_19_47_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22691603, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22691604, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22691605, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22691606, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22691607, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22691608, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22691609, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22691610, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22691611, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22691612, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22691613, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22691614, '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 = 22692320 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': 2794354, 'mtr_portfolio_id': 22692320, 'created_at': datetime.datetime(2025, 5, 5, 20, 2, 59), 'result': '0.0482280606956107', 'result_long': None, 'result_double': None}] Qualite : 0.0482280606956107 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22692320 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22692320_05-05-2025_20_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22692320 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_P22692320_05-05-2025_20_03_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22692342, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22692343, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22692344, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22692345, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22692346, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22692347, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22692348, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22692349, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22692350, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22692351, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22692352, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22692353, 'pht': 3726}}" where mtr_portfolio_id = 22692320 and dashboard_run_id = 1785146 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`=22692320 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10325194, 0.0482280606956107, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22692320_05-05-2025_20_03_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22692342, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22692343, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22692344, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22692345, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22692346, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22692347, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22692348, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22692349, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22692350, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22692351, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22692352, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22692353, '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 = 22692960 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': 2794426, 'mtr_portfolio_id': 22692960, 'created_at': datetime.datetime(2025, 5, 5, 20, 17, 28), 'result': '0.039790985204956594', 'result_long': None, 'result_double': None}] Qualite : 0.039790985204956594 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22692960 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22692960_05-05-2025_20_17_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22692960 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_P22692960_05-05-2025_20_17_29.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22693005, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22693006, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22693007, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22693008, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22693009, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22693010, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22693011, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22693012, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22693013, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22693014, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22693015, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22693017, 'pht': 3726}}" where mtr_portfolio_id = 22692960 and dashboard_run_id = 1785146 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`=22692960 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10325195, 0.039790985204956594, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22692960_05-05-2025_20_17_29.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22693005, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22693006, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22693007, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22693008, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22693009, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22693010, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22693011, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22693012, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22693013, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22693014, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22693015, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22693017, '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 = 22693771 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': 2794511, 'mtr_portfolio_id': 22693771, 'created_at': datetime.datetime(2025, 5, 5, 20, 32, 58), 'result': '0.03749928174623374', 'result_long': None, 'result_double': None}] Qualite : 0.03749928174623374 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22693771 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22693771_05-05-2025_20_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22693771 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_P22693771_05-05-2025_20_32_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22693811, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22693812, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22693813, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22693814, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22693815, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22693816, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22693817, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22693818, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22693819, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22693820, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22693821, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22693822, 'pht': 3726}}" where mtr_portfolio_id = 22693771 and dashboard_run_id = 1785146 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`=22693771 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10325196, 0.03749928174623374, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22693771_05-05-2025_20_32_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22693811, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22693812, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22693813, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22693814, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22693815, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22693816, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22693817, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22693818, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22693819, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22693820, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22693821, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22693822, '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 = 22694805 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': 2794575, 'mtr_portfolio_id': 22694805, 'created_at': datetime.datetime(2025, 5, 5, 21, 2, 30), 'result': '0.048590391675890555', 'result_long': None, 'result_double': None}] Qualite : 0.048590391675890555 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22694805 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22694805_05-05-2025_21_02_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22694805 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_P22694805_05-05-2025_21_02_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22694856, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22694857, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22694858, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22694859, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22694860, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22694861, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22694862, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22694863, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22694864, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22694865, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22694866, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22694867, 'pht': 3726}}" where mtr_portfolio_id = 22694805 and dashboard_run_id = 1785146 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`=22694805 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10325197, 0.048590391675890555, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22694805_05-05-2025_21_02_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22694856, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22694857, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22694858, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22694859, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22694860, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22694861, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22694862, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22694863, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22694864, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22694865, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22694866, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22694867, '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 (22656512,22656738,22657101,22657344,22658111,22658598,22658886,22659324,22659888,22660372,22660885,22661429,22661981,22662597,22662926,22663690,22665500,22666082,22666582,22667066,22667518,22668049,22668860,22669512,22669909,22670698,22671325,22674910,22675633,22675861,22676642,22677428,22678082,22678978,22679715,22680674,22681652,22682426,22683199,22684721,22684898,22685390,22687133,22687701,22688424,22689449,22690184,22690943,22691558,22692320,22692960,22693771,22694805) result : ((1355938842,), (1355938860,), (1355938880,), (1355938885,), (1355938918,), (1355938921,), (1355938993,), (1355938995,), (1355939010,), (1355939023,), (1355939025,), (1355939314,), (1355939315,), (1355939317,), (1355939355,), (1355939358,), (1355939360,), (1355939385,), (1355939387,), (1355939389,), (1355939405,), (1355939407,), (1355939409,), (1355939411,), (1355939426,), (1355939431,), (1355939434,), (1355939436,), (1355939438,), (1355939454,), (1355939456,), (1355939457,), (1355939458,), (1355939478,), (1355939479,), (1355939480,), (1355939575,), (1355939554,), (1355939558,), (1355939658,), (1355939661,), (1355939759,), (1355939760,), (1355939761,), (1355939889,), (1355939891,), (1355939893,), (1355939897,), (1355939899,), (1355939919,), (1355939973,), (1355940115,), (1355940162,), (1355940163,), (1355940164,), (1355940181,), (1355940182,), (1355940183,), (1355940184,), (1355940186,), (1355940188,), (1355940209,), (1355940212,), (1355940214,), (1355940216,), (1355940219,), (1355940238,), (1355940240,), (1355940241,), (1355940242,), (1355940277,), (1355940268,), (1355940270,), (1355940271,), (1355940272,), (1355940275,), (1355940301,), (1355940302,), (1355940303,), (1355940304,), (1355940306,), (1355940308,), (1355940338,), (1355940339,), (1355940340,), (1355940341,), (1355940383,), (1355940384,), (1355940385,), (1355940386,), (1355940388,), (1355940390,), (1355940413,), (1355940415,), (1355940417,), (1355940418,), (1355940442,), (1355940443,), (1355940444,), (1355940445,), (1355940446,), (1355940448,), (1355940467,), (1355940468,), (1355940469,), (1355940470,), (1355940492,), (1355940493,), (1355940494,), (1355940495,), (1355940497,), (1355940523,), (1355940524,), (1355940526,), (1355940529,), (1355940532,), (1355940534,), (1355940552,), (1355940553,), (1355940554,), (1355940555,), (1355940581,), (1355940582,), (1355940583,), (1355940584,), (1355940586,), (1355940588,), (1355940605,), (1355940606,), (1355940607,), (1355940608,), (1355940610,), (1355940612,), (1355940634,), (1355940636,), (1355940638,), (1355940639,), (1355940663,), (1355940665,), (1355940666,), (1355940668,), (1355940670,), (1355940672,), (1355940690,), (1355940691,), (1355940692,), (1355940693,), (1355940721,), (1355940714,), (1355940715,), (1355940716,), (1355940717,), (1355940742,), (1355940744,), (1355940745,), (1355940746,), (1355940747,), (1355940748,), (1355940761,), (1355940762,), (1355940763,), (1355940764,), (1355940796,), (1355940799,), (1355940801,), (1355940804,), (1355940807,), (1355940810,), (1355940829,), (1355940831,), (1355940833,), (1355940835,), (1355940866,), (1355940868,), (1355940870,), (1355940874,), (1355940877,), (1355940905,), (1355940906,), (1355940909,), (1355940911,), (1355940914,), (1355940917,), (1355940933,), (1355940935,), (1355940937,), (1355940939,), (1355940968,), (1355940970,), (1355940972,), (1355940975,), (1355940979,), (1355940983,), (1355940997,), (1355940999,), (1355941002,), (1355941005,), (1355941036,), (1355941038,), (1355941040,), (1355941042,), (1355941045,), (1355941048,), (1355941063,), (1355941065,), (1355941066,), (1355941068,), (1355941096,), (1355941099,), (1355941101,), (1355941102,), (1355941105,), (1355941108,), (1355941941,), (1355941946,), (1355941950,), (1355941955,), (1355942006,), (1355942035,), (1355942068,), (1355942143,), (1355942137,), (1355942793,), (1355943242,), (1355943296,), (1355943323,), (1355943679,), (1355943705,), (1355944150,), (1355944203,), (1355944253,), (1355944676,), (1355944686,), (1355944687,), (1355944692,), (1355944758,), (1355944779,), (1355944809,), (1355944836,), (1355944863,), (1355944866,), (1355945132,), (1355945165,), (1355945194,), (1355945225,), (1355945254,), (1355945282,), (1355945379,), (1355945381,), (1355945382,), (1355945384,), (1355945386,), (1355945523,), (1355945524,), (1355945525,), (1355945526,), (1355945527,), (1355945530,), (1355945557,), (1355945558,), (1355945559,), (1355945560,), (1355945588,), (1355945590,), (1355945591,), (1355945593,), (1355945595,), (1355945597,), (1355945627,), (1355945629,), (1355945630,), (1355945659,), (1355945660,), (1355945662,), (1355945663,), (1355945666,), (1355945670,), (1355945715,), (1355945707,), (1355945709,), (1355945710,), (1355945711,), (1355945713,), (1355945739,), (1355945740,), (1355945741,), (1355945778,), (1355945781,), (1355945783,), (1355945784,), (1355945786,), (1355945788,), (1355945811,), (1355945812,), (1355945813,), (1355945814,), (1355945817,), (1355945819,), (1355945846,), (1355945849,), (1355945851,), (1355945852,), (1355945885,), (1355945887,), (1355945888,), (1355945890,), (1355945892,), (1355945895,), (1355945917,), (1355945918,), (1355945919,), (1355945930,), (1355945943,), (1355945945,), (1355945946,), (1355945947,), (1355945950,), (1355945970,), (1355945971,), (1355945972,), (1355945973,), (1355945976,), (1355945980,), (1355946001,), (1355946003,), (1355946004,), (1355946006,), (1355946033,), (1355946035,), (1355946036,), (1355946039,), (1355946042,), (1355946049,), (1355946065,), (1355946067,), (1355946068,), (1355946070,), (1355946072,), (1355946110,), (1355946112,), (1355946113,), (1355946115,), (1355946117,), (1355946139,), (1355946141,), (1355946142,), (1355946146,), (1355946149,), (1355946154,), (1355946198,), (1355946201,), (1355946203,), (1355946208,), (1355946241,), (1355946237,), (1355946238,), (1355946239,), (1355946240,), (1355946264,), (1355946266,), (1355946269,), (1355946290,), (1355946292,), (1355946293,), (1355946295,), (1355946299,), (1355946318,), (1355946320,), (1355946322,), (1355946324,), (1355946328,), (1355946331,), (1355946354,), (1355946358,), (1355946360,), (1355946365,), (1355946387,), (1355946391,), (1355946393,), (1355946398,), (1355946402,), (1355946407,), (1355946429,), (1355946430,), (1355946431,), (1355946432,), (1355946473,), (1355946475,), (1355946477,), (1355946479,), (1355946483,), (1355946487,), (1355946512,), (1355946513,), (1355946515,), (1355946516,), (1355946547,), (1355946549,), (1355946550,), (1355946551,), (1355946554,), (1355946583,), (1355946584,), (1355946585,), (1355946586,), (1355946590,), (1355946622,), (1355946624,), (1355946625,), (1355946626,), (1355946659,), (1355946661,), (1355946662,), (1355946663,), (1355946667,), (1355946710,), (1355946715,), (1355946718,), (1355946721,), (1355946725,), (1355946757,), (1355946759,), (1355946760,), (1355946762,), (1355946766,), (1355946825,), (1355946808,), (1355946811,), (1355946819,), (1355946846,), (1355946847,), (1355946850,), (1355946890,), (1355946892,), (1355946893,), (1355946894,), (1355946895,), (1355946898,), (1355946923,), (1355946926,), (1355946929,), (1355946932,), (1355946959,), (1355946963,), (1355946965,), (1355946967,), (1355946971,), (1355946975,), (1355947017,), (1355947020,), (1355947023,), (1355947028,), (1355947031,), (1355947063,), (1355947066,), (1355947069,), (1355947075,), (1355947081,), (1355947085,), (1355947112,), (1355947115,), (1355947118,), (1355947121,), (1355947126,), (1355947129,), (1355947166,), (1355947168,), (1355947170,), (1355947172,), (1355947175,), (1355947221,), (1355947226,), (1355947229,), (1355947231,), (1355947236,), (1355947241,), (1355947274,), (1355947276,), (1355947278,), (1355947282,), (1355947286,), (1355947358,), (1355947389,), (1355947415,), (1355947440,), (1355947463,), (1355947466,), (1355947623,), (1355947650,), (1355947676,), (1355947703,), (1355948154,), (1355948161,), (1355948192,), (1355948196,), (1355948227,), (1355948230,), (1355948275,), (1355948249,), (1355948255,), (1355948258,), (1355948268,), (1355948306,), (1355948312,), (1355948317,), (1355948322,), (1355948325,), (1355948373,), (1355948376,), (1355948379,), (1355948384,), (1355948388,), (1355948426,), (1355948430,), (1355948434,), (1355948438,), (1355948442,), (1355948477,), (1355948481,), (1355948485,), (1355948487,), (1355948536,), (1355948538,), (1355948540,), (1355948543,), (1355948548,), (1355948553,), (1355948583,), (1355948586,), (1355948631,), (1355948636,), (1355948640,), (1355948643,), (1355948680,), (1355948684,), (1355948687,), (1355948738,), (1355948741,), (1355948745,), (1355948827,), (1355948830,), (1355948870,), (1355948873,), (1355948875,), (1355948911,), (1355948915,), (1355948967,), (1355948971,), (1355948974,), (1355948992,), (1355948997,), (1355949003,), (1355949027,), (1355949030,), (1355949033,), (1355949035,), (1355949037,), (1355949040,), (1355949089,), (1355949080,), (1355949082,), (1355949086,), (1355949134,), (1355949136,), (1355949138,), (1355949141,), (1355949145,), (1355949154,), (1355949185,), (1355949187,), (1355949191,), (1355949195,), (1355949257,), (1355949262,), (1355949266,), (1355949289,), (1355949294,), (1355949300,), (1355949330,), (1355949335,), (1355949341,), (1355949346,), (1355949350,), (1355949401,), (1355949405,), (1355949414,), (1355949420,), (1355949425,), (1355949430,), (1355949467,), (1355949469,), (1355949472,), (1355949479,), (1355949519,), (1355949522,), (1355949528,), (1355949535,), (1355949540,), (1355949543,), (1355949583,), (1355949588,), (1355949593,), (1355949597,), (1355949634,), (1355949637,), (1355949640,), (1355949643,), (1355949649,), (1355949685,), (1355949695,), (1355949706,), (1355949747,), (1355949751,), (1355949826,), (1355949831,), (1355949868,), (1355949973,), (1355949963,), (1355949968,), (1355950012,), (1355950016,), (1355950019,), (1355950025,), (1355950030,), (1355950034,), (1355950059,), (1355950063,), (1355950065,), (1355950068,), (1355950145,), (1355950160,), (1355950168,), (1355950176,), (1355950186,), (1355950206,), (1355950247,), (1355950268,), (1355950272,), (1355950291,), (1355950302,), (1355950305,), (1355950389,), (1355950395,), (1355950398,), (1355950406,), (1355950497,), (1355950502,), (1355950505,), (1355950514,), (1355950525,), (1355950538,), (1355950565,), (1355950567,), (1355950570,), (1355950572,), (1355950576,), (1355950645,), (1355950647,), (1355950651,), (1355950654,), (1355950658,), (1355950755,), (1355950758,), (1355950762,), (1355950766,), (1355950769,), (1355950904,), (1355950913,), (1355950922,), (1355950925,), (1355950929,), (1355950933,), (1355950960,), (1355950963,), (1355950967,), (1355950971,), (1355950977,), (1355951013,), (1355951017,), (1355951020,), (1355951023,), (1355951028,), (1355951089,), (1355951092,), (1355951096,), (1355951119,), (1355951126,), (1355951143,), (1355951235,), (1355951226,), (1355951230,), (1355951232,), (1355951332,), (1355951334,), (1355951338,), (1355951341,), (1355951345,), (1355951348,), (1355951403,), (1355951409,), (1355951413,), (1355951418,), (1355951423,), (1355951505,), (1355951508,), (1355951512,), (1355951515,), (1355951518,), (1355951618,), (1355951623,), (1355951625,), (1355951706,), (1355951708,), (1355951711,), (1355951714,), (1355951719,), (1355952074,), (1355952647,), (1355952690,), (1355953390,), (1355953449,), (1355953541,), (1355953600,), (1355953771,), (1355953976,), (1355953289,), (1355953340,), (1355954235,), (1355954269,), (1355954300,), (1355954317,), (1355954349,), (1355954895,), (1355954947,), (1355954998,), (1355955063,), (1355955120,), (1355955174,), (1355955699,), (1355955738,), (1355955791,), (1355955830,), (1355955853,), (1355955932,), (1355955959,), (1355955988,), (1355956024,), (1355956052,), (1355956087,), (1355956224,), (1355956228,), (1355956231,), (1355956248,), (1355956344,), (1355956349,), (1355956350,), (1355956353,), (1355956356,), (1355956363,), (1355956427,), (1355956430,), (1355956432,), (1355956435,), (1355956437,), (1355956463,), (1355956466,), (1355956468,), (1355956471,), (1355956477,), (1355956512,), (1355956514,), (1355956519,), (1355956522,), (1355956580,), (1355956585,), (1355956588,), (1355956590,), (1355956592,), (1355956596,), (1355956660,), (1355956665,), (1355956670,), (1355956673,), (1355956677,), (1355956681,), (1355956715,), (1355956718,), (1355956721,), (1355956724,), (1355956839,), (1355956842,), (1355956872,), (1355956878,), (1355956883,), (1355956892,), (1355956927,), (1355956931,), (1355956934,), (1355956999,), (1355956976,), (1355956980,), (1355956982,), (1355956987,), (1355956992,), (1355957041,), (1355957045,), (1355957049,), (1355957052,), (1355957383,), (1355957393,), (1355957395,), (1355957398,), (1355957400,), (1355957704,), (1355957732,), (1355957761,), (1355957786,), (1355957813,), (1355957841,), (1355958030,), (1355958034,), (1355958037,), (1355958042,), (1355958047,), (1355958118,), (1355958127,), (1355958131,), (1355958133,), (1355958141,), (1355958153,), (1355958221,), (1355958225,), (1355958229,), (1355958235,), (1355958576,), (1355958581,), (1355958631,), (1355958634,), (1355958639,), (1355958643,), (1355958649,), (1355958654,), (1355958686,), (1355958689,), (1355958692,), (1355958695,), (1355958724,), (1355958728,), (1355958731,), (1355958736,), (1355958740,), (1355958778,), (1355958785,), (1355958794,), (1355958801,), (1355958807,), (1355958810,), (1355958883,), (1355959025,), (1355959022,), (1355959064,), (1355959069,), (1355959073,), (1355959077,), (1355959082,), (1355959106,), (1355959110,), (1355959112,), (1355959143,), (1355959145,), (1355959148,), (1355959151,), (1355959228,), (1355959232,), (1355959237,), (1355959239,), (1355959241,), (1355959244,), (1355959269,), (1355959273,), (1355959277,), (1355959290,), (1355959295,), (1355959300,), (1355959329,), (1355959333,), (1355959338,), (1355959378,), (1355959381,), (1355959384,), (1355959387,), (1355959392,), (1355959396,), (1355959471,), (1355959476,), (1355959479,), (1355959485,), (1355959520,), (1355959524,), (1355959527,), (1355959531,), (1355959537,), (1355959541,), (1355959566,), (1355959576,), (1355959584,), (1355959590,), (1355959602,), (1355959607,), (1355959671,), (1355959674,), (1355959678,), (1355959682,), (1355959687,), (1355959692,), (1355959715,), (1355959718,), (1355959722,), (1355959725,), (1355959787,), (1355959766,), (1355959768,), (1355959771,), (1355959776,), (1355959780,), (1355959831,), (1355959842,), (1355959850,), (1355959855,), (1355960106,), (1355960126,), (1355960161,), (1355960195,), (1355960242,), (1355960302,), (1355960826,), (1355960859,), (1355960899,), (1355960950,), (1355961005,), (1355961405,), (1355961419,), (1355961433,), (1355961479,), (1355961553,), (1355961635,), (1355961789,), (1355961793,), (1355961808,), (1355961845,), (1355962085,), (1355962253,), (1355962262,), (1355962355,), (1355962363,), (1355962366,), (1355962394,), (1355962425,), (1355962453,), (1355962460,), (1355962465,), (1355962526,), (1355962531,), (1355962535,), (1355962542,), (1355962573,), (1355962600,), (1355963006,), (1355963056,), (1355963098,), (1355963130,), (1355963814,), (1355963879,), (1355963932,), (1355963961,), (1355964016,), (1355964457,), (1355964490,), (1355964519,), (1355964562,), (1355964800,), (1355964844,), (1355964880,), (1355964913,), (1355964942,), (1355965037,), (1355965432,), (1355965463,), (1355965495,), (1355965509,), (1355965525,), (1355965528,), (1355965535,), (1355965560,), (1355965567,), (1355965589,), (1355974331,), (1355974334,), (1355974362,), (1355974365,), (1355974368,), (1355974456,), (1355974532,), (1355974536,), (1355974539,), (1355974543,), (1355974616,), (1355974618,), (1355974621,), (1355974625,), (1355974629,), (1355974631,), (1355974651,), (1355974653,), (1355974656,), (1355974682,), (1355974685,), (1355974688,), (1355974691,), (1355974694,), (1355974699,), (1355974719,), (1355974721,), (1355974724,), (1355974729,), (1355974733,), (1355974769,), (1355974774,), (1355974777,), (1355974781,), (1355974788,), (1355974792,), (1355974854,), (1355974858,), (1355974862,), (1355974905,), (1355974910,), (1355974915,), (1355974919,), (1355974924,), (1355974929,), (1355974983,), (1355974986,), (1355974991,), (1355974995,), (1355975008,), (1355975012,), (1355975070,), (1355975082,), (1355975085,), (1355975331,), (1355975334,), (1355975351,), (1355975354,), (1355975359,), (1355975365,), (1355975410,), (1355975412,), (1355975418,), (1355975422,), (1355975429,), (1355975558,), (1355975584,), (1355975612,), (1355975643,), (1355975678,), (1355975709,), (1355975832,), (1355975823,), (1355975826,), (1355975829,), (1355975863,), (1355975868,), (1355975873,), (1355975876,), (1355975881,), (1355975886,), (1355975953,), (1355975960,), (1355975963,), (1355975968,), (1355975973,), (1355976001,), (1355976008,), (1355976012,), (1355976015,), (1355976070,), (1355976075,), (1355976079,), (1355976088,), (1355976097,), (1355976111,), (1355976226,), (1355976246,), (1355976250,), (1355976254,), (1355976422,), (1355976425,), (1355976428,), (1355976465,), (1355976510,), (1355976515,), (1355976544,), (1355976547,), (1355976551,), (1355976554,), (1355976591,), (1355976597,), (1355976599,), (1355976602,), (1355976605,), (1355976610,), (1355976647,), (1355976652,), (1355976656,), (1355976658,), (1355976688,), (1355976697,), (1355976700,), (1355976703,), (1355977206,), (1355978507,), (1355979109,), (1355979172,), (1355979203,), (1355979236,), (1355979494,), (1355979500,), (1355979535,), (1355979539,), (1355979545,), (1355979554,), (1355979763,), (1355979777,), (1355979803,), (1355979931,), (1355979933,), (1355979936,), (1355979939,), (1355979942,), (1355979945,), (1355979983,), (1355979988,), (1355979993,), (1355979998,), (1355980045,), (1355980049,), (1355980053,), (1355980057,), (1355980061,), (1355980065,), (1355980098,), (1355980100,), (1355980103,), (1355980106,), (1355980150,), (1355980153,), (1355980154,), (1355980164,), (1355980168,), (1355980173,), (1355980206,), (1355980210,), (1355980214,), (1355980219,), (1355980225,), (1355980290,), (1355980303,), (1355980315,), (1355980318,), (1355980342,), (1355980580,), (1355980600,), (1355980603,), (1355980604,), (1355980607,), (1355980643,), (1355980647,), (1355980648,), (1355980650,), (1355980689,), (1355980691,), (1355980695,), (1355980698,), (1355980702,), (1355980707,), (1355980747,), (1355980751,), (1355980754,), (1355980814,), (1355980818,), (1355980929,), (1355980910,), (1355980912,), (1355980915,), (1355980918,), (1355980923,), (1355981082,), (1355981084,), (1355981121,), (1355981142,), (1355981269,), (1355981273,), (1355981277,), (1355981279,), (1355981282,), (1355981286,), (1355981320,), (1355981339,), (1355981344,), (1355981345,), (1355981638,), (1355981751,), (1355981783,), (1355981812,), (1355981845,), (1355981875,), (1355981917,), (1355981920,), (1355981923,), (1355981926,), (1355981931,), (1355981942,), (1355981968,), (1355981972,), (1355981975,), (1355981977,), (1355982024,), (1355982027,), (1355982029,), (1355982031,), (1355982035,), (1355982041,), (1355982089,), (1355982092,), (1355982095,), (1355982096,), (1355982143,), (1355982146,), (1355982149,), (1355982152,), (1355982155,), (1355982160,), (1355982211,), (1355982214,), (1355982219,), (1355982222,), (1355982225,), (1355982272,), (1355982274,), (1355982280,), (1355982283,), (1355982285,), (1355982286,), (1355982330,), (1355982342,), (1355982348,), (1355982354,), (1355982401,), (1355982428,), (1355982433,), (1355982438,), (1355982446,), (1355982451,), (1355982460,), (1355982465,), (1355982468,), (1355982473,), (1355982548,), (1355982524,), (1355982530,), (1355982534,), (1355982538,), (1355982543,), (1355982585,), (1355982590,), (1355982595,), (1355982626,), (1355982810,), (1355982814,), (1355982819,), (1355982824,), (1355982828,), (1355982833,), (1355982896,), (1355982909,), (1355982913,), (1355982917,), (1355982923,), (1355982965,), (1355982969,), (1355982972,), (1355982985,), (1355982990,), (1355983008,), (1355983053,), (1355983057,), (1355983062,), (1355983178,), (1355983182,), (1355983187,), (1355983193,), (1355983233,), (1355983235,), (1355983238,), (1355983242,), (1355983245,), (1355983254,), (1355983284,), (1355983287,), (1355983291,), (1355983295,), (1355983302,), (1355983338,), (1355983341,), (1355983345,), (1355983348,), (1355983354,), (1355983361,), (1355983401,), (1355983403,), (1355983411,), (1355983415,), (1355983466,), (1355983469,), (1355983481,), (1355983486,), (1355983491,), (1355983544,), (1355983547,), (1355983552,), (1355983556,), (1355983561,), (1355983565,), (1355983597,), (1355983601,), (1355983605,), (1355983611,), (1355983617,), (1355983650,), (1355983654,), (1355983659,), (1355983664,), (1355983670,), (1355983676,), (1355983722,), (1355983717,), (1355983719,), (1355983768,), (1355983771,), (1355983774,), (1355983779,), (1355983784,), (1355983789,), (1355983812,), (1355983819,), (1355983821,), (1355983825,), (1355983829,), (1355983869,), (1355983876,), (1355983882,), (1355983884,), (1355983975,), (1355983978,), (1355983981,), (1355983985,), (1355983993,), (1355983998,), (1355984043,), (1355984083,), (1355984086,), (1355984104,), (1355984135,), (1355984159,), (1355984283,), (1355984287,), (1355984292,), (1355984298,), (1355984304,), (1355984308,), (1355984369,), (1355984374,), (1355984376,), (1355984379,), (1355984646,), (1355984652,), (1355984657,), (1355984660,), (1355984667,), (1355984671,), (1355984755,), (1355984760,), (1355984774,), (1355984780,), (1355984956,), (1355984962,), (1355984994,), (1355985021,), (1355985051,), (1355985166,), (1355985217,), (1355985257,), (1355985315,), (1355985398,), (1355985468,), (1355986063,), (1355986091,), (1355986119,), (1355986180,), (1355986209,), (1355986235,), (1355986917,), (1355986950,), (1355986983,), (1355987020,), (1355987055,), (1355987551,), (1355987475,), (1355987493,), (1355987499,), (1355987523,), (1355987728,), (1355987756,), (1355987778,), (1355987785,), (1355987798,), (1355988139,), (1355988174,), (1355988207,), (1355988241,), (1355988272,), (1355989526,), (1355989553,), (1355989584,), (1355989620,), (1355989655,), (1355989910,), (1355989937,), (1355989964,), (1355990045,), (1355990220,), (1355990371,), (1355990601,), (1355990664,), (1355990668,), (1355990695,), (1355990700,), (1355990724,), (1355990727,), (1355990729,), (1355990732,), (1355990735,), (1355990741,), (1355991019,), (1355991046,), (1355991076,), (1355991102,), (1355991132,), (1355991274,), (1355991276,), (1355991279,), (1355991283,), (1355991286,), (1355991290,), (1355991492,), (1355991500,), (1355991505,), (1355991517,), (1355991629,), (1355991639,), (1355991645,), (1355991648,), (1355991653,), (1355991656,), (1355991787,), (1355991790,), (1355991794,), (1355991796,), (1355991896,), (1355991943,), (1355991979,), (1355991987,), (1355991992,), (1355991995,), (1355992037,), (1355992042,), (1355992046,), (1355992052,), (1355992100,), (1355992105,), (1355992108,), (1355992112,), (1355992120,), (1355992123,), (1355992173,), (1355992156,), (1355992165,), (1355992169,), (1355992193,), (1355992197,), (1355992201,), (1355992204,), (1355992207,), (1355992210,), (1355992243,), (1355992247,), (1355992251,), (1355992255,), (1355992368,), (1355992371,), (1355992374,), (1355992377,), (1355992382,), (1355992387,), (1355992435,), (1355992438,), (1355992454,), (1355992460,), (1355992490,), (1355992492,), (1355992495,), (1355992503,), (1355992508,), (1355992512,), (1355992544,), (1355992547,), (1355992549,), (1355992552,), (1355992554,), (1355992585,), (1355992587,), (1355992590,), (1355992634,), (1355992643,), (1355992757,), (1355992783,), (1355992802,), (1355992804,), (1355992808,), (1355992843,), (1355992845,), (1355992846,), (1355992849,), (1355992855,), (1355992898,), (1355992900,), (1355992918,), (1355992944,), (1355992949,), (1355992953,), (1355992988,), (1355992990,), (1355992992,), (1355992994,), (1355993032,), (1355993037,), (1355993044,), (1355993049,), (1355993053,), (1355993065,), (1355993093,), (1355993095,), (1355993097,), (1355993112,), (1355993116,), (1355993163,), (1355993165,), (1355993168,), (1355993170,), (1355993173,), (1355993178,), (1355993241,), (1355993232,), (1355993235,), (1355993238,), (1355993272,), (1355993275,), (1355993278,), (1355993280,), (1355993283,), (1355993287,), (1355993487,), (1355993516,), (1355993535,), (1355993539,), (1355993542,), (1355993968,), (1355993991,), (1355993995,), (1355994000,), (1355994005,), (1355994010,), (1355994034,), (1355994085,), (1355994137,), (1355994193,), (1355994228,), (1355994475,), (1355994504,), (1355994533,), (1355994543,), (1355994580,), (1355994836,), (1355995021,), (1355995079,), (1355995132,), (1355995193,), (1355995636,), (1355995676,), (1355995732,), (1355995786,), (1355996110,), (1355996112,), (1355996114,), (1355996119,), (1355996123,), (1355996243,), (1355996306,), (1355996355,), (1355996410,), (1355996463,), (1355996849,), (1355996851,), (1355996854,), (1355996857,), (1355996878,), (1355997061,), (1355997064,), (1355997080,), (1355997085,), (1355997304,), (1355997319,), (1355997333,), (1355997369,), (1355997395,), (1355997423,), (1355997819,), (1355997849,), (1355997878,), (1355997905,), (1355998062,), (1355998065,), (1355998072,), (1355998079,), (1355998114,), (1355998147,), (1355998307,), (1355998285,), (1355998296,), (1355998298,), (1355998303,), (1355998333,), (1355998337,), (1355998341,), (1355998344,), (1355998348,), (1355998352,), (1355998371,), (1355998375,), (1355998379,), (1355998382,), (1355998386,), (1355998414,), (1355998418,), (1355998427,), (1355998443,), (1355998448,), (1355998459,), (1355998498,), (1355998504,), (1355998524,), (1355998533,), (1355998544,), (1355998604,), (1355998643,), (1355998651,), (1355998678,), (1355998788,), (1355998792,), (1355998834,), (1355998838,), (1355998843,), (1355998855,), (1355998879,), (1355998882,), (1355998885,), (1355998947,), (1355998971,), (1355998998,), (1355999026,), (1355999043,), (1355999063,), (1355999268,), (1355999272,), (1355999276,), (1355999277,), (1355999285,), (1355999291,), (1355999391,), (1355999394,), (1355999395,), (1355999399,), (1355999403,), (1355999407,), (1355999447,), (1355999459,), (1355999467,), (1355999473,), (1355999517,), (1355999521,), (1355999523,), (1355999524,), (1355999529,), (1355999533,), (1355999818,), (1355999866,), (1355999928,), (1356000011,), (1356000097,), (1356001481,), (1356000827,), (1356001198,), (1356001288,), (1356001375,), (1356001897,), (1356001948,), (1356002008,), (1356002703,), (1356002707,), (1356002737,), (1356002827,), (1356002907,), (1356003458,), (1356003515,), (1356003565,), (1356003618,), (1356004309,), (1356004401,), (1356004449,), (1356004520,), (1356004533,), (1356004553,), (1356004703,), (1356004706,), (1356004710,), (1356004714,), (1356004990,), (1356005008,), (1356005015,), (1356005018,), (1356005021,), (1356005024,), (1356005203,), (1356005207,), (1356005210,), (1356005253,), (1356005282,), (1356005312,), (1356005342,), (1356005848,), (1356005899,), (1356005946,), (1356005991,), (1356006414,), (1356006468,), (1356007833,), (1356039403,), (1356041340,), (1356041343,), (1356041350,), (1356041375,), (1356041379,), (1356041384,), (1356041388,), (1356041497,), (1356041527,), (1356041555,), (1356041566,), (1356041577,), (1356041775,), (1356041794,), (1356041800,), (1356041819,), (1356041851,), (1356041927,), (1356041932,), (1356041937,), (1356041941,), (1356041949,), (1356041989,), (1356041994,), (1356041998,), (1356042004,), (1356042025,), (1356042034,), (1356042081,), (1356042085,), (1356042089,), (1356042095,), (1356042103,), (1356042107,), (1356042163,), (1356042165,), (1356042168,), (1356048513,), (1356045467,), (1356049129,), (1356049190,), (1356049235,), (1356049282,), (1356049859,), (1356049923,), (1356049953,), (1356049997,), (1356050404,), (1356050436,), (1356050482,), (1356051112,), (1356051119,), (1356051124,), (1356051130,), (1356051184,), (1356051172,), (1356051178,), (1356051562,), (1356051600,), (1356051647,), (1356051675,), (1356051775,), (1356052294,), (1356052321,), (1356052355,), (1356052394,), (1356052430,), (1356052474,), (1356052898,), (1356052929,), (1356052959,), (1356053441,), (1356053493,), (1356053578,), (1356053666,), (1356054042,), (1356054049,), (1356054054,), (1356054071,), (1356054320,), (1356054373,), (1356054390,), (1356054394,), (1356054415,), (1356054477,), (1356054483,), (1356054488,), (1356054496,), (1356054500,), (1356054523,), (1356054610,), (1356054615,), (1356054620,), (1356054674,), (1356054679,), (1356054682,), (1356054764,), (1356054770,), (1356054774,), (1356054777,), (1356054781,), (1356054813,), (1356054819,), (1356054824,), (1356054829,), (1356054834,), (1356054838,), (1356054869,), (1356054873,), (1356054892,), (1356055277,), (1356055306,), (1356055337,), (1356055380,), (1356055414,), (1356055446,), (1356055845,), (1356055644,), (1356055657,), (1356055661,), (1356055667,), (1356055730,), (1356056238,), (1356056248,), (1356056252,), (1356056387,), (1356056391,), (1356056395,), (1356056400,), (1356056407,), (1356056410,), (1356056580,), (1356056620,), (1356056649,), (1356056689,), (1356056976,), (1356057196,), (1356057415,), (1356057420,), (1356057427,), (1356057455,), (1356057798,), (1356057825,), (1356058050,), (1356058061,), (1356058080,), (1356058132,), (1356058271,), (1356058319,), (1356058355,), (1356058384,), (1356058418,), (1356058609,), (1356058614,), (1356058629,), (1356058656,), (1356059279,), (1356059316,), (1356059348,), (1356059414,), (1356059442,), (1356059774,), (1356059801,), (1356059818,), (1356060175,), (1356060186,), (1356060192,), (1356060221,), (1356060250,), (1356060401,), (1356060366,), (1356060382,), (1356060396,), (1356060715,), (1356060895,), (1356060934,), (1356060946,), (1356060998,), (1356061005,), (1356061010,), (1356061106,), (1356061256,), (1356061308,), (1356061363,), (1356061415,), (1356061465,), (1356061876,), (1356061970,), (1356062026,), (1356062091,), (1356062163,), (1356062856,), (1356062877,), (1356062883,), (1356063086,), (1356063142,), (1356063171,), (1356063200,), (1356063232,), (1356063282,), (1356063693,), (1356063758,), (1356063814,), (1356063895,), (1356063981,), (1356064260,), (1356064309,), (1356064347,), (1356064377,), (1356064515,), (1356064520,), (1356064525,), (1356064555,), (1356064677,), (1356064722,), (1356064752,), (1356064784,), (1356064822,), (1356065254,), (1356065258,), (1356065283,), (1356065310,), (1356065775,), (1356065835,), (1356065896,), (1356066408,), (1356066440,), (1356066470,), (1356066506,), (1356066513,), (1356066516,), (1356066676,), (1356066664,), (1356066668,), (1356066824,), (1356066852,), (1356067093,), (1356067119,), (1356067400,), (1356067410,), (1356067440,), (1356067469,), (1356067727,), (1356067732,), (1356067739,), (1356068017,), (1356068043,), (1356068073,), (1356068080,), (1356068288,), (1356068292,), (1356068296,), (1356068302,), (1356068406,), (1356068437,), (1356068471,), (1356068476,), (1356068482,), (1356068687,), (1356068717,), (1356068857,), (1356068861,), (1356068901,), (1356068904,), (1356068906,), (1356068910,), (1356068997,), (1356069002,), (1356069005,), (1356069008,), (1356069012,), (1356069125,), (1356069154,), (1356069310,), (1356069519,), (1356069842,), (1356069870,), (1356069896,), (1356070297,), (1356070817,), (1356071213,), (1356071218,), (1356071231,), (1356071634,), (1356071650,), (1356072216,), (1356072246,), (1356072268,), (1356072872,), (1356072875,), (1356072910,), (1356072918,), (1356072921,), (1356073843,), (1356074546,), (1356074555,), (1356074558,), (1356074754,), (1356074784,), (1356074806,), (1356074808,), (1356075980,), (1356075998,), (1356076000,), (1356076008,), (1356076010,), (1356076015,), (1356076708,), (1356076434,), (1356076443,), (1356076514,), (1356076605,), (1356076703,), (1356076904,), (1356076917,), (1356077037,), (1356077072,), (1356077098,), (1356077129,), (1356077389,), (1356077395,), (1356077404,), (1356077414,), (1356077602,), (1356077605,), (1356077608,), (1356077611,), (1356077639,), (1356077714,), (1356078015,), (1356078029,), (1356078042,), (1356078045,), (1356078049,), (1356078158,), (1356078166,), (1356078688,), (1356078717,), (1356078818,), (1356078825,), (1356078847,), (1356078896,), (1356079126,), (1356079130,), (1356079133,), (1356079161,), (1356079190,), (1356079263,), (1356079268,), (1356079273,), (1356079279,), (1356079431,), (1356079455,), (1356079461,), (1356079673,), (1356079682,), (1356079706,), (1356079720,), (1356079724,), (1356079828,), (1356079832,), (1356079834,), (1356079836,), (1356079973,), (1356079991,), (1356080007,), (1356080011,), (1356080017,), (1356080026,), (1356080064,), (1356080117,), (1356080114,), (1356080343,), (1356080368,), (1356080402,), (1356080417,), (1356080430,), (1356080984,), (1356081078,), (1356081235,), (1356081530,), (1356081534,), (1356081538,), (1356081712,), (1356081716,), (1356081719,), (1356081724,), (1356081979,), (1356081992,), (1356082009,), (1356082019,), (1356082243,), (1356082247,), (1356082278,), (1356082305,), (1356082471,), (1356082665,), (1356082678,), (1356082681,), (1356082684,), (1356082704,), (1356082970,), (1356083184,), (1356083186,), (1356083188,), (1356083190,), (1356083194,), (1356083201,), (1356083225,), (1356083228,), (1356083230,), (1356083232,), (1356083665,), (1356083669,), (1356083671,), (1356083697,), (1356083724,), (1356083774,), (1356083777,), (1356083780,), (1356084000,), (1356084032,), (1356084068,), (1356084102,), (1356084142,), (1356084179,), (1356084263,), (1356084293,), (1356084339,), (1356084380,), (1356084564,), (1356084503,), (1356084534,), (1356085205,), (1356085275,), (1356085310,), (1356085341,), (1356085412,), (1356086118,), (1356086148,), (1356086193,), (1356086254,), (1356086310,), (1356086366,), (1356086741,), (1356086771,), (1356086792,), (1356087122,), (1356087152,), (1356087596,), (1356087615,), (1356087640,), (1356087645,), (1356087651,), (1356087654,), (1356087682,), (1356087693,), (1356087723,), (1356087753,), (1356087780,), (1356088068,), (1356088084,), (1356088095,), (1356088140,), (1356088152,), (1356088446,), (1356088472,), (1356088508,), (1356088684,), (1356088734,), (1356088774,), (1356088812,), (1356088873,), (1356088931,), (1356089137,), (1356089143,), (1356089163,), (1356089165,), (1356089170,), (1356089176,), (1356089320,), (1356089326,), (1356089481,), (1356089501,), (1356089507,), (1356090138,), (1356090143,), (1356090190,), (1356090874,), (1356090941,), (1356090950,), (1356090972,), (1356091399,), (1356091303,), (1356091335,), (1356092102,), (1356092121,), (1356092158,), (1356092187,), (1356092236,), (1356092295,), (1356093058,), (1356093099,), (1356093164,), (1356093273,), (1356093976,), (1356093985,), (1356093989,), (1356093997,), (1356094001,), (1356094029,), (1356094275,), (1356094279,), (1356094281,), (1356094441,), (1356094443,), (1356094445,), (1356094447,), (1356094454,), (1356094496,), (1356094499,), (1356094501,), (1356094507,), (1356094564,), (1356094567,), (1356094570,), (1356094573,), (1356094578,), (1356095100,), (1356095155,), (1356095195,), (1356095806,), (1356095847,), (1356095911,), (1356096763,), (1356096848,), (1356096978,), (1356097086,), (1356097165,), (1356097748,), (1356097752,), (1356097757,), (1356097761,), (1356098027,), (1356098084,), (1356098141,), (1356098211,), (1356099216,), (1356099223,), (1356099256,), (1356099292,), (1356099322,), (1356099346,), (1356099760,), (1356099822,), (1356099873,), (1356099885,), (1356099888,), (1356100428,), (1356100263,), (1356100322,), (1356100762,), (1356100788,), (1356100802,), (1356101080,), (1356101110,), (1356101139,), (1356101170,), (1356101184,), (1356101501,), (1356102076,), (1356102102,), (1356102131,), (1356102210,), (1356102364,), (1356102848,), (1356102857,), (1356102865,), (1356102903,), (1356102999,), (1356103433,), (1356103456,), (1356103468,), (1356103843,), (1356103861,), (1356103864,), (1356103883,), (1356104213,), (1356104258,), (1356104319,), (1356104355,), (1356104507,), (1356104776,), (1356104804,), (1356104834,), (1356104862,), (1356104906,), (1356104987,), (1356104990,), (1356105011,), (1356105523,), (1356105551,), (1356105579,), (1356105606,), (1356105672,), (1356112126,), (1356108154,), (1356111030,), (1356112802,), (1356112837,), (1356112873,), (1356112906,), (1356113035,), (1356113063,), (1356113091,), (1356113352,), (1356113285,), (1356113321,), (1356113572,), (1356113584,), (1356113589,), (1356113593,), (1356113601,), (1356113812,), (1356113815,), (1356113818,), (1356113884,), (1356113889,), (1356113920,), (1356113955,), (1356113960,), (1356113962,), (1356113965,), (1356114011,), (1356114015,), (1356114062,), (1356114118,), (1356114121,), (1356114146,), (1356114156,), (1356114459,), (1356114487,), (1356114517,), (1356114552,), (1356114771,), (1356114803,), (1356114836,), (1356114864,), (1356114897,), (1356115432,), (1356115503,), (1356115853,), (1356115884,), (1356115916,), (1356115967,), (1356116281,), (1356116305,), (1356116322,), (1356116327,), (1356116333,), (1356116551,), (1356116581,), (1356116610,), (1356116637,), (1356117112,), (1356117116,), (1356117119,), (1356117121,), (1356117543,), (1356117622,), (1356117659,), (1356117913,), (1356117929,), (1356117933,), (1356117938,), (1356117944,), (1356117995,), (1356117969,), (1356117972,), (1356117991,), (1356118053,), (1356118083,), (1356118117,), (1356118140,), (1356118270,), (1356118280,), (1356118292,), (1356118830,), (1356118835,), (1356118906,), (1356118909,), (1356118911,), (1356118913,), (1356118967,), (1356118971,), (1356118974,), (1356118978,), (1356119042,), (1356119050,), (1356119055,), (1356119134,), (1356119138,), (1356119143,), (1356119171,), (1356119174,), (1356119202,), (1356119276,), (1356119279,), (1356119283,), (1356119332,), (1356119337,), (1356119340,), (1356119395,), (1356119399,), (1356119403,), (1356119406,), (1356127389,), (1356127356,), (1356127874,), (1356127914,), (1356127959,), (1356127995,), (1356128045,), (1356128351,), (1356128381,), (1356136692,), (1356137442,), (1356137921,), (1356137981,), (1356138034,), (1356138846,), (1356138606,), (1356138769,), (1356138790,), (1356138828,), (1356139153,), (1356139222,), (1356139286,), (1356139342,), (1356139380,), (1356139403,), (1356139630,), (1356139635,), (1356139639,), (1356139911,), (1356140003,), (1356140062,), (1356140148,), (1356140176,), (1356140475,), (1356140527,), (1356140555,), (1356140583,), (1356140623,), (1356140640,), (1356140832,), (1356140835,), (1356140838,), (1356140853,), (1356141028,), (1356141041,), (1356141121,), (1356141125,), (1356141128,), (1356141131,), (1356141296,), (1356141300,), (1356141305,), (1356141310,), (1356141314,), (1356141518,), (1356141553,), (1356141581,), (1356141608,), (1356141844,), (1356141849,), (1356141854,), (1356141858,), (1356142207,), (1356142259,), (1356142316,), (1356142373,), (1356142424,), (1356142442,), (1356142689,), (1356142727,), (1356142757,), (1356142837,), (1356143030,), (1356143059,), (1356143087,), (1356143104,), (1356143110,), (1356143114,), (1356143138,), (1356143144,), (1356143147,), (1356143148,), (1356143152,), (1356143399,), (1356143307,), (1356143338,), (1356143368,), (1356143833,), (1356143863,), (1356143890,), (1356143916,), (1356143945,), (1356144017,), (1356144276,), (1356144333,), (1356144387,), (1356144436,), (1356144491,), (1356144598,), (1356145607,), (1356145675,), (1356145727,), (1356145787,), (1356145853,), (1356146736,), (1356146777,), (1356146815,), (1356146854,), (1356147483,), (1356147578,), (1356147662,), (1356147734,), (1356147814,), (1356148423,), (1356148499,), (1356148575,), (1356148649,), (1356149276,), (1356149351,), (1356149433,), (1356149510,), (1356150007,), (1356150011,), (1356150018,), (1356150022,), (1356150420,), (1356150474,), (1356150503,), (1356150533,), (1356150737,), (1356150752,), (1356150777,), (1356150787,), (1356150802,), (1356151106,), (1356151132,), (1356151314,), (1356151339,), (1356151365,), (1356151727,), (1356151755,), (1356151784,), (1356151811,), (1356151841,), (1356152134,), (1356152163,), (1356152187,), (1356153239,), (1356152730,), (1356152839,), (1356153032,), (1356153082,), (1356153176,), (1356153726,), (1356154013,), (1356154068,), (1356154134,), (1356154821,), (1356154874,), (1356154955,), (1356155011,), (1356155041,), (1356155070,), (1356155342,), (1356155375,), (1356155403,), (1356155435,), (1356155493,), (1356155976,), (1356156008,), (1356156037,), (1356156066,), (1356156129,), (1356156145,), (1356156363,), (1356156414,), (1356156455,), (1356156481,), (1356156509,), (1356156735,), (1356156738,), (1356156745,), (1356156749,), (1356157212,), (1356157259,), (1356157315,), (1356157358,), (1356157403,), (1356157451,), (1356157738,), (1356157769,), (1356157797,), (1356157825,), (1356157838,), (1356157936,), (1356157966,), (1356158176,), (1356158357,), (1356158360,), (1356158363,), (1356158366,), (1356158562,), (1356158587,), (1356158618,), (1356158649,), (1356158709,), (1356158762,), (1356159146,), (1356159187,), (1356159223,), (1356159895,), (1356159936,), (1356159970,), (1356159998,), (1356160271,), (1356160223,), (1356160232,), (1356160235,), (1356160238,), (1356160357,), (1356160361,), (1356160408,), (1356160411,), (1356160414,), (1356160416,), (1356160420,), (1356160426,), (1356160451,), (1356160455,), (1356160459,), (1356160463,), (1356160467,), (1356160472,), (1356160674,), (1356160704,), (1356161321,), (1356161368,), (1356161396,), (1356161427,), (1356161471,), (1356161829,), (1356161856,), (1356161882,), (1356161914,), (1356161944,), (1356161971,), (1356162280,), (1356162307,), (1356162334,), (1356162362,), (1356162732,), (1356162758,), (1356162787,), (1356162835,), (1356162886,), (1356163349,), (1356163416,), (1356163464,), (1356163495,), (1356163527,), (1356163560,), (1356163826,), (1356163828,), (1356163839,), (1356163867,), (1356163900,), (1356163928,), (1356164182,), (1356164236,), (1356164287,), (1356164337,), (1356164754,), (1356164920,), (1356164986,), (1356165069,), (1356165102,), (1356165497,), (1356165499,), (1356165507,), (1356165534,), (1356165555,), (1356165645,), (1356165648,), (1356165650,), (1356165705,), (1356165693,), (1356165695,), (1356165698,), (1356165701,), (1356165767,), (1356165797,), (1356165835,), (1356165886,), (1356165933,), (1356166266,), (1356166292,), (1356166347,), (1356166399,), (1356166576,), (1356166597,), (1356166623,), (1356166700,), (1356166755,), (1356166758,), (1356166759,), (1356166760,), (1356166762,), (1356166765,), (1356166836,), (1356166838,), (1356166841,), (1356166846,), (1356166850,), (1356167780,), (1356167948,), (1356167950,), (1356167953,), (1356167988,), (1356167990,), (1356167992,), (1356168002,), (1356168826,), (1356168880,), (1356168907,), (1356168932,), (1356168959,), (1356168987,), (1356169185,), (1356169211,), (1356169238,), (1356169853,), (1356169917,), (1356170084,), (1356170283,), (1356170429,), (1356170474,), (1356170850,), (1356170908,), (1356171012,), (1356171073,), (1356171103,), (1356171217,), (1356171391,), (1356171396,), (1356171400,), (1356171434,), (1356171438,), (1356171442,), (1356171444,), (1356171450,), (1356171453,), (1356171730,), (1356171755,), (1356171780,), (1356171811,), (1356171841,), (1356172084,), (1356172004,), (1356172021,), (1356172050,), (1356172210,), (1356172213,), (1356172217,), (1356172221,), (1356172226,), (1356172230,), (1356172285,), (1356172388,), (1356173271,), (1356173341,), (1356173345,), (1356173348,), (1356173374,), (1356173402,), (1356173428,), (1356173683,), (1356173712,), (1356174024,), (1356174027,), (1356174030,), (1356174035,), (1356174038,), (1356174042,), (1356174070,), (1356174073,), (1356174077,), (1356174081,), (1356174085,), (1356174223,), (1356174243,), (1356174254,), (1356174264,), (1356174267,), (1356174446,), (1356174491,), (1356174520,), (1356174553,), (1356174645,), (1356174646,), (1356174648,), (1356174683,), (1356174686,), (1356174689,), (1356174691,), (1356174695,), (1356174699,), (1356174721,), (1356174724,), (1356174727,), (1356174732,), (1356174735,), (1356174964,), (1356174894,), (1356175495,), (1356175524,), (1356175553,), (1356175609,), (1356175776,), (1356175778,), (1356175781,), (1356175785,), (1356175789,), (1356176208,), (1356176263,), (1356176318,), (1356176374,), (1356176418,), (1356176839,), (1356176867,), (1356176897,), (1356176901,), (1356177349,), (1356177402,), (1356177441,), (1356177478,), (1356177507,), (1356177642,), (1356177644,), (1356177647,), (1356177650,), (1356177653,), (1356177871,), (1356177899,), (1356177911,), (1356177920,), (1356177924,), (1356178033,), (1356178037,), (1356178038,), (1356178281,), (1356178309,), (1356178337,), (1356178365,), (1356178392,), (1356178961,), (1356178987,), (1356179040,), (1356179089,), (1356179138,), (1356179205,), (1356180009,), (1356180070,), (1356180123,), (1356180194,), (1356181893,), (1356181898,), (1356181906,), (1356182525,), (1356182372,), (1356182458,), (1356183208,), (1356183237,), (1356183263,), (1356183294,), (1356183339,), (1356183695,), (1356183722,), (1356183750,), (1356183779,), (1356183808,), (1356183832,), (1356183868,), (1356183878,), (1356183905,), (1356183931,), (1356183958,), (1356184391,), (1356184451,), (1356184507,), (1356184813,), (1356184848,), (1356184878,), (1356184886,), (1356184890,), (1356184895,), (1356184936,), (1356184963,), (1356184991,), (1356185022,), (1356185053,), (1356185081,), (1356185223,), (1356185226,), (1356185228,), (1356185230,), (1356185398,), (1356185427,), (1356185454,), (1356185481,), (1356185823,), (1356185860,), (1356185862,), (1356185880,), (1356185911,), (1356185942,), (1356186327,), (1356186552,), (1356186667,), (1356186752,), (1356186826,), (1356186897,), (1356187216,), (1356187243,), (1356187270,), (1356188378,), (1356188438,), (1356188495,), (1356188566,), (1356188621,), (1356189110,), (1356189113,), (1356189122,), (1356189162,), (1356189216,), (1356189485,), (1356189505,), (1356189520,), (1356189542,), (1356190045,), (1356189869,), (1356190015,), (1356190308,), (1356190326,), (1356190408,), (1356190459,), (1356190515,), (1356190572,), (1356190809,), (1356190858,), (1356190899,), (1356190903,), (1356191394,), (1356191481,), (1356191589,), (1356191709,), (1356191840,), (1356192592,), (1356192637,), (1356193210,), (1356193239,), (1356193260,), (1356193271,), (1356193284,), (1356193764,), (1356193814,), (1356193851,), (1356193908,), (1356193939,), (1356193970,), (1356194192,), (1356194215,), (1356194225,), (1356194263,), (1356194316,), (1356194658,), (1356194662,), (1356194666,), (1356194732,), (1356194736,), (1356194792,), (1356194817,), (1356194827,), (1356194903,), (1356194932,), (1356194939,), (1356194943,), (1356195408,), (1356195420,), (1356195429,), (1356195432,), (1356195461,), (1356195685,), (1356195706,), (1356195710,), (1356195713,), (1356195717,), (1356195866,), (1356195871,), (1356195874,), (1356195876,), (1356195879,), (1356195909,), (1356195914,), (1356196003,), (1356196010,), (1356196018,), (1356196026,), (1356196085,), (1356196064,), (1356196068,), (1356196071,), (1356196075,), (1356196082,), (1356196137,), (1356196142,), (1356196145,), (1356196683,), (1356196740,), (1356196818,), (1356196907,), (1356197003,), (1356197693,), (1356197721,), (1356197749,), (1356197779,), (1356197809,), (1356197874,), (1356197900,), (1356197934,), (1356197986,), (1356198417,), (1356198450,), (1356198478,), (1356198503,), (1356198558,), (1356198609,), (1356198878,), (1356198905,), (1356198925,), (1356198950,), (1356199014,), (1356199091,), (1356199367,), (1356199370,), (1356199376,), (1356199436,), (1356199506,), (1356199979,), (1356200009,), (1356200045,), (1356200362,), (1356200368,), (1356200373,), (1356200380,), (1356200389,), (1356200476,), (1356200484,), (1356205000,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'05052025': {'nb_upload': 17, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22675633]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1356051184, 1356051130, 1356051124, 1356051119, 1356051112, 1356050482, 1356050436, 1356050404, 1356049997, 1356049953, 1356049923, 1356049859, 1356049282, 1356049235, 1356049190, 1356049129, 1356045467] map_info['map_portfolio_photo'] : {22675633: [1356051184, 1356051130, 1356051124, 1356051119, 1356051112, 1356050482, 1356050436, 1356050404, 1356049997, 1356049953, 1356049923, 1356049859, 1356049282, 1356049235, 1356049190, 1356049129, 1356045467]} final : True mtd_id 4302 list_pids : [1356051184, 1356051130, 1356051124, 1356051119, 1356051112, 1356050482, 1356050436, 1356050404, 1356049997, 1356049953, 1356049923, 1356049859, 1356049282, 1356049235, 1356049190, 1356049129, 1356045467] Looping around the photos to save general results len do output : 1 /22675633Didn'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, '2795899') ('4302', '22675633', '1356051184', None, None, None, None, None, '2795899') ('4302', None, None, None, None, None, None, None, '2795899') ('4302', '22675633', '1356051130', None, None, None, None, None, '2795899') ('4302', None, None, None, None, None, None, None, '2795899') ('4302', '22675633', '1356051124', None, None, None, None, None, '2795899') ('4302', None, None, None, None, None, None, None, '2795899') ('4302', '22675633', '1356051119', None, None, None, None, None, '2795899') ('4302', None, None, None, None, None, None, None, '2795899') ('4302', '22675633', '1356051112', None, None, None, None, None, '2795899') ('4302', None, None, None, None, None, None, None, '2795899') ('4302', '22675633', '1356050482', None, None, None, None, None, '2795899') ('4302', None, None, None, None, None, None, None, '2795899') ('4302', '22675633', '1356050436', None, None, None, None, None, '2795899') ('4302', None, None, None, None, None, None, None, '2795899') ('4302', '22675633', '1356050404', None, None, None, None, None, '2795899') ('4302', None, None, None, None, None, None, None, '2795899') ('4302', '22675633', '1356049997', None, None, None, None, None, '2795899') ('4302', None, None, None, None, None, None, None, '2795899') ('4302', '22675633', '1356049953', None, None, None, None, None, '2795899') ('4302', None, None, None, None, None, None, None, '2795899') ('4302', '22675633', '1356049923', None, None, None, None, None, '2795899') ('4302', None, None, None, None, None, None, None, '2795899') ('4302', '22675633', '1356049859', None, None, None, None, None, '2795899') ('4302', None, None, None, None, None, None, None, '2795899') ('4302', '22675633', '1356049282', None, None, None, None, None, '2795899') ('4302', None, None, None, None, None, None, None, '2795899') ('4302', '22675633', '1356049235', None, None, None, None, None, '2795899') ('4302', None, None, None, None, None, None, None, '2795899') ('4302', '22675633', '1356049190', None, None, None, None, None, '2795899') ('4302', None, None, None, None, None, None, None, '2795899') ('4302', '22675633', '1356049129', None, None, None, None, None, '2795899') ('4302', None, None, None, None, None, None, None, '2795899') ('4302', '22675633', '1356045467', None, None, None, None, None, '2795899') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 18 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, '22675633', 'None', None, None, None, None, '2795899'), ('4302', '22675633', '1356051184', None, None, None, None, None, '2795899'), ('4302', '22675633', '1356051130', None, None, None, None, None, '2795899'), ('4302', '22675633', '1356051124', None, None, None, None, None, '2795899'), ('4302', '22675633', '1356051119', None, None, None, None, None, '2795899'), ('4302', '22675633', '1356051112', None, None, None, None, None, '2795899'), ('4302', '22675633', '1356050482', None, None, None, None, None, '2795899'), ('4302', '22675633', '1356050436', None, None, None, None, None, '2795899'), ('4302', '22675633', '1356050404', None, None, None, None, None, '2795899'), ('4302', '22675633', '1356049997', None, None, None, None, None, '2795899'), ('4302', '22675633', '1356049953', None, None, None, None, None, '2795899'), ('4302', '22675633', '1356049923', None, None, None, None, None, '2795899'), ('4302', '22675633', '1356049859', None, None, None, None, None, '2795899'), ('4302', '22675633', '1356049282', None, None, None, None, None, '2795899'), ('4302', '22675633', '1356049235', None, None, None, None, None, '2795899'), ('4302', '22675633', '1356049190', None, None, None, None, None, '2795899'), ('4302', '22675633', '1356049129', None, None, None, None, None, '2795899'), ('4302', '22675633', '1356045467', None, None, None, None, None, '2795899')] time used for this insertion : 0.017202138900756836 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.7064783573150635 time spend to save output : 0.017513036727905273 total time spend for step 5 : 3.7239913940429688 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 (2795899) 2.75user 2.18system 0:13.03elapsed 37%CPU (0avgtext+0avgdata 160628maxresident)k 352inputs+10608outputs (3major+79356minor)pagefaults 0swaps