python /home/admin/mtr/script_for_cron.py -j datou_current3 -m 20 -a ' -a 4302 -v ' -s datou_current_4302 -M 0 -S 0 -U 95,95,120 import MySQLdb succeeded Import error (python version) ['/Users/moilerat/Documents/Fotonower/install/caffe/distribute/python', '/home/admin/workarea/git/Velours/python/prod', '/home/admin/workarea/install/caffe_cuda8_python3/python', '/home/admin/workarea/install/darknet', '/home/admin/workarea/git/Velours/python', '/home/admin/workarea/install/caffe_frcnn_python3/py-faster-rcnn/caffe-fast-rcnn/python', '/home/admin/mtr/.credentials', '/home/admin/workarea/install/caffe/python', '/home/admin/workarea/install/caffe_frcnn/py-faster-rcnn/tools', '/home/admin/workarea/git/fotonowerpip', '/home/admin/workarea/install/segment-anything', '/home/admin/workarea/git/pyfvs', '/usr/lib/python38.zip', '/usr/lib/python3.8', '/usr/lib/python3.8/lib-dynload', '/home/admin/.local/lib/python3.8/site-packages', '/usr/local/lib/python3.8/dist-packages', '/usr/lib/python3/dist-packages'] Namespace(auto=False, cert_args='/home/fotonower/https/cert.pem', contextDataFile='', custom_size=0, database='', datou_id='4302', datou_id_excluded='', fifo=False, host='', is_cpu_mode=False, job='batch_current', json_args='', key_args='/home/fotonower/https/vision.fotonower.com.key', limit=1000, list_photo_ids='', local='', mtr_current_id=0, mtr_portfolio_ids='', nb_thread=1, no_current=False, offset=0, only_client=False, output_file='', password='', port=5100, rand=0, save=2, use_client=False, user_id=440, username='', verbose=True) process id : 2328047 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 (2595240) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2595240) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20594332 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2595240'] with mtr_portfolio_ids : ['20594332'] and first list_photo_ids : [] new path : /proc/2328047/ Name: python3 Umask: 0002 State: R (running) Tgid: 2328047 Ngid: 0 Pid: 2328047 PPid: 2328045 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 2328047 NSpid: 2328047 NSpgid: 2327149 NSsid: 2327149 VmPeak: 1106928 kB VmSize: 1106928 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 100592 kB VmRSS: 100592 kB RssAnon: 59756 kB RssFile: 40836 kB RssShmem: 0 kB VmData: 865680 kB VmStk: 132 kB VmExe: 2640 kB VmLib: 130468 kB VmPTE: 576 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 4/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: 45 nonvoluntary_ctxt_switches: 145 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '2328047', 'Ngid': '0', 'Pid': '2328047', 'PPid': '2328045', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '2328047', 'NSpid': '2328047', 'NSpgid': '2327149', 'NSsid': '2327149', 'VmPeak': '1106928 kB', 'VmSize': '1106928 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '100592 kB', 'VmRSS': '100592 kB', 'RssAnon': '59756 kB', 'RssFile': '40836 kB', 'RssShmem': '0 kB', 'VmData': '865680 kB', 'VmStk': '132 kB', 'VmExe': '2640 kB', 'VmLib': '130468 kB', 'VmPTE': '576 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '4/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': '45', 'nonvoluntary_ctxt_switches': '145'} ('datou_batch_current', '2328047', '1106928', '0', '1106928', '865680', '100592', b'', 'marlene', '2595240') 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 (20594332) 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 (2595240 ) ) 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 (20594332) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1338112395, 'portfolio_id': 20594332}, {'photo_id': 1338112328, 'portfolio_id': 20594332}, {'photo_id': 1338112311, 'portfolio_id': 20594332}, {'photo_id': 1338112309, 'portfolio_id': 20594332}, {'photo_id': 1338112273, 'portfolio_id': 20594332}, {'photo_id': 1338112268, 'portfolio_id': 20594332}, {'photo_id': 1338112262, 'portfolio_id': 20594332}, {'photo_id': 1338112240, 'portfolio_id': 20594332}, {'photo_id': 1338112228, 'portfolio_id': 20594332}, {'photo_id': 1338112226, 'portfolio_id': 20594332}, {'photo_id': 1338112213, 'portfolio_id': 20594332}, {'photo_id': 1338112210, 'portfolio_id': 20594332}, {'photo_id': 1338112208, 'portfolio_id': 20594332}, {'photo_id': 1338112197, 'portfolio_id': 20594332}, {'photo_id': 1338112193, 'portfolio_id': 20594332}, {'photo_id': 1338112185, 'portfolio_id': 20594332}, {'photo_id': 1338112183, 'portfolio_id': 20594332}, {'photo_id': 1338112181, 'portfolio_id': 20594332}, {'photo_id': 1338112179, 'portfolio_id': 20594332}, {'photo_id': 1338112177, 'portfolio_id': 20594332}, {'photo_id': 1338112175, 'portfolio_id': 20594332}, {'photo_id': 1338112166, 'portfolio_id': 20594332}, {'photo_id': 1338112160, 'portfolio_id': 20594332}, {'photo_id': 1338112158, 'portfolio_id': 20594332}, {'photo_id': 1338112156, 'portfolio_id': 20594332}, {'photo_id': 1338112143, 'portfolio_id': 20594332}] map_portfolio_id_photo_id: {20594332: [1338112395, 1338112328, 1338112311, 1338112309, 1338112273, 1338112268, 1338112262, 1338112240, 1338112228, 1338112226, 1338112213, 1338112210, 1338112208, 1338112197, 1338112193, 1338112185, 1338112183, 1338112181, 1338112179, 1338112177, 1338112175, 1338112166, 1338112160, 1338112158, 1338112156, 1338112143]} ##### 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.028443098068237305 #### 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 Feb 18 05:35:29 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 (20594332) 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 : 20594332 get user id for portfolio 20594332 get sub ptf for main ptf 20594332, type 3726 and hashtags ['environnement', 'plastique', 'kraft', 'mal_croppe', 'flou', 'Carton_brun', 'metal', 'Carton_gris', 'cartonnette', 'papier', 'autre_refus', 'Teint_Dans_La_Masse'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20594332 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','plastique','kraft','mal_croppe','flou','Carton_brun','metal','Carton_gris','cartonnette','papier','autre_refus','Teint_Dans_La_Masse')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20594332 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','plastique','kraft','mal_croppe','flou','Carton_brun','metal','Carton_gris','cartonnette','papier','autre_refus','Teint_Dans_La_Masse')) AND mptpi.`min_score`=0.5 To do returned map {'mal_croppe': {'main_port_id': 20594332, 'sub_port_id': 20594334, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13252732, 'last_updated_at': datetime.datetime(2025, 2, 17, 5, 48, 57), 'last_updated_at_desc': datetime.datetime(2025, 2, 17, 5, 48, 57), 'last_updated_at_asc': datetime.datetime(2025, 2, 17, 5, 36, 58)}, 'kraft': {'main_port_id': 20594332, 'sub_port_id': 20594335, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13252733, 'last_updated_at': datetime.datetime(2025, 2, 17, 5, 48, 57), 'last_updated_at_desc': datetime.datetime(2025, 2, 17, 5, 48, 57), 'last_updated_at_asc': datetime.datetime(2025, 2, 17, 5, 36, 58)}, 'cartonnette': {'main_port_id': 20594332, 'sub_port_id': 20594336, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13252734, 'last_updated_at': datetime.datetime(2025, 2, 17, 5, 48, 57), 'last_updated_at_desc': datetime.datetime(2025, 2, 17, 5, 48, 57), 'last_updated_at_asc': datetime.datetime(2025, 2, 17, 5, 36, 58)}, 'autre_refus': {'main_port_id': 20594332, 'sub_port_id': 20594337, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13252735, 'last_updated_at': datetime.datetime(2025, 2, 17, 5, 48, 57), 'last_updated_at_desc': datetime.datetime(2025, 2, 17, 5, 48, 57), 'last_updated_at_asc': datetime.datetime(2025, 2, 17, 5, 36, 58)}, 'metal': {'main_port_id': 20594332, 'sub_port_id': 20594338, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13252736, 'last_updated_at': datetime.datetime(2025, 2, 17, 5, 48, 57), 'last_updated_at_desc': datetime.datetime(2025, 2, 17, 5, 48, 57), 'last_updated_at_asc': datetime.datetime(2025, 2, 17, 5, 36, 58)}, 'Carton_brun': {'main_port_id': 20594332, 'sub_port_id': 20594339, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13252737, 'last_updated_at': datetime.datetime(2025, 2, 17, 5, 48, 57), 'last_updated_at_desc': datetime.datetime(2025, 2, 17, 5, 48, 57), 'last_updated_at_asc': datetime.datetime(2025, 2, 17, 5, 36, 58)}, 'flou': {'main_port_id': 20594332, 'sub_port_id': 20594340, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13252738, 'last_updated_at': datetime.datetime(2025, 2, 17, 5, 48, 57), 'last_updated_at_desc': datetime.datetime(2025, 2, 17, 5, 48, 57), 'last_updated_at_asc': datetime.datetime(2025, 2, 17, 5, 36, 58)}, 'Carton_gris': {'main_port_id': 20594332, 'sub_port_id': 20594341, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13252739, 'last_updated_at': datetime.datetime(2025, 2, 17, 5, 48, 57), 'last_updated_at_desc': datetime.datetime(2025, 2, 17, 5, 48, 57), 'last_updated_at_asc': datetime.datetime(2025, 2, 17, 5, 36, 58)}, 'papier': {'main_port_id': 20594332, 'sub_port_id': 20594342, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13252740, 'last_updated_at': datetime.datetime(2025, 2, 17, 5, 48, 57), 'last_updated_at_desc': datetime.datetime(2025, 2, 17, 5, 48, 57), 'last_updated_at_asc': datetime.datetime(2025, 2, 17, 5, 36, 58)}, 'plastique': {'main_port_id': 20594332, 'sub_port_id': 20594343, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13252741, 'last_updated_at': datetime.datetime(2025, 2, 17, 5, 48, 57), 'last_updated_at_desc': datetime.datetime(2025, 2, 17, 5, 48, 57), 'last_updated_at_asc': datetime.datetime(2025, 2, 17, 5, 36, 58)}, 'Teint_Dans_La_Masse': {'main_port_id': 20594332, 'sub_port_id': 20594344, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13252742, 'last_updated_at': datetime.datetime(2025, 2, 17, 5, 48, 57), 'last_updated_at_desc': datetime.datetime(2025, 2, 17, 5, 48, 57), 'last_updated_at_asc': datetime.datetime(2025, 2, 17, 5, 36, 58)}, 'environnement': {'main_port_id': 20594332, 'sub_port_id': 20594345, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13252743, 'last_updated_at': datetime.datetime(2025, 2, 17, 5, 48, 57), 'last_updated_at_desc': datetime.datetime(2025, 2, 17, 5, 48, 57), 'last_updated_at_asc': datetime.datetime(2025, 2, 17, 5, 36, 58)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20594334 , 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=20594332 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 (20594334) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20594332) result : ((1338112143,), (1338112156,), (1338112158,), (1338112160,), (1338112166,), (1338112175,), (1338112177,), (1338112179,), (1338112181,), (1338112183,), (1338112185,), (1338112193,), (1338112197,), (1338112208,), (1338112210,), (1338112213,), (1338112226,), (1338112228,), (1338112240,), (1338112262,), (1338112268,), (1338112273,), (1338112309,), (1338112311,), (1338112328,), (1338112395,)) 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 20594335 , 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=20594332 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 (20594335) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20594332) result : ((1338112143,), (1338112156,), (1338112158,), (1338112160,), (1338112166,), (1338112175,), (1338112177,), (1338112179,), (1338112181,), (1338112183,), (1338112185,), (1338112193,), (1338112197,), (1338112208,), (1338112210,), (1338112213,), (1338112226,), (1338112228,), (1338112240,), (1338112262,), (1338112268,), (1338112273,), (1338112309,), (1338112311,), (1338112328,), (1338112395,)) 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 20594336 , 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=20594332 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 (20594336) result : ((1338112199,), (1338112269,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20594332) result : ((1338112143,), (1338112156,), (1338112158,), (1338112160,), (1338112166,), (1338112175,), (1338112177,), (1338112179,), (1338112181,), (1338112183,), (1338112185,), (1338112193,), (1338112197,), (1338112208,), (1338112210,), (1338112213,), (1338112226,), (1338112228,), (1338112240,), (1338112262,), (1338112268,), (1338112273,), (1338112309,), (1338112311,), (1338112328,), (1338112395,)) 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 20594337 , 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=20594332 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 (20594337) result : ((1338112198,), (1338112287,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20594332) result : ((1338112143,), (1338112156,), (1338112158,), (1338112160,), (1338112166,), (1338112175,), (1338112177,), (1338112179,), (1338112181,), (1338112183,), (1338112185,), (1338112193,), (1338112197,), (1338112208,), (1338112210,), (1338112213,), (1338112226,), (1338112228,), (1338112240,), (1338112262,), (1338112268,), (1338112273,), (1338112309,), (1338112311,), (1338112328,), (1338112395,)) 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 20594338 , 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=20594332 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 (20594338) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20594332) result : ((1338112143,), (1338112156,), (1338112158,), (1338112160,), (1338112166,), (1338112175,), (1338112177,), (1338112179,), (1338112181,), (1338112183,), (1338112185,), (1338112193,), (1338112197,), (1338112208,), (1338112210,), (1338112213,), (1338112226,), (1338112228,), (1338112240,), (1338112262,), (1338112268,), (1338112273,), (1338112309,), (1338112311,), (1338112328,), (1338112395,)) 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 20594339 , 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=20594332 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 (20594339) result : ((1338112201,), (1338112202,), (1338112203,), (1338112204,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20594332) result : ((1338112143,), (1338112156,), (1338112158,), (1338112160,), (1338112166,), (1338112175,), (1338112177,), (1338112179,), (1338112181,), (1338112183,), (1338112185,), (1338112193,), (1338112197,), (1338112208,), (1338112210,), (1338112213,), (1338112226,), (1338112228,), (1338112240,), (1338112262,), (1338112268,), (1338112273,), (1338112309,), (1338112311,), (1338112328,), (1338112395,)) 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 20594340 , 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=20594332 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 (20594340) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20594332) result : ((1338112143,), (1338112156,), (1338112158,), (1338112160,), (1338112166,), (1338112175,), (1338112177,), (1338112179,), (1338112181,), (1338112183,), (1338112185,), (1338112193,), (1338112197,), (1338112208,), (1338112210,), (1338112213,), (1338112226,), (1338112228,), (1338112240,), (1338112262,), (1338112268,), (1338112273,), (1338112309,), (1338112311,), (1338112328,), (1338112395,)) 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 20594341 , 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=20594332 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 (20594341) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20594332) result : ((1338112143,), (1338112156,), (1338112158,), (1338112160,), (1338112166,), (1338112175,), (1338112177,), (1338112179,), (1338112181,), (1338112183,), (1338112185,), (1338112193,), (1338112197,), (1338112208,), (1338112210,), (1338112213,), (1338112226,), (1338112228,), (1338112240,), (1338112262,), (1338112268,), (1338112273,), (1338112309,), (1338112311,), (1338112328,), (1338112395,)) 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 20594342 , 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=20594332 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 (20594342) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20594332) result : ((1338112143,), (1338112156,), (1338112158,), (1338112160,), (1338112166,), (1338112175,), (1338112177,), (1338112179,), (1338112181,), (1338112183,), (1338112185,), (1338112193,), (1338112197,), (1338112208,), (1338112210,), (1338112213,), (1338112226,), (1338112228,), (1338112240,), (1338112262,), (1338112268,), (1338112273,), (1338112309,), (1338112311,), (1338112328,), (1338112395,)) 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 20594343 , 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=20594332 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 (20594343) result : ((1338112205,), (1338112206,), (1338112207,), (1338112251,), (1338112252,), (1338112253,), (1338112270,), (1338112272,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20594332) result : ((1338112143,), (1338112156,), (1338112158,), (1338112160,), (1338112166,), (1338112175,), (1338112177,), (1338112179,), (1338112181,), (1338112183,), (1338112185,), (1338112193,), (1338112197,), (1338112208,), (1338112210,), (1338112213,), (1338112226,), (1338112228,), (1338112240,), (1338112262,), (1338112268,), (1338112273,), (1338112309,), (1338112311,), (1338112328,), (1338112395,)) 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 20594344 , 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=20594332 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 (20594344) result : ((1338112195,), (1338112196,), (1338112246,), (1338112247,), (1338112248,), (1338112249,), (1338112250,), (1338112255,), (1338112264,), (1338112265,), (1338112266,), (1338112267,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20594332) result : ((1338112143,), (1338112156,), (1338112158,), (1338112160,), (1338112166,), (1338112175,), (1338112177,), (1338112179,), (1338112181,), (1338112183,), (1338112185,), (1338112193,), (1338112197,), (1338112208,), (1338112210,), (1338112213,), (1338112226,), (1338112228,), (1338112240,), (1338112262,), (1338112268,), (1338112273,), (1338112309,), (1338112311,), (1338112328,), (1338112395,)) 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 20594345 , 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=20594332 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 (20594345) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20594332) result : ((1338112143,), (1338112156,), (1338112158,), (1338112160,), (1338112166,), (1338112175,), (1338112177,), (1338112179,), (1338112181,), (1338112183,), (1338112185,), (1338112193,), (1338112197,), (1338112208,), (1338112210,), (1338112213,), (1338112226,), (1338112228,), (1338112240,), (1338112262,), (1338112268,), (1338112273,), (1338112309,), (1338112311,), (1338112328,), (1338112395,)) 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`=20594332 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','plastique','kraft','mal_croppe','flou','Carton_brun','metal','Carton_gris','cartonnette','papier','autre_refus','Teint_Dans_La_Masse')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20594332 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','plastique','kraft','mal_croppe','flou','Carton_brun','metal','Carton_gris','cartonnette','papier','autre_refus','Teint_Dans_La_Masse')) AND mptpi.`min_score`=0.5 To do returned map {'mal_croppe': {'main_port_id': 20594332, 'sub_port_id': 20594346, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13252744, 'last_updated_at': datetime.datetime(2025, 2, 17, 5, 36, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 17, 5, 36, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 17, 5, 36, 59)}, 'kraft': {'main_port_id': 20594332, 'sub_port_id': 20594347, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13252745, 'last_updated_at': datetime.datetime(2025, 2, 17, 5, 36, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 17, 5, 36, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 17, 5, 36, 59)}, 'cartonnette': {'main_port_id': 20594332, 'sub_port_id': 20594348, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13252746, 'last_updated_at': datetime.datetime(2025, 2, 17, 5, 36, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 17, 5, 36, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 17, 5, 36, 59)}, 'autre_refus': {'main_port_id': 20594332, 'sub_port_id': 20594349, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13252747, 'last_updated_at': datetime.datetime(2025, 2, 17, 5, 36, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 17, 5, 36, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 17, 5, 36, 59)}, 'metal': {'main_port_id': 20594332, 'sub_port_id': 20594350, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13252748, 'last_updated_at': datetime.datetime(2025, 2, 17, 5, 36, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 17, 5, 36, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 17, 5, 36, 59)}, 'Carton_brun': {'main_port_id': 20594332, 'sub_port_id': 20594351, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13252749, 'last_updated_at': datetime.datetime(2025, 2, 17, 5, 36, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 17, 5, 36, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 17, 5, 36, 59)}, 'flou': {'main_port_id': 20594332, 'sub_port_id': 20594352, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13252750, 'last_updated_at': datetime.datetime(2025, 2, 17, 5, 36, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 17, 5, 36, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 17, 5, 36, 59)}, 'Carton_gris': {'main_port_id': 20594332, 'sub_port_id': 20594353, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13252751, 'last_updated_at': datetime.datetime(2025, 2, 17, 5, 36, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 17, 5, 36, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 17, 5, 36, 59)}, 'papier': {'main_port_id': 20594332, 'sub_port_id': 20594354, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13252752, 'last_updated_at': datetime.datetime(2025, 2, 17, 5, 36, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 17, 5, 36, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 17, 5, 36, 59)}, 'plastique': {'main_port_id': 20594332, 'sub_port_id': 20594355, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13252753, 'last_updated_at': datetime.datetime(2025, 2, 17, 5, 36, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 17, 5, 36, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 17, 5, 36, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 20594332, 'sub_port_id': 20594356, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13252754, 'last_updated_at': datetime.datetime(2025, 2, 17, 5, 36, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 17, 5, 36, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 17, 5, 36, 59)}, 'environnement': {'main_port_id': 20594332, 'sub_port_id': 20594357, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13252755, 'last_updated_at': datetime.datetime(2025, 2, 17, 5, 48, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 17, 5, 48, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 17, 5, 36, 59)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20594346,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20594334 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20594347,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20594335 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20594348,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20594336 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20594349,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20594337 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20594350,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20594338 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20594351,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20594339 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20594352,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20594340 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20594353,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20594341 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20594354,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20594342 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20594355,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20594343 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20594356,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20594344 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20594357,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20594345 lien utilise dans velours : https://www.fotonower.com/velours/20594346,20594347,20594348,20594349,20594350,20594351,20594352,20594353,20594354,20594355,20594356,20594357?tags=mal_croppe,kraft,cartonnette,autre_refus,metal,Carton_brun,flou,Carton_gris,papier,plastique,Teint_Dans_La_Masse,environnement After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20594332]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1338112395, 1338112328, 1338112311, 1338112309, 1338112273, 1338112268, 1338112262, 1338112240, 1338112228, 1338112226, 1338112213, 1338112210, 1338112208, 1338112197, 1338112193, 1338112185, 1338112183, 1338112181, 1338112179, 1338112177, 1338112175, 1338112166, 1338112160, 1338112158, 1338112156, 1338112143] map_info['map_portfolio_photo'] : {20594332: [1338112395, 1338112328, 1338112311, 1338112309, 1338112273, 1338112268, 1338112262, 1338112240, 1338112228, 1338112226, 1338112213, 1338112210, 1338112208, 1338112197, 1338112193, 1338112185, 1338112183, 1338112181, 1338112179, 1338112177, 1338112175, 1338112166, 1338112160, 1338112158, 1338112156, 1338112143]} final : False mtd_id 4302 list_pids : [1338112395, 1338112328, 1338112311, 1338112309, 1338112273, 1338112268, 1338112262, 1338112240, 1338112228, 1338112226, 1338112213, 1338112210, 1338112208, 1338112197, 1338112193, 1338112185, 1338112183, 1338112181, 1338112179, 1338112177, 1338112175, 1338112166, 1338112160, 1338112158, 1338112156, 1338112143] Looping around the photos to save general results len do output : 1 /20594332. 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, '2595240') ('4302', '20594332', '1338112395', None, None, None, None, None, '2595240') ('4302', None, None, None, None, None, None, None, '2595240') ('4302', '20594332', '1338112328', None, None, None, None, None, '2595240') ('4302', None, None, None, None, None, None, None, '2595240') ('4302', '20594332', '1338112311', None, None, None, None, None, '2595240') ('4302', None, None, None, None, None, None, None, '2595240') ('4302', '20594332', '1338112309', None, None, None, None, None, '2595240') ('4302', None, None, None, None, None, None, None, '2595240') ('4302', '20594332', '1338112273', None, None, None, None, None, '2595240') ('4302', None, None, None, None, None, None, None, '2595240') ('4302', '20594332', '1338112268', None, None, None, None, None, '2595240') ('4302', None, None, None, None, None, None, None, '2595240') ('4302', '20594332', '1338112262', None, None, None, None, None, '2595240') ('4302', None, None, None, None, None, None, None, '2595240') ('4302', '20594332', '1338112240', None, None, None, None, None, '2595240') ('4302', None, None, None, None, None, None, None, '2595240') ('4302', '20594332', '1338112228', None, None, None, None, None, '2595240') ('4302', None, None, None, None, None, None, None, '2595240') ('4302', '20594332', '1338112226', None, None, None, None, None, '2595240') ('4302', None, None, None, None, None, None, None, '2595240') ('4302', '20594332', '1338112213', None, None, None, None, None, '2595240') ('4302', None, None, None, None, None, None, None, '2595240') ('4302', '20594332', '1338112210', None, None, None, None, None, '2595240') ('4302', None, None, None, None, None, None, None, '2595240') ('4302', '20594332', '1338112208', None, None, None, None, None, '2595240') ('4302', None, None, None, None, None, None, None, '2595240') ('4302', '20594332', '1338112197', None, None, None, None, None, '2595240') ('4302', None, None, None, None, None, None, None, '2595240') ('4302', '20594332', '1338112193', None, None, None, None, None, '2595240') ('4302', None, None, None, None, None, None, None, '2595240') ('4302', '20594332', '1338112185', None, None, None, None, None, '2595240') ('4302', None, None, None, None, None, None, None, '2595240') ('4302', '20594332', '1338112183', None, None, None, None, None, '2595240') ('4302', None, None, None, None, None, None, None, '2595240') ('4302', '20594332', '1338112181', None, None, None, None, None, '2595240') ('4302', None, None, None, None, None, None, None, '2595240') ('4302', '20594332', '1338112179', None, None, None, None, None, '2595240') ('4302', None, None, None, None, None, None, None, '2595240') ('4302', '20594332', '1338112177', None, None, None, None, None, '2595240') ('4302', None, None, None, None, None, None, None, '2595240') ('4302', '20594332', '1338112175', None, None, None, None, None, '2595240') ('4302', None, None, None, None, None, None, None, '2595240') ('4302', '20594332', '1338112166', None, None, None, None, None, '2595240') ('4302', None, None, None, None, None, None, None, '2595240') ('4302', '20594332', '1338112160', None, None, None, None, None, '2595240') ('4302', None, None, None, None, None, None, None, '2595240') ('4302', '20594332', '1338112158', None, None, None, None, None, '2595240') ('4302', None, None, None, None, None, None, None, '2595240') ('4302', '20594332', '1338112156', None, None, None, None, None, '2595240') ('4302', None, None, None, None, None, None, None, '2595240') ('4302', '20594332', '1338112143', None, None, None, None, None, '2595240') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 27 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, '20594332', "{'mal_croppe': 20594334, 'kraft': 20594335, 'cartonnette': 20594336, 'autre_refus': 20594337, 'metal': 20594338, 'Carton_brun': 20594339, 'flou': 20594340, 'Carton_gris': 20594341, 'papier': 20594342, 'plastique': 20594343, 'Teint_Dans_La_Masse': 20594344, 'environnement': 20594345}", None, None, None, None, '2595240'), ('4302', '20594332', '1338112395', None, None, None, None, None, '2595240'), ('4302', '20594332', '1338112328', None, None, None, None, None, '2595240'), ('4302', '20594332', '1338112311', None, None, None, None, None, '2595240'), ('4302', '20594332', '1338112309', None, None, None, None, None, '2595240'), ('4302', '20594332', '1338112273', None, None, None, None, None, '2595240'), ('4302', '20594332', '1338112268', None, None, None, None, None, '2595240'), ('4302', '20594332', '1338112262', None, None, None, None, None, '2595240'), ('4302', '20594332', '1338112240', None, None, None, None, None, '2595240'), ('4302', '20594332', '1338112228', None, None, None, None, None, '2595240'), ('4302', '20594332', '1338112226', None, None, None, None, None, '2595240'), ('4302', '20594332', '1338112213', None, None, None, None, None, '2595240'), ('4302', '20594332', '1338112210', None, None, None, None, None, '2595240'), ('4302', '20594332', '1338112208', None, None, None, None, None, '2595240'), ('4302', '20594332', '1338112197', None, None, None, None, None, '2595240'), ('4302', '20594332', '1338112193', None, None, None, None, None, '2595240'), ('4302', '20594332', '1338112185', None, None, None, None, None, '2595240'), ('4302', '20594332', '1338112183', None, None, None, None, None, '2595240'), ('4302', '20594332', '1338112181', None, None, None, None, None, '2595240'), ('4302', '20594332', '1338112179', None, None, None, None, None, '2595240'), ('4302', '20594332', '1338112177', None, None, None, None, None, '2595240'), ('4302', '20594332', '1338112175', None, None, None, None, None, '2595240'), ('4302', '20594332', '1338112166', None, None, None, None, None, '2595240'), ('4302', '20594332', '1338112160', None, None, None, None, None, '2595240'), ('4302', '20594332', '1338112158', None, None, None, None, None, '2595240'), ('4302', '20594332', '1338112156', None, None, None, None, None, '2595240'), ('4302', '20594332', '1338112143', None, None, None, None, None, '2595240')] time used for this insertion : 0.02036738395690918 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.9644646644592285 time spend to save output : 0.02085733413696289 total time spend for step 1 : 3.9853219985961914 step2:final Tue Feb 18 05:35:33 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 (20594332) 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 20594332 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1338112143,1338112166,1338112160,1338112158,1338112156,1338112185,1338112183,1338112181,1338112179,1338112177,1338112175,1338112213,1338112210,1338112208,1338112197,1338112193,1338112228,1338112226,1338112240,1338112273,1338112268,1338112262,1338112311,1338112309,1338112395,1338112328); 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([20594332]) Inside saveOutput : final : False verbose : True original output for save of step final : {1338112395: ('0.017859220760834744',), 1338112328: ('0.017859220760834744',), 1338112311: ('0.017859220760834744',), 1338112309: ('0.017859220760834744',), 1338112273: ('0.017859220760834744',), 1338112268: ('0.017859220760834744',), 1338112262: ('0.017859220760834744',), 1338112240: ('0.017859220760834744',), 1338112228: ('0.017859220760834744',), 1338112226: ('0.017859220760834744',), 1338112213: ('0.017859220760834744',), 1338112210: ('0.017859220760834744',), 1338112208: ('0.017859220760834744',), 1338112197: ('0.017859220760834744',), 1338112193: ('0.017859220760834744',), 1338112185: ('0.017859220760834744',), 1338112183: ('0.017859220760834744',), 1338112181: ('0.017859220760834744',), 1338112179: ('0.017859220760834744',), 1338112177: ('0.017859220760834744',), 1338112175: ('0.017859220760834744',), 1338112166: ('0.017859220760834744',), 1338112160: ('0.017859220760834744',), 1338112158: ('0.017859220760834744',), 1338112156: ('0.017859220760834744',), 1338112143: ('0.017859220760834744',)} new output for save of step final : {1338112395: ('0.017859220760834744',), 1338112328: ('0.017859220760834744',), 1338112311: ('0.017859220760834744',), 1338112309: ('0.017859220760834744',), 1338112273: ('0.017859220760834744',), 1338112268: ('0.017859220760834744',), 1338112262: ('0.017859220760834744',), 1338112240: ('0.017859220760834744',), 1338112228: ('0.017859220760834744',), 1338112226: ('0.017859220760834744',), 1338112213: ('0.017859220760834744',), 1338112210: ('0.017859220760834744',), 1338112208: ('0.017859220760834744',), 1338112197: ('0.017859220760834744',), 1338112193: ('0.017859220760834744',), 1338112185: ('0.017859220760834744',), 1338112183: ('0.017859220760834744',), 1338112181: ('0.017859220760834744',), 1338112179: ('0.017859220760834744',), 1338112177: ('0.017859220760834744',), 1338112175: ('0.017859220760834744',), 1338112166: ('0.017859220760834744',), 1338112160: ('0.017859220760834744',), 1338112158: ('0.017859220760834744',), 1338112156: ('0.017859220760834744',), 1338112143: ('0.017859220760834744',)} [1338112395, 1338112328, 1338112311, 1338112309, 1338112273, 1338112268, 1338112262, 1338112240, 1338112228, 1338112226, 1338112213, 1338112210, 1338112208, 1338112197, 1338112193, 1338112185, 1338112183, 1338112181, 1338112179, 1338112177, 1338112175, 1338112166, 1338112160, 1338112158, 1338112156, 1338112143] map_info['map_portfolio_photo'] : {20594332: [1338112395, 1338112328, 1338112311, 1338112309, 1338112273, 1338112268, 1338112262, 1338112240, 1338112228, 1338112226, 1338112213, 1338112210, 1338112208, 1338112197, 1338112193, 1338112185, 1338112183, 1338112181, 1338112179, 1338112177, 1338112175, 1338112166, 1338112160, 1338112158, 1338112156, 1338112143]} final : False mtd_id 4302 list_pids : [1338112395, 1338112328, 1338112311, 1338112309, 1338112273, 1338112268, 1338112262, 1338112240, 1338112228, 1338112226, 1338112213, 1338112210, 1338112208, 1338112197, 1338112193, 1338112185, 1338112183, 1338112181, 1338112179, 1338112177, 1338112175, 1338112166, 1338112160, 1338112158, 1338112156, 1338112143] Looping around the photos to save general results len do output : 26 /1338112395.Didn't retrieve data . /1338112328.Didn't retrieve data . /1338112311.Didn't retrieve data . /1338112309.Didn't retrieve data . /1338112273.Didn't retrieve data . /1338112268.Didn't retrieve data . /1338112262.Didn't retrieve data . /1338112240.Didn't retrieve data . /1338112228.Didn't retrieve data . /1338112226.Didn't retrieve data . /1338112213.Didn't retrieve data . /1338112210.Didn't retrieve data . /1338112208.Didn't retrieve data . /1338112197.Didn't retrieve data . /1338112193.Didn't retrieve data . /1338112185.Didn't retrieve data . /1338112183.Didn't retrieve data . /1338112181.Didn't retrieve data . /1338112179.Didn't retrieve data . /1338112177.Didn't retrieve data . /1338112175.Didn't retrieve data . /1338112166.Didn't retrieve data . /1338112160.Didn't retrieve data . /1338112158.Didn't retrieve data . /1338112156.Didn't retrieve data . /1338112143.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, '2595240') ('4302', '20594332', '1338112395', None, None, None, None, None, '2595240') ('4302', None, None, None, None, None, None, None, '2595240') ('4302', '20594332', '1338112328', None, None, None, None, None, '2595240') ('4302', None, None, None, None, None, None, None, '2595240') ('4302', '20594332', '1338112311', None, None, None, None, None, '2595240') ('4302', None, None, None, None, None, None, None, '2595240') ('4302', '20594332', '1338112309', None, None, None, None, None, '2595240') ('4302', None, None, None, None, None, None, None, '2595240') ('4302', '20594332', '1338112273', None, None, None, None, None, '2595240') ('4302', None, None, None, None, None, None, None, '2595240') ('4302', '20594332', '1338112268', None, None, None, None, None, '2595240') ('4302', None, None, None, None, None, None, None, '2595240') ('4302', '20594332', '1338112262', None, None, None, None, None, '2595240') ('4302', None, None, None, None, None, None, None, '2595240') ('4302', '20594332', '1338112240', None, None, None, None, None, '2595240') ('4302', None, None, None, None, None, None, None, '2595240') ('4302', '20594332', '1338112228', None, None, None, None, None, '2595240') ('4302', None, None, None, None, None, None, None, '2595240') ('4302', '20594332', '1338112226', None, None, None, None, None, '2595240') ('4302', None, None, None, None, None, None, None, '2595240') ('4302', '20594332', '1338112213', None, None, None, None, None, '2595240') ('4302', None, None, None, None, None, None, None, '2595240') ('4302', '20594332', '1338112210', None, None, None, None, None, '2595240') ('4302', None, None, None, None, None, None, None, '2595240') ('4302', '20594332', '1338112208', None, None, None, None, None, '2595240') ('4302', None, None, None, None, None, None, None, '2595240') ('4302', '20594332', '1338112197', None, None, None, None, None, '2595240') ('4302', None, None, None, None, None, None, None, '2595240') ('4302', '20594332', '1338112193', None, None, None, None, None, '2595240') ('4302', None, None, None, None, None, None, None, '2595240') ('4302', '20594332', '1338112185', None, None, None, None, None, '2595240') ('4302', None, None, None, None, None, None, None, '2595240') ('4302', '20594332', '1338112183', None, None, None, None, None, '2595240') ('4302', None, None, None, None, None, None, None, '2595240') ('4302', '20594332', '1338112181', None, None, None, None, None, '2595240') ('4302', None, None, None, None, None, None, None, '2595240') ('4302', '20594332', '1338112179', None, None, None, None, None, '2595240') ('4302', None, None, None, None, None, None, None, '2595240') ('4302', '20594332', '1338112177', None, None, None, None, None, '2595240') ('4302', None, None, None, None, None, None, None, '2595240') ('4302', '20594332', '1338112175', None, None, None, None, None, '2595240') ('4302', None, None, None, None, None, None, None, '2595240') ('4302', '20594332', '1338112166', None, None, None, None, None, '2595240') ('4302', None, None, None, None, None, None, None, '2595240') ('4302', '20594332', '1338112160', None, None, None, None, None, '2595240') ('4302', None, None, None, None, None, None, None, '2595240') ('4302', '20594332', '1338112158', None, None, None, None, None, '2595240') ('4302', None, None, None, None, None, None, None, '2595240') ('4302', '20594332', '1338112156', None, None, None, None, None, '2595240') ('4302', None, None, None, None, None, None, None, '2595240') ('4302', '20594332', '1338112143', None, None, None, None, None, '2595240') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 78 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', '20594332', '1338112395', '0.017859220760834744', None, None, None, None, '2595240'), ('4302', '20594332', '1338112328', '0.017859220760834744', None, None, None, None, '2595240'), ('4302', '20594332', '1338112311', '0.017859220760834744', None, None, None, None, '2595240'), ('4302', '20594332', '1338112309', '0.017859220760834744', None, None, None, None, '2595240'), ('4302', '20594332', '1338112273', '0.017859220760834744', None, None, None, None, '2595240'), ('4302', '20594332', '1338112268', '0.017859220760834744', None, None, None, None, '2595240'), ('4302', '20594332', '1338112262', '0.017859220760834744', None, None, None, None, '2595240'), ('4302', '20594332', '1338112240', '0.017859220760834744', None, None, None, None, '2595240'), ('4302', '20594332', '1338112228', '0.017859220760834744', None, None, None, None, '2595240'), ('4302', '20594332', '1338112226', '0.017859220760834744', None, None, None, None, '2595240'), ('4302', '20594332', '1338112213', '0.017859220760834744', None, None, None, None, '2595240'), ('4302', '20594332', '1338112210', '0.017859220760834744', None, None, None, None, '2595240'), ('4302', '20594332', '1338112208', '0.017859220760834744', None, None, None, None, '2595240'), ('4302', '20594332', '1338112197', '0.017859220760834744', None, None, None, None, '2595240'), ('4302', '20594332', '1338112193', '0.017859220760834744', None, None, None, None, '2595240'), ('4302', '20594332', '1338112185', '0.017859220760834744', None, None, None, None, '2595240'), ('4302', '20594332', '1338112183', '0.017859220760834744', None, None, None, None, '2595240'), ('4302', '20594332', '1338112181', '0.017859220760834744', None, None, None, None, '2595240'), ('4302', '20594332', '1338112179', '0.017859220760834744', None, None, None, None, '2595240'), ('4302', '20594332', '1338112177', '0.017859220760834744', None, None, None, None, '2595240'), ('4302', '20594332', '1338112175', '0.017859220760834744', None, None, None, None, '2595240'), ('4302', '20594332', '1338112166', '0.017859220760834744', None, None, None, None, '2595240'), ('4302', '20594332', '1338112160', '0.017859220760834744', None, None, None, None, '2595240'), ('4302', '20594332', '1338112158', '0.017859220760834744', None, None, None, None, '2595240'), ('4302', '20594332', '1338112156', '0.017859220760834744', None, None, None, None, '2595240'), ('4302', '20594332', '1338112143', '0.017859220760834744', None, None, None, None, '2595240')] time used for this insertion : 0.01917123794555664 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06524276733398438 time spend to save output : 0.020380735397338867 total time spend for step 2 : 0.08562350273132324 step3:velours_tree Tue Feb 18 05:35:33 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 : {20594332: [{'mal_croppe': 20594334, 'kraft': 20594335, 'cartonnette': 20594336, 'autre_refus': 20594337, 'metal': 20594338, 'Carton_brun': 20594339, 'flou': 20594340, 'Carton_gris': 20594341, 'papier': 20594342, 'plastique': 20594343, 'Teint_Dans_La_Masse': 20594344, 'environnement': 20594345}]} input_args_next_step : {20594332: ()} output_args : {20594332: [{'mal_croppe': 20594334, 'kraft': 20594335, 'cartonnette': 20594336, 'autre_refus': 20594337, 'metal': 20594338, 'Carton_brun': 20594339, 'flou': 20594340, 'Carton_gris': 20594341, 'papier': 20594342, 'plastique': 20594343, 'Teint_Dans_La_Masse': 20594344, 'environnement': 20594345}]} args : 20594332 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'mal_croppe': 20594334, 'kraft': 20594335, 'cartonnette': 20594336, 'autre_refus': 20594337, 'metal': 20594338, 'Carton_brun': 20594339, 'flou': 20594340, 'Carton_gris': 20594341, 'papier': 20594342, 'plastique': 20594343, 'Teint_Dans_La_Masse': 20594344, 'environnement': 20594345},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20594332) 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([20594332]) 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.2951645851135254 time spend to save output : 4.315376281738281e-05 total time spend for step 3 : 0.2952077388763428 step4:send_mail_cod Tue Feb 18 05:35:33 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 : {1338112395: ('0.017859220760834744',), 1338112328: ('0.017859220760834744',), 1338112311: ('0.017859220760834744',), 1338112309: ('0.017859220760834744',), 1338112273: ('0.017859220760834744',), 1338112268: ('0.017859220760834744',), 1338112262: ('0.017859220760834744',), 1338112240: ('0.017859220760834744',), 1338112228: ('0.017859220760834744',), 1338112226: ('0.017859220760834744',), 1338112213: ('0.017859220760834744',), 1338112210: ('0.017859220760834744',), 1338112208: ('0.017859220760834744',), 1338112197: ('0.017859220760834744',), 1338112193: ('0.017859220760834744',), 1338112185: ('0.017859220760834744',), 1338112183: ('0.017859220760834744',), 1338112181: ('0.017859220760834744',), 1338112179: ('0.017859220760834744',), 1338112177: ('0.017859220760834744',), 1338112175: ('0.017859220760834744',), 1338112166: ('0.017859220760834744',), 1338112160: ('0.017859220760834744',), 1338112158: ('0.017859220760834744',), 1338112156: ('0.017859220760834744',), 1338112143: ('0.017859220760834744',)} input_args_next_step : {1338112395: ()} output_args : {1338112395: ('0.017859220760834744',), 1338112328: ('0.017859220760834744',), 1338112311: ('0.017859220760834744',), 1338112309: ('0.017859220760834744',), 1338112273: ('0.017859220760834744',), 1338112268: ('0.017859220760834744',), 1338112262: ('0.017859220760834744',), 1338112240: ('0.017859220760834744',), 1338112228: ('0.017859220760834744',), 1338112226: ('0.017859220760834744',), 1338112213: ('0.017859220760834744',), 1338112210: ('0.017859220760834744',), 1338112208: ('0.017859220760834744',), 1338112197: ('0.017859220760834744',), 1338112193: ('0.017859220760834744',), 1338112185: ('0.017859220760834744',), 1338112183: ('0.017859220760834744',), 1338112181: ('0.017859220760834744',), 1338112179: ('0.017859220760834744',), 1338112177: ('0.017859220760834744',), 1338112175: ('0.017859220760834744',), 1338112166: ('0.017859220760834744',), 1338112160: ('0.017859220760834744',), 1338112158: ('0.017859220760834744',), 1338112156: ('0.017859220760834744',), 1338112143: ('0.017859220760834744',)} args : 1338112395 depend.output_id : 0 input_args_next_step : {1338112395: ('0.017859220760834744',), 1338112328: ()} output_args : {1338112395: ('0.017859220760834744',), 1338112328: ('0.017859220760834744',), 1338112311: ('0.017859220760834744',), 1338112309: ('0.017859220760834744',), 1338112273: ('0.017859220760834744',), 1338112268: ('0.017859220760834744',), 1338112262: ('0.017859220760834744',), 1338112240: ('0.017859220760834744',), 1338112228: ('0.017859220760834744',), 1338112226: ('0.017859220760834744',), 1338112213: ('0.017859220760834744',), 1338112210: ('0.017859220760834744',), 1338112208: ('0.017859220760834744',), 1338112197: ('0.017859220760834744',), 1338112193: ('0.017859220760834744',), 1338112185: ('0.017859220760834744',), 1338112183: ('0.017859220760834744',), 1338112181: ('0.017859220760834744',), 1338112179: ('0.017859220760834744',), 1338112177: ('0.017859220760834744',), 1338112175: ('0.017859220760834744',), 1338112166: ('0.017859220760834744',), 1338112160: ('0.017859220760834744',), 1338112158: ('0.017859220760834744',), 1338112156: ('0.017859220760834744',), 1338112143: ('0.017859220760834744',)} args : 1338112328 depend.output_id : 0 input_args_next_step : {1338112395: ('0.017859220760834744',), 1338112328: ('0.017859220760834744',), 1338112311: ()} output_args : {1338112395: ('0.017859220760834744',), 1338112328: ('0.017859220760834744',), 1338112311: ('0.017859220760834744',), 1338112309: ('0.017859220760834744',), 1338112273: ('0.017859220760834744',), 1338112268: ('0.017859220760834744',), 1338112262: ('0.017859220760834744',), 1338112240: ('0.017859220760834744',), 1338112228: ('0.017859220760834744',), 1338112226: ('0.017859220760834744',), 1338112213: ('0.017859220760834744',), 1338112210: ('0.017859220760834744',), 1338112208: ('0.017859220760834744',), 1338112197: ('0.017859220760834744',), 1338112193: ('0.017859220760834744',), 1338112185: ('0.017859220760834744',), 1338112183: ('0.017859220760834744',), 1338112181: ('0.017859220760834744',), 1338112179: ('0.017859220760834744',), 1338112177: ('0.017859220760834744',), 1338112175: ('0.017859220760834744',), 1338112166: ('0.017859220760834744',), 1338112160: ('0.017859220760834744',), 1338112158: ('0.017859220760834744',), 1338112156: ('0.017859220760834744',), 1338112143: ('0.017859220760834744',)} args : 1338112311 depend.output_id : 0 input_args_next_step : {1338112395: ('0.017859220760834744',), 1338112328: ('0.017859220760834744',), 1338112311: ('0.017859220760834744',), 1338112309: ()} output_args : {1338112395: ('0.017859220760834744',), 1338112328: ('0.017859220760834744',), 1338112311: ('0.017859220760834744',), 1338112309: ('0.017859220760834744',), 1338112273: ('0.017859220760834744',), 1338112268: ('0.017859220760834744',), 1338112262: ('0.017859220760834744',), 1338112240: ('0.017859220760834744',), 1338112228: ('0.017859220760834744',), 1338112226: ('0.017859220760834744',), 1338112213: ('0.017859220760834744',), 1338112210: ('0.017859220760834744',), 1338112208: ('0.017859220760834744',), 1338112197: ('0.017859220760834744',), 1338112193: ('0.017859220760834744',), 1338112185: ('0.017859220760834744',), 1338112183: ('0.017859220760834744',), 1338112181: ('0.017859220760834744',), 1338112179: ('0.017859220760834744',), 1338112177: ('0.017859220760834744',), 1338112175: ('0.017859220760834744',), 1338112166: ('0.017859220760834744',), 1338112160: ('0.017859220760834744',), 1338112158: ('0.017859220760834744',), 1338112156: ('0.017859220760834744',), 1338112143: ('0.017859220760834744',)} args : 1338112309 depend.output_id : 0 input_args_next_step : {1338112395: ('0.017859220760834744',), 1338112328: ('0.017859220760834744',), 1338112311: ('0.017859220760834744',), 1338112309: ('0.017859220760834744',), 1338112273: ()} output_args : {1338112395: ('0.017859220760834744',), 1338112328: ('0.017859220760834744',), 1338112311: ('0.017859220760834744',), 1338112309: ('0.017859220760834744',), 1338112273: ('0.017859220760834744',), 1338112268: ('0.017859220760834744',), 1338112262: ('0.017859220760834744',), 1338112240: ('0.017859220760834744',), 1338112228: ('0.017859220760834744',), 1338112226: ('0.017859220760834744',), 1338112213: ('0.017859220760834744',), 1338112210: ('0.017859220760834744',), 1338112208: ('0.017859220760834744',), 1338112197: ('0.017859220760834744',), 1338112193: ('0.017859220760834744',), 1338112185: ('0.017859220760834744',), 1338112183: ('0.017859220760834744',), 1338112181: ('0.017859220760834744',), 1338112179: ('0.017859220760834744',), 1338112177: ('0.017859220760834744',), 1338112175: ('0.017859220760834744',), 1338112166: ('0.017859220760834744',), 1338112160: ('0.017859220760834744',), 1338112158: ('0.017859220760834744',), 1338112156: ('0.017859220760834744',), 1338112143: ('0.017859220760834744',)} args : 1338112273 depend.output_id : 0 input_args_next_step : {1338112395: ('0.017859220760834744',), 1338112328: ('0.017859220760834744',), 1338112311: ('0.017859220760834744',), 1338112309: ('0.017859220760834744',), 1338112273: ('0.017859220760834744',), 1338112268: ()} output_args : {1338112395: ('0.017859220760834744',), 1338112328: ('0.017859220760834744',), 1338112311: ('0.017859220760834744',), 1338112309: ('0.017859220760834744',), 1338112273: ('0.017859220760834744',), 1338112268: ('0.017859220760834744',), 1338112262: ('0.017859220760834744',), 1338112240: ('0.017859220760834744',), 1338112228: ('0.017859220760834744',), 1338112226: ('0.017859220760834744',), 1338112213: ('0.017859220760834744',), 1338112210: ('0.017859220760834744',), 1338112208: ('0.017859220760834744',), 1338112197: ('0.017859220760834744',), 1338112193: ('0.017859220760834744',), 1338112185: ('0.017859220760834744',), 1338112183: ('0.017859220760834744',), 1338112181: ('0.017859220760834744',), 1338112179: ('0.017859220760834744',), 1338112177: ('0.017859220760834744',), 1338112175: ('0.017859220760834744',), 1338112166: ('0.017859220760834744',), 1338112160: ('0.017859220760834744',), 1338112158: ('0.017859220760834744',), 1338112156: ('0.017859220760834744',), 1338112143: ('0.017859220760834744',)} args : 1338112268 depend.output_id : 0 input_args_next_step : {1338112395: ('0.017859220760834744',), 1338112328: ('0.017859220760834744',), 1338112311: ('0.017859220760834744',), 1338112309: ('0.017859220760834744',), 1338112273: ('0.017859220760834744',), 1338112268: ('0.017859220760834744',), 1338112262: ()} output_args : {1338112395: ('0.017859220760834744',), 1338112328: ('0.017859220760834744',), 1338112311: ('0.017859220760834744',), 1338112309: ('0.017859220760834744',), 1338112273: ('0.017859220760834744',), 1338112268: ('0.017859220760834744',), 1338112262: ('0.017859220760834744',), 1338112240: ('0.017859220760834744',), 1338112228: ('0.017859220760834744',), 1338112226: ('0.017859220760834744',), 1338112213: ('0.017859220760834744',), 1338112210: ('0.017859220760834744',), 1338112208: ('0.017859220760834744',), 1338112197: ('0.017859220760834744',), 1338112193: ('0.017859220760834744',), 1338112185: ('0.017859220760834744',), 1338112183: ('0.017859220760834744',), 1338112181: ('0.017859220760834744',), 1338112179: ('0.017859220760834744',), 1338112177: ('0.017859220760834744',), 1338112175: ('0.017859220760834744',), 1338112166: ('0.017859220760834744',), 1338112160: ('0.017859220760834744',), 1338112158: ('0.017859220760834744',), 1338112156: ('0.017859220760834744',), 1338112143: ('0.017859220760834744',)} args : 1338112262 depend.output_id : 0 input_args_next_step : {1338112395: ('0.017859220760834744',), 1338112328: ('0.017859220760834744',), 1338112311: ('0.017859220760834744',), 1338112309: ('0.017859220760834744',), 1338112273: ('0.017859220760834744',), 1338112268: ('0.017859220760834744',), 1338112262: ('0.017859220760834744',), 1338112240: ()} output_args : {1338112395: ('0.017859220760834744',), 1338112328: ('0.017859220760834744',), 1338112311: ('0.017859220760834744',), 1338112309: ('0.017859220760834744',), 1338112273: ('0.017859220760834744',), 1338112268: ('0.017859220760834744',), 1338112262: ('0.017859220760834744',), 1338112240: ('0.017859220760834744',), 1338112228: ('0.017859220760834744',), 1338112226: ('0.017859220760834744',), 1338112213: ('0.017859220760834744',), 1338112210: ('0.017859220760834744',), 1338112208: ('0.017859220760834744',), 1338112197: ('0.017859220760834744',), 1338112193: ('0.017859220760834744',), 1338112185: ('0.017859220760834744',), 1338112183: ('0.017859220760834744',), 1338112181: ('0.017859220760834744',), 1338112179: ('0.017859220760834744',), 1338112177: ('0.017859220760834744',), 1338112175: ('0.017859220760834744',), 1338112166: ('0.017859220760834744',), 1338112160: ('0.017859220760834744',), 1338112158: ('0.017859220760834744',), 1338112156: ('0.017859220760834744',), 1338112143: ('0.017859220760834744',)} args : 1338112240 depend.output_id : 0 input_args_next_step : {1338112395: ('0.017859220760834744',), 1338112328: ('0.017859220760834744',), 1338112311: ('0.017859220760834744',), 1338112309: ('0.017859220760834744',), 1338112273: ('0.017859220760834744',), 1338112268: ('0.017859220760834744',), 1338112262: ('0.017859220760834744',), 1338112240: ('0.017859220760834744',), 1338112228: ()} output_args : {1338112395: ('0.017859220760834744',), 1338112328: ('0.017859220760834744',), 1338112311: ('0.017859220760834744',), 1338112309: ('0.017859220760834744',), 1338112273: ('0.017859220760834744',), 1338112268: ('0.017859220760834744',), 1338112262: ('0.017859220760834744',), 1338112240: ('0.017859220760834744',), 1338112228: ('0.017859220760834744',), 1338112226: ('0.017859220760834744',), 1338112213: ('0.017859220760834744',), 1338112210: ('0.017859220760834744',), 1338112208: ('0.017859220760834744',), 1338112197: ('0.017859220760834744',), 1338112193: ('0.017859220760834744',), 1338112185: ('0.017859220760834744',), 1338112183: ('0.017859220760834744',), 1338112181: ('0.017859220760834744',), 1338112179: ('0.017859220760834744',), 1338112177: ('0.017859220760834744',), 1338112175: ('0.017859220760834744',), 1338112166: ('0.017859220760834744',), 1338112160: ('0.017859220760834744',), 1338112158: ('0.017859220760834744',), 1338112156: ('0.017859220760834744',), 1338112143: ('0.017859220760834744',)} args : 1338112228 depend.output_id : 0 input_args_next_step : {1338112395: ('0.017859220760834744',), 1338112328: ('0.017859220760834744',), 1338112311: ('0.017859220760834744',), 1338112309: ('0.017859220760834744',), 1338112273: ('0.017859220760834744',), 1338112268: ('0.017859220760834744',), 1338112262: ('0.017859220760834744',), 1338112240: ('0.017859220760834744',), 1338112228: ('0.017859220760834744',), 1338112226: ()} output_args : {1338112395: ('0.017859220760834744',), 1338112328: ('0.017859220760834744',), 1338112311: ('0.017859220760834744',), 1338112309: ('0.017859220760834744',), 1338112273: ('0.017859220760834744',), 1338112268: ('0.017859220760834744',), 1338112262: ('0.017859220760834744',), 1338112240: ('0.017859220760834744',), 1338112228: ('0.017859220760834744',), 1338112226: ('0.017859220760834744',), 1338112213: ('0.017859220760834744',), 1338112210: ('0.017859220760834744',), 1338112208: ('0.017859220760834744',), 1338112197: ('0.017859220760834744',), 1338112193: ('0.017859220760834744',), 1338112185: ('0.017859220760834744',), 1338112183: ('0.017859220760834744',), 1338112181: ('0.017859220760834744',), 1338112179: ('0.017859220760834744',), 1338112177: ('0.017859220760834744',), 1338112175: ('0.017859220760834744',), 1338112166: ('0.017859220760834744',), 1338112160: ('0.017859220760834744',), 1338112158: ('0.017859220760834744',), 1338112156: ('0.017859220760834744',), 1338112143: ('0.017859220760834744',)} args : 1338112226 depend.output_id : 0 input_args_next_step : {1338112395: ('0.017859220760834744',), 1338112328: ('0.017859220760834744',), 1338112311: ('0.017859220760834744',), 1338112309: ('0.017859220760834744',), 1338112273: ('0.017859220760834744',), 1338112268: ('0.017859220760834744',), 1338112262: ('0.017859220760834744',), 1338112240: ('0.017859220760834744',), 1338112228: ('0.017859220760834744',), 1338112226: ('0.017859220760834744',), 1338112213: ()} output_args : {1338112395: ('0.017859220760834744',), 1338112328: ('0.017859220760834744',), 1338112311: ('0.017859220760834744',), 1338112309: ('0.017859220760834744',), 1338112273: ('0.017859220760834744',), 1338112268: ('0.017859220760834744',), 1338112262: ('0.017859220760834744',), 1338112240: ('0.017859220760834744',), 1338112228: ('0.017859220760834744',), 1338112226: ('0.017859220760834744',), 1338112213: ('0.017859220760834744',), 1338112210: ('0.017859220760834744',), 1338112208: ('0.017859220760834744',), 1338112197: ('0.017859220760834744',), 1338112193: ('0.017859220760834744',), 1338112185: ('0.017859220760834744',), 1338112183: ('0.017859220760834744',), 1338112181: ('0.017859220760834744',), 1338112179: ('0.017859220760834744',), 1338112177: ('0.017859220760834744',), 1338112175: ('0.017859220760834744',), 1338112166: ('0.017859220760834744',), 1338112160: ('0.017859220760834744',), 1338112158: ('0.017859220760834744',), 1338112156: ('0.017859220760834744',), 1338112143: ('0.017859220760834744',)} args : 1338112213 depend.output_id : 0 input_args_next_step : {1338112395: ('0.017859220760834744',), 1338112328: ('0.017859220760834744',), 1338112311: ('0.017859220760834744',), 1338112309: ('0.017859220760834744',), 1338112273: ('0.017859220760834744',), 1338112268: ('0.017859220760834744',), 1338112262: ('0.017859220760834744',), 1338112240: ('0.017859220760834744',), 1338112228: ('0.017859220760834744',), 1338112226: ('0.017859220760834744',), 1338112213: ('0.017859220760834744',), 1338112210: ()} output_args : {1338112395: ('0.017859220760834744',), 1338112328: ('0.017859220760834744',), 1338112311: ('0.017859220760834744',), 1338112309: ('0.017859220760834744',), 1338112273: ('0.017859220760834744',), 1338112268: ('0.017859220760834744',), 1338112262: ('0.017859220760834744',), 1338112240: ('0.017859220760834744',), 1338112228: ('0.017859220760834744',), 1338112226: ('0.017859220760834744',), 1338112213: ('0.017859220760834744',), 1338112210: ('0.017859220760834744',), 1338112208: ('0.017859220760834744',), 1338112197: ('0.017859220760834744',), 1338112193: ('0.017859220760834744',), 1338112185: ('0.017859220760834744',), 1338112183: ('0.017859220760834744',), 1338112181: ('0.017859220760834744',), 1338112179: ('0.017859220760834744',), 1338112177: ('0.017859220760834744',), 1338112175: ('0.017859220760834744',), 1338112166: ('0.017859220760834744',), 1338112160: ('0.017859220760834744',), 1338112158: ('0.017859220760834744',), 1338112156: ('0.017859220760834744',), 1338112143: ('0.017859220760834744',)} args : 1338112210 depend.output_id : 0 input_args_next_step : {1338112395: ('0.017859220760834744',), 1338112328: ('0.017859220760834744',), 1338112311: ('0.017859220760834744',), 1338112309: ('0.017859220760834744',), 1338112273: ('0.017859220760834744',), 1338112268: ('0.017859220760834744',), 1338112262: ('0.017859220760834744',), 1338112240: ('0.017859220760834744',), 1338112228: ('0.017859220760834744',), 1338112226: ('0.017859220760834744',), 1338112213: ('0.017859220760834744',), 1338112210: ('0.017859220760834744',), 1338112208: ()} output_args : {1338112395: ('0.017859220760834744',), 1338112328: ('0.017859220760834744',), 1338112311: ('0.017859220760834744',), 1338112309: ('0.017859220760834744',), 1338112273: ('0.017859220760834744',), 1338112268: ('0.017859220760834744',), 1338112262: ('0.017859220760834744',), 1338112240: ('0.017859220760834744',), 1338112228: ('0.017859220760834744',), 1338112226: ('0.017859220760834744',), 1338112213: ('0.017859220760834744',), 1338112210: ('0.017859220760834744',), 1338112208: ('0.017859220760834744',), 1338112197: ('0.017859220760834744',), 1338112193: ('0.017859220760834744',), 1338112185: ('0.017859220760834744',), 1338112183: ('0.017859220760834744',), 1338112181: ('0.017859220760834744',), 1338112179: ('0.017859220760834744',), 1338112177: ('0.017859220760834744',), 1338112175: ('0.017859220760834744',), 1338112166: ('0.017859220760834744',), 1338112160: ('0.017859220760834744',), 1338112158: ('0.017859220760834744',), 1338112156: ('0.017859220760834744',), 1338112143: ('0.017859220760834744',)} args : 1338112208 depend.output_id : 0 input_args_next_step : {1338112395: ('0.017859220760834744',), 1338112328: ('0.017859220760834744',), 1338112311: ('0.017859220760834744',), 1338112309: ('0.017859220760834744',), 1338112273: ('0.017859220760834744',), 1338112268: ('0.017859220760834744',), 1338112262: ('0.017859220760834744',), 1338112240: ('0.017859220760834744',), 1338112228: ('0.017859220760834744',), 1338112226: ('0.017859220760834744',), 1338112213: ('0.017859220760834744',), 1338112210: ('0.017859220760834744',), 1338112208: ('0.017859220760834744',), 1338112197: ()} output_args : {1338112395: ('0.017859220760834744',), 1338112328: ('0.017859220760834744',), 1338112311: ('0.017859220760834744',), 1338112309: ('0.017859220760834744',), 1338112273: ('0.017859220760834744',), 1338112268: ('0.017859220760834744',), 1338112262: ('0.017859220760834744',), 1338112240: ('0.017859220760834744',), 1338112228: ('0.017859220760834744',), 1338112226: ('0.017859220760834744',), 1338112213: ('0.017859220760834744',), 1338112210: ('0.017859220760834744',), 1338112208: ('0.017859220760834744',), 1338112197: ('0.017859220760834744',), 1338112193: ('0.017859220760834744',), 1338112185: ('0.017859220760834744',), 1338112183: ('0.017859220760834744',), 1338112181: ('0.017859220760834744',), 1338112179: ('0.017859220760834744',), 1338112177: ('0.017859220760834744',), 1338112175: ('0.017859220760834744',), 1338112166: ('0.017859220760834744',), 1338112160: ('0.017859220760834744',), 1338112158: ('0.017859220760834744',), 1338112156: ('0.017859220760834744',), 1338112143: ('0.017859220760834744',)} args : 1338112197 depend.output_id : 0 input_args_next_step : {1338112395: ('0.017859220760834744',), 1338112328: ('0.017859220760834744',), 1338112311: ('0.017859220760834744',), 1338112309: ('0.017859220760834744',), 1338112273: ('0.017859220760834744',), 1338112268: ('0.017859220760834744',), 1338112262: ('0.017859220760834744',), 1338112240: ('0.017859220760834744',), 1338112228: ('0.017859220760834744',), 1338112226: ('0.017859220760834744',), 1338112213: ('0.017859220760834744',), 1338112210: ('0.017859220760834744',), 1338112208: ('0.017859220760834744',), 1338112197: ('0.017859220760834744',), 1338112193: ()} output_args : {1338112395: ('0.017859220760834744',), 1338112328: ('0.017859220760834744',), 1338112311: ('0.017859220760834744',), 1338112309: ('0.017859220760834744',), 1338112273: ('0.017859220760834744',), 1338112268: ('0.017859220760834744',), 1338112262: ('0.017859220760834744',), 1338112240: ('0.017859220760834744',), 1338112228: ('0.017859220760834744',), 1338112226: ('0.017859220760834744',), 1338112213: ('0.017859220760834744',), 1338112210: ('0.017859220760834744',), 1338112208: ('0.017859220760834744',), 1338112197: ('0.017859220760834744',), 1338112193: ('0.017859220760834744',), 1338112185: ('0.017859220760834744',), 1338112183: ('0.017859220760834744',), 1338112181: ('0.017859220760834744',), 1338112179: ('0.017859220760834744',), 1338112177: ('0.017859220760834744',), 1338112175: ('0.017859220760834744',), 1338112166: ('0.017859220760834744',), 1338112160: ('0.017859220760834744',), 1338112158: ('0.017859220760834744',), 1338112156: ('0.017859220760834744',), 1338112143: ('0.017859220760834744',)} args : 1338112193 depend.output_id : 0 input_args_next_step : {1338112395: ('0.017859220760834744',), 1338112328: ('0.017859220760834744',), 1338112311: ('0.017859220760834744',), 1338112309: ('0.017859220760834744',), 1338112273: ('0.017859220760834744',), 1338112268: ('0.017859220760834744',), 1338112262: ('0.017859220760834744',), 1338112240: ('0.017859220760834744',), 1338112228: ('0.017859220760834744',), 1338112226: ('0.017859220760834744',), 1338112213: ('0.017859220760834744',), 1338112210: ('0.017859220760834744',), 1338112208: ('0.017859220760834744',), 1338112197: ('0.017859220760834744',), 1338112193: ('0.017859220760834744',), 1338112185: ()} output_args : {1338112395: ('0.017859220760834744',), 1338112328: ('0.017859220760834744',), 1338112311: ('0.017859220760834744',), 1338112309: ('0.017859220760834744',), 1338112273: ('0.017859220760834744',), 1338112268: ('0.017859220760834744',), 1338112262: ('0.017859220760834744',), 1338112240: ('0.017859220760834744',), 1338112228: ('0.017859220760834744',), 1338112226: ('0.017859220760834744',), 1338112213: ('0.017859220760834744',), 1338112210: ('0.017859220760834744',), 1338112208: ('0.017859220760834744',), 1338112197: ('0.017859220760834744',), 1338112193: ('0.017859220760834744',), 1338112185: ('0.017859220760834744',), 1338112183: ('0.017859220760834744',), 1338112181: ('0.017859220760834744',), 1338112179: ('0.017859220760834744',), 1338112177: ('0.017859220760834744',), 1338112175: ('0.017859220760834744',), 1338112166: ('0.017859220760834744',), 1338112160: ('0.017859220760834744',), 1338112158: ('0.017859220760834744',), 1338112156: ('0.017859220760834744',), 1338112143: ('0.017859220760834744',)} args : 1338112185 depend.output_id : 0 input_args_next_step : {1338112395: ('0.017859220760834744',), 1338112328: ('0.017859220760834744',), 1338112311: ('0.017859220760834744',), 1338112309: ('0.017859220760834744',), 1338112273: ('0.017859220760834744',), 1338112268: ('0.017859220760834744',), 1338112262: ('0.017859220760834744',), 1338112240: ('0.017859220760834744',), 1338112228: ('0.017859220760834744',), 1338112226: ('0.017859220760834744',), 1338112213: ('0.017859220760834744',), 1338112210: ('0.017859220760834744',), 1338112208: ('0.017859220760834744',), 1338112197: ('0.017859220760834744',), 1338112193: ('0.017859220760834744',), 1338112185: ('0.017859220760834744',), 1338112183: ()} output_args : {1338112395: ('0.017859220760834744',), 1338112328: ('0.017859220760834744',), 1338112311: ('0.017859220760834744',), 1338112309: ('0.017859220760834744',), 1338112273: ('0.017859220760834744',), 1338112268: ('0.017859220760834744',), 1338112262: ('0.017859220760834744',), 1338112240: ('0.017859220760834744',), 1338112228: ('0.017859220760834744',), 1338112226: ('0.017859220760834744',), 1338112213: ('0.017859220760834744',), 1338112210: ('0.017859220760834744',), 1338112208: ('0.017859220760834744',), 1338112197: ('0.017859220760834744',), 1338112193: ('0.017859220760834744',), 1338112185: ('0.017859220760834744',), 1338112183: ('0.017859220760834744',), 1338112181: ('0.017859220760834744',), 1338112179: ('0.017859220760834744',), 1338112177: ('0.017859220760834744',), 1338112175: ('0.017859220760834744',), 1338112166: ('0.017859220760834744',), 1338112160: ('0.017859220760834744',), 1338112158: ('0.017859220760834744',), 1338112156: ('0.017859220760834744',), 1338112143: ('0.017859220760834744',)} args : 1338112183 depend.output_id : 0 input_args_next_step : {1338112395: ('0.017859220760834744',), 1338112328: ('0.017859220760834744',), 1338112311: ('0.017859220760834744',), 1338112309: ('0.017859220760834744',), 1338112273: ('0.017859220760834744',), 1338112268: ('0.017859220760834744',), 1338112262: ('0.017859220760834744',), 1338112240: ('0.017859220760834744',), 1338112228: ('0.017859220760834744',), 1338112226: ('0.017859220760834744',), 1338112213: ('0.017859220760834744',), 1338112210: ('0.017859220760834744',), 1338112208: ('0.017859220760834744',), 1338112197: ('0.017859220760834744',), 1338112193: ('0.017859220760834744',), 1338112185: ('0.017859220760834744',), 1338112183: ('0.017859220760834744',), 1338112181: ()} output_args : {1338112395: ('0.017859220760834744',), 1338112328: ('0.017859220760834744',), 1338112311: ('0.017859220760834744',), 1338112309: ('0.017859220760834744',), 1338112273: ('0.017859220760834744',), 1338112268: ('0.017859220760834744',), 1338112262: ('0.017859220760834744',), 1338112240: ('0.017859220760834744',), 1338112228: ('0.017859220760834744',), 1338112226: ('0.017859220760834744',), 1338112213: ('0.017859220760834744',), 1338112210: ('0.017859220760834744',), 1338112208: ('0.017859220760834744',), 1338112197: ('0.017859220760834744',), 1338112193: ('0.017859220760834744',), 1338112185: ('0.017859220760834744',), 1338112183: ('0.017859220760834744',), 1338112181: ('0.017859220760834744',), 1338112179: ('0.017859220760834744',), 1338112177: ('0.017859220760834744',), 1338112175: ('0.017859220760834744',), 1338112166: ('0.017859220760834744',), 1338112160: ('0.017859220760834744',), 1338112158: ('0.017859220760834744',), 1338112156: ('0.017859220760834744',), 1338112143: ('0.017859220760834744',)} args : 1338112181 depend.output_id : 0 input_args_next_step : {1338112395: ('0.017859220760834744',), 1338112328: ('0.017859220760834744',), 1338112311: ('0.017859220760834744',), 1338112309: ('0.017859220760834744',), 1338112273: ('0.017859220760834744',), 1338112268: ('0.017859220760834744',), 1338112262: ('0.017859220760834744',), 1338112240: ('0.017859220760834744',), 1338112228: ('0.017859220760834744',), 1338112226: ('0.017859220760834744',), 1338112213: ('0.017859220760834744',), 1338112210: ('0.017859220760834744',), 1338112208: ('0.017859220760834744',), 1338112197: ('0.017859220760834744',), 1338112193: ('0.017859220760834744',), 1338112185: ('0.017859220760834744',), 1338112183: ('0.017859220760834744',), 1338112181: ('0.017859220760834744',), 1338112179: ()} output_args : {1338112395: ('0.017859220760834744',), 1338112328: ('0.017859220760834744',), 1338112311: ('0.017859220760834744',), 1338112309: ('0.017859220760834744',), 1338112273: ('0.017859220760834744',), 1338112268: ('0.017859220760834744',), 1338112262: ('0.017859220760834744',), 1338112240: ('0.017859220760834744',), 1338112228: ('0.017859220760834744',), 1338112226: ('0.017859220760834744',), 1338112213: ('0.017859220760834744',), 1338112210: ('0.017859220760834744',), 1338112208: ('0.017859220760834744',), 1338112197: ('0.017859220760834744',), 1338112193: ('0.017859220760834744',), 1338112185: ('0.017859220760834744',), 1338112183: ('0.017859220760834744',), 1338112181: ('0.017859220760834744',), 1338112179: ('0.017859220760834744',), 1338112177: ('0.017859220760834744',), 1338112175: ('0.017859220760834744',), 1338112166: ('0.017859220760834744',), 1338112160: ('0.017859220760834744',), 1338112158: ('0.017859220760834744',), 1338112156: ('0.017859220760834744',), 1338112143: ('0.017859220760834744',)} args : 1338112179 depend.output_id : 0 input_args_next_step : {1338112395: ('0.017859220760834744',), 1338112328: ('0.017859220760834744',), 1338112311: ('0.017859220760834744',), 1338112309: ('0.017859220760834744',), 1338112273: ('0.017859220760834744',), 1338112268: ('0.017859220760834744',), 1338112262: ('0.017859220760834744',), 1338112240: ('0.017859220760834744',), 1338112228: ('0.017859220760834744',), 1338112226: ('0.017859220760834744',), 1338112213: ('0.017859220760834744',), 1338112210: ('0.017859220760834744',), 1338112208: ('0.017859220760834744',), 1338112197: ('0.017859220760834744',), 1338112193: ('0.017859220760834744',), 1338112185: ('0.017859220760834744',), 1338112183: ('0.017859220760834744',), 1338112181: ('0.017859220760834744',), 1338112179: ('0.017859220760834744',), 1338112177: ()} output_args : {1338112395: ('0.017859220760834744',), 1338112328: ('0.017859220760834744',), 1338112311: ('0.017859220760834744',), 1338112309: ('0.017859220760834744',), 1338112273: ('0.017859220760834744',), 1338112268: ('0.017859220760834744',), 1338112262: ('0.017859220760834744',), 1338112240: ('0.017859220760834744',), 1338112228: ('0.017859220760834744',), 1338112226: ('0.017859220760834744',), 1338112213: ('0.017859220760834744',), 1338112210: ('0.017859220760834744',), 1338112208: ('0.017859220760834744',), 1338112197: ('0.017859220760834744',), 1338112193: ('0.017859220760834744',), 1338112185: ('0.017859220760834744',), 1338112183: ('0.017859220760834744',), 1338112181: ('0.017859220760834744',), 1338112179: ('0.017859220760834744',), 1338112177: ('0.017859220760834744',), 1338112175: ('0.017859220760834744',), 1338112166: ('0.017859220760834744',), 1338112160: ('0.017859220760834744',), 1338112158: ('0.017859220760834744',), 1338112156: ('0.017859220760834744',), 1338112143: ('0.017859220760834744',)} args : 1338112177 depend.output_id : 0 input_args_next_step : {1338112395: ('0.017859220760834744',), 1338112328: ('0.017859220760834744',), 1338112311: ('0.017859220760834744',), 1338112309: ('0.017859220760834744',), 1338112273: ('0.017859220760834744',), 1338112268: ('0.017859220760834744',), 1338112262: ('0.017859220760834744',), 1338112240: ('0.017859220760834744',), 1338112228: ('0.017859220760834744',), 1338112226: ('0.017859220760834744',), 1338112213: ('0.017859220760834744',), 1338112210: ('0.017859220760834744',), 1338112208: ('0.017859220760834744',), 1338112197: ('0.017859220760834744',), 1338112193: ('0.017859220760834744',), 1338112185: ('0.017859220760834744',), 1338112183: ('0.017859220760834744',), 1338112181: ('0.017859220760834744',), 1338112179: ('0.017859220760834744',), 1338112177: ('0.017859220760834744',), 1338112175: ()} output_args : {1338112395: ('0.017859220760834744',), 1338112328: ('0.017859220760834744',), 1338112311: ('0.017859220760834744',), 1338112309: ('0.017859220760834744',), 1338112273: ('0.017859220760834744',), 1338112268: ('0.017859220760834744',), 1338112262: ('0.017859220760834744',), 1338112240: ('0.017859220760834744',), 1338112228: ('0.017859220760834744',), 1338112226: ('0.017859220760834744',), 1338112213: ('0.017859220760834744',), 1338112210: ('0.017859220760834744',), 1338112208: ('0.017859220760834744',), 1338112197: ('0.017859220760834744',), 1338112193: ('0.017859220760834744',), 1338112185: ('0.017859220760834744',), 1338112183: ('0.017859220760834744',), 1338112181: ('0.017859220760834744',), 1338112179: ('0.017859220760834744',), 1338112177: ('0.017859220760834744',), 1338112175: ('0.017859220760834744',), 1338112166: ('0.017859220760834744',), 1338112160: ('0.017859220760834744',), 1338112158: ('0.017859220760834744',), 1338112156: ('0.017859220760834744',), 1338112143: ('0.017859220760834744',)} args : 1338112175 depend.output_id : 0 input_args_next_step : {1338112395: ('0.017859220760834744',), 1338112328: ('0.017859220760834744',), 1338112311: ('0.017859220760834744',), 1338112309: ('0.017859220760834744',), 1338112273: ('0.017859220760834744',), 1338112268: ('0.017859220760834744',), 1338112262: ('0.017859220760834744',), 1338112240: ('0.017859220760834744',), 1338112228: ('0.017859220760834744',), 1338112226: ('0.017859220760834744',), 1338112213: ('0.017859220760834744',), 1338112210: ('0.017859220760834744',), 1338112208: ('0.017859220760834744',), 1338112197: ('0.017859220760834744',), 1338112193: ('0.017859220760834744',), 1338112185: ('0.017859220760834744',), 1338112183: ('0.017859220760834744',), 1338112181: ('0.017859220760834744',), 1338112179: ('0.017859220760834744',), 1338112177: ('0.017859220760834744',), 1338112175: ('0.017859220760834744',), 1338112166: ()} output_args : {1338112395: ('0.017859220760834744',), 1338112328: ('0.017859220760834744',), 1338112311: ('0.017859220760834744',), 1338112309: ('0.017859220760834744',), 1338112273: ('0.017859220760834744',), 1338112268: ('0.017859220760834744',), 1338112262: ('0.017859220760834744',), 1338112240: ('0.017859220760834744',), 1338112228: ('0.017859220760834744',), 1338112226: ('0.017859220760834744',), 1338112213: ('0.017859220760834744',), 1338112210: ('0.017859220760834744',), 1338112208: ('0.017859220760834744',), 1338112197: ('0.017859220760834744',), 1338112193: ('0.017859220760834744',), 1338112185: ('0.017859220760834744',), 1338112183: ('0.017859220760834744',), 1338112181: ('0.017859220760834744',), 1338112179: ('0.017859220760834744',), 1338112177: ('0.017859220760834744',), 1338112175: ('0.017859220760834744',), 1338112166: ('0.017859220760834744',), 1338112160: ('0.017859220760834744',), 1338112158: ('0.017859220760834744',), 1338112156: ('0.017859220760834744',), 1338112143: ('0.017859220760834744',)} args : 1338112166 depend.output_id : 0 input_args_next_step : {1338112395: ('0.017859220760834744',), 1338112328: ('0.017859220760834744',), 1338112311: ('0.017859220760834744',), 1338112309: ('0.017859220760834744',), 1338112273: ('0.017859220760834744',), 1338112268: ('0.017859220760834744',), 1338112262: ('0.017859220760834744',), 1338112240: ('0.017859220760834744',), 1338112228: ('0.017859220760834744',), 1338112226: ('0.017859220760834744',), 1338112213: ('0.017859220760834744',), 1338112210: ('0.017859220760834744',), 1338112208: ('0.017859220760834744',), 1338112197: ('0.017859220760834744',), 1338112193: ('0.017859220760834744',), 1338112185: ('0.017859220760834744',), 1338112183: ('0.017859220760834744',), 1338112181: ('0.017859220760834744',), 1338112179: ('0.017859220760834744',), 1338112177: ('0.017859220760834744',), 1338112175: ('0.017859220760834744',), 1338112166: ('0.017859220760834744',), 1338112160: ()} output_args : {1338112395: ('0.017859220760834744',), 1338112328: ('0.017859220760834744',), 1338112311: ('0.017859220760834744',), 1338112309: ('0.017859220760834744',), 1338112273: ('0.017859220760834744',), 1338112268: ('0.017859220760834744',), 1338112262: ('0.017859220760834744',), 1338112240: ('0.017859220760834744',), 1338112228: ('0.017859220760834744',), 1338112226: ('0.017859220760834744',), 1338112213: ('0.017859220760834744',), 1338112210: ('0.017859220760834744',), 1338112208: ('0.017859220760834744',), 1338112197: ('0.017859220760834744',), 1338112193: ('0.017859220760834744',), 1338112185: ('0.017859220760834744',), 1338112183: ('0.017859220760834744',), 1338112181: ('0.017859220760834744',), 1338112179: ('0.017859220760834744',), 1338112177: ('0.017859220760834744',), 1338112175: ('0.017859220760834744',), 1338112166: ('0.017859220760834744',), 1338112160: ('0.017859220760834744',), 1338112158: ('0.017859220760834744',), 1338112156: ('0.017859220760834744',), 1338112143: ('0.017859220760834744',)} args : 1338112160 depend.output_id : 0 input_args_next_step : {1338112395: ('0.017859220760834744',), 1338112328: ('0.017859220760834744',), 1338112311: ('0.017859220760834744',), 1338112309: ('0.017859220760834744',), 1338112273: ('0.017859220760834744',), 1338112268: ('0.017859220760834744',), 1338112262: ('0.017859220760834744',), 1338112240: ('0.017859220760834744',), 1338112228: ('0.017859220760834744',), 1338112226: ('0.017859220760834744',), 1338112213: ('0.017859220760834744',), 1338112210: ('0.017859220760834744',), 1338112208: ('0.017859220760834744',), 1338112197: ('0.017859220760834744',), 1338112193: ('0.017859220760834744',), 1338112185: ('0.017859220760834744',), 1338112183: ('0.017859220760834744',), 1338112181: ('0.017859220760834744',), 1338112179: ('0.017859220760834744',), 1338112177: ('0.017859220760834744',), 1338112175: ('0.017859220760834744',), 1338112166: ('0.017859220760834744',), 1338112160: ('0.017859220760834744',), 1338112158: ()} output_args : {1338112395: ('0.017859220760834744',), 1338112328: ('0.017859220760834744',), 1338112311: ('0.017859220760834744',), 1338112309: ('0.017859220760834744',), 1338112273: ('0.017859220760834744',), 1338112268: ('0.017859220760834744',), 1338112262: ('0.017859220760834744',), 1338112240: ('0.017859220760834744',), 1338112228: ('0.017859220760834744',), 1338112226: ('0.017859220760834744',), 1338112213: ('0.017859220760834744',), 1338112210: ('0.017859220760834744',), 1338112208: ('0.017859220760834744',), 1338112197: ('0.017859220760834744',), 1338112193: ('0.017859220760834744',), 1338112185: ('0.017859220760834744',), 1338112183: ('0.017859220760834744',), 1338112181: ('0.017859220760834744',), 1338112179: ('0.017859220760834744',), 1338112177: ('0.017859220760834744',), 1338112175: ('0.017859220760834744',), 1338112166: ('0.017859220760834744',), 1338112160: ('0.017859220760834744',), 1338112158: ('0.017859220760834744',), 1338112156: ('0.017859220760834744',), 1338112143: ('0.017859220760834744',)} args : 1338112158 depend.output_id : 0 input_args_next_step : {1338112395: ('0.017859220760834744',), 1338112328: ('0.017859220760834744',), 1338112311: ('0.017859220760834744',), 1338112309: ('0.017859220760834744',), 1338112273: ('0.017859220760834744',), 1338112268: ('0.017859220760834744',), 1338112262: ('0.017859220760834744',), 1338112240: ('0.017859220760834744',), 1338112228: ('0.017859220760834744',), 1338112226: ('0.017859220760834744',), 1338112213: ('0.017859220760834744',), 1338112210: ('0.017859220760834744',), 1338112208: ('0.017859220760834744',), 1338112197: ('0.017859220760834744',), 1338112193: ('0.017859220760834744',), 1338112185: ('0.017859220760834744',), 1338112183: ('0.017859220760834744',), 1338112181: ('0.017859220760834744',), 1338112179: ('0.017859220760834744',), 1338112177: ('0.017859220760834744',), 1338112175: ('0.017859220760834744',), 1338112166: ('0.017859220760834744',), 1338112160: ('0.017859220760834744',), 1338112158: ('0.017859220760834744',), 1338112156: ()} output_args : {1338112395: ('0.017859220760834744',), 1338112328: ('0.017859220760834744',), 1338112311: ('0.017859220760834744',), 1338112309: ('0.017859220760834744',), 1338112273: ('0.017859220760834744',), 1338112268: ('0.017859220760834744',), 1338112262: ('0.017859220760834744',), 1338112240: ('0.017859220760834744',), 1338112228: ('0.017859220760834744',), 1338112226: ('0.017859220760834744',), 1338112213: ('0.017859220760834744',), 1338112210: ('0.017859220760834744',), 1338112208: ('0.017859220760834744',), 1338112197: ('0.017859220760834744',), 1338112193: ('0.017859220760834744',), 1338112185: ('0.017859220760834744',), 1338112183: ('0.017859220760834744',), 1338112181: ('0.017859220760834744',), 1338112179: ('0.017859220760834744',), 1338112177: ('0.017859220760834744',), 1338112175: ('0.017859220760834744',), 1338112166: ('0.017859220760834744',), 1338112160: ('0.017859220760834744',), 1338112158: ('0.017859220760834744',), 1338112156: ('0.017859220760834744',), 1338112143: ('0.017859220760834744',)} args : 1338112156 depend.output_id : 0 input_args_next_step : {1338112395: ('0.017859220760834744',), 1338112328: ('0.017859220760834744',), 1338112311: ('0.017859220760834744',), 1338112309: ('0.017859220760834744',), 1338112273: ('0.017859220760834744',), 1338112268: ('0.017859220760834744',), 1338112262: ('0.017859220760834744',), 1338112240: ('0.017859220760834744',), 1338112228: ('0.017859220760834744',), 1338112226: ('0.017859220760834744',), 1338112213: ('0.017859220760834744',), 1338112210: ('0.017859220760834744',), 1338112208: ('0.017859220760834744',), 1338112197: ('0.017859220760834744',), 1338112193: ('0.017859220760834744',), 1338112185: ('0.017859220760834744',), 1338112183: ('0.017859220760834744',), 1338112181: ('0.017859220760834744',), 1338112179: ('0.017859220760834744',), 1338112177: ('0.017859220760834744',), 1338112175: ('0.017859220760834744',), 1338112166: ('0.017859220760834744',), 1338112160: ('0.017859220760834744',), 1338112158: ('0.017859220760834744',), 1338112156: ('0.017859220760834744',), 1338112143: ()} output_args : {1338112395: ('0.017859220760834744',), 1338112328: ('0.017859220760834744',), 1338112311: ('0.017859220760834744',), 1338112309: ('0.017859220760834744',), 1338112273: ('0.017859220760834744',), 1338112268: ('0.017859220760834744',), 1338112262: ('0.017859220760834744',), 1338112240: ('0.017859220760834744',), 1338112228: ('0.017859220760834744',), 1338112226: ('0.017859220760834744',), 1338112213: ('0.017859220760834744',), 1338112210: ('0.017859220760834744',), 1338112208: ('0.017859220760834744',), 1338112197: ('0.017859220760834744',), 1338112193: ('0.017859220760834744',), 1338112185: ('0.017859220760834744',), 1338112183: ('0.017859220760834744',), 1338112181: ('0.017859220760834744',), 1338112179: ('0.017859220760834744',), 1338112177: ('0.017859220760834744',), 1338112175: ('0.017859220760834744',), 1338112166: ('0.017859220760834744',), 1338112160: ('0.017859220760834744',), 1338112158: ('0.017859220760834744',), 1338112156: ('0.017859220760834744',), 1338112143: ('0.017859220760834744',)} args : 1338112143 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 : {20594332: [{'mal_croppe': 20594334, 'kraft': 20594335, 'cartonnette': 20594336, 'autre_refus': 20594337, 'metal': 20594338, 'Carton_brun': 20594339, 'flou': 20594340, 'Carton_gris': 20594341, 'papier': 20594342, 'plastique': 20594343, 'Teint_Dans_La_Masse': 20594344, 'environnement': 20594345}]} input_args_next_step : {1338112395: ('0.017859220760834744',), 1338112328: ('0.017859220760834744',), 1338112311: ('0.017859220760834744',), 1338112309: ('0.017859220760834744',), 1338112273: ('0.017859220760834744',), 1338112268: ('0.017859220760834744',), 1338112262: ('0.017859220760834744',), 1338112240: ('0.017859220760834744',), 1338112228: ('0.017859220760834744',), 1338112226: ('0.017859220760834744',), 1338112213: ('0.017859220760834744',), 1338112210: ('0.017859220760834744',), 1338112208: ('0.017859220760834744',), 1338112197: ('0.017859220760834744',), 1338112193: ('0.017859220760834744',), 1338112185: ('0.017859220760834744',), 1338112183: ('0.017859220760834744',), 1338112181: ('0.017859220760834744',), 1338112179: ('0.017859220760834744',), 1338112177: ('0.017859220760834744',), 1338112175: ('0.017859220760834744',), 1338112166: ('0.017859220760834744',), 1338112160: ('0.017859220760834744',), 1338112158: ('0.017859220760834744',), 1338112156: ('0.017859220760834744',), 1338112143: ('0.017859220760834744',), 20594332: ()} output_args : {20594332: [{'mal_croppe': 20594334, 'kraft': 20594335, 'cartonnette': 20594336, 'autre_refus': 20594337, 'metal': 20594338, 'Carton_brun': 20594339, 'flou': 20594340, 'Carton_gris': 20594341, 'papier': 20594342, 'plastique': 20594343, 'Teint_Dans_La_Masse': 20594344, 'environnement': 20594345}]} args : 20594332 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 :27, first value : ('0.017859220760834744',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20594332) 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 (1338112395,1338112328,1338112311,1338112309,1338112273,1338112268,1338112262,1338112240,1338112228,1338112226,1338112213,1338112210,1338112208,1338112197,1338112193,1338112185,1338112183,1338112181,1338112179,1338112177,1338112175,1338112166,1338112160,1338112158,1338112156,1338112143) Found this number of photos: 26 ##### Call download_photos : nb_thread : 5 begin to download photo : 1338112143 begin to download photo : 1338112177 begin to download photo : 1338112197 begin to download photo : 1338112240 begin to download photo : 1338112328 download finish for photo 1338112177 begin to download photo : 1338112179 download finish for photo 1338112328 begin to download photo : 1338112395 download finish for photo 1338112143 begin to download photo : 1338112156 download finish for photo 1338112240 begin to download photo : 1338112262 download finish for photo 1338112197 begin to download photo : 1338112208 download finish for photo 1338112395 download finish for photo 1338112179 begin to download photo : 1338112181 download finish for photo 1338112208 begin to download photo : 1338112210 download finish for photo 1338112156 begin to download photo : 1338112158 download finish for photo 1338112262 begin to download photo : 1338112268 download finish for photo 1338112158 begin to download photo : 1338112160 download finish for photo 1338112210 begin to download photo : 1338112213 download finish for photo 1338112268 begin to download photo : 1338112273 download finish for photo 1338112181 begin to download photo : 1338112183 download finish for photo 1338112160 begin to download photo : 1338112166 download finish for photo 1338112213 begin to download photo : 1338112226 download finish for photo 1338112183 begin to download photo : 1338112185 download finish for photo 1338112273 begin to download photo : 1338112309 download finish for photo 1338112226 begin to download photo : 1338112228 download finish for photo 1338112166 begin to download photo : 1338112175 download finish for photo 1338112309 begin to download photo : 1338112311 download finish for photo 1338112185 begin to download photo : 1338112193 download finish for photo 1338112311 download finish for photo 1338112193 download finish for photo 1338112228 download finish for photo 1338112175 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette205943341739853334/ imagette205943351739853334/ length of list_filenames : 26 ; length of list_pids : 26 ; length of list_args : 26 results_Auto_P20594332_18-02-2025_05_35_34.pdf 20594334 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=20594334 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette205943341739853334 20594335 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=20594335 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette205943351739853334 20594336 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=20594336 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1338112199: '1739766873_2172835_1338112158_b1f5aac3f1ddf35f2859f67c2bf3e243_rle_crop_3677678125_0.png', 1338112269: '1739767051_2174479_1338112179_56c9579d7e97b384edecb6a78c5e4c6c_rle_crop_3677678585_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/46576a13b1abec1936263c047b82f56a_63670855.png change filename to text .imagette205943361739853334/ imagette205943361739853334/1739767051_2174479_1338112179_56c9579d7e97b384edecb6a78c5e4c6c_rle_crop_3677678585_0.png.png imagette205943361739853334/1739766873_2172835_1338112158_b1f5aac3f1ddf35f2859f67c2bf3e243_rle_crop_3677678125_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/bb09d45c74f4d9d4b3b7ffd14ca897c2_92149294.png imagette205943361739853334 20594337 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=20594337 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1338112198: '1739766873_2172835_1338112158_b1f5aac3f1ddf35f2859f67c2bf3e243_rle_crop_3677678126_0.png', 1338112287: '1739767130_2175276_1338112226_6f8d5fa8e20cb9f8888932960b16d1a9_rle_crop_3677678662_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/6934595c55d9f3ccd2fd7179c17f47f0_21929393.png change filename to text .imagette205943371739853334/ imagette205943371739853334/1739766873_2172835_1338112158_b1f5aac3f1ddf35f2859f67c2bf3e243_rle_crop_3677678126_0.png.png imagette205943371739853334/1739767130_2175276_1338112226_6f8d5fa8e20cb9f8888932960b16d1a9_rle_crop_3677678662_0.png.png imagette205943381739853334/ imagette205943401739853334/ wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/765c771e3ab1a5c307581e8af6c43b9d_82096487.png imagette205943371739853334 20594338 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=20594338 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette205943381739853334 20594340 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=20594340 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette205943401739853334 20594343 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=20594343 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1338112205: '1739766873_2172835_1338112160_3ccb489d7eadda8f2b61a87ecf63db5a_rle_crop_3677678120_0.png', 1338112206: '1739766873_2172835_1338112158_b1f5aac3f1ddf35f2859f67c2bf3e243_rle_crop_3677678137_0.png', 1338112207: '1739766873_2172835_1338112156_78d9dbe3d1d52e122269a582b9c46053_rle_crop_3677678151_0.png', 1338112251: '1739767011_2174006_1338112208_f5f26093bde7d6baf7a75efadee09826_rle_crop_3677678366_0.png', 1338112252: '1739767011_2174006_1338112197_b56676ad3f9979c38b742ac4e0abb64c_rle_crop_3677678377_0.png', 1338112253: '1739767011_2174006_1338112193_64874c7bf61f28de884747fb93a2b6e1_rle_crop_3677678397_0.png', 1338112270: '1739767051_2174479_1338112183_193d017ee7d88324848e559af6a1ede9_rle_crop_3677678567_0.png', 1338112272: '1739767051_2174479_1338112175_60682ce81336cce3e8e5fd303c6735f0_rle_crop_3677678610_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/80a2d24f65aa7ad7f198da0b62cb35cb_71317758.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/383bda25656f80dfbff0cfb67355ca43_16449882.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/c986094dbed6cf7c12561e0c9bde0f38_77188468.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/43df9c22f77016c3ec742a9b17659f31_4254120.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/f05c2b27e709713d5e44b844eaa76620_4869665.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/dd401e2bcfdfd987ed18ce9704dfc82b_14210076.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/e5a23f137f7e8bea41eac6e582edfec2_99320453.png change filename to text .imagette205943431739853334/ imagette205943431739853334/1739767011_2174006_1338112193_64874c7bf61f28de884747fb93a2b6e1_rle_crop_3677678397_0.png.png imagette205943431739853334/1739766873_2172835_1338112160_3ccb489d7eadda8f2b61a87ecf63db5a_rle_crop_3677678120_0.png.png imagette205943431739853334/1739766873_2172835_1338112156_78d9dbe3d1d52e122269a582b9c46053_rle_crop_3677678151_0.png.png imagette205943431739853334/1739767051_2174479_1338112175_60682ce81336cce3e8e5fd303c6735f0_rle_crop_3677678610_0.png.png imagette205943431739853334/1739767011_2174006_1338112208_f5f26093bde7d6baf7a75efadee09826_rle_crop_3677678366_0.png.png imagette205943431739853334/1739766873_2172835_1338112158_b1f5aac3f1ddf35f2859f67c2bf3e243_rle_crop_3677678137_0.png.png imagette205943431739853334/1739767051_2174479_1338112183_193d017ee7d88324848e559af6a1ede9_rle_crop_3677678567_0.png.png imagette205943431739853334/1739767011_2174006_1338112197_b56676ad3f9979c38b742ac4e0abb64c_rle_crop_3677678377_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/e85a397e91f7fb515151f80b0ee7c0a5_59509464.png imagette205943431739853334 20594339 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=20594339 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1338112201: '1739766873_2172835_1338112160_3ccb489d7eadda8f2b61a87ecf63db5a_rle_crop_3677678118_0.png', 1338112202: '1739766873_2172835_1338112160_3ccb489d7eadda8f2b61a87ecf63db5a_rle_crop_3677678113_0.png', 1338112203: '1739766873_2172835_1338112158_b1f5aac3f1ddf35f2859f67c2bf3e243_rle_crop_3677678130_0.png', 1338112204: '1739766873_2172835_1338112156_78d9dbe3d1d52e122269a582b9c46053_rle_crop_3677678149_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/6a4312199aae81c8a8a7b0b1a81aaf74_55844149.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/b7713df7c64dda7a622d670620182303_96749663.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/3888c578beaf7b37818337f63ed91a11_77130067.png change filename to text .imagette205943391739853335/ imagette205943391739853335/1739766873_2172835_1338112160_3ccb489d7eadda8f2b61a87ecf63db5a_rle_crop_3677678113_0.png.png imagette205943391739853335/1739766873_2172835_1338112158_b1f5aac3f1ddf35f2859f67c2bf3e243_rle_crop_3677678130_0.png.png imagette205943391739853335/1739766873_2172835_1338112160_3ccb489d7eadda8f2b61a87ecf63db5a_rle_crop_3677678118_0.png.png imagette205943391739853335/1739766873_2172835_1338112156_78d9dbe3d1d52e122269a582b9c46053_rle_crop_3677678149_0.png.png imagette205943411739853336/ wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/3ec22f3dda0853026b85df03bca08acb_15896760.png imagette205943391739853335 20594341 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=20594341 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette205943411739853336 20594344 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=20594344 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1338112195: '1739766873_2172835_1338112160_3ccb489d7eadda8f2b61a87ecf63db5a_rle_crop_3677678114_0.png', 1338112196: '1739766873_2172835_1338112158_b1f5aac3f1ddf35f2859f67c2bf3e243_rle_crop_3677678131_0.png', 1338112246: '1739767011_2174006_1338112228_275848d4a1d3bd3a284718da674f2f44_rle_crop_3677678323_0.png', 1338112247: '1739767011_2174006_1338112210_27f66c657a824d30e9485e97296e197d_rle_crop_3677678354_0.png', 1338112248: '1739767011_2174006_1338112208_f5f26093bde7d6baf7a75efadee09826_rle_crop_3677678367_0.png', 1338112249: '1739767011_2174006_1338112197_b56676ad3f9979c38b742ac4e0abb64c_rle_crop_3677678380_0.png', 1338112250: '1739767011_2174006_1338112193_64874c7bf61f28de884747fb93a2b6e1_rle_crop_3677678393_0.png', 1338112255: '1739767032_2174236_1338112185_7a03e079cd90be893c52b47c53d142f9_rle_crop_3677678408_0.png', 1338112264: '1739767051_2174479_1338112213_aadb0268ff2f831c2cb41da5d8be56b9_rle_crop_3677678556_0.png', 1338112265: '1739767051_2174479_1338112179_56c9579d7e97b384edecb6a78c5e4c6c_rle_crop_3677678590_0.png', 1338112266: '1739767051_2174479_1338112177_907d4823f2a1f061b3c6a01c5a2c1562_rle_crop_3677678604_0.png', 1338112267: '1739767051_2174479_1338112175_60682ce81336cce3e8e5fd303c6735f0_rle_crop_3677678615_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/4b098c5faad8f57f27c9aeff4b0bbdc6_63937017.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/90bcd3ac741cc640a347a76fd44a1e4d_53902788.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/a731a2a8b752e99c4a0545855afd4788_42912860.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/11920ebdb3cdb3212c9f7f370a67f86e_72601774.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/474f855be90bb7bc060c07618055032b_93971411.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/85f6f417d6126734f4f4df87ea483508_49915675.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/046654d5cfaefb70c4fe86ddcdce34bf_94767326.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/d379bfbe179eca43b38b449941b2c23f_61050029.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/07199062b788038a22babc67c746fc47_66799207.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/460b70acfb8805ee18f15347d01b0597_32266600.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/caba407b1a554f3390be2c80a994f253_46021586.png change filename to text .imagette205943441739853336/ imagette205943441739853336/1739767011_2174006_1338112208_f5f26093bde7d6baf7a75efadee09826_rle_crop_3677678367_0.png.png imagette205943441739853336/1739767051_2174479_1338112175_60682ce81336cce3e8e5fd303c6735f0_rle_crop_3677678615_0.png.png imagette205943441739853336/1739766873_2172835_1338112160_3ccb489d7eadda8f2b61a87ecf63db5a_rle_crop_3677678114_0.png.png imagette205943441739853336/1739767051_2174479_1338112179_56c9579d7e97b384edecb6a78c5e4c6c_rle_crop_3677678590_0.png.png imagette205943441739853336/1739767011_2174006_1338112228_275848d4a1d3bd3a284718da674f2f44_rle_crop_3677678323_0.png.png imagette205943441739853336/1739767011_2174006_1338112193_64874c7bf61f28de884747fb93a2b6e1_rle_crop_3677678393_0.png.png imagette205943441739853336/1739766873_2172835_1338112158_b1f5aac3f1ddf35f2859f67c2bf3e243_rle_crop_3677678131_0.png.png imagette205943441739853336/1739767011_2174006_1338112210_27f66c657a824d30e9485e97296e197d_rle_crop_3677678354_0.png.png imagette205943441739853336/1739767011_2174006_1338112197_b56676ad3f9979c38b742ac4e0abb64c_rle_crop_3677678380_0.png.png imagette205943441739853336/1739767051_2174479_1338112177_907d4823f2a1f061b3c6a01c5a2c1562_rle_crop_3677678604_0.png.png imagette205943441739853336/1739767051_2174479_1338112213_aadb0268ff2f831c2cb41da5d8be56b9_rle_crop_3677678556_0.png.png imagette205943441739853336/1739767032_2174236_1338112185_7a03e079cd90be893c52b47c53d142f9_rle_crop_3677678408_0.png.png wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/24034a4e054298607fd84eff8481c12e_23192909.png imagette205943441739853336 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=20594332 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/20594346,20594347,20594348,20594349,20594350,20594351,20594352,20594353,20594354,20594355,20594356,20594357?tags=mal_croppe,kraft,cartonnette,autre_refus,metal,Carton_brun,flou,Carton_gris,papier,plastique,Teint_Dans_La_Masse,environnement your option no_mail is active, we will not send the real mail to your client args[1338112395] : ('0.017859220760834744',) no score found for photo 1338112395 apple ('0.017859220760834744',) We are sending mail with results at report@fotonower.com args[1338112328] : ('0.017859220760834744',) no score found for photo 1338112328 apple ('0.017859220760834744',) We are sending mail with results at report@fotonower.com args[1338112311] : ('0.017859220760834744',) no score found for photo 1338112311 apple ('0.017859220760834744',) We are sending mail with results at report@fotonower.com args[1338112309] : ('0.017859220760834744',) no score found for photo 1338112309 apple ('0.017859220760834744',) We are sending mail with results at report@fotonower.com args[1338112273] : ('0.017859220760834744',) no score found for photo 1338112273 apple ('0.017859220760834744',) We are sending mail with results at report@fotonower.com args[1338112268] : ('0.017859220760834744',) no score found for photo 1338112268 apple ('0.017859220760834744',) We are sending mail with results at report@fotonower.com args[1338112262] : ('0.017859220760834744',) no score found for photo 1338112262 apple ('0.017859220760834744',) We are sending mail with results at report@fotonower.com args[1338112240] : ('0.017859220760834744',) no score found for photo 1338112240 apple ('0.017859220760834744',) We are sending mail with results at report@fotonower.com args[1338112228] : ('0.017859220760834744',) no score found for photo 1338112228 apple ('0.017859220760834744',) We are sending mail with results at report@fotonower.com args[1338112226] : ('0.017859220760834744',) no score found for photo 1338112226 apple ('0.017859220760834744',) We are sending mail with results at report@fotonower.com args[1338112213] : ('0.017859220760834744',) no score found for photo 1338112213 apple ('0.017859220760834744',) We are sending mail with results at report@fotonower.com args[1338112210] : ('0.017859220760834744',) no score found for photo 1338112210 apple ('0.017859220760834744',) We are sending mail with results at report@fotonower.com args[1338112208] : ('0.017859220760834744',) no score found for photo 1338112208 apple ('0.017859220760834744',) We are sending mail with results at report@fotonower.com args[1338112197] : ('0.017859220760834744',) no score found for photo 1338112197 apple ('0.017859220760834744',) We are sending mail with results at report@fotonower.com args[1338112193] : ('0.017859220760834744',) no score found for photo 1338112193 apple ('0.017859220760834744',) We are sending mail with results at report@fotonower.com args[1338112185] : ('0.017859220760834744',) no score found for photo 1338112185 apple ('0.017859220760834744',) We are sending mail with results at report@fotonower.com args[1338112183] : ('0.017859220760834744',) no score found for photo 1338112183 apple ('0.017859220760834744',) We are sending mail with results at report@fotonower.com args[1338112181] : ('0.017859220760834744',) no score found for photo 1338112181 apple ('0.017859220760834744',) We are sending mail with results at report@fotonower.com args[1338112179] : ('0.017859220760834744',) no score found for photo 1338112179 apple ('0.017859220760834744',) We are sending mail with results at report@fotonower.com args[1338112177] : ('0.017859220760834744',) no score found for photo 1338112177 apple ('0.017859220760834744',) We are sending mail with results at report@fotonower.com args[1338112175] : ('0.017859220760834744',) no score found for photo 1338112175 apple ('0.017859220760834744',) We are sending mail with results at report@fotonower.com args[1338112166] : ('0.017859220760834744',) no score found for photo 1338112166 apple ('0.017859220760834744',) We are sending mail with results at report@fotonower.com args[1338112160] : ('0.017859220760834744',) no score found for photo 1338112160 apple ('0.017859220760834744',) We are sending mail with results at report@fotonower.com args[1338112158] : ('0.017859220760834744',) no score found for photo 1338112158 apple ('0.017859220760834744',) We are sending mail with results at report@fotonower.com args[1338112156] : ('0.017859220760834744',) no score found for photo 1338112156 apple ('0.017859220760834744',) We are sending mail with results at report@fotonower.com args[1338112143] : ('0.017859220760834744',) no score found for photo 1338112143 apple ('0.017859220760834744',) We are sending mail with results at report@fotonower.com refus_total : 0.017859220760834744 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=20594332 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_P20594332_18-02-2025_05_35_34.pdf results_Auto_P20594332_18-02-2025_05_35_34.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20594332_18-02-2025_05_35_34.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','20594332','results_Auto_P20594332_18-02-2025_05_35_34.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20594332_18-02-2025_05_35_34.pdf','pdf','','0.27','0.017859220760834744') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20594332]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1338112395, 1338112328, 1338112311, 1338112309, 1338112273, 1338112268, 1338112262, 1338112240, 1338112228, 1338112226, 1338112213, 1338112210, 1338112208, 1338112197, 1338112193, 1338112185, 1338112183, 1338112181, 1338112179, 1338112177, 1338112175, 1338112166, 1338112160, 1338112158, 1338112156, 1338112143] map_info['map_portfolio_photo'] : {20594332: [1338112395, 1338112328, 1338112311, 1338112309, 1338112273, 1338112268, 1338112262, 1338112240, 1338112228, 1338112226, 1338112213, 1338112210, 1338112208, 1338112197, 1338112193, 1338112185, 1338112183, 1338112181, 1338112179, 1338112177, 1338112175, 1338112166, 1338112160, 1338112158, 1338112156, 1338112143]} final : False mtd_id 4302 list_pids : [1338112395, 1338112328, 1338112311, 1338112309, 1338112273, 1338112268, 1338112262, 1338112240, 1338112228, 1338112226, 1338112213, 1338112210, 1338112208, 1338112197, 1338112193, 1338112185, 1338112183, 1338112181, 1338112179, 1338112177, 1338112175, 1338112166, 1338112160, 1338112158, 1338112156, 1338112143] 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, '2595240') ('4302', '20594332', '1338112395', None, None, None, None, None, '2595240') ('4302', None, None, None, None, None, None, None, '2595240') ('4302', '20594332', '1338112328', None, None, None, None, None, '2595240') ('4302', None, None, None, None, None, None, None, '2595240') ('4302', '20594332', '1338112311', None, None, None, None, None, '2595240') ('4302', None, None, None, None, None, None, None, '2595240') ('4302', '20594332', '1338112309', None, None, None, None, None, '2595240') ('4302', None, None, None, None, None, None, None, '2595240') ('4302', '20594332', '1338112273', None, None, None, None, None, '2595240') ('4302', None, None, None, None, None, None, None, '2595240') ('4302', '20594332', '1338112268', None, None, None, None, None, '2595240') ('4302', None, None, None, None, None, None, None, '2595240') ('4302', '20594332', '1338112262', None, None, None, None, None, '2595240') ('4302', None, None, None, None, None, None, None, '2595240') ('4302', '20594332', '1338112240', None, None, None, None, None, '2595240') ('4302', None, None, None, None, None, None, None, '2595240') ('4302', '20594332', '1338112228', None, None, None, None, None, '2595240') ('4302', None, None, None, None, None, None, None, '2595240') ('4302', '20594332', '1338112226', None, None, None, None, None, '2595240') ('4302', None, None, None, None, None, None, None, '2595240') ('4302', '20594332', '1338112213', None, None, None, None, None, '2595240') ('4302', None, None, None, None, None, None, None, '2595240') ('4302', '20594332', '1338112210', None, None, None, None, None, '2595240') ('4302', None, None, None, None, None, None, None, '2595240') ('4302', '20594332', '1338112208', None, None, None, None, None, '2595240') ('4302', None, None, None, None, None, None, None, '2595240') ('4302', '20594332', '1338112197', None, None, None, None, None, '2595240') ('4302', None, None, None, None, None, None, None, '2595240') ('4302', '20594332', '1338112193', None, None, None, None, None, '2595240') ('4302', None, None, None, None, None, None, None, '2595240') ('4302', '20594332', '1338112185', None, None, None, None, None, '2595240') ('4302', None, None, None, None, None, None, None, '2595240') ('4302', '20594332', '1338112183', None, None, None, None, None, '2595240') ('4302', None, None, None, None, None, None, None, '2595240') ('4302', '20594332', '1338112181', None, None, None, None, None, '2595240') ('4302', None, None, None, None, None, None, None, '2595240') ('4302', '20594332', '1338112179', None, None, None, None, None, '2595240') ('4302', None, None, None, None, None, None, None, '2595240') ('4302', '20594332', '1338112177', None, None, None, None, None, '2595240') ('4302', None, None, None, None, None, None, None, '2595240') ('4302', '20594332', '1338112175', None, None, None, None, None, '2595240') ('4302', None, None, None, None, None, None, None, '2595240') ('4302', '20594332', '1338112166', None, None, None, None, None, '2595240') ('4302', None, None, None, None, None, None, None, '2595240') ('4302', '20594332', '1338112160', None, None, None, None, None, '2595240') ('4302', None, None, None, None, None, None, None, '2595240') ('4302', '20594332', '1338112158', None, None, None, None, None, '2595240') ('4302', None, None, None, None, None, None, None, '2595240') ('4302', '20594332', '1338112156', None, None, None, None, None, '2595240') ('4302', None, None, None, None, None, None, None, '2595240') ('4302', '20594332', '1338112143', None, None, None, None, None, '2595240') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 26 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', '20594332', '1338112395', None, None, None, None, None, '2595240'), ('4302', '20594332', '1338112328', None, None, None, None, None, '2595240'), ('4302', '20594332', '1338112311', None, None, None, None, None, '2595240'), ('4302', '20594332', '1338112309', None, None, None, None, None, '2595240'), ('4302', '20594332', '1338112273', None, None, None, None, None, '2595240'), ('4302', '20594332', '1338112268', None, None, None, None, None, '2595240'), ('4302', '20594332', '1338112262', None, None, None, None, None, '2595240'), ('4302', '20594332', '1338112240', None, None, None, None, None, '2595240'), ('4302', '20594332', '1338112228', None, None, None, None, None, '2595240'), ('4302', '20594332', '1338112226', None, None, None, None, None, '2595240'), ('4302', '20594332', '1338112213', None, None, None, None, None, '2595240'), ('4302', '20594332', '1338112210', None, None, None, None, None, '2595240'), ('4302', '20594332', '1338112208', None, None, None, None, None, '2595240'), ('4302', '20594332', '1338112197', None, None, None, None, None, '2595240'), ('4302', '20594332', '1338112193', None, None, None, None, None, '2595240'), ('4302', '20594332', '1338112185', None, None, None, None, None, '2595240'), ('4302', '20594332', '1338112183', None, None, None, None, None, '2595240'), ('4302', '20594332', '1338112181', None, None, None, None, None, '2595240'), ('4302', '20594332', '1338112179', None, None, None, None, None, '2595240'), ('4302', '20594332', '1338112177', None, None, None, None, None, '2595240'), ('4302', '20594332', '1338112175', None, None, None, None, None, '2595240'), ('4302', '20594332', '1338112166', None, None, None, None, None, '2595240'), ('4302', '20594332', '1338112160', None, None, None, None, None, '2595240'), ('4302', '20594332', '1338112158', None, None, None, None, None, '2595240'), ('4302', '20594332', '1338112156', None, None, None, None, None, '2595240'), ('4302', '20594332', '1338112143', None, None, None, None, None, '2595240')] time used for this insertion : 0.020758867263793945 save_final save missing photos in datou_result : time spend for datou_step_exec : 5.773746728897095 time spend to save output : 0.021204233169555664 total time spend for step 4 : 5.79495096206665 step5:split_time_score Tue Feb 18 05:35:39 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 : ['20594332'] 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 : [('20594332',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20594332) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1338112328: {'path': 'temp/1739853333_2328047_1338112328_5013e3d9b2c5e78af482e3d8bb7ac9e3.jpg', 'extension': 'jpg'}, 1338112395: {'path': 'temp/1739853333_2328047_1338112395_06c70a24ca23fbfb9f08a04d7fad3ad6.jpg', 'extension': 'jpg'}, 1338112240: {'path': 'temp/1739853333_2328047_1338112240_6985fa471d5cc8d09eaea647029f9e77.jpg', 'extension': 'jpg'}, 1338112262: {'path': 'temp/1739853333_2328047_1338112262_06c5c14b1a5da15b295bc577cdb2b9f1.jpg', 'extension': 'jpg'}, 1338112268: {'path': 'temp/1739853333_2328047_1338112268_e739a3d293250f11104d57d2234f3313.jpg', 'extension': 'jpg'}, 1338112273: {'path': 'temp/1739853333_2328047_1338112273_fa0a9340977c4963b99c83bdcc1e7704.jpg', 'extension': 'jpg'}, 1338112309: {'path': 'temp/1739853333_2328047_1338112309_ec758dbd2c89fb9f133cb6d754102c37.jpg', 'extension': 'jpg'}, 1338112311: {'path': 'temp/1739853333_2328047_1338112311_c52184b8accd560543176d547c85462a.jpg', 'extension': 'jpg'}, 1338112177: {'path': 'temp/1739853333_2328047_1338112177_907d4823f2a1f061b3c6a01c5a2c1562.jpg', 'extension': 'jpg'}, 1338112179: {'path': 'temp/1739853333_2328047_1338112179_56c9579d7e97b384edecb6a78c5e4c6c.jpg', 'extension': 'jpg'}, 1338112181: {'path': 'temp/1739853333_2328047_1338112181_f257ac325ff0815802d96dd77009999f.jpg', 'extension': 'jpg'}, 1338112183: {'path': 'temp/1739853333_2328047_1338112183_193d017ee7d88324848e559af6a1ede9.jpg', 'extension': 'jpg'}, 1338112185: {'path': 'temp/1739853333_2328047_1338112185_7a03e079cd90be893c52b47c53d142f9.jpg', 'extension': 'jpg'}, 1338112193: {'path': 'temp/1739853333_2328047_1338112193_64874c7bf61f28de884747fb93a2b6e1.jpg', 'extension': 'jpg'}, 1338112197: {'path': 'temp/1739853333_2328047_1338112197_b56676ad3f9979c38b742ac4e0abb64c.jpg', 'extension': 'jpg'}, 1338112208: {'path': 'temp/1739853333_2328047_1338112208_f5f26093bde7d6baf7a75efadee09826.jpg', 'extension': 'jpg'}, 1338112210: {'path': 'temp/1739853333_2328047_1338112210_27f66c657a824d30e9485e97296e197d.jpg', 'extension': 'jpg'}, 1338112213: {'path': 'temp/1739853333_2328047_1338112213_aadb0268ff2f831c2cb41da5d8be56b9.jpg', 'extension': 'jpg'}, 1338112226: {'path': 'temp/1739853333_2328047_1338112226_6f8d5fa8e20cb9f8888932960b16d1a9.jpg', 'extension': 'jpg'}, 1338112228: {'path': 'temp/1739853333_2328047_1338112228_275848d4a1d3bd3a284718da674f2f44.jpg', 'extension': 'jpg'}, 1338112143: {'path': 'temp/1739853333_2328047_1338112143_8a8e3897497bcc6e491023076597257d.jpg', 'extension': 'jpg'}, 1338112156: {'path': 'temp/1739853333_2328047_1338112156_78d9dbe3d1d52e122269a582b9c46053.jpg', 'extension': 'jpg'}, 1338112158: {'path': 'temp/1739853333_2328047_1338112158_b1f5aac3f1ddf35f2859f67c2bf3e243.jpg', 'extension': 'jpg'}, 1338112160: {'path': 'temp/1739853333_2328047_1338112160_3ccb489d7eadda8f2b61a87ecf63db5a.jpg', 'extension': 'jpg'}, 1338112166: {'path': 'temp/1739853333_2328047_1338112166_b628970ff7e2cc1ee6486b34ee44f718.jpg', 'extension': 'jpg'}, 1338112175: {'path': 'temp/1739853333_2328047_1338112175_60682ce81336cce3e8e5fd303c6735f0.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 = 20594332; (('arc_en_ciel_jrm',),) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 20594332 group by h (('05', 26),) 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=20594332 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 (20594332) 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 (20594332) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 17022025 20594332 Nombre de photos uploadées : 26 / 23040 (0%) 17022025 20594332 Nombre de photos taguées (types de déchets): 0 / 26 (0%) 17022025 20594332 Nombre de photos taguées (volume) : 0 / 26 (0%) [{'photo_id': 1338112143, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/8a8e3897497bcc6e491023076597257d.jpg', 'username': None, 'uploaded_at': 1739766726, 'text': 'image_17022025_05_30_54_10142.jpg'}, {'photo_id': 1338112166, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/b628970ff7e2cc1ee6486b34ee44f718.jpg', 'username': None, 'uploaded_at': 1739766786, 'text': 'image_17022025_05_31_54_9128.jpg'}, {'photo_id': 1338112160, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/3ccb489d7eadda8f2b61a87ecf63db5a.jpg', 'username': None, 'uploaded_at': 1739766786, 'text': 'image_17022025_05_32_14_010142m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1338112158, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/b1f5aac3f1ddf35f2859f67c2bf3e243.jpg', 'username': None, 'uploaded_at': 1739766786, 'text': 'image_17022025_05_32_35_010143m0.jpg 2e-05 for time 1, id_amount 2 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 5.9604644775390625e-06 ?????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.001329660415649414 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 20594332, '2025-02-17' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1607134,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.028631210327148438 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= 1607134 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1607134, 'dashboard_run_id': 1617283, 'mtr_portfolio_id': 20594280, 'dashboard_result_id': 8943577, '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_P20594280_18-02-2025_05_34_29.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20594282, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20594283, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20594284, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20594285, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20594286, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20594287, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20594288, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20594289, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20594290, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20594291, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20594292, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20594293, 'pht': 3726}}"}, {'dashboat_entry_day': 1607134, 'dashboard_run_id': 1617283, 'mtr_portfolio_id': 20594332, 'dashboard_result_id': 8943578, '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_P20594332_17-02-2025_05_48_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20594334, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20594335, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20594336, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20594337, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20594338, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20594339, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20594340, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20594341, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20594342, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20594343, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20594344, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20594345, 'pht': 3726}}"}, {'dashboat_entry_day': 1607134, 'dashboard_run_id': 1617283, 'mtr_portfolio_id': 20594486, 'dashboard_result_id': 8943579, '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_P20594486_17-02-2025_06_04_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20594488, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20594489, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20594490, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20594491, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20594492, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20594493, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20594494, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20594495, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20594496, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20594497, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20594498, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20594499, 'pht': 3726}}"}, {'dashboat_entry_day': 1607134, 'dashboard_run_id': 1617283, 'mtr_portfolio_id': 20594872, 'dashboard_result_id': 8943580, '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_P20594872_17-02-2025_06_17_06.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20594922, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20594923, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20594924, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20594925, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20594926, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20594927, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20594928, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20594929, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20594930, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20594931, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20594932, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20594933, 'pht': 3726}}"}, {'dashboat_entry_day': 1607134, 'dashboard_run_id': 1617283, 'mtr_portfolio_id': 20595236, 'dashboard_result_id': 8943581, '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_P20595236_17-02-2025_06_32_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20595239, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20595240, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20595241, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20595242, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20595243, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20595244, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20595245, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20595246, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20595247, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20595248, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20595249, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20595250, 'pht': 3726}}"}, {'dashboat_entry_day': 1607134, 'dashboard_run_id': 1617283, 'mtr_portfolio_id': 20595343, 'dashboard_result_id': 8943582, '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_P20595343_17-02-2025_06_52_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20595344, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20595345, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20595346, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20595347, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20595348, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20595349, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20595350, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20595351, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20595352, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20595353, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20595354, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20595355, 'pht': 3726}}"}, {'dashboat_entry_day': 1607134, 'dashboard_run_id': 1617283, 'mtr_portfolio_id': 20595598, 'dashboard_result_id': 8943583, '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_P20595598_17-02-2025_07_02_29.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20595600, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20595601, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20595602, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20595603, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20595604, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20595605, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20595606, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20595607, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20595608, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20595609, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20595610, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20595611, 'pht': 3726}}"}, {'dashboat_entry_day': 1607134, 'dashboard_run_id': 1617283, 'mtr_portfolio_id': 20595820, 'dashboard_result_id': 8943584, '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_P20595820_17-02-2025_07_22_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20595849, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20595850, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20595851, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20595852, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20595853, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20595854, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20595855, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20595856, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20595857, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20595858, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20595859, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20595860, 'pht': 3726}}"}, {'dashboat_entry_day': 1607134, 'dashboard_run_id': 1617283, 'mtr_portfolio_id': 20596067, 'dashboard_result_id': 8943585, '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_P20596067_17-02-2025_07_32_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20596135, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20596136, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20596137, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20596138, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20596139, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20596140, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20596141, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20596142, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20596143, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20596144, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20596145, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20596146, 'pht': 3726}}"}, {'dashboat_entry_day': 1607134, 'dashboard_run_id': 1617283, 'mtr_portfolio_id': 20596959, 'dashboard_result_id': 8943586, '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_P20596959_17-02-2025_07_48_57.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20596961, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20596962, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20596963, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20596964, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20596965, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20596966, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20596967, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20596968, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20596969, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20596970, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20596971, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20596972, 'pht': 3726}}"}, {'dashboat_entry_day': 1607134, 'dashboard_run_id': 1617283, 'mtr_portfolio_id': 20597365, 'dashboard_result_id': 8943587, '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_P20597365_17-02-2025_08_03_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20597370, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20597371, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20597372, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20597373, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20597374, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20597375, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20597376, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20597377, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20597378, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20597379, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20597380, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20597381, 'pht': 3726}}"}, {'dashboat_entry_day': 1607134, 'dashboard_run_id': 1617283, 'mtr_portfolio_id': 20597866, 'dashboard_result_id': 8943588, '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_P20597866_17-02-2025_08_17_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20597871, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20597872, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20597873, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20597874, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20597875, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20597876, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20597877, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20597878, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20597879, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20597880, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20597881, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20597882, 'pht': 3726}}"}, {'dashboat_entry_day': 1607134, 'dashboard_run_id': 1617283, 'mtr_portfolio_id': 20598303, 'dashboard_result_id': 8943589, '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_P20598303_17-02-2025_08_33_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20598306, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20598307, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20598308, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20598309, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20598310, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20598311, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20598312, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20598313, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20598314, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20598315, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20598316, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20598317, 'pht': 3726}}"}, {'dashboat_entry_day': 1607134, 'dashboard_run_id': 1617283, 'mtr_portfolio_id': 20598844, 'dashboard_result_id': 8943590, '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_P20598844_17-02-2025_08_46_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20598883, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20598884, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20598885, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20598886, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20598887, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20598888, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20598889, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20598890, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20598891, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20598892, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20598893, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20598894, 'pht': 3726}}"}, {'dashboat_entry_day': 1607134, 'dashboard_run_id': 1617283, 'mtr_portfolio_id': 20599330, 'dashboard_result_id': 8943591, '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_P20599330_17-02-2025_09_04_57.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20599334, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20599335, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20599336, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20599337, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20599338, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20599339, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20599340, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20599341, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20599342, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20599343, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20599344, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20599345, 'pht': 3726}}"}, {'dashboat_entry_day': 1607134, 'dashboard_run_id': 1617283, 'mtr_portfolio_id': 20600382, 'dashboard_result_id': 8943592, '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_P20600382_17-02-2025_09_48_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20600384, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20600385, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20600386, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20600387, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20600388, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20600389, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20600390, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20600391, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20600392, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20600393, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20600394, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20600395, 'pht': 3726}}"}, {'dashboat_entry_day': 1607134, 'dashboard_run_id': 1617283, 'mtr_portfolio_id': 20600895, 'dashboard_result_id': 8943593, '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_P20600895_17-02-2025_10_02_57.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20600898, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20600899, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20600900, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20600901, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20600902, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20600903, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20600904, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20600905, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20600906, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20600907, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20600908, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20600909, 'pht': 3726}}"}, {'dashboat_entry_day': 1607134, 'dashboard_run_id': 1617283, 'mtr_portfolio_id': 20601335, 'dashboard_result_id': 8943594, '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_P20601335_17-02-2025_10_16_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20601363, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20601364, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20601365, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20601366, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20601367, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20601368, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20601369, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20601370, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20601371, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20601372, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20601373, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20601374, 'pht': 3726}}"}, {'dashboat_entry_day': 1607134, 'dashboard_run_id': 1617283, 'mtr_portfolio_id': 20601878, 'dashboard_result_id': 8943595, '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_P20601878_17-02-2025_10_32_56.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20601906, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20601907, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20601908, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20601909, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20601910, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20601911, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20601912, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20601913, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20601914, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20601915, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20601916, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20601917, 'pht': 3726}}"}, {'dashboat_entry_day': 1607134, 'dashboard_run_id': 1617283, 'mtr_portfolio_id': 20602408, 'dashboard_result_id': 8943596, '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_P20602408_17-02-2025_10_46_30.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20602437, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20602438, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20602439, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20602440, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20602441, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20602442, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20602443, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20602444, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20602445, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20602446, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20602447, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20602448, 'pht': 3726}}"}, {'dashboat_entry_day': 1607134, 'dashboard_run_id': 1617283, 'mtr_portfolio_id': 20602902, 'dashboard_result_id': 8943597, '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_P20602902_17-02-2025_11_02_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20602954, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20602955, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20602956, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20602957, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20602958, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20602959, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20602960, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20602961, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20602962, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20602963, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20602964, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20602965, 'pht': 3726}}"}, {'dashboat_entry_day': 1607134, 'dashboard_run_id': 1617283, 'mtr_portfolio_id': 20603399, 'dashboard_result_id': 8943598, '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_P20603399_17-02-2025_11_19_34.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20603419, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20603420, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20603421, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20603422, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20603424, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20603425, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20603426, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20603427, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20603428, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20603429, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20603430, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20603431, 'pht': 3726}}"}, {'dashboat_entry_day': 1607134, 'dashboard_run_id': 1617283, 'mtr_portfolio_id': 20604235, 'dashboard_result_id': 8943599, '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_P20604235_17-02-2025_11_32_29.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20604266, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20604267, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20604268, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20604269, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20604270, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20604271, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20604272, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20604273, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20604274, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20604275, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20604276, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20604277, 'pht': 3726}}"}, {'dashboat_entry_day': 1607134, 'dashboard_run_id': 1617283, 'mtr_portfolio_id': 20605068, 'dashboard_result_id': 8943600, '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_P20605068_17-02-2025_11_46_33.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20605077, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20605078, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20605079, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20605080, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20605081, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20605082, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20605083, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20605084, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20605085, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20605086, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20605087, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20605088, 'pht': 3726}}"}, {'dashboat_entry_day': 1607134, 'dashboard_run_id': 1617283, 'mtr_portfolio_id': 20605919, 'dashboard_result_id': 8943601, '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_P20605919_17-02-2025_12_02_30.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20605924, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20605925, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20605926, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20605927, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20605928, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20605929, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20605930, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20605931, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20605932, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20605933, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20605934, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20605935, 'pht': 3726}}"}, {'dashboat_entry_day': 1607134, 'dashboard_run_id': 1617283, 'mtr_portfolio_id': 20606546, 'dashboard_result_id': 8943602, '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_P20606546_18-02-2025_00_01_28.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20606575, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20606576, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20606577, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20606578, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20606579, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20606580, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20606581, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20606582, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20606583, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20606584, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20606585, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20606586, 'pht': 3726}}"}, {'dashboat_entry_day': 1607134, 'dashboard_run_id': 1617283, 'mtr_portfolio_id': 20608349, 'dashboard_result_id': 8943603, '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_P20608349_17-02-2025_14_02_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20608351, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20608352, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20608353, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20608354, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20608355, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20608356, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20608357, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20608358, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20608359, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20608360, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20608361, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20608362, 'pht': 3726}}"}, {'dashboat_entry_day': 1607134, 'dashboard_run_id': 1617283, 'mtr_portfolio_id': 20608630, 'dashboard_result_id': 8943604, '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_P20608630_17-02-2025_14_18_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20608634, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20608635, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20608636, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20608637, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20608638, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20608639, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20608640, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20608641, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20608642, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20608643, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20608644, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20608645, 'pht': 3726}}"}, {'dashboat_entry_day': 1607134, 'dashboard_run_id': 1617283, 'mtr_portfolio_id': 20608978, 'dashboard_result_id': 8943605, '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_P20608978_18-02-2025_00_02_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20608982, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20608983, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20608984, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20608985, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20608986, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20608987, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20608988, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20608989, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20608990, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20608991, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20608992, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20608993, 'pht': 3726}}"}, {'dashboat_entry_day': 1607134, 'dashboard_run_id': 1617283, 'mtr_portfolio_id': 20610400, 'dashboard_result_id': 8943606, '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_P20610400_17-02-2025_15_47_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20610402, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20610403, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20610404, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20610405, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20610406, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20610407, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20610408, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20610409, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20610410, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20610411, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20610412, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20610413, 'pht': 3726}}"}, {'dashboat_entry_day': 1607134, 'dashboard_run_id': 1617283, 'mtr_portfolio_id': 20610537, 'dashboard_result_id': 8943607, '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_P20610537_17-02-2025_16_02_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20610540, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20610541, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20610542, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20610543, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20610544, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20610545, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20610546, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20610547, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20610548, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20610549, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20610550, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20610551, 'pht': 3726}}"}, {'dashboat_entry_day': 1607134, 'dashboard_run_id': 1617283, 'mtr_portfolio_id': 20610930, 'dashboard_result_id': 8943608, '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_P20610930_17-02-2025_16_17_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20610958, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20610959, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20610960, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20610961, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20610962, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20610963, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20610964, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20610965, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20610966, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20610967, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20610968, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20610969, 'pht': 3726}}"}, {'dashboat_entry_day': 1607134, 'dashboard_run_id': 1617283, 'mtr_portfolio_id': 20611466, 'dashboard_result_id': 8943609, '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_P20611466_17-02-2025_16_33_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20611494, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20611495, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20611496, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20611497, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20611498, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20611499, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20611500, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20611501, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20611502, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20611503, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20611504, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20611505, 'pht': 3726}}"}, {'dashboat_entry_day': 1607134, 'dashboard_run_id': 1617283, 'mtr_portfolio_id': 20612080, 'dashboard_result_id': 8943610, '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_P20612080_17-02-2025_16_48_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20612141, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20612142, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20612143, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20612144, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20612145, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20612146, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20612147, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20612148, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20612149, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20612150, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20612151, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20612152, 'pht': 3726}}"}, {'dashboat_entry_day': 1607134, 'dashboard_run_id': 1617283, 'mtr_portfolio_id': 20612767, 'dashboard_result_id': 8943611, '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_P20612767_17-02-2025_17_02_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20612821, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20612822, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20612823, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20612824, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20612825, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20612826, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20612827, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20612828, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20612829, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20612830, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20612831, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20612832, 'pht': 3726}}"}, {'dashboat_entry_day': 1607134, 'dashboard_run_id': 1617283, 'mtr_portfolio_id': 20613570, 'dashboard_result_id': 8943612, '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_P20613570_17-02-2025_17_19_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20613598, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20613599, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20613600, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20613601, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20613602, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20613603, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20613604, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20613605, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20613606, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20613607, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20613608, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20613609, 'pht': 3726}}"}, {'dashboat_entry_day': 1607134, 'dashboard_run_id': 1617283, 'mtr_portfolio_id': 20614317, 'dashboard_result_id': 8943613, '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_P20614317_17-02-2025_17_32_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20614324, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20614325, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20614326, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20614327, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20614328, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20614329, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20614330, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20614331, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20614332, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20614333, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20614334, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20614335, 'pht': 3726}}"}, {'dashboat_entry_day': 1607134, 'dashboard_run_id': 1617283, 'mtr_portfolio_id': 20615941, 'dashboard_result_id': 8943614, '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_P20615941_17-02-2025_18_19_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20615944, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20615945, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20615946, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20615947, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20615948, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20615949, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20615950, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20615951, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20615952, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20615953, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20615954, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20615955, 'pht': 3726}}"}, {'dashboat_entry_day': 1607134, 'dashboard_run_id': 1617283, 'mtr_portfolio_id': 20616392, 'dashboard_result_id': 8943615, '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_P20616392_17-02-2025_18_32_57.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20616395, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20616396, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20616397, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20616398, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20616399, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20616400, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20616401, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20616402, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20616403, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20616404, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20616405, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20616406, 'pht': 3726}}"}, {'dashboat_entry_day': 1607134, 'dashboard_run_id': 1617283, 'mtr_portfolio_id': 20616912, 'dashboard_result_id': 8943616, '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_P20616912_17-02-2025_18_46_30.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20616961, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20616962, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20616963, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20616964, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20616965, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20616966, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20616967, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20616968, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20616969, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20616970, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20616971, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20616972, 'pht': 3726}}"}, {'dashboat_entry_day': 1607134, 'dashboard_run_id': 1617283, 'mtr_portfolio_id': 20617382, 'dashboard_result_id': 8943617, '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_P20617382_17-02-2025_19_03_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20617408, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20617409, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20617410, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20617411, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20617412, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20617413, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20617414, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20617415, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20617416, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20617417, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20617418, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20617419, 'pht': 3726}}"}, {'dashboat_entry_day': 1607134, 'dashboard_run_id': 1617283, 'mtr_portfolio_id': 20617949, 'dashboard_result_id': 8943618, '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_P20617949_17-02-2025_19_16_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20617953, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20617954, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20617955, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20617956, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20617957, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20617958, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20617959, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20617960, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20617961, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20617962, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20617963, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20617964, 'pht': 3726}}"}, {'dashboat_entry_day': 1607134, 'dashboard_run_id': 1617283, 'mtr_portfolio_id': 20618403, 'dashboard_result_id': 8943619, '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_P20618403_17-02-2025_19_33_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20618410, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20618411, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20618412, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20618413, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20618414, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20618415, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20618416, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20618417, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20618418, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20618419, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20618420, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20618421, 'pht': 3726}}"}, {'dashboat_entry_day': 1607134, 'dashboard_run_id': 1617283, 'mtr_portfolio_id': 20619056, 'dashboard_result_id': 8943620, '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_P20619056_17-02-2025_19_46_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20619085, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20619086, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20619087, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20619088, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20619089, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20619090, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20619091, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20619092, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20619093, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20619094, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20619095, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20619096, 'pht': 3726}}"}, {'dashboat_entry_day': 1607134, 'dashboard_run_id': 1617283, 'mtr_portfolio_id': 20619597, 'dashboard_result_id': 8943621, '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_P20619597_17-02-2025_20_03_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20619629, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20619630, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20619631, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20619632, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20619633, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20619634, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20619635, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20619636, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20619637, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20619638, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20619639, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20619640, 'pht': 3726}}"}, {'dashboat_entry_day': 1607134, 'dashboard_run_id': 1617283, 'mtr_portfolio_id': 20620365, 'dashboard_result_id': 8943622, '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_P20620365_17-02-2025_20_16_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20620368, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20620369, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20620370, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20620371, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20620372, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20620373, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20620374, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20620375, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20620376, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20620377, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20620378, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20620379, 'pht': 3726}}"}, {'dashboat_entry_day': 1607134, 'dashboard_run_id': 1617283, 'mtr_portfolio_id': 20620922, 'dashboard_result_id': 8943623, '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_P20620922_17-02-2025_20_32_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20620954, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20620955, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20620956, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20620957, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20620958, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20620959, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20620960, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20620961, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20620962, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20620963, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20620964, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20620965, 'pht': 3726}}"}, {'dashboat_entry_day': 1607134, 'dashboard_run_id': 1617283, 'mtr_portfolio_id': 20621658, 'dashboard_result_id': 8943624, '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_P20621658_17-02-2025_21_08_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20621731, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20621737, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20621738, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20621739, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20621740, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20621741, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20621742, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20621743, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20621744, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20621745, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20621746, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20621747, 'pht': 3726}}"}, {'dashboat_entry_day': 1607134, 'dashboard_run_id': 1617283, 'mtr_portfolio_id': 20623013, 'dashboard_result_id': 8943625, '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_P20623013_17-02-2025_21_36_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20623015, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20623016, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20623017, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20623018, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20623019, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20623020, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20623021, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20623022, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20623023, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20623024, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20623025, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20623026, '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 = 20594280 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': 2595239, 'mtr_portfolio_id': 20594280, 'created_at': datetime.datetime(2025, 2, 18, 5, 34, 28), 'result': '0.031063193329435315', 'result_long': None, 'result_double': None}] Qualite : 0.031063193329435315 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20594280 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20594280_18-02-2025_05_34_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20594280 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_P20594280_18-02-2025_05_34_29.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20594282, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20594283, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20594284, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20594285, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20594286, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20594287, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20594288, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20594289, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20594290, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20594291, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20594292, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20594293, 'pht': 3726}}" where mtr_portfolio_id = 20594280 and dashboard_run_id = 1617283 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`=20594280 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8943577, 0.031063193329435315, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20594280_18-02-2025_05_34_29.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20594282, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20594283, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20594284, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20594285, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20594286, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20594287, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20594288, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20594289, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20594290, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20594291, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20594292, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20594293, '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 = 20594332 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': 2595240, 'mtr_portfolio_id': 20594332, 'created_at': datetime.datetime(2025, 2, 18, 5, 35, 33), 'result': '0.017859220760834744', 'result_long': None, 'result_double': None}] Qualite : 0.017859220760834744 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20594332 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20594332_18-02-2025_05_35_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20594332 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_P20594332_18-02-2025_05_35_34.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20594334, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20594335, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20594336, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20594337, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20594338, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20594339, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20594340, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20594341, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20594342, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20594343, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20594344, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20594345, 'pht': 3726}}" where mtr_portfolio_id = 20594332 and dashboard_run_id = 1617283 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`=20594332 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8943578, 0.017859220760834744, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20594332_18-02-2025_05_35_34.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20594334, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20594335, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20594336, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20594337, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20594338, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20594339, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20594340, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20594341, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20594342, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20594343, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20594344, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20594345, '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 = 20594486 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': 2592097, 'mtr_portfolio_id': 20594486, 'created_at': datetime.datetime(2025, 2, 17, 6, 4, 57), 'result': '0.04306211584848336', 'result_long': None, 'result_double': None}] Qualite : 0.04306211584848336 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20594486 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20594486_17-02-2025_06_04_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20594486 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_P20594486_17-02-2025_06_04_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20594488, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20594489, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20594490, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20594491, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20594492, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20594493, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20594494, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20594495, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20594496, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20594497, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20594498, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20594499, 'pht': 3726}}" where mtr_portfolio_id = 20594486 and dashboard_run_id = 1617283 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`=20594486 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8943579, 0.04306211584848336, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20594486_17-02-2025_06_04_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20594488, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20594489, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20594490, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20594491, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20594492, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20594493, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20594494, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20594495, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20594496, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20594497, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20594498, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20594499, '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 = 20594872 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': 2592134, 'mtr_portfolio_id': 20594872, 'created_at': datetime.datetime(2025, 2, 17, 6, 17, 4), 'result': '0.04259507454240647', 'result_long': None, 'result_double': None}] Qualite : 0.04259507454240647 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20594872 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20594872_17-02-2025_06_17_06.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20594872 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_P20594872_17-02-2025_06_17_06.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20594922, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20594923, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20594924, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20594925, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20594926, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20594927, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20594928, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20594929, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20594930, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20594931, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20594932, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20594933, 'pht': 3726}}" where mtr_portfolio_id = 20594872 and dashboard_run_id = 1617283 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`=20594872 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8943580, 0.04259507454240647, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20594872_17-02-2025_06_17_06.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20594922, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20594923, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20594924, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20594925, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20594926, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20594927, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20594928, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20594929, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20594930, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20594931, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20594932, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20594933, '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 = 20595236 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': 2592159, 'mtr_portfolio_id': 20595236, 'created_at': datetime.datetime(2025, 2, 17, 6, 32, 58), 'result': '0.03547383095492931', 'result_long': None, 'result_double': None}] Qualite : 0.03547383095492931 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20595236 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20595236_17-02-2025_06_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20595236 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_P20595236_17-02-2025_06_32_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20595239, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20595240, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20595241, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20595242, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20595243, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20595244, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20595245, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20595246, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20595247, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20595248, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20595249, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20595250, 'pht': 3726}}" where mtr_portfolio_id = 20595236 and dashboard_run_id = 1617283 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`=20595236 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8943581, 0.03547383095492931, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20595236_17-02-2025_06_32_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20595239, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20595240, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20595241, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20595242, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20595243, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20595244, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20595245, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20595246, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20595247, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20595248, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20595249, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20595250, '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 = 20595343 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': 2592179, 'mtr_portfolio_id': 20595343, 'created_at': datetime.datetime(2025, 2, 17, 6, 52, 58), 'result': '0.05267895153168056', 'result_long': None, 'result_double': None}] Qualite : 0.05267895153168056 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20595343 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20595343_17-02-2025_06_52_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20595343 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_P20595343_17-02-2025_06_52_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20595344, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20595345, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20595346, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20595347, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20595348, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20595349, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20595350, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20595351, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20595352, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20595353, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20595354, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20595355, 'pht': 3726}}" where mtr_portfolio_id = 20595343 and dashboard_run_id = 1617283 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`=20595343 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8943582, 0.05267895153168056, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20595343_17-02-2025_06_52_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20595344, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20595345, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20595346, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20595347, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20595348, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20595349, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20595350, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20595351, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20595352, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20595353, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20595354, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20595355, '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 = 20595598 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': 2592208, 'mtr_portfolio_id': 20595598, 'created_at': datetime.datetime(2025, 2, 17, 7, 2, 29), 'result': '0.05059973492374527', 'result_long': None, 'result_double': None}] Qualite : 0.05059973492374527 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20595598 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20595598_17-02-2025_07_02_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20595598 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_P20595598_17-02-2025_07_02_29.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20595600, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20595601, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20595602, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20595603, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20595604, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20595605, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20595606, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20595607, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20595608, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20595609, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20595610, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20595611, 'pht': 3726}}" where mtr_portfolio_id = 20595598 and dashboard_run_id = 1617283 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`=20595598 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8943583, 0.05059973492374527, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20595598_17-02-2025_07_02_29.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20595600, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20595601, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20595602, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20595603, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20595604, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20595605, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20595606, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20595607, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20595608, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20595609, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20595610, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20595611, '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 = 20595820 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': 2592241, 'mtr_portfolio_id': 20595820, 'created_at': datetime.datetime(2025, 2, 17, 7, 22, 57), 'result': '0.05080308436302228', 'result_long': None, 'result_double': None}] Qualite : 0.05080308436302228 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20595820 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20595820_17-02-2025_07_22_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20595820 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_P20595820_17-02-2025_07_22_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20595849, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20595850, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20595851, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20595852, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20595853, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20595854, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20595855, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20595856, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20595857, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20595858, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20595859, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20595860, 'pht': 3726}}" where mtr_portfolio_id = 20595820 and dashboard_run_id = 1617283 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`=20595820 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8943584, 0.05080308436302228, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20595820_17-02-2025_07_22_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20595849, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20595850, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20595851, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20595852, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20595853, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20595854, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20595855, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20595856, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20595857, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20595858, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20595859, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20595860, '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 = 20596067 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': 2592265, 'mtr_portfolio_id': 20596067, 'created_at': datetime.datetime(2025, 2, 17, 7, 32, 58), 'result': '0.04456108677291589', 'result_long': None, 'result_double': None}] Qualite : 0.04456108677291589 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20596067 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20596067_17-02-2025_07_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20596067 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_P20596067_17-02-2025_07_32_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20596135, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20596136, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20596137, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20596138, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20596139, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20596140, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20596141, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20596142, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20596143, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20596144, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20596145, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20596146, 'pht': 3726}}" where mtr_portfolio_id = 20596067 and dashboard_run_id = 1617283 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`=20596067 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8943585, 0.04456108677291589, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20596067_17-02-2025_07_32_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20596135, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20596136, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20596137, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20596138, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20596139, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20596140, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20596141, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20596142, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20596143, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20596144, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20596145, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20596146, '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 = 20596959 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': 2592327, 'mtr_portfolio_id': 20596959, 'created_at': datetime.datetime(2025, 2, 17, 7, 48, 56), 'result': '0.06932005508657017', 'result_long': None, 'result_double': None}] Qualite : 0.06932005508657017 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20596959 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20596959_17-02-2025_07_48_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20596959 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_P20596959_17-02-2025_07_48_57.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20596961, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20596962, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20596963, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20596964, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20596965, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20596966, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20596967, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20596968, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20596969, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20596970, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20596971, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20596972, 'pht': 3726}}" where mtr_portfolio_id = 20596959 and dashboard_run_id = 1617283 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`=20596959 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8943586, 0.06932005508657017, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20596959_17-02-2025_07_48_57.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20596961, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20596962, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20596963, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20596964, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20596965, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20596966, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20596967, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20596968, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20596969, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20596970, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20596971, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20596972, '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 = 20597365 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': 2592355, 'mtr_portfolio_id': 20597365, 'created_at': datetime.datetime(2025, 2, 17, 8, 2, 59), 'result': '0.04260716968451182', 'result_long': None, 'result_double': None}] Qualite : 0.04260716968451182 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20597365 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20597365_17-02-2025_08_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20597365 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_P20597365_17-02-2025_08_03_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20597370, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20597371, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20597372, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20597373, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20597374, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20597375, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20597376, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20597377, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20597378, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20597379, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20597380, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20597381, 'pht': 3726}}" where mtr_portfolio_id = 20597365 and dashboard_run_id = 1617283 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`=20597365 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8943587, 0.04260716968451182, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20597365_17-02-2025_08_03_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20597370, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20597371, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20597372, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20597373, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20597374, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20597375, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20597376, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20597377, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20597378, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20597379, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20597380, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20597381, '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 = 20597866 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': 2592405, 'mtr_portfolio_id': 20597866, 'created_at': datetime.datetime(2025, 2, 17, 8, 16, 59), 'result': '0.05046314385665181', 'result_long': None, 'result_double': None}] Qualite : 0.05046314385665181 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20597866 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20597866_17-02-2025_08_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20597866 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_P20597866_17-02-2025_08_17_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20597871, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20597872, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20597873, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20597874, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20597875, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20597876, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20597877, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20597878, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20597879, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20597880, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20597881, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20597882, 'pht': 3726}}" where mtr_portfolio_id = 20597866 and dashboard_run_id = 1617283 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`=20597866 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8943588, 0.05046314385665181, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20597866_17-02-2025_08_17_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20597871, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20597872, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20597873, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20597874, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20597875, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20597876, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20597877, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20597878, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20597879, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20597880, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20597881, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20597882, '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 = 20598303 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': 2592432, 'mtr_portfolio_id': 20598303, 'created_at': datetime.datetime(2025, 2, 17, 8, 32, 59), 'result': '0.03789552328934699', 'result_long': None, 'result_double': None}] Qualite : 0.03789552328934699 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20598303 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20598303_17-02-2025_08_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20598303 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_P20598303_17-02-2025_08_33_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20598306, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20598307, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20598308, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20598309, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20598310, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20598311, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20598312, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20598313, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20598314, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20598315, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20598316, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20598317, 'pht': 3726}}" where mtr_portfolio_id = 20598303 and dashboard_run_id = 1617283 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`=20598303 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8943589, 0.03789552328934699, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20598303_17-02-2025_08_33_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20598306, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20598307, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20598308, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20598309, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20598310, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20598311, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20598312, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20598313, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20598314, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20598315, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20598316, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20598317, '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 = 20598844 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': 2592479, 'mtr_portfolio_id': 20598844, 'created_at': datetime.datetime(2025, 2, 17, 8, 46, 58), 'result': '0.03990395777776678', 'result_long': None, 'result_double': None}] Qualite : 0.03990395777776678 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20598844 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20598844_17-02-2025_08_46_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20598844 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_P20598844_17-02-2025_08_46_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20598883, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20598884, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20598885, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20598886, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20598887, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20598888, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20598889, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20598890, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20598891, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20598892, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20598893, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20598894, 'pht': 3726}}" where mtr_portfolio_id = 20598844 and dashboard_run_id = 1617283 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`=20598844 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8943590, 0.03990395777776678, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20598844_17-02-2025_08_46_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20598883, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20598884, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20598885, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20598886, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20598887, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20598888, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20598889, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20598890, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20598891, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20598892, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20598893, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20598894, '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 = 20599330 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': 2592515, 'mtr_portfolio_id': 20599330, 'created_at': datetime.datetime(2025, 2, 17, 9, 4, 57), 'result': '0.040526736510255686', 'result_long': None, 'result_double': None}] Qualite : 0.040526736510255686 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20599330 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20599330_17-02-2025_09_04_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20599330 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_P20599330_17-02-2025_09_04_57.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20599334, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20599335, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20599336, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20599337, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20599338, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20599339, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20599340, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20599341, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20599342, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20599343, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20599344, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20599345, 'pht': 3726}}" where mtr_portfolio_id = 20599330 and dashboard_run_id = 1617283 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`=20599330 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8943591, 0.040526736510255686, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20599330_17-02-2025_09_04_57.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20599334, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20599335, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20599336, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20599337, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20599338, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20599339, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20599340, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20599341, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20599342, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20599343, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20599344, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20599345, '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 = 20600382 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': 2592608, 'mtr_portfolio_id': 20600382, 'created_at': datetime.datetime(2025, 2, 17, 9, 48, 58), 'result': '0.04564482233639565', 'result_long': None, 'result_double': None}] Qualite : 0.04564482233639565 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20600382 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20600382_17-02-2025_09_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20600382 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_P20600382_17-02-2025_09_48_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20600384, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20600385, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20600386, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20600387, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20600388, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20600389, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20600390, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20600391, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20600392, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20600393, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20600394, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20600395, 'pht': 3726}}" where mtr_portfolio_id = 20600382 and dashboard_run_id = 1617283 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`=20600382 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8943592, 0.04564482233639565, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20600382_17-02-2025_09_48_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20600384, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20600385, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20600386, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20600387, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20600388, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20600389, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20600390, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20600391, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20600392, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20600393, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20600394, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20600395, '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 = 20600895 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': 2592645, 'mtr_portfolio_id': 20600895, 'created_at': datetime.datetime(2025, 2, 17, 10, 2, 57), 'result': '0.043650380337752946', 'result_long': None, 'result_double': None}] Qualite : 0.043650380337752946 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20600895 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20600895_17-02-2025_10_02_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20600895 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_P20600895_17-02-2025_10_02_57.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20600898, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20600899, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20600900, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20600901, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20600902, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20600903, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20600904, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20600905, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20600906, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20600907, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20600908, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20600909, 'pht': 3726}}" where mtr_portfolio_id = 20600895 and dashboard_run_id = 1617283 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`=20600895 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8943593, 0.043650380337752946, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20600895_17-02-2025_10_02_57.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20600898, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20600899, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20600900, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20600901, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20600902, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20600903, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20600904, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20600905, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20600906, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20600907, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20600908, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20600909, '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 = 20601335 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': 2592685, 'mtr_portfolio_id': 20601335, 'created_at': datetime.datetime(2025, 2, 17, 10, 16, 29), 'result': '0.037630111058154725', 'result_long': None, 'result_double': None}] Qualite : 0.037630111058154725 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20601335 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20601335_17-02-2025_10_16_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20601335 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_P20601335_17-02-2025_10_16_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20601363, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20601364, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20601365, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20601366, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20601367, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20601368, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20601369, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20601370, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20601371, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20601372, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20601373, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20601374, 'pht': 3726}}" where mtr_portfolio_id = 20601335 and dashboard_run_id = 1617283 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`=20601335 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8943594, 0.037630111058154725, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20601335_17-02-2025_10_16_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20601363, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20601364, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20601365, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20601366, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20601367, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20601368, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20601369, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20601370, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20601371, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20601372, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20601373, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20601374, '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 = 20601878 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': 2592723, 'mtr_portfolio_id': 20601878, 'created_at': datetime.datetime(2025, 2, 17, 10, 32, 56), 'result': '0.04393846946342366', 'result_long': None, 'result_double': None}] Qualite : 0.04393846946342366 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20601878 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20601878_17-02-2025_10_32_56.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20601878 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_P20601878_17-02-2025_10_32_56.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20601906, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20601907, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20601908, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20601909, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20601910, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20601911, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20601912, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20601913, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20601914, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20601915, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20601916, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20601917, 'pht': 3726}}" where mtr_portfolio_id = 20601878 and dashboard_run_id = 1617283 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`=20601878 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8943595, 0.04393846946342366, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20601878_17-02-2025_10_32_56.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20601906, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20601907, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20601908, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20601909, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20601910, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20601911, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20601912, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20601913, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20601914, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20601915, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20601916, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20601917, '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 = 20602408 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': 2592768, 'mtr_portfolio_id': 20602408, 'created_at': datetime.datetime(2025, 2, 17, 10, 46, 29), 'result': '0.041283910986103296', 'result_long': None, 'result_double': None}] Qualite : 0.041283910986103296 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20602408 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20602408_17-02-2025_10_46_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20602408 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_P20602408_17-02-2025_10_46_30.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20602437, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20602438, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20602439, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20602440, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20602441, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20602442, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20602443, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20602444, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20602445, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20602446, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20602447, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20602448, 'pht': 3726}}" where mtr_portfolio_id = 20602408 and dashboard_run_id = 1617283 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`=20602408 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8943596, 0.041283910986103296, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20602408_17-02-2025_10_46_30.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20602437, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20602438, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20602439, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20602440, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20602441, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20602442, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20602443, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20602444, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20602445, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20602446, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20602447, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20602448, '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 = 20602902 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': 2592810, 'mtr_portfolio_id': 20602902, 'created_at': datetime.datetime(2025, 2, 17, 11, 2, 58), 'result': '0.03294885390618337', 'result_long': None, 'result_double': None}] Qualite : 0.03294885390618337 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20602902 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20602902_17-02-2025_11_02_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20602902 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_P20602902_17-02-2025_11_02_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20602954, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20602955, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20602956, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20602957, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20602958, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20602959, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20602960, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20602961, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20602962, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20602963, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20602964, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20602965, 'pht': 3726}}" where mtr_portfolio_id = 20602902 and dashboard_run_id = 1617283 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`=20602902 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8943597, 0.03294885390618337, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20602902_17-02-2025_11_02_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20602954, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20602955, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20602956, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20602957, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20602958, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20602959, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20602960, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20602961, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20602962, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20602963, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20602964, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20602965, '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 = 20603399 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': 2592854, 'mtr_portfolio_id': 20603399, 'created_at': datetime.datetime(2025, 2, 17, 11, 19, 33), 'result': '0.04209848509031704', 'result_long': None, 'result_double': None}] Qualite : 0.04209848509031704 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20603399 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20603399_17-02-2025_11_19_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20603399 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_P20603399_17-02-2025_11_19_34.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20603419, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20603420, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20603421, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20603422, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20603424, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20603425, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20603426, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20603427, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20603428, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20603429, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20603430, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20603431, 'pht': 3726}}" where mtr_portfolio_id = 20603399 and dashboard_run_id = 1617283 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`=20603399 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8943598, 0.04209848509031704, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20603399_17-02-2025_11_19_34.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20603419, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20603420, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20603421, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20603422, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20603424, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20603425, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20603426, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20603427, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20603428, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20603429, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20603430, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20603431, '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 = 20604235 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': 2592950, 'mtr_portfolio_id': 20604235, 'created_at': datetime.datetime(2025, 2, 17, 11, 32, 29), 'result': '0.03734747927667229', 'result_long': None, 'result_double': None}] Qualite : 0.03734747927667229 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20604235 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20604235_17-02-2025_11_32_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20604235 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_P20604235_17-02-2025_11_32_29.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20604266, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20604267, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20604268, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20604269, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20604270, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20604271, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20604272, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20604273, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20604274, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20604275, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20604276, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20604277, 'pht': 3726}}" where mtr_portfolio_id = 20604235 and dashboard_run_id = 1617283 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`=20604235 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8943599, 0.03734747927667229, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20604235_17-02-2025_11_32_29.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20604266, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20604267, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20604268, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20604269, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20604270, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20604271, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20604272, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20604273, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20604274, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20604275, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20604276, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20604277, '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 = 20605068 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': 2593018, 'mtr_portfolio_id': 20605068, 'created_at': datetime.datetime(2025, 2, 17, 11, 46, 29), 'result': '0.041758624052013124', 'result_long': None, 'result_double': None}] Qualite : 0.041758624052013124 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20605068 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20605068_17-02-2025_11_46_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20605068 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_P20605068_17-02-2025_11_46_33.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20605077, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20605078, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20605079, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20605080, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20605081, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20605082, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20605083, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20605084, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20605085, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20605086, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20605087, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20605088, 'pht': 3726}}" where mtr_portfolio_id = 20605068 and dashboard_run_id = 1617283 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`=20605068 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8943600, 0.041758624052013124, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20605068_17-02-2025_11_46_33.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20605077, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20605078, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20605079, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20605080, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20605081, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20605082, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20605083, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20605084, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20605085, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20605086, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20605087, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20605088, '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 = 20605919 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': 2593076, 'mtr_portfolio_id': 20605919, 'created_at': datetime.datetime(2025, 2, 17, 12, 2, 29), 'result': '0.04691508748045928', 'result_long': None, 'result_double': None}] Qualite : 0.04691508748045928 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20605919 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20605919_17-02-2025_12_02_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20605919 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_P20605919_17-02-2025_12_02_30.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20605924, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20605925, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20605926, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20605927, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20605928, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20605929, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20605930, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20605931, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20605932, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20605933, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20605934, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20605935, 'pht': 3726}}" where mtr_portfolio_id = 20605919 and dashboard_run_id = 1617283 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`=20605919 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8943601, 0.04691508748045928, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20605919_17-02-2025_12_02_30.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20605924, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20605925, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20605926, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20605927, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20605928, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20605929, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20605930, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20605931, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20605932, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20605933, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20605934, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20605935, '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 = 20606546 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': 2593123, 'mtr_portfolio_id': 20606546, 'created_at': datetime.datetime(2025, 2, 18, 0, 1, 27), 'result': '0.04338361734014823', 'result_long': None, 'result_double': None}] Qualite : 0.04338361734014823 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20606546 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20606546_18-02-2025_00_01_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20606546 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_P20606546_18-02-2025_00_01_28.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20606575, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20606576, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20606577, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20606578, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20606579, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20606580, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20606581, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20606582, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20606583, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20606584, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20606585, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20606586, 'pht': 3726}}" where mtr_portfolio_id = 20606546 and dashboard_run_id = 1617283 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`=20606546 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8943602, 0.04338361734014823, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20606546_18-02-2025_00_01_28.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20606575, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20606576, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20606577, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20606578, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20606579, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20606580, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20606581, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20606582, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20606583, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20606584, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20606585, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20606586, '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 = 20608349 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': 2593320, 'mtr_portfolio_id': 20608349, 'created_at': datetime.datetime(2025, 2, 17, 14, 2, 58), 'result': '0.0348489755104114', 'result_long': None, 'result_double': None}] Qualite : 0.0348489755104114 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20608349 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20608349_17-02-2025_14_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20608349 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_P20608349_17-02-2025_14_02_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20608351, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20608352, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20608353, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20608354, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20608355, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20608356, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20608357, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20608358, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20608359, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20608360, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20608361, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20608362, 'pht': 3726}}" where mtr_portfolio_id = 20608349 and dashboard_run_id = 1617283 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`=20608349 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8943603, 0.0348489755104114, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20608349_17-02-2025_14_02_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20608351, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20608352, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20608353, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20608354, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20608355, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20608356, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20608357, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20608358, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20608359, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20608360, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20608361, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20608362, '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 = 20608630 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': 2593357, 'mtr_portfolio_id': 20608630, 'created_at': datetime.datetime(2025, 2, 17, 14, 18, 58), 'result': '0.047647527627244037', 'result_long': None, 'result_double': None}] Qualite : 0.047647527627244037 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20608630 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20608630_17-02-2025_14_18_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20608630 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_P20608630_17-02-2025_14_18_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20608634, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20608635, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20608636, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20608637, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20608638, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20608639, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20608640, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20608641, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20608642, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20608643, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20608644, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20608645, 'pht': 3726}}" where mtr_portfolio_id = 20608630 and dashboard_run_id = 1617283 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`=20608630 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8943604, 0.047647527627244037, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20608630_17-02-2025_14_18_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20608634, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20608635, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20608636, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20608637, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20608638, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20608639, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20608640, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20608641, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20608642, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20608643, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20608644, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20608645, '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 = 20608978 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': 2593386, 'mtr_portfolio_id': 20608978, 'created_at': datetime.datetime(2025, 2, 18, 0, 2), 'result': '0.03701796209053796', 'result_long': None, 'result_double': None}] Qualite : 0.03701796209053796 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20608978 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20608978_18-02-2025_00_02_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20608978 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_P20608978_18-02-2025_00_02_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20608982, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20608983, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20608984, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20608985, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20608986, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20608987, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20608988, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20608989, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20608990, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20608991, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20608992, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20608993, 'pht': 3726}}" where mtr_portfolio_id = 20608978 and dashboard_run_id = 1617283 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`=20608978 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8943605, 0.03701796209053796, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20608978_18-02-2025_00_02_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20608982, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20608983, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20608984, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20608985, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20608986, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20608987, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20608988, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20608989, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20608990, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20608991, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20608992, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20608993, '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 = 20610400 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': 2593593, 'mtr_portfolio_id': 20610400, 'created_at': datetime.datetime(2025, 2, 17, 15, 47, 1), 'result': '0.05991890464611853', 'result_long': None, 'result_double': None}] Qualite : 0.05991890464611853 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20610400 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20610400_17-02-2025_15_47_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20610400 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_P20610400_17-02-2025_15_47_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20610402, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20610403, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20610404, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20610405, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20610406, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20610407, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20610408, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20610409, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20610410, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20610411, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20610412, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20610413, 'pht': 3726}}" where mtr_portfolio_id = 20610400 and dashboard_run_id = 1617283 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`=20610400 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8943606, 0.05991890464611853, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20610400_17-02-2025_15_47_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20610402, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20610403, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20610404, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20610405, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20610406, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20610407, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20610408, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20610409, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20610410, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20610411, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20610412, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20610413, '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 = 20610537 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': 2593603, 'mtr_portfolio_id': 20610537, 'created_at': datetime.datetime(2025, 2, 17, 16, 2, 57), 'result': '0.03986921501239806', 'result_long': None, 'result_double': None}] Qualite : 0.03986921501239806 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20610537 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20610537_17-02-2025_16_02_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20610537 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_P20610537_17-02-2025_16_02_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20610540, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20610541, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20610542, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20610543, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20610544, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20610545, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20610546, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20610547, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20610548, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20610549, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20610550, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20610551, 'pht': 3726}}" where mtr_portfolio_id = 20610537 and dashboard_run_id = 1617283 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`=20610537 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8943607, 0.03986921501239806, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20610537_17-02-2025_16_02_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20610540, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20610541, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20610542, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20610543, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20610544, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20610545, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20610546, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20610547, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20610548, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20610549, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20610550, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20610551, '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 = 20610930 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': 2593646, 'mtr_portfolio_id': 20610930, 'created_at': datetime.datetime(2025, 2, 17, 16, 17), 'result': '0.03280718177372909', 'result_long': None, 'result_double': None}] Qualite : 0.03280718177372909 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20610930 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20610930_17-02-2025_16_17_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20610930 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_P20610930_17-02-2025_16_17_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20610958, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20610959, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20610960, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20610961, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20610962, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20610963, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20610964, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20610965, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20610966, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20610967, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20610968, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20610969, 'pht': 3726}}" where mtr_portfolio_id = 20610930 and dashboard_run_id = 1617283 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`=20610930 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8943608, 0.03280718177372909, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20610930_17-02-2025_16_17_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20610958, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20610959, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20610960, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20610961, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20610962, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20610963, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20610964, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20610965, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20610966, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20610967, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20610968, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20610969, '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 = 20611466 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': 2593686, 'mtr_portfolio_id': 20611466, 'created_at': datetime.datetime(2025, 2, 17, 16, 32, 59), 'result': '0.06433049405998875', 'result_long': None, 'result_double': None}] Qualite : 0.06433049405998875 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20611466 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20611466_17-02-2025_16_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20611466 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_P20611466_17-02-2025_16_33_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20611494, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20611495, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20611496, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20611497, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20611498, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20611499, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20611500, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20611501, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20611502, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20611503, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20611504, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20611505, 'pht': 3726}}" where mtr_portfolio_id = 20611466 and dashboard_run_id = 1617283 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`=20611466 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8943609, 0.06433049405998875, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20611466_17-02-2025_16_33_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20611494, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20611495, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20611496, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20611497, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20611498, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20611499, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20611500, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20611501, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20611502, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20611503, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20611504, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20611505, '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 = 20612080 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': 2593721, 'mtr_portfolio_id': 20612080, 'created_at': datetime.datetime(2025, 2, 17, 16, 48, 58), 'result': '0.06081060962300819', 'result_long': None, 'result_double': None}] Qualite : 0.06081060962300819 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20612080 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20612080_17-02-2025_16_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20612080 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_P20612080_17-02-2025_16_48_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20612141, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20612142, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20612143, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20612144, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20612145, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20612146, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20612147, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20612148, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20612149, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20612150, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20612151, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20612152, 'pht': 3726}}" where mtr_portfolio_id = 20612080 and dashboard_run_id = 1617283 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`=20612080 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8943610, 0.06081060962300819, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20612080_17-02-2025_16_48_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20612141, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20612142, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20612143, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20612144, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20612145, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20612146, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20612147, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20612148, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20612149, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20612150, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20612151, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20612152, '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 = 20612767 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': 2593817, 'mtr_portfolio_id': 20612767, 'created_at': datetime.datetime(2025, 2, 17, 17, 2, 58), 'result': '0.03981537673826631', 'result_long': None, 'result_double': None}] Qualite : 0.03981537673826631 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20612767 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20612767_17-02-2025_17_02_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20612767 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_P20612767_17-02-2025_17_02_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20612821, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20612822, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20612823, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20612824, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20612825, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20612826, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20612827, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20612828, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20612829, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20612830, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20612831, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20612832, 'pht': 3726}}" where mtr_portfolio_id = 20612767 and dashboard_run_id = 1617283 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`=20612767 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8943611, 0.03981537673826631, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20612767_17-02-2025_17_02_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20612821, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20612822, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20612823, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20612824, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20612825, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20612826, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20612827, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20612828, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20612829, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20612830, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20612831, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20612832, '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 = 20613570 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': 2593877, 'mtr_portfolio_id': 20613570, 'created_at': datetime.datetime(2025, 2, 17, 17, 19), 'result': '0.037063087370716605', 'result_long': None, 'result_double': None}] Qualite : 0.037063087370716605 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20613570 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20613570_17-02-2025_17_19_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20613570 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_P20613570_17-02-2025_17_19_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20613598, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20613599, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20613600, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20613601, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20613602, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20613603, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20613604, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20613605, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20613606, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20613607, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20613608, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20613609, 'pht': 3726}}" where mtr_portfolio_id = 20613570 and dashboard_run_id = 1617283 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`=20613570 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8943612, 0.037063087370716605, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20613570_17-02-2025_17_19_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20613598, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20613599, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20613600, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20613601, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20613602, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20613603, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20613604, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20613605, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20613606, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20613607, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20613608, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20613609, '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 = 20614317 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': 2593921, 'mtr_portfolio_id': 20614317, 'created_at': datetime.datetime(2025, 2, 17, 17, 32, 31), 'result': '0.05028977903634978', 'result_long': None, 'result_double': None}] Qualite : 0.05028977903634978 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20614317 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20614317_17-02-2025_17_32_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20614317 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_P20614317_17-02-2025_17_32_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20614324, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20614325, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20614326, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20614327, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20614328, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20614329, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20614330, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20614331, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20614332, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20614333, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20614334, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20614335, 'pht': 3726}}" where mtr_portfolio_id = 20614317 and dashboard_run_id = 1617283 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`=20614317 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8943613, 0.05028977903634978, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20614317_17-02-2025_17_32_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20614324, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20614325, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20614326, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20614327, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20614328, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20614329, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20614330, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20614331, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20614332, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20614333, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20614334, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20614335, '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 = 20615941 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': 2594055, 'mtr_portfolio_id': 20615941, 'created_at': datetime.datetime(2025, 2, 17, 18, 19, 1), 'result': '0.04804183858376754', 'result_long': None, 'result_double': None}] Qualite : 0.04804183858376754 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20615941 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20615941_17-02-2025_18_19_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20615941 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_P20615941_17-02-2025_18_19_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20615944, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20615945, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20615946, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20615947, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20615948, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20615949, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20615950, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20615951, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20615952, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20615953, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20615954, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20615955, 'pht': 3726}}" where mtr_portfolio_id = 20615941 and dashboard_run_id = 1617283 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`=20615941 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8943614, 0.04804183858376754, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20615941_17-02-2025_18_19_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20615944, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20615945, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20615946, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20615947, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20615948, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20615949, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20615950, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20615951, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20615952, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20615953, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20615954, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20615955, '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 = 20616392 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': 2594082, 'mtr_portfolio_id': 20616392, 'created_at': datetime.datetime(2025, 2, 17, 18, 32, 57), 'result': '0.044569883535429025', 'result_long': None, 'result_double': None}] Qualite : 0.044569883535429025 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20616392 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20616392_17-02-2025_18_32_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20616392 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_P20616392_17-02-2025_18_32_57.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20616395, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20616396, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20616397, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20616398, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20616399, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20616400, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20616401, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20616402, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20616403, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20616404, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20616405, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20616406, 'pht': 3726}}" where mtr_portfolio_id = 20616392 and dashboard_run_id = 1617283 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`=20616392 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8943615, 0.044569883535429025, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20616392_17-02-2025_18_32_57.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20616395, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20616396, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20616397, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20616398, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20616399, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20616400, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20616401, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20616402, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20616403, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20616404, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20616405, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20616406, '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 = 20616912 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': 2594114, 'mtr_portfolio_id': 20616912, 'created_at': datetime.datetime(2025, 2, 17, 18, 46, 30), 'result': '0.052944677734900324', 'result_long': None, 'result_double': None}] Qualite : 0.052944677734900324 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20616912 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20616912_17-02-2025_18_46_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20616912 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_P20616912_17-02-2025_18_46_30.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20616961, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20616962, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20616963, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20616964, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20616965, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20616966, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20616967, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20616968, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20616969, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20616970, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20616971, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20616972, 'pht': 3726}}" where mtr_portfolio_id = 20616912 and dashboard_run_id = 1617283 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`=20616912 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8943616, 0.052944677734900324, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20616912_17-02-2025_18_46_30.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20616961, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20616962, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20616963, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20616964, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20616965, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20616966, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20616967, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20616968, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20616969, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20616970, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20616971, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20616972, '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 = 20617382 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': 2594155, 'mtr_portfolio_id': 20617382, 'created_at': datetime.datetime(2025, 2, 17, 19, 3), 'result': '0.03944870531546893', 'result_long': None, 'result_double': None}] Qualite : 0.03944870531546893 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20617382 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20617382_17-02-2025_19_03_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20617382 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_P20617382_17-02-2025_19_03_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20617408, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20617409, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20617410, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20617411, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20617412, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20617413, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20617414, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20617415, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20617416, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20617417, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20617418, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20617419, 'pht': 3726}}" where mtr_portfolio_id = 20617382 and dashboard_run_id = 1617283 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`=20617382 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8943617, 0.03944870531546893, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20617382_17-02-2025_19_03_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20617408, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20617409, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20617410, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20617411, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20617412, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20617413, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20617414, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20617415, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20617416, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20617417, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20617418, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20617419, '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 = 20617949 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': 2594202, 'mtr_portfolio_id': 20617949, 'created_at': datetime.datetime(2025, 2, 17, 19, 16, 30), 'result': '0.05647628484828016', 'result_long': None, 'result_double': None}] Qualite : 0.05647628484828016 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20617949 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20617949_17-02-2025_19_16_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20617949 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_P20617949_17-02-2025_19_16_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20617953, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20617954, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20617955, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20617956, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20617957, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20617958, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20617959, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20617960, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20617961, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20617962, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20617963, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20617964, 'pht': 3726}}" where mtr_portfolio_id = 20617949 and dashboard_run_id = 1617283 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`=20617949 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8943618, 0.05647628484828016, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20617949_17-02-2025_19_16_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20617953, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20617954, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20617955, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20617956, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20617957, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20617958, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20617959, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20617960, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20617961, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20617962, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20617963, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20617964, '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 = 20618403 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': 2594234, 'mtr_portfolio_id': 20618403, 'created_at': datetime.datetime(2025, 2, 17, 19, 32, 59), 'result': '0.024385629310053863', 'result_long': None, 'result_double': None}] Qualite : 0.024385629310053863 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20618403 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20618403_17-02-2025_19_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20618403 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_P20618403_17-02-2025_19_33_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20618410, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20618411, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20618412, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20618413, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20618414, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20618415, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20618416, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20618417, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20618418, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20618419, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20618420, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20618421, 'pht': 3726}}" where mtr_portfolio_id = 20618403 and dashboard_run_id = 1617283 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`=20618403 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8943619, 0.024385629310053863, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20618403_17-02-2025_19_33_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20618410, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20618411, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20618412, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20618413, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20618414, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20618415, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20618416, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20618417, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20618418, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20618419, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20618420, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20618421, '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 = 20619056 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': 2594278, 'mtr_portfolio_id': 20619056, 'created_at': datetime.datetime(2025, 2, 17, 19, 46, 58), 'result': '0.03570127362771072', 'result_long': None, 'result_double': None}] Qualite : 0.03570127362771072 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20619056 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20619056_17-02-2025_19_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20619056 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_P20619056_17-02-2025_19_46_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20619085, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20619086, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20619087, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20619088, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20619089, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20619090, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20619091, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20619092, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20619093, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20619094, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20619095, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20619096, 'pht': 3726}}" where mtr_portfolio_id = 20619056 and dashboard_run_id = 1617283 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`=20619056 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8943620, 0.03570127362771072, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20619056_17-02-2025_19_46_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20619085, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20619086, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20619087, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20619088, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20619089, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20619090, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20619091, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20619092, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20619093, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20619094, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20619095, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20619096, '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 = 20619597 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': 2594321, 'mtr_portfolio_id': 20619597, 'created_at': datetime.datetime(2025, 2, 17, 20, 2, 59), 'result': '0.0387327150760845', 'result_long': None, 'result_double': None}] Qualite : 0.0387327150760845 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20619597 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20619597_17-02-2025_20_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20619597 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_P20619597_17-02-2025_20_03_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20619629, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20619630, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20619631, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20619632, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20619633, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20619634, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20619635, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20619636, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20619637, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20619638, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20619639, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20619640, 'pht': 3726}}" where mtr_portfolio_id = 20619597 and dashboard_run_id = 1617283 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`=20619597 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8943621, 0.0387327150760845, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20619597_17-02-2025_20_03_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20619629, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20619630, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20619631, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20619632, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20619633, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20619634, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20619635, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20619636, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20619637, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20619638, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20619639, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20619640, '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 = 20620365 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': 2594380, 'mtr_portfolio_id': 20620365, 'created_at': datetime.datetime(2025, 2, 17, 20, 16, 57), 'result': '0.043460360425658574', 'result_long': None, 'result_double': None}] Qualite : 0.043460360425658574 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20620365 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20620365_17-02-2025_20_16_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20620365 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_P20620365_17-02-2025_20_16_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20620368, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20620369, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20620370, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20620371, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20620372, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20620373, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20620374, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20620375, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20620376, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20620377, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20620378, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20620379, 'pht': 3726}}" where mtr_portfolio_id = 20620365 and dashboard_run_id = 1617283 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`=20620365 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8943622, 0.043460360425658574, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20620365_17-02-2025_20_16_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20620368, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20620369, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20620370, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20620371, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20620372, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20620373, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20620374, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20620375, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20620376, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20620377, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20620378, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20620379, '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 = 20620922 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': 2594423, 'mtr_portfolio_id': 20620922, 'created_at': datetime.datetime(2025, 2, 17, 20, 32, 59), 'result': '0.04028064145147253', 'result_long': None, 'result_double': None}] Qualite : 0.04028064145147253 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20620922 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20620922_17-02-2025_20_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20620922 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_P20620922_17-02-2025_20_32_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20620954, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20620955, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20620956, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20620957, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20620958, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20620959, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20620960, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20620961, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20620962, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20620963, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20620964, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20620965, 'pht': 3726}}" where mtr_portfolio_id = 20620922 and dashboard_run_id = 1617283 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`=20620922 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8943623, 0.04028064145147253, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20620922_17-02-2025_20_32_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20620954, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20620955, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20620956, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20620957, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20620958, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20620959, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20620960, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20620961, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20620962, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20620963, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20620964, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20620965, '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 = 20621658 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': 2594481, 'mtr_portfolio_id': 20621658, 'created_at': datetime.datetime(2025, 2, 17, 21, 8, 31), 'result': '0.05838019219771053', 'result_long': None, 'result_double': None}] Qualite : 0.05838019219771053 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20621658 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20621658_17-02-2025_21_08_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20621658 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_P20621658_17-02-2025_21_08_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20621731, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20621737, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20621738, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20621739, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20621740, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20621741, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20621742, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20621743, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20621744, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20621745, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20621746, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20621747, 'pht': 3726}}" where mtr_portfolio_id = 20621658 and dashboard_run_id = 1617283 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`=20621658 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8943624, 0.05838019219771053, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20621658_17-02-2025_21_08_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20621731, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20621737, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20621738, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20621739, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20621740, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20621741, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20621742, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20621743, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20621744, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20621745, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20621746, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20621747, '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 = 20623013 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': 2594617, 'mtr_portfolio_id': 20623013, 'created_at': datetime.datetime(2025, 2, 17, 21, 36, 58), 'result': '0.03573001730286341', 'result_long': None, 'result_double': None}] Qualite : 0.03573001730286341 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20623013 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20623013_17-02-2025_21_36_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20623013 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_P20623013_17-02-2025_21_36_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20623015, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20623016, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20623017, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20623018, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20623019, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20623020, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20623021, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20623022, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20623023, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20623024, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20623025, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20623026, 'pht': 3726}}" where mtr_portfolio_id = 20623013 and dashboard_run_id = 1617283 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`=20623013 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8943625, 0.03573001730286341, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20623013_17-02-2025_21_36_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20623015, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20623016, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20623017, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20623018, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20623019, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20623020, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20623021, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20623022, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20623023, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20623024, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20623025, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20623026, '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 (20594280,20594332,20594486,20594872,20595236,20595343,20595598,20595820,20596067,20596959,20597365,20597866,20598303,20598844,20599330,20600382,20600895,20601335,20601878,20602408,20602902,20603399,20604235,20605068,20605919,20606546,20608349,20608630,20608978,20610400,20610537,20610930,20611466,20612080,20612767,20613570,20614317,20615941,20616392,20616912,20617382,20617949,20618403,20619056,20619597,20620365,20620922,20621658,20623013) result : ((1338111973,), (1338112020,), (1338112066,), (1338112067,), (1338112099,), (1338112100,), (1338112101,), (1338112118,), (1338112143,), (1338112156,), (1338112158,), (1338112160,), (1338112166,), (1338112175,), (1338112177,), (1338112179,), (1338112181,), (1338112183,), (1338112185,), (1338112193,), (1338112197,), (1338112208,), (1338112210,), (1338112213,), (1338112226,), (1338112228,), (1338112240,), (1338112262,), (1338112268,), (1338112273,), (1338112309,), (1338112311,), (1338112328,), (1338112395,), (1338112410,), (1338112412,), (1338112414,), (1338112431,), (1338112433,), (1338112435,), (1338112439,), (1338112441,), (1338112442,), (1338112455,), (1338112456,), (1338112457,), (1338112458,), (1338112459,), (1338112460,), (1338112473,), (1338112474,), (1338112475,), (1338112497,), (1338112498,), (1338112499,), (1338112500,), (1338112501,), (1338112502,), (1338112515,), (1338112516,), (1338112517,), (1338112518,), (1338112519,), (1338112547,), (1338112548,), (1338112561,), (1338112562,), (1338112597,), (1338112608,), (1338112612,), (1338112613,), (1338112614,), (1338112615,), (1338112628,), (1338112629,), (1338112630,), (1338112631,), (1338112632,), (1338112633,), (1338112654,), (1338112656,), (1338112658,), (1338112686,), (1338112697,), (1338112700,), (1338112706,), (1338112856,), (1338112999,), (1338113316,), (1338113319,), (1338113326,), (1338113331,), (1338113333,), (1338113493,), (1338113338,), (1338113480,), (1338113486,), (1338113709,), (1338113712,), (1338113715,), (1338113722,), (1338113729,), (1338113730,), (1338114367,), (1338114491,), (1338114493,), (1338114495,), (1338114510,), (1338114512,), (1338114514,), (1338114531,), (1338114533,), (1338114535,), (1338114538,), (1338114540,), (1338114543,), (1338114553,), (1338114555,), (1338114557,), (1338114559,), (1338114562,), (1338114575,), (1338114577,), (1338114579,), (1338114581,), (1338114595,), (1338114598,), (1338114601,), (1338114604,), (1338114607,), (1338114623,), (1338114625,), (1338114628,), (1338114629,), (1338114669,), (1338114672,), (1338114674,), (1338114720,), (1338114699,), (1338114702,), (1338114708,), (1338114734,), (1338114736,), (1338114738,), (1338114740,), (1338114742,), (1338114750,), (1338114772,), (1338114774,), (1338114776,), (1338114778,), (1338114780,), (1338114979,), (1338115064,), (1338115061,), (1338115062,), (1338115063,), (1338115081,), (1338115082,), (1338115083,), (1338115084,), (1338115086,), (1338115088,), (1338115105,), (1338115106,), (1338115121,), (1338115124,), (1338115125,), (1338115155,), (1338115163,), (1338115166,), (1338115182,), (1338115183,), (1338115184,), (1338115186,), (1338115189,), (1338115193,), (1338115220,), (1338115222,), (1338115503,), (1338115384,), (1338115502,), (1338115523,), (1338115525,), (1338115527,), (1338115529,), (1338115554,), (1338115556,), (1338115558,), (1338115559,), (1338115560,), (1338115586,), (1338115587,), (1338115607,), (1338115608,), (1338115609,), (1338115610,), (1338115643,), (1338115644,), (1338115645,), (1338115664,), (1338115665,), (1338115666,), (1338115667,), (1338115669,), (1338115699,), (1338115700,), (1338115701,), (1338115734,), (1338115738,), (1338115777,), (1338115768,), (1338115771,), (1338115773,), (1338115775,), (1338115793,), (1338115796,), (1338115799,), (1338115815,), (1338115818,), (1338115821,), (1338115824,), (1338115826,), (1338115839,), (1338115991,), (1338115994,), (1338115997,), (1338115999,), (1338116001,), (1338116021,), (1338116026,), (1338116029,), (1338116044,), (1338116047,), (1338116207,), (1338116284,), (1338116343,), (1338116351,), (1338116360,), (1338116364,), (1338116500,), (1338116503,), (1338116506,), (1338116540,), (1338116542,), (1338116545,), (1338116549,), (1338116553,), (1338116572,), (1338116574,), (1338116577,), (1338116607,), (1338116612,), (1338116616,), (1338116622,), (1338116628,), (1338116636,), (1338116646,), (1338116649,), (1338116651,), (1338116656,), (1338116661,), (1338116666,), (1338116698,), (1338116699,), (1338116719,), (1338116724,), (1338116726,), (1338116736,), (1338116739,), (1338116741,), (1338116743,), (1338116747,), (1338116750,), (1338116796,), (1338116799,), (1338116801,), (1338116804,), (1338116806,), (1338116812,), (1338116842,), (1338116871,), (1338116875,), (1338116904,), (1338116907,), (1338116909,), (1338116911,), (1338116915,), (1338116677,), (1338116678,), (1338116680,), (1338116682,), (1338116684,), (1338116685,), (1338116689,), (1338116690,), (1338116694,), (1338116695,), (1338116707,), (1338116711,), (1338116715,), (1338116760,), (1338116770,), (1338116774,), (1338116778,), (1338116782,), (1338116786,), (1338116826,), (1338116831,), (1338116835,), (1338116838,), (1338116840,), (1338116852,), (1338116858,), (1338116862,), (1338116867,), (1338116933,), (1338116943,), (1338116946,), (1338116949,), (1338116952,), (1338116956,), (1338116989,), (1338116992,), (1338117002,), (1338117006,), (1338117008,), (1338117015,), (1338117048,), (1338117055,), (1338117058,), (1338117061,), (1338117106,), (1338117118,), (1338117124,), (1338117132,), (1338117140,), (1338117148,), (1338117176,), (1338117180,), (1338117188,), (1338117217,), (1338117222,), (1338117231,), (1338117235,), (1338117241,), (1338117274,), (1338117283,), (1338117335,), (1338117346,), (1338117350,), (1338117354,), (1338117358,), (1338117378,), (1338117380,), (1338117384,), (1338117387,), (1338117418,), (1338117425,), (1338117430,), (1338117434,), (1338117480,), (1338117463,), (1338117467,), (1338117472,), (1338117476,), (1338117500,), (1338117513,), (1338117516,), (1338117520,), (1338117523,), (1338117529,), (1338117555,), (1338117558,), (1338117610,), (1338117614,), (1338117617,), (1338117619,), (1338117621,), (1338117625,), (1338117644,), (1338117647,), (1338117656,), (1338117666,), (1338117672,), (1338117699,), (1338117702,), (1338117704,), (1338117707,), (1338117743,), (1338117746,), (1338117750,), (1338117753,), (1338117759,), (1338117765,), (1338117811,), (1338117814,), (1338117818,), (1338117822,), (1338117881,), (1338117884,), (1338117887,), (1338117924,), (1338117968,), (1338118098,), (1338118100,), (1338118253,), (1338118242,), (1338118245,), (1338118248,), (1338118250,), (1338118283,), (1338118303,), (1338118318,), (1338118321,), (1338118328,), (1338118354,), (1338118398,), (1338118401,), (1338118431,), (1338118434,), (1338118437,), (1338118439,), (1338118473,), (1338118484,), (1338118495,), (1338118502,), (1338118512,), (1338118562,), (1338118564,), (1338118567,), (1338118641,), (1338118643,), (1338118646,), (1338118649,), (1338118651,), (1338118654,), (1338118687,), (1338118689,), (1338118692,), (1338118695,), (1338118698,), (1338118702,), (1338118726,), (1338118728,), (1338118731,), (1338118734,), (1338118737,), (1338118767,), (1338118778,), (1338118780,), (1338118820,), (1338118822,), (1338118825,), (1338118828,), (1338118831,), (1338118956,), (1338118959,), (1338118962,), (1338118965,), (1338118969,), (1338118972,), (1338119003,), (1338119006,), (1338119009,), (1338119011,), (1338119013,), (1338119088,), (1338119103,), (1338119115,), (1338119120,), (1338119127,), (1338119138,), (1338119149,), (1338119154,), (1338119180,), (1338119161,), (1338119166,), (1338119172,), (1338119177,), (1338119205,), (1338119206,), (1338119213,), (1338119268,), (1338119278,), (1338119284,), (1338119288,), (1338119294,), (1338119298,), (1338119398,), (1338119574,), (1338119792,), (1338119923,), (1338119926,), (1338120093,), (1338120179,), (1338120246,), (1338120248,), (1338120251,), (1338120254,), (1338120824,), (1338120826,), (1338120829,), (1338120833,), (1338120839,), (1338121337,), (1338121427,), (1338121435,), (1338121438,), (1338121441,), (1338121543,), (1338121545,), (1338121547,), (1338121549,), (1338121576,), (1338121577,), (1338121579,), (1338121621,), (1338121666,), (1338121670,), (1338121673,), (1338121719,), (1338121722,), (1338121724,), (1338121725,), (1338121726,), (1338121729,), (1338121752,), (1338121754,), (1338121791,), (1338121793,), (1338121796,), (1338121799,), (1338121823,), (1338121824,), (1338121828,), (1338121832,), (1338121836,), (1338121866,), (1338121868,), (1338121871,), (1338121911,), (1338121913,), (1338121943,), (1338121944,), (1338121970,), (1338121971,), (1338121972,), (1338122004,), (1338122006,), (1338122008,), (1338122010,), (1338122013,), (1338122016,), (1338122047,), (1338122041,), (1338122042,), (1338122103,), (1338122105,), (1338122107,), (1338122108,), (1338122109,), (1338122158,), (1338122162,), (1338122165,), (1338122168,), (1338122171,), (1338122176,), (1338122195,), (1338122196,), (1338122198,), (1338122247,), (1338122248,), (1338122250,), (1338122252,), (1338122255,), (1338122290,), (1338122299,), (1338122302,), (1338122305,), (1338122308,), (1338122311,), (1338122329,), (1338122331,), (1338122334,), (1338122366,), (1338122369,), (1338122373,), (1338122375,), (1338122377,), (1338122380,), (1338122405,), (1338122406,), (1338122409,), (1338122412,), (1338122415,), (1338122418,), (1338122444,), (1338122446,), (1338122447,), (1338122482,), (1338122487,), (1338122496,), (1338122499,), (1338122532,), (1338122533,), (1338122536,), (1338122539,), (1338122542,), (1338122551,), (1338122587,), (1338122595,), (1338122599,), (1338122636,), (1338122637,), (1338122640,), (1338122643,), (1338122646,), (1338122649,), (1338122669,), (1338122672,), (1338122674,), (1338122676,), (1338122744,), (1338122733,), (1338122736,), (1338122739,), (1338122742,), (1338122839,), (1338122842,), (1338122848,), (1338122853,), (1338122884,), (1338122888,), (1338122891,), (1338122894,), (1338122930,), (1338122935,), (1338122981,), (1338122983,), (1338122986,), (1338123048,), (1338123050,), (1338123052,), (1338123146,), (1338123148,), (1338123182,), (1338123183,), (1338123239,), (1338123240,), (1338123243,), (1338123265,), (1338123352,), (1338123358,), (1338123361,), (1338123414,), (1338123416,), (1338123419,), (1338123422,), (1338123423,), (1338123456,), (1338123459,), (1338123462,), (1338123464,), (1338123500,), (1338123505,), (1338123510,), (1338123517,), (1338123524,), (1338123530,), (1338123568,), (1338129881,), (1338129952,), (1338129956,), (1338130081,), (1338130085,), (1338130089,), (1338130108,), (1338130112,), (1338130168,), (1338130173,), (1338130177,), (1338130199,), (1338130201,), (1338130269,), (1338130280,), (1338130290,), (1338130477,), (1338130478,), (1338130481,), (1338130485,), (1338130488,), (1338130519,), (1338130521,), (1338130524,), (1338130526,), (1338130527,), (1338130530,), (1338130570,), (1338130572,), (1338130575,), (1338130578,), (1338130648,), (1338130659,), (1338130662,), (1338130664,), (1338130668,), (1338130674,), (1338130733,), (1338130736,), (1338130739,), (1338130743,), (1338130746,), (1338130752,), (1338130775,), (1338130782,), (1338130785,), (1338130790,), (1338130829,), (1338130830,), (1338130833,), (1338130835,), (1338130839,), (1338130843,), (1338130867,), (1338130871,), (1338130874,), (1338130876,), (1338130915,), (1338130925,), (1338130933,), (1338130938,), (1338131012,), (1338130997,), (1338130999,), (1338131004,), (1338131007,), (1338131009,), (1338131205,), (1338131206,), (1338131209,), (1338131211,), (1338131244,), (1338131246,), (1338131249,), (1338131254,), (1338131257,), (1338131278,), (1338131280,), (1338131283,), (1338131286,), (1338131309,), (1338131310,), (1338131432,), (1338131437,), (1338131504,), (1338131556,), (1338131559,), (1338131562,), (1338131608,), (1338131611,), (1338131655,), (1338131657,), (1338131659,), (1338131662,), (1338131683,), (1338131685,), (1338131688,), (1338131702,), (1338131706,), (1338131781,), (1338131783,), (1338131796,), (1338131798,), (1338131891,), (1338131893,), (1338131896,), (1338131899,), (1338131902,), (1338131941,), (1338131944,), (1338131948,), (1338131952,), (1338131992,), (1338132000,), (1338132013,), (1338132023,), (1338132027,), (1338132032,), (1338132095,), (1338132067,), (1338132070,), (1338132074,), (1338132092,), (1338132166,), (1338132169,), (1338132172,), (1338132175,), (1338132187,), (1338132190,), (1338132406,), (1338132568,), (1338132598,), (1338132601,), (1338132604,), (1338132608,), (1338132956,), (1338132958,), (1338132961,), (1338132999,), (1338133001,), (1338133004,), (1338133007,), (1338133009,), (1338133012,), (1338133040,), (1338133043,), (1338133046,), (1338133049,), (1338133052,), (1338133054,), (1338133092,), (1338133094,), (1338133097,), (1338133100,), (1338133330,), (1338133342,), (1338133347,), (1338133350,), (1338133352,), (1338133361,), (1338133386,), (1338133389,), (1338133392,), (1338133430,), (1338133432,), (1338133435,), (1338133438,), (1338133463,), (1338133465,), (1338133468,), (1338133470,), (1338133474,), (1338133479,), (1338133516,), (1338133518,), (1338133521,), (1338133541,), (1338133628,), (1338133630,), (1338133633,), (1338133636,), (1338134140,), (1338134142,), (1338134145,), (1338134148,), (1338134155,), (1338134251,), (1338134347,), (1338134349,), (1338134353,), (1338134356,), (1338134393,), (1338134386,), (1338134388,), (1338134390,), (1338134434,), (1338134446,), (1338134449,), (1338134452,), (1338134456,), (1338134463,), (1338134485,), (1338134490,), (1338134501,), (1338134505,), (1338134800,), (1338134878,), (1338134945,), (1338135153,), (1338135265,), (1338135406,), (1338135608,), (1338135610,), (1338135794,), (1338135836,), (1338135838,), (1338135850,), (1338135993,), (1338135996,), (1338135999,), (1338136002,), (1338136004,), (1338136029,), (1338136031,), (1338136034,), (1338136037,), (1338136041,), (1338136053,), (1338136076,), (1338136078,), (1338136082,), (1338136085,), (1338136087,), (1338136194,), (1338136197,), (1338136200,), (1338136203,), (1338136211,), (1338136218,), (1338136238,), (1338136261,), (1338136264,), (1338136267,), (1338136292,), (1338136294,), (1338136301,), (1338136310,), (1338136313,), (1338136318,), (1338136353,), (1338136356,), (1338136359,), (1338136442,), (1338136448,), (1338136451,), (1338136453,), (1338136456,), (1338136459,), (1338136493,), (1338136536,), (1338136625,), (1338136710,), (1338136817,), (1338136826,), (1338136830,), (1338136842,), (1338136851,), (1338136855,), (1338136897,), (1338136884,), (1338136886,), (1338136889,), (1338136892,), (1338136895,), (1338136932,), (1338136935,), (1338136938,), (1338136941,), (1338136976,), (1338136979,), (1338136982,), (1338136985,), (1338136987,), (1338136990,), (1338137028,), (1338137030,), (1338137042,), (1338137146,), (1338137148,), (1338137151,), (1338137181,), (1338137183,), (1338137186,), (1338137240,), (1338137242,), (1338137245,), (1338137248,), (1338137290,), (1338137293,), (1338137297,), (1338137301,), (1338137305,), (1338137311,), (1338137503,), (1338137505,), (1338137508,), (1338137511,), (1338137513,), (1338137550,), (1338137552,), (1338137555,), (1338137558,), (1338137594,), (1338137597,), (1338137610,), (1338137613,), (1338137615,), (1338137702,), (1338137745,), (1338137748,), (1338137751,), (1338137790,), (1338137794,), (1338137797,), (1338137800,), (1338137802,), (1338137804,), (1338137864,), (1338137866,), (1338137869,), (1338137872,), (1338137874,), (1338137914,), (1338137917,), (1338137924,), (1338137927,), (1338137930,), (1338137955,), (1338137960,), (1338137964,), (1338137969,), (1338137972,), (1338137978,), (1338138003,), (1338137996,), (1338137999,), (1338138214,), (1338138220,), (1338138225,), (1338138229,), (1338138233,), (1338138242,), (1338138290,), (1338138293,), (1338138297,), (1338138301,), (1338138336,), (1338138339,), (1338138354,), (1338138358,), (1338138362,), (1338138364,), (1338138387,), (1338138390,), (1338138400,), (1338138404,), (1338138406,), (1338138423,), (1338138456,), (1338138463,), (1338138468,), (1338138472,), (1338138682,), (1338138686,), (1338138691,), (1338138695,), (1338138697,), (1338138703,), (1338138766,), (1338138769,), (1338138772,), (1338138776,), (1338138779,), (1338138807,), (1338138810,), (1338138814,), (1338138818,), (1338138861,), (1338138893,), (1338138900,), (1338138904,), (1338138909,), (1338138914,), (1338138959,), (1338138962,), (1338138968,), (1338138973,), (1338138998,), (1338139048,), (1338139051,), (1338139057,), (1338139068,), (1338139124,), (1338139126,), (1338139147,), (1338139151,), (1338139154,), (1338139157,), (1338139161,), (1338139189,), (1338139195,), (1338139203,), (1338139210,), (1338139218,), (1338139267,), (1338139252,), (1338139255,), (1338139260,), (1338139264,), (1338139320,), (1338139345,), (1338139353,), (1338139356,), (1338139531,), (1338139537,), (1338139543,), (1338139555,), (1338139560,), (1338139611,), (1338139649,), (1338140528,), (1338140532,), (1338140535,), (1338140537,), (1338140598,), (1338140600,), (1338140602,), (1338140605,), (1338140608,), (1338140663,), (1338140664,), (1338140666,), (1338140670,), (1338140760,), (1338140761,), (1338140765,), (1338140772,), (1338140814,), (1338140817,), (1338140832,), (1338140931,), (1338140933,), (1338140936,), (1338140940,), (1338140949,), (1338140993,), (1338140998,), (1338141003,), (1338141006,), (1338141011,), (1338141083,), (1338141086,), (1338141093,), (1338141097,), (1338141434,), (1338141515,), (1338141612,), (1338141679,), (1338141681,), (1338141748,), (1338142010,), (1338142020,), (1338142026,), (1338142031,), (1338142035,), (1338142037,), (1338142143,), (1338142241,), (1338142135,), (1338142140,), (1338142159,), (1338142162,), (1338142164,), (1338142167,), (1338142169,), (1338142177,), (1338142219,), (1338142250,), (1338142254,), (1338142256,), (1338142308,), (1338142533,), (1338142878,), (1338142926,), (1338142977,), (1338143226,), (1338143228,), (1338143230,), (1338143232,), (1338143233,), (1338143235,), (1338143278,), (1338143279,), (1338143281,), (1338143283,), (1338143284,), (1338143355,), (1338143361,), (1338143374,), (1338143489,), (1338143495,), (1338143502,), (1338143508,), (1338143511,), (1338143517,), (1338143571,), (1338143573,), (1338143579,), (1338143596,), (1338143603,), (1338143636,), (1338143640,), (1338143651,), (1338143652,), (1338143655,), (1338143695,), (1338143696,), (1338143698,), (1338143700,), (1338143701,), (1338143754,), (1338143760,), (1338143764,), (1338143768,), (1338143862,), (1338143866,), (1338143870,), (1338143874,), (1338143878,), (1338143880,), (1338143899,), (1338143900,), (1338143901,), (1338143954,), (1338143978,), (1338143985,), (1338144003,), (1338144042,), (1338144044,), (1338144053,), (1338144068,), (1338144082,), (1338144091,), (1338144094,), (1338144096,), (1338144100,), (1338144131,), (1338144126,), (1338144127,), (1338144129,), (1338144157,), (1338144162,), (1338144166,), (1338144169,), (1338144172,), (1338144186,), (1338144262,), (1338144282,), (1338144301,), (1338144307,), (1338144317,), (1338144361,), (1338144366,), (1338144371,), (1338144373,), (1338144398,), (1338144400,), (1338144403,), (1338144406,), (1338144408,), (1338144415,), (1338144495,), (1338144498,), (1338144501,), (1338144510,), (1338144514,), (1338144708,), (1338144710,), (1338144713,), (1338144716,), (1338144726,), (1338144767,), (1338144769,), (1338144772,), (1338144775,), (1338144822,), (1338144828,), (1338144831,), (1338144834,), (1338144840,), (1338144868,), (1338144870,), (1338144873,), (1338144876,), (1338144878,), (1338144913,), (1338144915,), (1338144918,), (1338144921,), (1338145206,), (1338145209,), (1338145212,), (1338145217,), (1338145219,), (1338145223,), (1338145249,), (1338145253,), (1338145256,), (1338145267,), (1338145303,), (1338145306,), (1338145309,), (1338145313,), (1338145315,), (1338145318,), (1338145333,), (1338145340,), (1338145351,), (1338145359,), (1338145361,), (1338145381,), (1338145376,), (1338145378,), (1338145683,), (1338145687,), (1338145694,), (1338145696,), (1338145700,), (1338145735,), (1338145737,), (1338145740,), (1338145743,), (1338145745,), (1338145749,), (1338145769,), (1338145771,), (1338145774,), (1338145777,), (1338145822,), (1338145825,), (1338145828,), (1338145831,), (1338145833,), (1338145856,), (1338145858,), (1338145871,), (1338146154,), (1338146213,), (1338146216,), (1338146219,), (1338146277,), (1338146280,), (1338146330,), (1338146332,), (1338146335,), (1338146383,), (1338146386,), (1338146390,), (1338146394,), (1338146397,), (1338146401,), (1338146437,), (1338146440,), (1338146444,), (1338146448,), (1338146450,), (1338146691,), (1338146693,), (1338146696,), (1338146699,), (1338146702,), (1338146756,), (1338146759,), (1338146762,), (1338146811,), (1338146826,), (1338146829,), (1338146983,), (1338146991,), (1338147006,), (1338147057,), (1338147066,), (1338147077,), (1338147081,), (1338147202,), (1338147177,), (1338147180,), (1338147183,), (1338147186,), (1338147192,), (1338147230,), (1338147233,), (1338147236,), (1338147239,), (1338147241,), (1338147244,), (1338147284,), (1338147286,), (1338147289,), (1338147548,), (1338147787,), (1338147789,), (1338147792,), (1338147795,), (1338147798,), (1338147800,), (1338147835,), (1338147838,), (1338147841,), (1338148050,), (1338148053,), (1338148056,), (1338148059,), (1338148061,), (1338148064,), (1338148095,), (1338148097,), (1338148100,), (1338148103,), (1338148105,), (1338148135,), (1338148137,), (1338148140,), (1338148143,), (1338148145,), (1338148200,), (1338148288,), (1338148291,), (1338148294,), (1338148296,), (1338148299,), (1338148349,), (1338148355,), (1338148358,), (1338148360,), (1338148436,), (1338148437,), (1338148439,), (1338148441,), (1338159502,), (1338159500,), (1338159527,), (1338159532,), (1338160715,), (1338160718,), (1338160748,), (1338160752,), (1338160756,), (1338160760,), (1338160785,), (1338160788,), (1338160792,), (1338160796,), (1338160800,), (1338160820,), (1338160822,), (1338160826,), (1338160935,), (1338160938,), (1338160941,), (1338161130,), (1338161155,), (1338161178,), (1338161181,), (1338161183,), (1338161451,), (1338161285,), (1338161289,), (1338161291,), (1338161381,), (1338161515,), (1338161518,), (1338161521,), (1338161524,), (1338161529,), (1338161757,), (1338161764,), (1338161771,), (1338161774,), (1338161798,), (1338161800,), (1338161803,), (1338163539,), (1338163552,), (1338163791,), (1338163792,), (1338163794,), (1338163796,), (1338163832,), (1338163834,), (1338163836,), (1338163837,), (1338163869,), (1338163872,), (1338163874,), (1338163876,), (1338163879,), (1338163906,), (1338163907,), (1338163909,), (1338163912,), (1338163949,), (1338163951,), (1338163953,), (1338163955,), (1338163958,), (1338164017,), (1338164009,), (1338164010,), (1338164013,), (1338164015,), (1338164110,), (1338164151,), (1338164157,), (1338164158,), (1338164183,), (1338164184,), (1338164749,), (1338164751,), (1338164764,), (1338164828,), (1338164829,), (1338164835,), (1338165143,), (1338165211,), (1338165290,), (1338165368,), (1338165463,), (1338165805,), (1338165806,), (1338165810,), (1338166136,), (1338166173,), (1338166197,), (1338166371,), (1338166431,), (1338166443,), (1338166479,), (1338166485,), (1338166490,), (1338166492,), (1338166493,), (1338166496,), (1338166530,), (1338166532,), (1338166538,), (1338166541,), (1338166622,), (1338166623,), (1338166626,), (1338166631,), (1338166677,), (1338166685,), (1338166687,), (1338166689,), (1338166713,), (1338166715,), (1338166717,), (1338166718,), (1338166720,), (1338166744,), (1338166748,), (1338166750,), (1338174079,), (1338173907,), (1338174076,), (1338174077,), (1338174105,), (1338174106,), (1338174108,), (1338174111,), (1338174114,), (1338174141,), (1338174142,), (1338174144,), (1338174146,), (1338174176,), (1338174178,), (1338174181,), (1338174183,), (1338174412,), (1338174416,), (1338174418,), (1338174524,), (1338174487,), (1338174498,), (1338174500,), (1338174508,), (1338174569,), (1338174570,), (1338174572,), (1338174574,), (1338174575,), (1338174696,), (1338174697,), (1338174711,), (1338174712,), (1338174738,), (1338174745,), (1338174749,), (1338174789,), (1338174793,), (1338174799,), (1338174803,), (1338174805,), (1338174848,), (1338174854,), (1338174858,), (1338174864,), (1338174868,), (1338175107,), (1338175111,), (1338175116,), (1338175121,), (1338175142,), (1338175145,), (1338175148,), (1338175152,), (1338175178,), (1338175180,), (1338175183,), (1338175186,), (1338175191,), (1338175231,), (1338175234,), (1338175240,), (1338175246,), (1338175250,), (1338175280,), (1338175288,), (1338175290,), (1338175297,), (1338175734,), (1338175738,), (1338175743,), (1338175746,), (1338175750,), (1338175756,), (1338175785,), (1338175787,), (1338175790,), (1338176032,), (1338176038,), (1338176042,), (1338176063,), (1338176069,), (1338176074,), (1338176095,), (1338176097,), (1338176137,), (1338176124,), (1338176128,), (1338176132,), (1338176135,), (1338176463,), (1338176466,), (1338176470,), (1338176477,), (1338176483,), (1338176507,), (1338176510,), (1338176514,), (1338176527,), (1338176533,), (1338176589,), (1338176592,), (1338176596,), (1338176602,), (1338176922,), (1338177006,), (1338177130,), (1338177194,), (1338177198,), (1338177640,), (1338177750,), (1338177840,), (1338177936,), (1338178076,), (1338178520,), (1338178585,), (1338178592,), (1338178717,), (1338178719,), (1338178723,), (1338178727,), (1338178729,), (1338178750,), (1338178752,), (1338178755,), (1338178758,), (1338178761,), (1338178765,), (1338178782,), (1338178784,), (1338178794,), (1338178834,), (1338178837,), (1338178840,), (1338178843,), (1338179117,), (1338179159,), (1338179206,), (1338179208,), (1338179212,), (1338179216,), (1338179220,), (1338179223,), (1338179267,), (1338179270,), (1338179274,), (1338179302,), (1338179305,), (1338179310,), (1338179313,), (1338179315,), (1338179320,), (1338179352,), (1338179338,), (1338179341,), (1338179345,), (1338179349,), (1338179670,), (1338179674,), (1338179678,), (1338179689,), (1338179736,), (1338179740,), (1338179744,), (1338179749,), (1338179751,), (1338179908,), (1338179918,), (1338180031,), (1338180199,), (1338180399,), (1338180622,), (1338180624,), (1338180665,), (1338180746,), (1338180748,), (1338180751,), (1338180754,), (1338180756,), (1338180777,), (1338180780,), (1338180784,), (1338180793,), (1338180796,), (1338180842,), (1338180844,), (1338180847,), (1338180940,), (1338180941,), (1338180959,), (1338180961,), (1338180964,), (1338180967,), (1338180971,), (1338180973,), (1338181098,), (1338181101,), (1338181105,), (1338181109,), (1338181114,), (1338181161,), (1338181163,), (1338181167,), (1338181171,), (1338181228,), (1338181230,), (1338181233,), (1338181236,), (1338181239,), (1338181242,), (1338181261,), (1338181263,), (1338181266,), (1338181331,), (1338181334,), (1338181390,), (1338181396,), (1338181399,), (1338181402,), (1338181404,), (1338181428,), (1338181431,), (1338181434,), (1338181438,), (1338181442,), (1338181446,), (1338181713,), (1338181675,), (1338181694,), (1338181702,), (1338181744,), (1338181747,), (1338181751,), (1338181753,), (1338181755,), (1338181927,), (1338181981,), (1338181987,), (1338181990,), (1338181992,), (1338182015,), (1338182114,), (1338182115,), (1338182119,), (1338182122,), (1338182145,), (1338182148,), (1338182151,), (1338182155,), (1338182200,), (1338182202,), (1338182207,), (1338182214,), (1338182218,), (1338182221,), (1338182481,), (1338182486,), (1338182488,), (1338182491,), (1338182552,), (1338182556,), (1338182572,), (1338182601,), (1338182603,), (1338182606,), (1338182608,), (1338182614,), (1338182618,), (1338182633,), (1338182635,), (1338182638,), (1338182643,), (1338182672,), (1338182674,), (1338182677,), (1338182680,), (1338182708,), (1338182715,), (1338182718,), (1338182721,), (1338182724,), (1338182727,), (1338182743,), (1338182745,), (1338182748,), (1338182751,), (1338182762,), (1338182768,), (1338182803,), (1338182805,), (1338182808,), (1338182811,), (1338182847,), (1338182849,), (1338182852,), (1338182896,), (1338182876,), (1338182878,), (1338182881,), (1338182889,), (1338182893,), (1338182911,), (1338182967,), (1338183069,), (1338183171,), (1338183199,), (1338183205,), (1338183224,), (1338183226,), (1338183233,), (1338183307,), (1338183310,), (1338183315,), (1338183372,), (1338183375,), (1338183488,), (1338183504,), (1338183510,), (1338183515,), (1338183531,), (1338183618,), (1338183621,), (1338183625,), (1338183633,), (1338183662,), (1338183666,), (1338183673,), (1338183677,), (1338183681,), (1338183684,), (1338183719,), (1338183725,), (1338183730,), (1338183736,), (1338183745,), (1338183753,), (1338183783,), (1338183788,), (1338183792,), (1338183853,), (1338183857,), (1338183866,), (1338183884,), (1338183888,), (1338183909,), (1338183911,), (1338183913,), (1338183915,), (1338183918,), (1338183922,), (1338183982,), (1338183993,), (1338183996,), (1338183998,), (1338184001,), (1338184058,), (1338184061,), (1338184064,), (1338184067,), (1338184074,), (1338184141,), (1338184146,), (1338184240,), (1338184339,), (1338184433,), (1338184536,), (1338184840,), (1338184944,), (1338185040,), (1338185129,), (1338185196,), (1338185177,), (1338185181,), (1338185186,), (1338185189,), (1338185193,), (1338185221,), (1338185227,), (1338185230,), (1338185233,), (1338185235,), (1338185271,), (1338185273,), (1338185275,), (1338185278,), (1338185312,), (1338185316,), (1338185318,), (1338185320,), (1338185330,), (1338185340,), (1338185427,), (1338185428,), (1338185429,), (1338185431,), (1338185439,), (1338186144,), (1338186148,), (1338186253,), (1338186612,), (1338186613,), (1338186614,), (1338186616,), (1338186619,), (1338186621,), (1338186656,), (1338186661,), (1338186664,), (1338186665,), (1338186667,), (1338186671,), (1338186706,), (1338186707,), (1338186708,), (1338186710,), (1338186752,), (1338186753,), (1338186754,), (1338186756,), (1338186759,), (1338186811,), (1338186820,), (1338186836,), (1338186843,), (1338186856,), (1338186858,), (1338186983,), (1338187067,), (1338187170,), (1338187250,), (1338187256,), (1338187282,), (1338187284,), (1338187287,), (1338187290,), (1338187293,), (1338187354,), (1338187369,), (1338187375,), (1338187402,), (1338187409,), (1338187619,), (1338187621,), (1338187624,), (1338187627,), (1338187629,), (1338187682,), (1338187672,), (1338187675,), (1338187678,), (1338187680,), (1338187812,), (1338187896,), (1338187981,), (1338188051,), (1338188089,), (1338188091,), (1338188094,), (1338188097,), (1338188099,), (1338188102,), (1338188183,), (1338188193,), (1338188196,), (1338188199,), (1338188202,), (1338188391,), (1338188431,), (1338188484,), (1338188497,), (1338188501,), (1338188506,), (1338188508,), (1338188546,), (1338188552,), (1338188612,), (1338188614,), (1338188617,), (1338188684,), (1338188686,), (1338188689,), (1338188777,), (1338188779,), (1338188798,), (1338188901,), (1338189004,), (1338189084,), (1338189568,), (1338189570,), (1338189573,), (1338189580,), (1338189870,), (1338189879,), (1338189939,), (1338189960,), (1338189962,), (1338189966,), (1338189983,), (1338189985,), (1338189991,), (1338189995,), (1338190003,), (1338190007,), (1338190026,), (1338190030,), (1338190033,), (1338190054,), (1338196234,), (1338196347,), (1338196467,), (1338196469,), (1338196472,), (1338196474,), (1338196480,), (1338196484,), (1338196503,), (1338196504,), (1338196506,), (1338197156,), (1338197157,), (1338197168,), (1338197338,), (1338197352,), (1338197433,), (1338197434,), (1338197610,), (1338197612,), (1338197613,), (1338197647,), (1338197650,), (1338197653,), (1338197655,), (1338197840,), (1338197842,), (1338197843,), (1338197844,), (1338197845,), (1338197903,), (1338197922,), (1338197923,), (1338197931,), (1338197933,), (1338197935,), (1338197982,), (1338197983,), (1338197985,), (1338198028,), (1338198029,), (1338198031,), (1338198033,), (1338198034,), (1338198036,), (1338198255,), (1338198256,), (1338198261,), (1338198265,), (1338198267,), (1338198285,), (1338198287,), (1338198289,), (1338198331,), (1338198316,), (1338198321,), (1338198327,), (1338198329,), (1338198415,), (1338198416,), (1338198418,), (1338198487,), (1338198488,), (1338198490,), (1338198492,), (1338198946,), (1338198947,), (1338198949,), (1338198951,), (1338199157,), (1338199184,), (1338199276,), (1338199278,), (1338199280,), (1338199301,), (1338199302,), (1338199304,), (1338199306,), (1338199528,), (1338199549,), (1338199551,), (1338199553,), (1338199623,), (1338199625,), (1338199628,), (1338199631,), (1338199634,), (1338199653,), (1338199655,), (1338199658,), (1338199661,), (1338199665,), (1338199689,), (1338199695,), (1338199699,), (1338199702,), (1338199704,), (1338199707,), (1338199751,), (1338199754,), (1338199757,), (1338199760,), (1338199778,), (1338199780,), (1338199783,), (1338199790,), (1338199796,), (1338199824,), (1338199830,), (1338199841,), (1338199982,), (1338200003,), (1338200283,), (1338200287,), (1338200290,), (1338200337,), (1338200339,), (1338200342,), (1338200345,), (1338200347,), (1338200352,), (1338200495,), (1338200367,), (1338200369,), (1338200372,), (1338200488,), (1338200576,), (1338200578,), (1338200581,), (1338200584,), (1338200607,), (1338200609,), (1338200612,), (1338200615,), (1338200617,), (1338200621,), (1338200646,), (1338200650,), (1338200653,), (1338200655,), (1338200707,), (1338200710,), (1338200713,), (1338200717,), (1338200765,), (1338200769,), (1338200808,), (1338200815,), (1338200819,), (1338200823,), (1338200826,), (1338200830,), (1338200856,), (1338200859,), (1338200863,), (1338200867,), (1338200917,), (1338200920,), (1338200922,), (1338200924,), (1338200927,), (1338200932,), (1338200956,), (1338200959,), (1338200963,), (1338200967,), (1338200969,), (1338200972,), (1338201004,), (1338201006,), (1338201008,), (1338201055,), (1338201061,), (1338201064,), (1338201067,), (1338201070,), (1338201073,), (1338201103,), (1338201105,), (1338201112,), (1338201114,), (1338201116,), (1338201192,), (1338201194,), (1338201197,), (1338201200,), (1338201203,), (1338201299,), (1338201302,), (1338201306,), (1338201334,), (1338202509,), (1338202336,), (1338202418,), (1338202501,), (1338202508,), (1338202755,), (1338202811,), (1338202814,), (1338202821,), (1338202825,), (1338202874,), (1338202875,), (1338202877,), (1338202879,), (1338202882,), (1338202886,), (1338202920,), (1338202922,), (1338202925,), (1338202928,), (1338202962,), (1338202967,), (1338202968,), (1338202971,), (1338203008,), (1338203011,), (1338203014,), (1338203016,), (1338203019,), (1338203021,), (1338203050,), (1338203052,), (1338203055,), (1338203058,), (1338203060,), (1338203554,), (1338203557,), (1338203561,), (1338203565,), (1338203585,), (1338203590,), (1338203870,), (1338203873,), (1338203876,), (1338203879,), (1338203934,), (1338203943,), (1338203947,), (1338203951,), (1338203953,), (1338203958,), (1338203982,), (1338203985,), (1338203990,), (1338203994,), (1338203998,), (1338204241,), (1338204251,), (1338204258,), (1338204261,), (1338204342,), (1338204343,), (1338204374,), (1338204408,), (1338204414,), (1338204524,), (1338204533,), (1338204537,), (1338204542,), (1338204555,), (1338204612,), (1338204613,), (1338204616,), (1338204617,), (1338204621,), (1338204624,), (1338204660,), (1338204649,), (1338204652,), (1338204655,), (1338204658,), (1338204702,), (1338204710,), (1338204716,), (1338204726,), (1338204728,), (1338204731,), (1338204755,), (1338204757,), (1338204760,), (1338204789,), (1338204803,), (1338204806,), (1338204809,), (1338204818,), (1338205500,), (1338205502,), (1338205506,), (1338205509,), (1338205511,), (1338205814,), (1338205820,), (1338205824,), (1338205858,), (1338205860,), (1338205863,), (1338205866,), (1338205868,), (1338205873,), (1338205887,), (1338205890,), (1338205893,), (1338205901,), (1338205908,), (1338205923,), (1338205925,), (1338205928,), (1338205956,), (1338205959,), (1338205965,), (1338205968,), (1338205969,), (1338205972,), (1338205984,), (1338205986,), (1338205989,), (1338205992,), (1338205995,), (1338206019,), (1338206021,), (1338206024,), (1338206049,), (1338206051,), (1338206054,), (1338206057,), (1338206059,), (1338206083,), (1338206085,), (1338206089,), (1338206092,), (1338206094,), (1338206098,), (1338206116,), (1338206119,), (1338206122,), (1338206125,), (1338206166,), (1338206161,), (1338206163,), (1338206210,), (1338206214,), (1338206216,), (1338206222,), (1338206228,), (1338206237,), (1338206268,), (1338206270,), (1338206272,), (1338206273,), (1338206274,), (1338206290,), (1338206294,), (1338206297,), (1338206299,), (1338206321,), (1338206325,), (1338206385,), (1338207084,), (1338207085,), (1338207277,), (1338207642,), (1338207649,), (1338207652,), (1338207655,), (1338207658,), (1338207678,), (1338207680,), (1338207683,), (1338207686,), (1338207714,), (1338207716,), (1338207719,), (1338207722,), (1338207724,), (1338207747,), (1338207751,), (1338207755,), (1338207760,), (1338207763,), (1338207767,), (1338207795,), (1338207811,), (1338207815,), (1338207818,), (1338207842,), (1338207998,), (1338207990,), (1338207992,), (1338207995,), (1338208096,), (1338208133,), (1338208142,), (1338208146,), (1338208147,), (1338208149,), (1338208186,), (1338208188,), (1338208191,), (1338208194,), (1338208204,), (1338208463,), (1338208888,), (1338208890,), (1338208893,), (1338208896,), (1338208946,), (1338208953,), (1338208956,), (1338208990,), (1338209012,), (1338209026,), (1338209097,), (1338209099,), (1338209102,), (1338209105,), (1338209134,), (1338209136,), (1338209139,), (1338209187,), (1338209195,), (1338209198,), (1338209201,), (1338209203,), (1338209206,), (1338209228,), (1338209231,), (1338209235,), (1338209239,), (1338209242,), (1338209246,), (1338209265,), (1338209268,), (1338209272,), (1338209275,), (1338209292,), (1338209294,), (1338209297,), (1338209300,), (1338209328,), (1338209357,), (1338209358,), (1338209404,), (1338209407,), (1338209410,), (1338209413,), (1338209440,), (1338209451,), (1338209454,), (1338209542,), (1338209584,), (1338209587,), (1338209590,), (1338209594,), (1338209599,), (1338209627,), (1338209629,), (1338209688,), (1338209731,), (1338209733,), (1338209736,), (1338209765,), (1338209756,), (1338209760,), (1338209763,), (1338209802,), (1338209806,), (1338209808,), (1338209810,), (1338209813,), (1338209816,), (1338209832,), (1338209836,), (1338209885,), (1338209887,), (1338209896,), (1338209907,), (1338209924,), (1338210714,), (1338210718,), (1338210721,), (1338210723,), (1338211007,), (1338211009,), (1338211012,), (1338211015,), (1338211018,), (1338211128,), (1338211139,), (1338211142,), (1338211145,), (1338211187,), (1338211190,), (1338211193,), (1338211196,), (1338211197,), (1338211213,), (1338211215,), (1338211218,), (1338211221,), (1338211223,), (1338211230,), (1338211349,), (1338211354,), (1338211357,), (1338211360,), (1338211363,), (1338211369,), (1338211397,), (1338211399,), (1338211402,), (1338211405,), (1338211423,), (1338211425,), (1338211429,), (1338211448,), (1338211454,), (1338211626,), (1338211630,), (1338211654,), (1338211693,), (1338211684,), (1338211687,), (1338211690,), (1338211798,), (1338211809,), (1338211817,), (1338211818,), (1338211866,), (1338211868,), (1338211871,), (1338211874,), (1338211876,), (1338211895,), (1338211897,), (1338211900,), (1338211958,), (1338212067,), (1338212874,), (1338212878,), (1338212880,), (1338212976,), (1338213018,), (1338213131,), (1338213133,), (1338213158,), (1338213161,), (1338213163,), (1338213166,), (1338213169,), (1338213172,), (1338213216,), (1338213218,), (1338213221,), (1338213224,), (1338213227,), (1338213241,), (1338213243,), (1338213246,), (1338213249,), (1338213304,), (1338213306,), (1338213309,), (1338213311,), (1338213313,), (1338213328,), (1338213330,), (1338213333,), (1338213336,), (1338213339,), (1338213346,), (1338213523,), (1338213525,), (1338213528,), (1338213542,), (1338213547,), (1338213551,), (1338213580,), (1338213582,), (1338213585,), (1338213588,), (1338213590,), (1338213623,), (1338213626,), (1338213635,), (1338213643,), (1338213644,), (1338213646,), (1338213662,), (1338213663,), (1338213665,), (1338213699,), (1338213690,), (1338213691,), (1338213693,), (1338213695,), (1338213968,), (1338213970,), (1338213972,), (1338213973,), (1338213975,), (1338214002,), (1338214004,), (1338214006,), (1338214008,), (1338214031,), (1338214032,), (1338214037,), (1338214039,), (1338214042,), (1338214044,), (1338214074,), (1338214076,), (1338214079,), (1338214082,), (1338214084,), (1338214087,), (1338214118,), (1338214121,), (1338214125,), (1338214129,), (1338214166,), (1338214169,), (1338214173,), (1338214177,), (1338214180,), (1338214201,), (1338214204,), (1338214208,), (1338214213,), (1338214217,), (1338214229,), (1338214269,), (1338214275,), (1338214283,), (1338214310,), (1338214313,), (1338214317,), (1338214321,), (1338214323,), (1338214372,), (1338214374,), (1338214377,), (1338214380,), (1338214382,), (1338214555,), (1338214557,), (1338214560,), (1338214563,), (1338214565,), (1338214589,), (1338214590,), (1338214623,), (1338214627,), (1338214629,), (1338214631,), (1338214654,), (1338214656,), (1338214658,), (1338214660,), (1338214663,), (1338214690,), (1338214683,), (1338214684,), (1338214686,), (1338214688,), (1338214740,), (1338214742,), (1338214744,), (1338215209,), (1338215210,), (1338215212,), (1338215214,), (1338215253,), (1338215255,), (1338215358,), (1338215404,), (1338215438,), (1338215445,), (1338215453,), (1338215455,), (1338215457,), (1338215485,), (1338215487,), (1338215490,), (1338215494,), (1338215525,), (1338215569,), (1338215570,), (1338215572,), (1338215574,), (1338215575,), (1338215591,), (1338215592,), (1338215594,), (1338215596,), (1338215621,), (1338215624,), (1338215626,), (1338215628,), (1338215633,), (1338215638,), (1338215653,), (1338215654,), (1338215656,), (1338218878,), (1338219898,), (1338221075,), (1338221107,), (1338221123,), (1338221160,), (1338221173,), (1338221175,), (1338222535,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'17022025': {'nb_upload': 26, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20594332]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1338112395, 1338112328, 1338112311, 1338112309, 1338112273, 1338112268, 1338112262, 1338112240, 1338112228, 1338112226, 1338112213, 1338112210, 1338112208, 1338112197, 1338112193, 1338112185, 1338112183, 1338112181, 1338112179, 1338112177, 1338112175, 1338112166, 1338112160, 1338112158, 1338112156, 1338112143] map_info['map_portfolio_photo'] : {20594332: [1338112395, 1338112328, 1338112311, 1338112309, 1338112273, 1338112268, 1338112262, 1338112240, 1338112228, 1338112226, 1338112213, 1338112210, 1338112208, 1338112197, 1338112193, 1338112185, 1338112183, 1338112181, 1338112179, 1338112177, 1338112175, 1338112166, 1338112160, 1338112158, 1338112156, 1338112143]} final : True mtd_id 4302 list_pids : [1338112395, 1338112328, 1338112311, 1338112309, 1338112273, 1338112268, 1338112262, 1338112240, 1338112228, 1338112226, 1338112213, 1338112210, 1338112208, 1338112197, 1338112193, 1338112185, 1338112183, 1338112181, 1338112179, 1338112177, 1338112175, 1338112166, 1338112160, 1338112158, 1338112156, 1338112143] Looping around the photos to save general results len do output : 1 /20594332Didn'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, '2595240') ('4302', '20594332', '1338112395', None, None, None, None, None, '2595240') ('4302', None, None, None, None, None, None, None, '2595240') ('4302', '20594332', '1338112328', None, None, None, None, None, '2595240') ('4302', None, None, None, None, None, None, None, '2595240') ('4302', '20594332', '1338112311', None, None, None, None, None, '2595240') ('4302', None, None, None, None, None, None, None, '2595240') ('4302', '20594332', '1338112309', None, None, None, None, None, '2595240') ('4302', None, None, None, None, None, None, None, '2595240') ('4302', '20594332', '1338112273', None, None, None, None, None, '2595240') ('4302', None, None, None, None, None, None, None, '2595240') ('4302', '20594332', '1338112268', None, None, None, None, None, '2595240') ('4302', None, None, None, None, None, None, None, '2595240') ('4302', '20594332', '1338112262', None, None, None, None, None, '2595240') ('4302', None, None, None, None, None, None, None, '2595240') ('4302', '20594332', '1338112240', None, None, None, None, None, '2595240') ('4302', None, None, None, None, None, None, None, '2595240') ('4302', '20594332', '1338112228', None, None, None, None, None, '2595240') ('4302', None, None, None, None, None, None, None, '2595240') ('4302', '20594332', '1338112226', None, None, None, None, None, '2595240') ('4302', None, None, None, None, None, None, None, '2595240') ('4302', '20594332', '1338112213', None, None, None, None, None, '2595240') ('4302', None, None, None, None, None, None, None, '2595240') ('4302', '20594332', '1338112210', None, None, None, None, None, '2595240') ('4302', None, None, None, None, None, None, None, '2595240') ('4302', '20594332', '1338112208', None, None, None, None, None, '2595240') ('4302', None, None, None, None, None, None, None, '2595240') ('4302', '20594332', '1338112197', None, None, None, None, None, '2595240') ('4302', None, None, None, None, None, None, None, '2595240') ('4302', '20594332', '1338112193', None, None, None, None, None, '2595240') ('4302', None, None, None, None, None, None, None, '2595240') ('4302', '20594332', '1338112185', None, None, None, None, None, '2595240') ('4302', None, None, None, None, None, None, None, '2595240') ('4302', '20594332', '1338112183', None, None, None, None, None, '2595240') ('4302', None, None, None, None, None, None, None, '2595240') ('4302', '20594332', '1338112181', None, None, None, None, None, '2595240') ('4302', None, None, None, None, None, None, None, '2595240') ('4302', '20594332', '1338112179', None, None, None, None, None, '2595240') ('4302', None, None, None, None, None, None, None, '2595240') ('4302', '20594332', '1338112177', None, None, None, None, None, '2595240') ('4302', None, None, None, None, None, None, None, '2595240') ('4302', '20594332', '1338112175', None, None, None, None, None, '2595240') ('4302', None, None, None, None, None, None, None, '2595240') ('4302', '20594332', '1338112166', None, None, None, None, None, '2595240') ('4302', None, None, None, None, None, None, None, '2595240') ('4302', '20594332', '1338112160', None, None, None, None, None, '2595240') ('4302', None, None, None, None, None, None, None, '2595240') ('4302', '20594332', '1338112158', None, None, None, None, None, '2595240') ('4302', None, None, None, None, None, None, None, '2595240') ('4302', '20594332', '1338112156', None, None, None, None, None, '2595240') ('4302', None, None, None, None, None, None, None, '2595240') ('4302', '20594332', '1338112143', None, None, None, None, None, '2595240') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 27 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, '20594332', 'None', None, None, None, None, '2595240'), ('4302', '20594332', '1338112395', None, None, None, None, None, '2595240'), ('4302', '20594332', '1338112328', None, None, None, None, None, '2595240'), ('4302', '20594332', '1338112311', None, None, None, None, None, '2595240'), ('4302', '20594332', '1338112309', None, None, None, None, None, '2595240'), ('4302', '20594332', '1338112273', None, None, None, None, None, '2595240'), ('4302', '20594332', '1338112268', None, None, None, None, None, '2595240'), ('4302', '20594332', '1338112262', None, None, None, None, None, '2595240'), ('4302', '20594332', '1338112240', None, None, None, None, None, '2595240'), ('4302', '20594332', '1338112228', None, None, None, None, None, '2595240'), ('4302', '20594332', '1338112226', None, None, None, None, None, '2595240'), ('4302', '20594332', '1338112213', None, None, None, None, None, '2595240'), ('4302', '20594332', '1338112210', None, None, None, None, None, '2595240'), ('4302', '20594332', '1338112208', None, None, None, None, None, '2595240'), ('4302', '20594332', '1338112197', None, None, None, None, None, '2595240'), ('4302', '20594332', '1338112193', None, None, None, None, None, '2595240'), ('4302', '20594332', '1338112185', None, None, None, None, None, '2595240'), ('4302', '20594332', '1338112183', None, None, None, None, None, '2595240'), ('4302', '20594332', '1338112181', None, None, None, None, None, '2595240'), ('4302', '20594332', '1338112179', None, None, None, None, None, '2595240'), ('4302', '20594332', '1338112177', None, None, None, None, None, '2595240'), ('4302', '20594332', '1338112175', None, None, None, None, None, '2595240'), ('4302', '20594332', '1338112166', None, None, None, None, None, '2595240'), ('4302', '20594332', '1338112160', None, None, None, None, None, '2595240'), ('4302', '20594332', '1338112158', None, None, None, None, None, '2595240'), ('4302', '20594332', '1338112156', None, None, None, None, None, '2595240'), ('4302', '20594332', '1338112143', None, None, None, None, None, '2595240')] time used for this insertion : 0.017900705337524414 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.0946290493011475 time spend to save output : 0.018281221389770508 total time spend for step 5 : 3.112910270690918 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 (2595240) 2.67user 2.30system 0:18.03elapsed 27%CPU (0avgtext+0avgdata 168256maxresident)k 520inputs+18912outputs (2major+77708minor)pagefaults 0swaps