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 : 3384898 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 (2572501) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2572501) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20098972 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2572501'] with mtr_portfolio_ids : ['20098972'] and first list_photo_ids : [] new path : /proc/3384898/ Name: python3 Umask: 0002 State: R (running) Tgid: 3384898 Ngid: 0 Pid: 3384898 PPid: 3384897 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 3384898 NSpid: 3384898 NSpgid: 3384217 NSsid: 3384217 VmPeak: 1106588 kB VmSize: 1106572 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98360 kB VmRSS: 98360 kB RssAnon: 59744 kB RssFile: 38616 kB RssShmem: 0 kB VmData: 865324 kB VmStk: 132 kB VmExe: 2640 kB VmLib: 130468 kB VmPTE: 616 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63054 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 45 nonvoluntary_ctxt_switches: 130 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '3384898', 'Ngid': '0', 'Pid': '3384898', 'PPid': '3384897', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '3384898', 'NSpid': '3384898', 'NSpgid': '3384217', 'NSsid': '3384217', 'VmPeak': '1106588 kB', 'VmSize': '1106572 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98360 kB', 'VmRSS': '98360 kB', 'RssAnon': '59744 kB', 'RssFile': '38616 kB', 'RssShmem': '0 kB', 'VmData': '865324 kB', 'VmStk': '132 kB', 'VmExe': '2640 kB', 'VmLib': '130468 kB', 'VmPTE': '616 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63054', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '45', 'nonvoluntary_ctxt_switches': '130'} ('datou_batch_current', '3384898', '1106588', '0', '1106572', '865324', '98360', b'', 'marlene', '2572501') 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 (20098972) 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 (2572501 ) ) 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 (20098972) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1332877749, 'portfolio_id': 20098972}, {'photo_id': 1332877589, 'portfolio_id': 20098972}, {'photo_id': 1332877582, 'portfolio_id': 20098972}, {'photo_id': 1332877579, 'portfolio_id': 20098972}, {'photo_id': 1332877577, 'portfolio_id': 20098972}, {'photo_id': 1332877575, 'portfolio_id': 20098972}, {'photo_id': 1332877571, 'portfolio_id': 20098972}, {'photo_id': 1332877506, 'portfolio_id': 20098972}, {'photo_id': 1332877503, 'portfolio_id': 20098972}, {'photo_id': 1332877347, 'portfolio_id': 20098972}, {'photo_id': 1332877345, 'portfolio_id': 20098972}, {'photo_id': 1332864735, 'portfolio_id': 20098972}, {'photo_id': 1332864731, 'portfolio_id': 20098972}, {'photo_id': 1332864652, 'portfolio_id': 20098972}, {'photo_id': 1332864651, 'portfolio_id': 20098972}, {'photo_id': 1332864649, 'portfolio_id': 20098972}, {'photo_id': 1332864648, 'portfolio_id': 20098972}, {'photo_id': 1332864647, 'portfolio_id': 20098972}, {'photo_id': 1332864646, 'portfolio_id': 20098972}, {'photo_id': 1332864540, 'portfolio_id': 20098972}, {'photo_id': 1332834889, 'portfolio_id': 20098972}] map_portfolio_id_photo_id: {20098972: [1332877749, 1332877589, 1332877582, 1332877579, 1332877577, 1332877575, 1332877571, 1332877506, 1332877503, 1332877347, 1332877345, 1332864735, 1332864731, 1332864652, 1332864651, 1332864649, 1332864648, 1332864647, 1332864646, 1332864540, 1332834889]} ##### 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 : 1.3434991836547852 #### 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 Mon Feb 10 17:45: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 (20098972) 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 : 20098972 get user id for portfolio 20098972 get sub ptf for main ptf 20098972, type 3726 and hashtags ['kraft', 'metal', 'Teint_Dans_La_Masse', 'environnement', 'Carton_brun', 'cartonnette', 'flou', 'Carton_gris', 'plastique', 'papier', 'autre_refus', 'mal_croppe'] 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`=20098972 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','metal','Teint_Dans_La_Masse','environnement','Carton_brun','cartonnette','flou','Carton_gris','plastique','papier','autre_refus','mal_croppe')) 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`=20098972 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','metal','Teint_Dans_La_Masse','environnement','Carton_brun','cartonnette','flou','Carton_gris','plastique','papier','autre_refus','mal_croppe')) AND mptpi.`min_score`=0.5 To do returned map {'cartonnette': {'main_port_id': 20098972, 'sub_port_id': 20099462, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12817978, 'last_updated_at': datetime.datetime(2025, 2, 9, 12, 56, 53), 'last_updated_at_desc': datetime.datetime(2025, 2, 9, 12, 56, 53), 'last_updated_at_asc': datetime.datetime(2025, 1, 31, 6, 7, 59)}, 'autre_refus': {'main_port_id': 20098972, 'sub_port_id': 20099463, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12817979, 'last_updated_at': datetime.datetime(2025, 2, 9, 12, 56, 53), 'last_updated_at_desc': datetime.datetime(2025, 2, 9, 12, 56, 53), 'last_updated_at_asc': datetime.datetime(2025, 1, 31, 6, 7, 59)}, 'kraft': {'main_port_id': 20098972, 'sub_port_id': 20099464, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12817980, 'last_updated_at': datetime.datetime(2025, 2, 9, 12, 56, 53), 'last_updated_at_desc': datetime.datetime(2025, 2, 9, 12, 56, 53), 'last_updated_at_asc': datetime.datetime(2025, 1, 31, 6, 7, 59)}, 'mal_croppe': {'main_port_id': 20098972, 'sub_port_id': 20099465, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12817981, 'last_updated_at': datetime.datetime(2025, 2, 9, 12, 56, 53), 'last_updated_at_desc': datetime.datetime(2025, 2, 9, 12, 56, 53), 'last_updated_at_asc': datetime.datetime(2025, 1, 31, 6, 7, 59)}, 'environnement': {'main_port_id': 20098972, 'sub_port_id': 20099466, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12817982, 'last_updated_at': datetime.datetime(2025, 2, 9, 12, 56, 53), 'last_updated_at_desc': datetime.datetime(2025, 2, 9, 12, 56, 53), 'last_updated_at_asc': datetime.datetime(2025, 1, 31, 6, 7, 59)}, 'papier': {'main_port_id': 20098972, 'sub_port_id': 20099467, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12817983, 'last_updated_at': datetime.datetime(2025, 2, 9, 12, 56, 53), 'last_updated_at_desc': datetime.datetime(2025, 2, 9, 12, 56, 53), 'last_updated_at_asc': datetime.datetime(2025, 1, 31, 6, 7, 59)}, 'Carton_gris': {'main_port_id': 20098972, 'sub_port_id': 20099468, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12817984, 'last_updated_at': datetime.datetime(2025, 2, 9, 12, 56, 53), 'last_updated_at_desc': datetime.datetime(2025, 2, 9, 12, 56, 53), 'last_updated_at_asc': datetime.datetime(2025, 1, 31, 6, 7, 59)}, 'metal': {'main_port_id': 20098972, 'sub_port_id': 20099469, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12817985, 'last_updated_at': datetime.datetime(2025, 2, 9, 12, 56, 53), 'last_updated_at_desc': datetime.datetime(2025, 2, 9, 12, 56, 53), 'last_updated_at_asc': datetime.datetime(2025, 1, 31, 6, 7, 59)}, 'plastique': {'main_port_id': 20098972, 'sub_port_id': 20099470, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12817986, 'last_updated_at': datetime.datetime(2025, 2, 9, 12, 56, 53), 'last_updated_at_desc': datetime.datetime(2025, 2, 9, 12, 56, 53), 'last_updated_at_asc': datetime.datetime(2025, 1, 31, 6, 7, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 20098972, 'sub_port_id': 20099471, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12817987, 'last_updated_at': datetime.datetime(2025, 2, 9, 12, 56, 53), 'last_updated_at_desc': datetime.datetime(2025, 2, 9, 12, 56, 53), 'last_updated_at_asc': datetime.datetime(2025, 1, 31, 6, 7, 59)}, 'Carton_brun': {'main_port_id': 20098972, 'sub_port_id': 20099472, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12817988, 'last_updated_at': datetime.datetime(2025, 2, 9, 12, 56, 53), 'last_updated_at_desc': datetime.datetime(2025, 2, 9, 12, 56, 53), 'last_updated_at_asc': datetime.datetime(2025, 1, 31, 6, 7, 59)}, 'flou': {'main_port_id': 20098972, 'sub_port_id': 20099473, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12817989, 'last_updated_at': datetime.datetime(2025, 2, 9, 12, 56, 53), 'last_updated_at_desc': datetime.datetime(2025, 2, 9, 12, 56, 53), 'last_updated_at_asc': datetime.datetime(2025, 1, 31, 6, 7, 59)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20099462 , 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=20098972 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 (20099462) result : ((1336160170,), (1336160175,), (1336160180,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20098972) result : ((1332834889,), (1332864540,), (1332864646,), (1332864647,), (1332864648,), (1332864649,), (1332864651,), (1332864652,), (1332864731,), (1332864735,), (1332877345,), (1332877347,), (1332877503,), (1332877506,), (1332877571,), (1332877575,), (1332877577,), (1332877579,), (1332877582,), (1332877589,), (1332877749,)) 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 20099463 , 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=20098972 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 (20099463) result : ((1336160071,), (1336160079,), (1336160083,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20098972) result : ((1332834889,), (1332864540,), (1332864646,), (1332864647,), (1332864648,), (1332864649,), (1332864651,), (1332864652,), (1332864731,), (1332864735,), (1332877345,), (1332877347,), (1332877503,), (1332877506,), (1332877571,), (1332877575,), (1332877577,), (1332877579,), (1332877582,), (1332877589,), (1332877749,)) 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 20099464 , 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=20098972 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 (20099464) result : ((1336160329,), (1336160330,), (1336160334,), (1336160336,), (1336160338,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20098972) result : ((1332834889,), (1332864540,), (1332864646,), (1332864647,), (1332864648,), (1332864649,), (1332864651,), (1332864652,), (1332864731,), (1332864735,), (1332877345,), (1332877347,), (1332877503,), (1332877506,), (1332877571,), (1332877575,), (1332877577,), (1332877579,), (1332877582,), (1332877589,), (1332877749,)) 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 20099465 , 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=20098972 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 (20099465) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20098972) result : ((1332834889,), (1332864540,), (1332864646,), (1332864647,), (1332864648,), (1332864649,), (1332864651,), (1332864652,), (1332864731,), (1332864735,), (1332877345,), (1332877347,), (1332877503,), (1332877506,), (1332877571,), (1332877575,), (1332877577,), (1332877579,), (1332877582,), (1332877589,), (1332877749,)) 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 20099466 , 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=20098972 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 (20099466) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20098972) result : ((1332834889,), (1332864540,), (1332864646,), (1332864647,), (1332864648,), (1332864649,), (1332864651,), (1332864652,), (1332864731,), (1332864735,), (1332877345,), (1332877347,), (1332877503,), (1332877506,), (1332877571,), (1332877575,), (1332877577,), (1332877579,), (1332877582,), (1332877589,), (1332877749,)) 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 20099467 , 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=20098972 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 (20099467) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20098972) result : ((1332834889,), (1332864540,), (1332864646,), (1332864647,), (1332864648,), (1332864649,), (1332864651,), (1332864652,), (1332864731,), (1332864735,), (1332877345,), (1332877347,), (1332877503,), (1332877506,), (1332877571,), (1332877575,), (1332877577,), (1332877579,), (1332877582,), (1332877589,), (1332877749,)) 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 20099468 , 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=20098972 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 (20099468) result : ((1336160124,), (1336160125,), (1336160127,), (1336160128,), (1336160129,), (1336160131,), (1336160132,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20098972) result : ((1332834889,), (1332864540,), (1332864646,), (1332864647,), (1332864648,), (1332864649,), (1332864651,), (1332864652,), (1332864731,), (1332864735,), (1332877345,), (1332877347,), (1332877503,), (1332877506,), (1332877571,), (1332877575,), (1332877577,), (1332877579,), (1332877582,), (1332877589,), (1332877749,)) 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 20099469 , 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=20098972 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 (20099469) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20098972) result : ((1332834889,), (1332864540,), (1332864646,), (1332864647,), (1332864648,), (1332864649,), (1332864651,), (1332864652,), (1332864731,), (1332864735,), (1332877345,), (1332877347,), (1332877503,), (1332877506,), (1332877571,), (1332877575,), (1332877577,), (1332877579,), (1332877582,), (1332877589,), (1332877749,)) 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 20099470 , 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=20098972 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 (20099470) result : ((1336160308,), (1336160312,), (1336160314,), (1336160316,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20098972) result : ((1332834889,), (1332864540,), (1332864646,), (1332864647,), (1332864648,), (1332864649,), (1332864651,), (1332864652,), (1332864731,), (1332864735,), (1332877345,), (1332877347,), (1332877503,), (1332877506,), (1332877571,), (1332877575,), (1332877577,), (1332877579,), (1332877582,), (1332877589,), (1332877749,)) 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 20099471 , 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=20098972 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 (20099471) result : ((1336160032,), (1336160033,), (1336160038,), (1336160046,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20098972) result : ((1332834889,), (1332864540,), (1332864646,), (1332864647,), (1332864648,), (1332864649,), (1332864651,), (1332864652,), (1332864731,), (1332864735,), (1332877345,), (1332877347,), (1332877503,), (1332877506,), (1332877571,), (1332877575,), (1332877577,), (1332877579,), (1332877582,), (1332877589,), (1332877749,)) 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 20099472 , 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=20098972 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 (20099472) result : ((1336160258,), (1336160259,), (1336160262,), (1336160264,), (1336160266,), (1336160267,), (1336160269,), (1336160270,), (1336160271,), (1336160273,), (1336160274,), (1336160275,), (1336160277,), (1336160278,), (1336160280,), (1336160282,), (1336160283,), (1336160285,), (1336160286,), (1336160288,), (1336160289,), (1336160290,), (1336160292,), (1336160293,), (1336160294,), (1336160296,), (1336160297,), (1336160298,), (1336160300,), (1336160697,), (1336160698,), (1336160699,), (1336160700,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20098972) result : ((1332834889,), (1332864540,), (1332864646,), (1332864647,), (1332864648,), (1332864649,), (1332864651,), (1332864652,), (1332864731,), (1332864735,), (1332877345,), (1332877347,), (1332877503,), (1332877506,), (1332877571,), (1332877575,), (1332877577,), (1332877579,), (1332877582,), (1332877589,), (1332877749,)) 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 20099473 , 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=20098972 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 (20099473) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20098972) result : ((1332834889,), (1332864540,), (1332864646,), (1332864647,), (1332864648,), (1332864649,), (1332864651,), (1332864652,), (1332864731,), (1332864735,), (1332877345,), (1332877347,), (1332877503,), (1332877506,), (1332877571,), (1332877575,), (1332877577,), (1332877579,), (1332877582,), (1332877589,), (1332877749,)) 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`=20098972 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','metal','Teint_Dans_La_Masse','environnement','Carton_brun','cartonnette','flou','Carton_gris','plastique','papier','autre_refus','mal_croppe')) 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`=20098972 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','metal','Teint_Dans_La_Masse','environnement','Carton_brun','cartonnette','flou','Carton_gris','plastique','papier','autre_refus','mal_croppe')) AND mptpi.`min_score`=0.5 To do returned map {'cartonnette': {'main_port_id': 20098972, 'sub_port_id': 20099474, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12817990, 'last_updated_at': datetime.datetime(2025, 1, 31, 6, 8, 1), 'last_updated_at_desc': datetime.datetime(2025, 1, 31, 6, 8, 1), 'last_updated_at_asc': datetime.datetime(2025, 1, 31, 6, 8, 1)}, 'autre_refus': {'main_port_id': 20098972, 'sub_port_id': 20099475, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12817991, 'last_updated_at': datetime.datetime(2025, 1, 31, 6, 8, 1), 'last_updated_at_desc': datetime.datetime(2025, 1, 31, 6, 8, 1), 'last_updated_at_asc': datetime.datetime(2025, 1, 31, 6, 8, 1)}, 'kraft': {'main_port_id': 20098972, 'sub_port_id': 20099476, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12817992, 'last_updated_at': datetime.datetime(2025, 1, 31, 6, 8, 1), 'last_updated_at_desc': datetime.datetime(2025, 1, 31, 6, 8, 1), 'last_updated_at_asc': datetime.datetime(2025, 1, 31, 6, 8, 1)}, 'mal_croppe': {'main_port_id': 20098972, 'sub_port_id': 20099477, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12817993, 'last_updated_at': datetime.datetime(2025, 1, 31, 6, 8, 1), 'last_updated_at_desc': datetime.datetime(2025, 1, 31, 6, 8, 1), 'last_updated_at_asc': datetime.datetime(2025, 1, 31, 6, 8, 1)}, 'environnement': {'main_port_id': 20098972, 'sub_port_id': 20099478, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12817994, 'last_updated_at': datetime.datetime(2025, 1, 31, 6, 8, 1), 'last_updated_at_desc': datetime.datetime(2025, 1, 31, 6, 8, 1), 'last_updated_at_asc': datetime.datetime(2025, 1, 31, 6, 8, 1)}, 'papier': {'main_port_id': 20098972, 'sub_port_id': 20099479, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12817995, 'last_updated_at': datetime.datetime(2025, 1, 31, 6, 8, 1), 'last_updated_at_desc': datetime.datetime(2025, 1, 31, 6, 8, 1), 'last_updated_at_asc': datetime.datetime(2025, 1, 31, 6, 8, 1)}, 'Carton_gris': {'main_port_id': 20098972, 'sub_port_id': 20099480, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12817996, 'last_updated_at': datetime.datetime(2025, 1, 31, 6, 8, 1), 'last_updated_at_desc': datetime.datetime(2025, 1, 31, 6, 8, 1), 'last_updated_at_asc': datetime.datetime(2025, 1, 31, 6, 8, 1)}, 'metal': {'main_port_id': 20098972, 'sub_port_id': 20099481, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12817997, 'last_updated_at': datetime.datetime(2025, 1, 31, 6, 8, 1), 'last_updated_at_desc': datetime.datetime(2025, 1, 31, 6, 8, 1), 'last_updated_at_asc': datetime.datetime(2025, 1, 31, 6, 8, 1)}, 'plastique': {'main_port_id': 20098972, 'sub_port_id': 20099482, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12817998, 'last_updated_at': datetime.datetime(2025, 1, 31, 6, 8, 1), 'last_updated_at_desc': datetime.datetime(2025, 1, 31, 6, 8, 1), 'last_updated_at_asc': datetime.datetime(2025, 1, 31, 6, 8, 1)}, 'Teint_Dans_La_Masse': {'main_port_id': 20098972, 'sub_port_id': 20099483, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12817999, 'last_updated_at': datetime.datetime(2025, 1, 31, 6, 8, 1), 'last_updated_at_desc': datetime.datetime(2025, 1, 31, 6, 8, 1), 'last_updated_at_asc': datetime.datetime(2025, 1, 31, 6, 8, 1)}, 'Carton_brun': {'main_port_id': 20098972, 'sub_port_id': 20099484, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12818000, 'last_updated_at': datetime.datetime(2025, 1, 31, 6, 8, 1), 'last_updated_at_desc': datetime.datetime(2025, 1, 31, 6, 8, 1), 'last_updated_at_asc': datetime.datetime(2025, 1, 31, 6, 8, 1)}, 'flou': {'main_port_id': 20098972, 'sub_port_id': 20099485, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12818001, 'last_updated_at': datetime.datetime(2025, 2, 9, 12, 56, 53), 'last_updated_at_desc': datetime.datetime(2025, 2, 9, 12, 56, 53), 'last_updated_at_asc': datetime.datetime(2025, 1, 31, 6, 8, 1)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20099474,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20099462 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20099475,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20099463 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20099476,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20099464 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20099477,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20099465 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20099478,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20099466 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20099479,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20099467 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20099480,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20099468 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20099481,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20099469 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20099482,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20099470 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20099483,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20099471 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20099484,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20099472 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20099485,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20099473 lien utilise dans velours : https://www.fotonower.com/velours/20099474,20099475,20099476,20099477,20099478,20099479,20099480,20099481,20099482,20099483,20099484,20099485?tags=cartonnette,autre_refus,kraft,mal_croppe,environnement,papier,Carton_gris,metal,plastique,Teint_Dans_La_Masse,Carton_brun,flou After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20098972]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1332877749, 1332877589, 1332877582, 1332877579, 1332877577, 1332877575, 1332877571, 1332877506, 1332877503, 1332877347, 1332877345, 1332864735, 1332864731, 1332864652, 1332864651, 1332864649, 1332864648, 1332864647, 1332864646, 1332864540, 1332834889] map_info['map_portfolio_photo'] : {20098972: [1332877749, 1332877589, 1332877582, 1332877579, 1332877577, 1332877575, 1332877571, 1332877506, 1332877503, 1332877347, 1332877345, 1332864735, 1332864731, 1332864652, 1332864651, 1332864649, 1332864648, 1332864647, 1332864646, 1332864540, 1332834889]} final : False mtd_id 4302 list_pids : [1332877749, 1332877589, 1332877582, 1332877579, 1332877577, 1332877575, 1332877571, 1332877506, 1332877503, 1332877347, 1332877345, 1332864735, 1332864731, 1332864652, 1332864651, 1332864649, 1332864648, 1332864647, 1332864646, 1332864540, 1332834889] Looping around the photos to save general results len do output : 1 /20098972. 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, '2572501') ('4302', '20098972', '1332877749', None, None, None, None, None, '2572501') ('4302', None, None, None, None, None, None, None, '2572501') ('4302', '20098972', '1332877589', None, None, None, None, None, '2572501') ('4302', None, None, None, None, None, None, None, '2572501') ('4302', '20098972', '1332877582', None, None, None, None, None, '2572501') ('4302', None, None, None, None, None, None, None, '2572501') ('4302', '20098972', '1332877579', None, None, None, None, None, '2572501') ('4302', None, None, None, None, None, None, None, '2572501') ('4302', '20098972', '1332877577', None, None, None, None, None, '2572501') ('4302', None, None, None, None, None, None, None, '2572501') ('4302', '20098972', '1332877575', None, None, None, None, None, '2572501') ('4302', None, None, None, None, None, None, None, '2572501') ('4302', '20098972', '1332877571', None, None, None, None, None, '2572501') ('4302', None, None, None, None, None, None, None, '2572501') ('4302', '20098972', '1332877506', None, None, None, None, None, '2572501') ('4302', None, None, None, None, None, None, None, '2572501') ('4302', '20098972', '1332877503', None, None, None, None, None, '2572501') ('4302', None, None, None, None, None, None, None, '2572501') ('4302', '20098972', '1332877347', None, None, None, None, None, '2572501') ('4302', None, None, None, None, None, None, None, '2572501') ('4302', '20098972', '1332877345', None, None, None, None, None, '2572501') ('4302', None, None, None, None, None, None, None, '2572501') ('4302', '20098972', '1332864735', None, None, None, None, None, '2572501') ('4302', None, None, None, None, None, None, None, '2572501') ('4302', '20098972', '1332864731', None, None, None, None, None, '2572501') ('4302', None, None, None, None, None, None, None, '2572501') ('4302', '20098972', '1332864652', None, None, None, None, None, '2572501') ('4302', None, None, None, None, None, None, None, '2572501') ('4302', '20098972', '1332864651', None, None, None, None, None, '2572501') ('4302', None, None, None, None, None, None, None, '2572501') ('4302', '20098972', '1332864649', None, None, None, None, None, '2572501') ('4302', None, None, None, None, None, None, None, '2572501') ('4302', '20098972', '1332864648', None, None, None, None, None, '2572501') ('4302', None, None, None, None, None, None, None, '2572501') ('4302', '20098972', '1332864647', None, None, None, None, None, '2572501') ('4302', None, None, None, None, None, None, None, '2572501') ('4302', '20098972', '1332864646', None, None, None, None, None, '2572501') ('4302', None, None, None, None, None, None, None, '2572501') ('4302', '20098972', '1332864540', None, None, None, None, None, '2572501') ('4302', None, None, None, None, None, None, None, '2572501') ('4302', '20098972', '1332834889', None, None, None, None, None, '2572501') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 22 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, '20098972', "{'cartonnette': 20099462, 'autre_refus': 20099463, 'kraft': 20099464, 'mal_croppe': 20099465, 'environnement': 20099466, 'papier': 20099467, 'Carton_gris': 20099468, 'metal': 20099469, 'plastique': 20099470, 'Teint_Dans_La_Masse': 20099471, 'Carton_brun': 20099472, 'flou': 20099473}", None, None, None, None, '2572501'), ('4302', '20098972', '1332877749', None, None, None, None, None, '2572501'), ('4302', '20098972', '1332877589', None, None, None, None, None, '2572501'), ('4302', '20098972', '1332877582', None, None, None, None, None, '2572501'), ('4302', '20098972', '1332877579', None, None, None, None, None, '2572501'), ('4302', '20098972', '1332877577', None, None, None, None, None, '2572501'), ('4302', '20098972', '1332877575', None, None, None, None, None, '2572501'), ('4302', '20098972', '1332877571', None, None, None, None, None, '2572501'), ('4302', '20098972', '1332877506', None, None, None, None, None, '2572501'), ('4302', '20098972', '1332877503', None, None, None, None, None, '2572501'), ('4302', '20098972', '1332877347', None, None, None, None, None, '2572501'), ('4302', '20098972', '1332877345', None, None, None, None, None, '2572501'), ('4302', '20098972', '1332864735', None, None, None, None, None, '2572501'), ('4302', '20098972', '1332864731', None, None, None, None, None, '2572501'), ('4302', '20098972', '1332864652', None, None, None, None, None, '2572501'), ('4302', '20098972', '1332864651', None, None, None, None, None, '2572501'), ('4302', '20098972', '1332864649', None, None, None, None, None, '2572501'), ('4302', '20098972', '1332864648', None, None, None, None, None, '2572501'), ('4302', '20098972', '1332864647', None, None, None, None, None, '2572501'), ('4302', '20098972', '1332864646', None, None, None, None, None, '2572501'), ('4302', '20098972', '1332864540', None, None, None, None, None, '2572501'), ('4302', '20098972', '1332834889', None, None, None, None, None, '2572501')] time used for this insertion : 0.016786575317382812 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.5741426944732666 time spend to save output : 0.017183780670166016 total time spend for step 1 : 1.5913264751434326 step2:final Mon Feb 10 17:45:31 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20098972) 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 20098972 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1332864540,1332864735,1332864731,1332864652,1332864651,1332864649,1332864648,1332864647,1332834889,1332864646,1332877749,1332877589,1332877582,1332877579,1332877577,1332877575,1332877571,1332877506,1332877503,1332877347,1332877345); 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([20098972]) Inside saveOutput : final : False verbose : True original output for save of step final : {1332877749: ('0.07937635756721696',), 1332877589: ('0.07937635756721696',), 1332877582: ('0.07937635756721696',), 1332877579: ('0.07937635756721696',), 1332877577: ('0.07937635756721696',), 1332877575: ('0.07937635756721696',), 1332877571: ('0.07937635756721696',), 1332877506: ('0.07937635756721696',), 1332877503: ('0.07937635756721696',), 1332877347: ('0.07937635756721696',), 1332877345: ('0.07937635756721696',), 1332864735: ('0.07937635756721696',), 1332864731: ('0.07937635756721696',), 1332864652: ('0.07937635756721696',), 1332864651: ('0.07937635756721696',), 1332864649: ('0.07937635756721696',), 1332864648: ('0.07937635756721696',), 1332864647: ('0.07937635756721696',), 1332864646: ('0.07937635756721696',), 1332864540: ('0.07937635756721696',), 1332834889: ('0.07937635756721696',)} new output for save of step final : {1332877749: ('0.07937635756721696',), 1332877589: ('0.07937635756721696',), 1332877582: ('0.07937635756721696',), 1332877579: ('0.07937635756721696',), 1332877577: ('0.07937635756721696',), 1332877575: ('0.07937635756721696',), 1332877571: ('0.07937635756721696',), 1332877506: ('0.07937635756721696',), 1332877503: ('0.07937635756721696',), 1332877347: ('0.07937635756721696',), 1332877345: ('0.07937635756721696',), 1332864735: ('0.07937635756721696',), 1332864731: ('0.07937635756721696',), 1332864652: ('0.07937635756721696',), 1332864651: ('0.07937635756721696',), 1332864649: ('0.07937635756721696',), 1332864648: ('0.07937635756721696',), 1332864647: ('0.07937635756721696',), 1332864646: ('0.07937635756721696',), 1332864540: ('0.07937635756721696',), 1332834889: ('0.07937635756721696',)} [1332877749, 1332877589, 1332877582, 1332877579, 1332877577, 1332877575, 1332877571, 1332877506, 1332877503, 1332877347, 1332877345, 1332864735, 1332864731, 1332864652, 1332864651, 1332864649, 1332864648, 1332864647, 1332864646, 1332864540, 1332834889] map_info['map_portfolio_photo'] : {20098972: [1332877749, 1332877589, 1332877582, 1332877579, 1332877577, 1332877575, 1332877571, 1332877506, 1332877503, 1332877347, 1332877345, 1332864735, 1332864731, 1332864652, 1332864651, 1332864649, 1332864648, 1332864647, 1332864646, 1332864540, 1332834889]} final : False mtd_id 4302 list_pids : [1332877749, 1332877589, 1332877582, 1332877579, 1332877577, 1332877575, 1332877571, 1332877506, 1332877503, 1332877347, 1332877345, 1332864735, 1332864731, 1332864652, 1332864651, 1332864649, 1332864648, 1332864647, 1332864646, 1332864540, 1332834889] Looping around the photos to save general results len do output : 21 /1332877749.Didn't retrieve data . /1332877589.Didn't retrieve data . /1332877582.Didn't retrieve data . /1332877579.Didn't retrieve data . /1332877577.Didn't retrieve data . /1332877575.Didn't retrieve data . /1332877571.Didn't retrieve data . /1332877506.Didn't retrieve data . /1332877503.Didn't retrieve data . /1332877347.Didn't retrieve data . /1332877345.Didn't retrieve data . /1332864735.Didn't retrieve data . /1332864731.Didn't retrieve data . /1332864652.Didn't retrieve data . /1332864651.Didn't retrieve data . /1332864649.Didn't retrieve data . /1332864648.Didn't retrieve data . /1332864647.Didn't retrieve data . /1332864646.Didn't retrieve data . /1332864540.Didn't retrieve data . /1332834889.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, '2572501') ('4302', '20098972', '1332877749', None, None, None, None, None, '2572501') ('4302', None, None, None, None, None, None, None, '2572501') ('4302', '20098972', '1332877589', None, None, None, None, None, '2572501') ('4302', None, None, None, None, None, None, None, '2572501') ('4302', '20098972', '1332877582', None, None, None, None, None, '2572501') ('4302', None, None, None, None, None, None, None, '2572501') ('4302', '20098972', '1332877579', None, None, None, None, None, '2572501') ('4302', None, None, None, None, None, None, None, '2572501') ('4302', '20098972', '1332877577', None, None, None, None, None, '2572501') ('4302', None, None, None, None, None, None, None, '2572501') ('4302', '20098972', '1332877575', None, None, None, None, None, '2572501') ('4302', None, None, None, None, None, None, None, '2572501') ('4302', '20098972', '1332877571', None, None, None, None, None, '2572501') ('4302', None, None, None, None, None, None, None, '2572501') ('4302', '20098972', '1332877506', None, None, None, None, None, '2572501') ('4302', None, None, None, None, None, None, None, '2572501') ('4302', '20098972', '1332877503', None, None, None, None, None, '2572501') ('4302', None, None, None, None, None, None, None, '2572501') ('4302', '20098972', '1332877347', None, None, None, None, None, '2572501') ('4302', None, None, None, None, None, None, None, '2572501') ('4302', '20098972', '1332877345', None, None, None, None, None, '2572501') ('4302', None, None, None, None, None, None, None, '2572501') ('4302', '20098972', '1332864735', None, None, None, None, None, '2572501') ('4302', None, None, None, None, None, None, None, '2572501') ('4302', '20098972', '1332864731', None, None, None, None, None, '2572501') ('4302', None, None, None, None, None, None, None, '2572501') ('4302', '20098972', '1332864652', None, None, None, None, None, '2572501') ('4302', None, None, None, None, None, None, None, '2572501') ('4302', '20098972', '1332864651', None, None, None, None, None, '2572501') ('4302', None, None, None, None, None, None, None, '2572501') ('4302', '20098972', '1332864649', None, None, None, None, None, '2572501') ('4302', None, None, None, None, None, None, None, '2572501') ('4302', '20098972', '1332864648', None, None, None, None, None, '2572501') ('4302', None, None, None, None, None, None, None, '2572501') ('4302', '20098972', '1332864647', None, None, None, None, None, '2572501') ('4302', None, None, None, None, None, None, None, '2572501') ('4302', '20098972', '1332864646', None, None, None, None, None, '2572501') ('4302', None, None, None, None, None, None, None, '2572501') ('4302', '20098972', '1332864540', None, None, None, None, None, '2572501') ('4302', None, None, None, None, None, None, None, '2572501') ('4302', '20098972', '1332834889', None, None, None, None, None, '2572501') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 63 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', '20098972', '1332877749', '0.07937635756721696', None, None, None, None, '2572501'), ('4302', '20098972', '1332877589', '0.07937635756721696', None, None, None, None, '2572501'), ('4302', '20098972', '1332877582', '0.07937635756721696', None, None, None, None, '2572501'), ('4302', '20098972', '1332877579', '0.07937635756721696', None, None, None, None, '2572501'), ('4302', '20098972', '1332877577', '0.07937635756721696', None, None, None, None, '2572501'), ('4302', '20098972', '1332877575', '0.07937635756721696', None, None, None, None, '2572501'), ('4302', '20098972', '1332877571', '0.07937635756721696', None, None, None, None, '2572501'), ('4302', '20098972', '1332877506', '0.07937635756721696', None, None, None, None, '2572501'), ('4302', '20098972', '1332877503', '0.07937635756721696', None, None, None, None, '2572501'), ('4302', '20098972', '1332877347', '0.07937635756721696', None, None, None, None, '2572501'), ('4302', '20098972', '1332877345', '0.07937635756721696', None, None, None, None, '2572501'), ('4302', '20098972', '1332864735', '0.07937635756721696', None, None, None, None, '2572501'), ('4302', '20098972', '1332864731', '0.07937635756721696', None, None, None, None, '2572501'), ('4302', '20098972', '1332864652', '0.07937635756721696', None, None, None, None, '2572501'), ('4302', '20098972', '1332864651', '0.07937635756721696', None, None, None, None, '2572501'), ('4302', '20098972', '1332864649', '0.07937635756721696', None, None, None, None, '2572501'), ('4302', '20098972', '1332864648', '0.07937635756721696', None, None, None, None, '2572501'), ('4302', '20098972', '1332864647', '0.07937635756721696', None, None, None, None, '2572501'), ('4302', '20098972', '1332864646', '0.07937635756721696', None, None, None, None, '2572501'), ('4302', '20098972', '1332864540', '0.07937635756721696', None, None, None, None, '2572501'), ('4302', '20098972', '1332834889', '0.07937635756721696', None, None, None, None, '2572501')] time used for this insertion : 0.015301942825317383 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.0657956600189209 time spend to save output : 0.016216278076171875 total time spend for step 2 : 0.08201193809509277 step3:velours_tree Mon Feb 10 17:45:31 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {20098972: [{'cartonnette': 20099462, 'autre_refus': 20099463, 'kraft': 20099464, 'mal_croppe': 20099465, 'environnement': 20099466, 'papier': 20099467, 'Carton_gris': 20099468, 'metal': 20099469, 'plastique': 20099470, 'Teint_Dans_La_Masse': 20099471, 'Carton_brun': 20099472, 'flou': 20099473}]} input_args_next_step : {20098972: ()} output_args : {20098972: [{'cartonnette': 20099462, 'autre_refus': 20099463, 'kraft': 20099464, 'mal_croppe': 20099465, 'environnement': 20099466, 'papier': 20099467, 'Carton_gris': 20099468, 'metal': 20099469, 'plastique': 20099470, 'Teint_Dans_La_Masse': 20099471, 'Carton_brun': 20099472, 'flou': 20099473}]} args : 20098972 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 : ({'cartonnette': 20099462, 'autre_refus': 20099463, 'kraft': 20099464, 'mal_croppe': 20099465, 'environnement': 20099466, 'papier': 20099467, 'Carton_gris': 20099468, 'metal': 20099469, 'plastique': 20099470, 'Teint_Dans_La_Masse': 20099471, 'Carton_brun': 20099472, 'flou': 20099473},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20098972) 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([20098972]) 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.31644344329833984 time spend to save output : 4.1961669921875e-05 total time spend for step 3 : 0.3164854049682617 step4:send_mail_cod Mon Feb 10 17:45:31 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1332877749: ('0.07937635756721696',), 1332877589: ('0.07937635756721696',), 1332877582: ('0.07937635756721696',), 1332877579: ('0.07937635756721696',), 1332877577: ('0.07937635756721696',), 1332877575: ('0.07937635756721696',), 1332877571: ('0.07937635756721696',), 1332877506: ('0.07937635756721696',), 1332877503: ('0.07937635756721696',), 1332877347: ('0.07937635756721696',), 1332877345: ('0.07937635756721696',), 1332864735: ('0.07937635756721696',), 1332864731: ('0.07937635756721696',), 1332864652: ('0.07937635756721696',), 1332864651: ('0.07937635756721696',), 1332864649: ('0.07937635756721696',), 1332864648: ('0.07937635756721696',), 1332864647: ('0.07937635756721696',), 1332864646: ('0.07937635756721696',), 1332864540: ('0.07937635756721696',), 1332834889: ('0.07937635756721696',)} input_args_next_step : {1332877749: ()} output_args : {1332877749: ('0.07937635756721696',), 1332877589: ('0.07937635756721696',), 1332877582: ('0.07937635756721696',), 1332877579: ('0.07937635756721696',), 1332877577: ('0.07937635756721696',), 1332877575: ('0.07937635756721696',), 1332877571: ('0.07937635756721696',), 1332877506: ('0.07937635756721696',), 1332877503: ('0.07937635756721696',), 1332877347: ('0.07937635756721696',), 1332877345: ('0.07937635756721696',), 1332864735: ('0.07937635756721696',), 1332864731: ('0.07937635756721696',), 1332864652: ('0.07937635756721696',), 1332864651: ('0.07937635756721696',), 1332864649: ('0.07937635756721696',), 1332864648: ('0.07937635756721696',), 1332864647: ('0.07937635756721696',), 1332864646: ('0.07937635756721696',), 1332864540: ('0.07937635756721696',), 1332834889: ('0.07937635756721696',)} args : 1332877749 depend.output_id : 0 input_args_next_step : {1332877749: ('0.07937635756721696',), 1332877589: ()} output_args : {1332877749: ('0.07937635756721696',), 1332877589: ('0.07937635756721696',), 1332877582: ('0.07937635756721696',), 1332877579: ('0.07937635756721696',), 1332877577: ('0.07937635756721696',), 1332877575: ('0.07937635756721696',), 1332877571: ('0.07937635756721696',), 1332877506: ('0.07937635756721696',), 1332877503: ('0.07937635756721696',), 1332877347: ('0.07937635756721696',), 1332877345: ('0.07937635756721696',), 1332864735: ('0.07937635756721696',), 1332864731: ('0.07937635756721696',), 1332864652: ('0.07937635756721696',), 1332864651: ('0.07937635756721696',), 1332864649: ('0.07937635756721696',), 1332864648: ('0.07937635756721696',), 1332864647: ('0.07937635756721696',), 1332864646: ('0.07937635756721696',), 1332864540: ('0.07937635756721696',), 1332834889: ('0.07937635756721696',)} args : 1332877589 depend.output_id : 0 input_args_next_step : {1332877749: ('0.07937635756721696',), 1332877589: ('0.07937635756721696',), 1332877582: ()} output_args : {1332877749: ('0.07937635756721696',), 1332877589: ('0.07937635756721696',), 1332877582: ('0.07937635756721696',), 1332877579: ('0.07937635756721696',), 1332877577: ('0.07937635756721696',), 1332877575: ('0.07937635756721696',), 1332877571: ('0.07937635756721696',), 1332877506: ('0.07937635756721696',), 1332877503: ('0.07937635756721696',), 1332877347: ('0.07937635756721696',), 1332877345: ('0.07937635756721696',), 1332864735: ('0.07937635756721696',), 1332864731: ('0.07937635756721696',), 1332864652: ('0.07937635756721696',), 1332864651: ('0.07937635756721696',), 1332864649: ('0.07937635756721696',), 1332864648: ('0.07937635756721696',), 1332864647: ('0.07937635756721696',), 1332864646: ('0.07937635756721696',), 1332864540: ('0.07937635756721696',), 1332834889: ('0.07937635756721696',)} args : 1332877582 depend.output_id : 0 input_args_next_step : {1332877749: ('0.07937635756721696',), 1332877589: ('0.07937635756721696',), 1332877582: ('0.07937635756721696',), 1332877579: ()} output_args : {1332877749: ('0.07937635756721696',), 1332877589: ('0.07937635756721696',), 1332877582: ('0.07937635756721696',), 1332877579: ('0.07937635756721696',), 1332877577: ('0.07937635756721696',), 1332877575: ('0.07937635756721696',), 1332877571: ('0.07937635756721696',), 1332877506: ('0.07937635756721696',), 1332877503: ('0.07937635756721696',), 1332877347: ('0.07937635756721696',), 1332877345: ('0.07937635756721696',), 1332864735: ('0.07937635756721696',), 1332864731: ('0.07937635756721696',), 1332864652: ('0.07937635756721696',), 1332864651: ('0.07937635756721696',), 1332864649: ('0.07937635756721696',), 1332864648: ('0.07937635756721696',), 1332864647: ('0.07937635756721696',), 1332864646: ('0.07937635756721696',), 1332864540: ('0.07937635756721696',), 1332834889: ('0.07937635756721696',)} args : 1332877579 depend.output_id : 0 input_args_next_step : {1332877749: ('0.07937635756721696',), 1332877589: ('0.07937635756721696',), 1332877582: ('0.07937635756721696',), 1332877579: ('0.07937635756721696',), 1332877577: ()} output_args : {1332877749: ('0.07937635756721696',), 1332877589: ('0.07937635756721696',), 1332877582: ('0.07937635756721696',), 1332877579: ('0.07937635756721696',), 1332877577: ('0.07937635756721696',), 1332877575: ('0.07937635756721696',), 1332877571: ('0.07937635756721696',), 1332877506: ('0.07937635756721696',), 1332877503: ('0.07937635756721696',), 1332877347: ('0.07937635756721696',), 1332877345: ('0.07937635756721696',), 1332864735: ('0.07937635756721696',), 1332864731: ('0.07937635756721696',), 1332864652: ('0.07937635756721696',), 1332864651: ('0.07937635756721696',), 1332864649: ('0.07937635756721696',), 1332864648: ('0.07937635756721696',), 1332864647: ('0.07937635756721696',), 1332864646: ('0.07937635756721696',), 1332864540: ('0.07937635756721696',), 1332834889: ('0.07937635756721696',)} args : 1332877577 depend.output_id : 0 input_args_next_step : {1332877749: ('0.07937635756721696',), 1332877589: ('0.07937635756721696',), 1332877582: ('0.07937635756721696',), 1332877579: ('0.07937635756721696',), 1332877577: ('0.07937635756721696',), 1332877575: ()} output_args : {1332877749: ('0.07937635756721696',), 1332877589: ('0.07937635756721696',), 1332877582: ('0.07937635756721696',), 1332877579: ('0.07937635756721696',), 1332877577: ('0.07937635756721696',), 1332877575: ('0.07937635756721696',), 1332877571: ('0.07937635756721696',), 1332877506: ('0.07937635756721696',), 1332877503: ('0.07937635756721696',), 1332877347: ('0.07937635756721696',), 1332877345: ('0.07937635756721696',), 1332864735: ('0.07937635756721696',), 1332864731: ('0.07937635756721696',), 1332864652: ('0.07937635756721696',), 1332864651: ('0.07937635756721696',), 1332864649: ('0.07937635756721696',), 1332864648: ('0.07937635756721696',), 1332864647: ('0.07937635756721696',), 1332864646: ('0.07937635756721696',), 1332864540: ('0.07937635756721696',), 1332834889: ('0.07937635756721696',)} args : 1332877575 depend.output_id : 0 input_args_next_step : {1332877749: ('0.07937635756721696',), 1332877589: ('0.07937635756721696',), 1332877582: ('0.07937635756721696',), 1332877579: ('0.07937635756721696',), 1332877577: ('0.07937635756721696',), 1332877575: ('0.07937635756721696',), 1332877571: ()} output_args : {1332877749: ('0.07937635756721696',), 1332877589: ('0.07937635756721696',), 1332877582: ('0.07937635756721696',), 1332877579: ('0.07937635756721696',), 1332877577: ('0.07937635756721696',), 1332877575: ('0.07937635756721696',), 1332877571: ('0.07937635756721696',), 1332877506: ('0.07937635756721696',), 1332877503: ('0.07937635756721696',), 1332877347: ('0.07937635756721696',), 1332877345: ('0.07937635756721696',), 1332864735: ('0.07937635756721696',), 1332864731: ('0.07937635756721696',), 1332864652: ('0.07937635756721696',), 1332864651: ('0.07937635756721696',), 1332864649: ('0.07937635756721696',), 1332864648: ('0.07937635756721696',), 1332864647: ('0.07937635756721696',), 1332864646: ('0.07937635756721696',), 1332864540: ('0.07937635756721696',), 1332834889: ('0.07937635756721696',)} args : 1332877571 depend.output_id : 0 input_args_next_step : {1332877749: ('0.07937635756721696',), 1332877589: ('0.07937635756721696',), 1332877582: ('0.07937635756721696',), 1332877579: ('0.07937635756721696',), 1332877577: ('0.07937635756721696',), 1332877575: ('0.07937635756721696',), 1332877571: ('0.07937635756721696',), 1332877506: ()} output_args : {1332877749: ('0.07937635756721696',), 1332877589: ('0.07937635756721696',), 1332877582: ('0.07937635756721696',), 1332877579: ('0.07937635756721696',), 1332877577: ('0.07937635756721696',), 1332877575: ('0.07937635756721696',), 1332877571: ('0.07937635756721696',), 1332877506: ('0.07937635756721696',), 1332877503: ('0.07937635756721696',), 1332877347: ('0.07937635756721696',), 1332877345: ('0.07937635756721696',), 1332864735: ('0.07937635756721696',), 1332864731: ('0.07937635756721696',), 1332864652: ('0.07937635756721696',), 1332864651: ('0.07937635756721696',), 1332864649: ('0.07937635756721696',), 1332864648: ('0.07937635756721696',), 1332864647: ('0.07937635756721696',), 1332864646: ('0.07937635756721696',), 1332864540: ('0.07937635756721696',), 1332834889: ('0.07937635756721696',)} args : 1332877506 depend.output_id : 0 input_args_next_step : {1332877749: ('0.07937635756721696',), 1332877589: ('0.07937635756721696',), 1332877582: ('0.07937635756721696',), 1332877579: ('0.07937635756721696',), 1332877577: ('0.07937635756721696',), 1332877575: ('0.07937635756721696',), 1332877571: ('0.07937635756721696',), 1332877506: ('0.07937635756721696',), 1332877503: ()} output_args : {1332877749: ('0.07937635756721696',), 1332877589: ('0.07937635756721696',), 1332877582: ('0.07937635756721696',), 1332877579: ('0.07937635756721696',), 1332877577: ('0.07937635756721696',), 1332877575: ('0.07937635756721696',), 1332877571: ('0.07937635756721696',), 1332877506: ('0.07937635756721696',), 1332877503: ('0.07937635756721696',), 1332877347: ('0.07937635756721696',), 1332877345: ('0.07937635756721696',), 1332864735: ('0.07937635756721696',), 1332864731: ('0.07937635756721696',), 1332864652: ('0.07937635756721696',), 1332864651: ('0.07937635756721696',), 1332864649: ('0.07937635756721696',), 1332864648: ('0.07937635756721696',), 1332864647: ('0.07937635756721696',), 1332864646: ('0.07937635756721696',), 1332864540: ('0.07937635756721696',), 1332834889: ('0.07937635756721696',)} args : 1332877503 depend.output_id : 0 input_args_next_step : {1332877749: ('0.07937635756721696',), 1332877589: ('0.07937635756721696',), 1332877582: ('0.07937635756721696',), 1332877579: ('0.07937635756721696',), 1332877577: ('0.07937635756721696',), 1332877575: ('0.07937635756721696',), 1332877571: ('0.07937635756721696',), 1332877506: ('0.07937635756721696',), 1332877503: ('0.07937635756721696',), 1332877347: ()} output_args : {1332877749: ('0.07937635756721696',), 1332877589: ('0.07937635756721696',), 1332877582: ('0.07937635756721696',), 1332877579: ('0.07937635756721696',), 1332877577: ('0.07937635756721696',), 1332877575: ('0.07937635756721696',), 1332877571: ('0.07937635756721696',), 1332877506: ('0.07937635756721696',), 1332877503: ('0.07937635756721696',), 1332877347: ('0.07937635756721696',), 1332877345: ('0.07937635756721696',), 1332864735: ('0.07937635756721696',), 1332864731: ('0.07937635756721696',), 1332864652: ('0.07937635756721696',), 1332864651: ('0.07937635756721696',), 1332864649: ('0.07937635756721696',), 1332864648: ('0.07937635756721696',), 1332864647: ('0.07937635756721696',), 1332864646: ('0.07937635756721696',), 1332864540: ('0.07937635756721696',), 1332834889: ('0.07937635756721696',)} args : 1332877347 depend.output_id : 0 input_args_next_step : {1332877749: ('0.07937635756721696',), 1332877589: ('0.07937635756721696',), 1332877582: ('0.07937635756721696',), 1332877579: ('0.07937635756721696',), 1332877577: ('0.07937635756721696',), 1332877575: ('0.07937635756721696',), 1332877571: ('0.07937635756721696',), 1332877506: ('0.07937635756721696',), 1332877503: ('0.07937635756721696',), 1332877347: ('0.07937635756721696',), 1332877345: ()} output_args : {1332877749: ('0.07937635756721696',), 1332877589: ('0.07937635756721696',), 1332877582: ('0.07937635756721696',), 1332877579: ('0.07937635756721696',), 1332877577: ('0.07937635756721696',), 1332877575: ('0.07937635756721696',), 1332877571: ('0.07937635756721696',), 1332877506: ('0.07937635756721696',), 1332877503: ('0.07937635756721696',), 1332877347: ('0.07937635756721696',), 1332877345: ('0.07937635756721696',), 1332864735: ('0.07937635756721696',), 1332864731: ('0.07937635756721696',), 1332864652: ('0.07937635756721696',), 1332864651: ('0.07937635756721696',), 1332864649: ('0.07937635756721696',), 1332864648: ('0.07937635756721696',), 1332864647: ('0.07937635756721696',), 1332864646: ('0.07937635756721696',), 1332864540: ('0.07937635756721696',), 1332834889: ('0.07937635756721696',)} args : 1332877345 depend.output_id : 0 input_args_next_step : {1332877749: ('0.07937635756721696',), 1332877589: ('0.07937635756721696',), 1332877582: ('0.07937635756721696',), 1332877579: ('0.07937635756721696',), 1332877577: ('0.07937635756721696',), 1332877575: ('0.07937635756721696',), 1332877571: ('0.07937635756721696',), 1332877506: ('0.07937635756721696',), 1332877503: ('0.07937635756721696',), 1332877347: ('0.07937635756721696',), 1332877345: ('0.07937635756721696',), 1332864735: ()} output_args : {1332877749: ('0.07937635756721696',), 1332877589: ('0.07937635756721696',), 1332877582: ('0.07937635756721696',), 1332877579: ('0.07937635756721696',), 1332877577: ('0.07937635756721696',), 1332877575: ('0.07937635756721696',), 1332877571: ('0.07937635756721696',), 1332877506: ('0.07937635756721696',), 1332877503: ('0.07937635756721696',), 1332877347: ('0.07937635756721696',), 1332877345: ('0.07937635756721696',), 1332864735: ('0.07937635756721696',), 1332864731: ('0.07937635756721696',), 1332864652: ('0.07937635756721696',), 1332864651: ('0.07937635756721696',), 1332864649: ('0.07937635756721696',), 1332864648: ('0.07937635756721696',), 1332864647: ('0.07937635756721696',), 1332864646: ('0.07937635756721696',), 1332864540: ('0.07937635756721696',), 1332834889: ('0.07937635756721696',)} args : 1332864735 depend.output_id : 0 input_args_next_step : {1332877749: ('0.07937635756721696',), 1332877589: ('0.07937635756721696',), 1332877582: ('0.07937635756721696',), 1332877579: ('0.07937635756721696',), 1332877577: ('0.07937635756721696',), 1332877575: ('0.07937635756721696',), 1332877571: ('0.07937635756721696',), 1332877506: ('0.07937635756721696',), 1332877503: ('0.07937635756721696',), 1332877347: ('0.07937635756721696',), 1332877345: ('0.07937635756721696',), 1332864735: ('0.07937635756721696',), 1332864731: ()} output_args : {1332877749: ('0.07937635756721696',), 1332877589: ('0.07937635756721696',), 1332877582: ('0.07937635756721696',), 1332877579: ('0.07937635756721696',), 1332877577: ('0.07937635756721696',), 1332877575: ('0.07937635756721696',), 1332877571: ('0.07937635756721696',), 1332877506: ('0.07937635756721696',), 1332877503: ('0.07937635756721696',), 1332877347: ('0.07937635756721696',), 1332877345: ('0.07937635756721696',), 1332864735: ('0.07937635756721696',), 1332864731: ('0.07937635756721696',), 1332864652: ('0.07937635756721696',), 1332864651: ('0.07937635756721696',), 1332864649: ('0.07937635756721696',), 1332864648: ('0.07937635756721696',), 1332864647: ('0.07937635756721696',), 1332864646: ('0.07937635756721696',), 1332864540: ('0.07937635756721696',), 1332834889: ('0.07937635756721696',)} args : 1332864731 depend.output_id : 0 input_args_next_step : {1332877749: ('0.07937635756721696',), 1332877589: ('0.07937635756721696',), 1332877582: ('0.07937635756721696',), 1332877579: ('0.07937635756721696',), 1332877577: ('0.07937635756721696',), 1332877575: ('0.07937635756721696',), 1332877571: ('0.07937635756721696',), 1332877506: ('0.07937635756721696',), 1332877503: ('0.07937635756721696',), 1332877347: ('0.07937635756721696',), 1332877345: ('0.07937635756721696',), 1332864735: ('0.07937635756721696',), 1332864731: ('0.07937635756721696',), 1332864652: ()} output_args : {1332877749: ('0.07937635756721696',), 1332877589: ('0.07937635756721696',), 1332877582: ('0.07937635756721696',), 1332877579: ('0.07937635756721696',), 1332877577: ('0.07937635756721696',), 1332877575: ('0.07937635756721696',), 1332877571: ('0.07937635756721696',), 1332877506: ('0.07937635756721696',), 1332877503: ('0.07937635756721696',), 1332877347: ('0.07937635756721696',), 1332877345: ('0.07937635756721696',), 1332864735: ('0.07937635756721696',), 1332864731: ('0.07937635756721696',), 1332864652: ('0.07937635756721696',), 1332864651: ('0.07937635756721696',), 1332864649: ('0.07937635756721696',), 1332864648: ('0.07937635756721696',), 1332864647: ('0.07937635756721696',), 1332864646: ('0.07937635756721696',), 1332864540: ('0.07937635756721696',), 1332834889: ('0.07937635756721696',)} args : 1332864652 depend.output_id : 0 input_args_next_step : {1332877749: ('0.07937635756721696',), 1332877589: ('0.07937635756721696',), 1332877582: ('0.07937635756721696',), 1332877579: ('0.07937635756721696',), 1332877577: ('0.07937635756721696',), 1332877575: ('0.07937635756721696',), 1332877571: ('0.07937635756721696',), 1332877506: ('0.07937635756721696',), 1332877503: ('0.07937635756721696',), 1332877347: ('0.07937635756721696',), 1332877345: ('0.07937635756721696',), 1332864735: ('0.07937635756721696',), 1332864731: ('0.07937635756721696',), 1332864652: ('0.07937635756721696',), 1332864651: ()} output_args : {1332877749: ('0.07937635756721696',), 1332877589: ('0.07937635756721696',), 1332877582: ('0.07937635756721696',), 1332877579: ('0.07937635756721696',), 1332877577: ('0.07937635756721696',), 1332877575: ('0.07937635756721696',), 1332877571: ('0.07937635756721696',), 1332877506: ('0.07937635756721696',), 1332877503: ('0.07937635756721696',), 1332877347: ('0.07937635756721696',), 1332877345: ('0.07937635756721696',), 1332864735: ('0.07937635756721696',), 1332864731: ('0.07937635756721696',), 1332864652: ('0.07937635756721696',), 1332864651: ('0.07937635756721696',), 1332864649: ('0.07937635756721696',), 1332864648: ('0.07937635756721696',), 1332864647: ('0.07937635756721696',), 1332864646: ('0.07937635756721696',), 1332864540: ('0.07937635756721696',), 1332834889: ('0.07937635756721696',)} args : 1332864651 depend.output_id : 0 input_args_next_step : {1332877749: ('0.07937635756721696',), 1332877589: ('0.07937635756721696',), 1332877582: ('0.07937635756721696',), 1332877579: ('0.07937635756721696',), 1332877577: ('0.07937635756721696',), 1332877575: ('0.07937635756721696',), 1332877571: ('0.07937635756721696',), 1332877506: ('0.07937635756721696',), 1332877503: ('0.07937635756721696',), 1332877347: ('0.07937635756721696',), 1332877345: ('0.07937635756721696',), 1332864735: ('0.07937635756721696',), 1332864731: ('0.07937635756721696',), 1332864652: ('0.07937635756721696',), 1332864651: ('0.07937635756721696',), 1332864649: ()} output_args : {1332877749: ('0.07937635756721696',), 1332877589: ('0.07937635756721696',), 1332877582: ('0.07937635756721696',), 1332877579: ('0.07937635756721696',), 1332877577: ('0.07937635756721696',), 1332877575: ('0.07937635756721696',), 1332877571: ('0.07937635756721696',), 1332877506: ('0.07937635756721696',), 1332877503: ('0.07937635756721696',), 1332877347: ('0.07937635756721696',), 1332877345: ('0.07937635756721696',), 1332864735: ('0.07937635756721696',), 1332864731: ('0.07937635756721696',), 1332864652: ('0.07937635756721696',), 1332864651: ('0.07937635756721696',), 1332864649: ('0.07937635756721696',), 1332864648: ('0.07937635756721696',), 1332864647: ('0.07937635756721696',), 1332864646: ('0.07937635756721696',), 1332864540: ('0.07937635756721696',), 1332834889: ('0.07937635756721696',)} args : 1332864649 depend.output_id : 0 input_args_next_step : {1332877749: ('0.07937635756721696',), 1332877589: ('0.07937635756721696',), 1332877582: ('0.07937635756721696',), 1332877579: ('0.07937635756721696',), 1332877577: ('0.07937635756721696',), 1332877575: ('0.07937635756721696',), 1332877571: ('0.07937635756721696',), 1332877506: ('0.07937635756721696',), 1332877503: ('0.07937635756721696',), 1332877347: ('0.07937635756721696',), 1332877345: ('0.07937635756721696',), 1332864735: ('0.07937635756721696',), 1332864731: ('0.07937635756721696',), 1332864652: ('0.07937635756721696',), 1332864651: ('0.07937635756721696',), 1332864649: ('0.07937635756721696',), 1332864648: ()} output_args : {1332877749: ('0.07937635756721696',), 1332877589: ('0.07937635756721696',), 1332877582: ('0.07937635756721696',), 1332877579: ('0.07937635756721696',), 1332877577: ('0.07937635756721696',), 1332877575: ('0.07937635756721696',), 1332877571: ('0.07937635756721696',), 1332877506: ('0.07937635756721696',), 1332877503: ('0.07937635756721696',), 1332877347: ('0.07937635756721696',), 1332877345: ('0.07937635756721696',), 1332864735: ('0.07937635756721696',), 1332864731: ('0.07937635756721696',), 1332864652: ('0.07937635756721696',), 1332864651: ('0.07937635756721696',), 1332864649: ('0.07937635756721696',), 1332864648: ('0.07937635756721696',), 1332864647: ('0.07937635756721696',), 1332864646: ('0.07937635756721696',), 1332864540: ('0.07937635756721696',), 1332834889: ('0.07937635756721696',)} args : 1332864648 depend.output_id : 0 input_args_next_step : {1332877749: ('0.07937635756721696',), 1332877589: ('0.07937635756721696',), 1332877582: ('0.07937635756721696',), 1332877579: ('0.07937635756721696',), 1332877577: ('0.07937635756721696',), 1332877575: ('0.07937635756721696',), 1332877571: ('0.07937635756721696',), 1332877506: ('0.07937635756721696',), 1332877503: ('0.07937635756721696',), 1332877347: ('0.07937635756721696',), 1332877345: ('0.07937635756721696',), 1332864735: ('0.07937635756721696',), 1332864731: ('0.07937635756721696',), 1332864652: ('0.07937635756721696',), 1332864651: ('0.07937635756721696',), 1332864649: ('0.07937635756721696',), 1332864648: ('0.07937635756721696',), 1332864647: ()} output_args : {1332877749: ('0.07937635756721696',), 1332877589: ('0.07937635756721696',), 1332877582: ('0.07937635756721696',), 1332877579: ('0.07937635756721696',), 1332877577: ('0.07937635756721696',), 1332877575: ('0.07937635756721696',), 1332877571: ('0.07937635756721696',), 1332877506: ('0.07937635756721696',), 1332877503: ('0.07937635756721696',), 1332877347: ('0.07937635756721696',), 1332877345: ('0.07937635756721696',), 1332864735: ('0.07937635756721696',), 1332864731: ('0.07937635756721696',), 1332864652: ('0.07937635756721696',), 1332864651: ('0.07937635756721696',), 1332864649: ('0.07937635756721696',), 1332864648: ('0.07937635756721696',), 1332864647: ('0.07937635756721696',), 1332864646: ('0.07937635756721696',), 1332864540: ('0.07937635756721696',), 1332834889: ('0.07937635756721696',)} args : 1332864647 depend.output_id : 0 input_args_next_step : {1332877749: ('0.07937635756721696',), 1332877589: ('0.07937635756721696',), 1332877582: ('0.07937635756721696',), 1332877579: ('0.07937635756721696',), 1332877577: ('0.07937635756721696',), 1332877575: ('0.07937635756721696',), 1332877571: ('0.07937635756721696',), 1332877506: ('0.07937635756721696',), 1332877503: ('0.07937635756721696',), 1332877347: ('0.07937635756721696',), 1332877345: ('0.07937635756721696',), 1332864735: ('0.07937635756721696',), 1332864731: ('0.07937635756721696',), 1332864652: ('0.07937635756721696',), 1332864651: ('0.07937635756721696',), 1332864649: ('0.07937635756721696',), 1332864648: ('0.07937635756721696',), 1332864647: ('0.07937635756721696',), 1332864646: ()} output_args : {1332877749: ('0.07937635756721696',), 1332877589: ('0.07937635756721696',), 1332877582: ('0.07937635756721696',), 1332877579: ('0.07937635756721696',), 1332877577: ('0.07937635756721696',), 1332877575: ('0.07937635756721696',), 1332877571: ('0.07937635756721696',), 1332877506: ('0.07937635756721696',), 1332877503: ('0.07937635756721696',), 1332877347: ('0.07937635756721696',), 1332877345: ('0.07937635756721696',), 1332864735: ('0.07937635756721696',), 1332864731: ('0.07937635756721696',), 1332864652: ('0.07937635756721696',), 1332864651: ('0.07937635756721696',), 1332864649: ('0.07937635756721696',), 1332864648: ('0.07937635756721696',), 1332864647: ('0.07937635756721696',), 1332864646: ('0.07937635756721696',), 1332864540: ('0.07937635756721696',), 1332834889: ('0.07937635756721696',)} args : 1332864646 depend.output_id : 0 input_args_next_step : {1332877749: ('0.07937635756721696',), 1332877589: ('0.07937635756721696',), 1332877582: ('0.07937635756721696',), 1332877579: ('0.07937635756721696',), 1332877577: ('0.07937635756721696',), 1332877575: ('0.07937635756721696',), 1332877571: ('0.07937635756721696',), 1332877506: ('0.07937635756721696',), 1332877503: ('0.07937635756721696',), 1332877347: ('0.07937635756721696',), 1332877345: ('0.07937635756721696',), 1332864735: ('0.07937635756721696',), 1332864731: ('0.07937635756721696',), 1332864652: ('0.07937635756721696',), 1332864651: ('0.07937635756721696',), 1332864649: ('0.07937635756721696',), 1332864648: ('0.07937635756721696',), 1332864647: ('0.07937635756721696',), 1332864646: ('0.07937635756721696',), 1332864540: ()} output_args : {1332877749: ('0.07937635756721696',), 1332877589: ('0.07937635756721696',), 1332877582: ('0.07937635756721696',), 1332877579: ('0.07937635756721696',), 1332877577: ('0.07937635756721696',), 1332877575: ('0.07937635756721696',), 1332877571: ('0.07937635756721696',), 1332877506: ('0.07937635756721696',), 1332877503: ('0.07937635756721696',), 1332877347: ('0.07937635756721696',), 1332877345: ('0.07937635756721696',), 1332864735: ('0.07937635756721696',), 1332864731: ('0.07937635756721696',), 1332864652: ('0.07937635756721696',), 1332864651: ('0.07937635756721696',), 1332864649: ('0.07937635756721696',), 1332864648: ('0.07937635756721696',), 1332864647: ('0.07937635756721696',), 1332864646: ('0.07937635756721696',), 1332864540: ('0.07937635756721696',), 1332834889: ('0.07937635756721696',)} args : 1332864540 depend.output_id : 0 input_args_next_step : {1332877749: ('0.07937635756721696',), 1332877589: ('0.07937635756721696',), 1332877582: ('0.07937635756721696',), 1332877579: ('0.07937635756721696',), 1332877577: ('0.07937635756721696',), 1332877575: ('0.07937635756721696',), 1332877571: ('0.07937635756721696',), 1332877506: ('0.07937635756721696',), 1332877503: ('0.07937635756721696',), 1332877347: ('0.07937635756721696',), 1332877345: ('0.07937635756721696',), 1332864735: ('0.07937635756721696',), 1332864731: ('0.07937635756721696',), 1332864652: ('0.07937635756721696',), 1332864651: ('0.07937635756721696',), 1332864649: ('0.07937635756721696',), 1332864648: ('0.07937635756721696',), 1332864647: ('0.07937635756721696',), 1332864646: ('0.07937635756721696',), 1332864540: ('0.07937635756721696',), 1332834889: ()} output_args : {1332877749: ('0.07937635756721696',), 1332877589: ('0.07937635756721696',), 1332877582: ('0.07937635756721696',), 1332877579: ('0.07937635756721696',), 1332877577: ('0.07937635756721696',), 1332877575: ('0.07937635756721696',), 1332877571: ('0.07937635756721696',), 1332877506: ('0.07937635756721696',), 1332877503: ('0.07937635756721696',), 1332877347: ('0.07937635756721696',), 1332877345: ('0.07937635756721696',), 1332864735: ('0.07937635756721696',), 1332864731: ('0.07937635756721696',), 1332864652: ('0.07937635756721696',), 1332864651: ('0.07937635756721696',), 1332864649: ('0.07937635756721696',), 1332864648: ('0.07937635756721696',), 1332864647: ('0.07937635756721696',), 1332864646: ('0.07937635756721696',), 1332864540: ('0.07937635756721696',), 1332834889: ('0.07937635756721696',)} args : 1332834889 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 : {20098972: [{'cartonnette': 20099462, 'autre_refus': 20099463, 'kraft': 20099464, 'mal_croppe': 20099465, 'environnement': 20099466, 'papier': 20099467, 'Carton_gris': 20099468, 'metal': 20099469, 'plastique': 20099470, 'Teint_Dans_La_Masse': 20099471, 'Carton_brun': 20099472, 'flou': 20099473}]} input_args_next_step : {1332877749: ('0.07937635756721696',), 1332877589: ('0.07937635756721696',), 1332877582: ('0.07937635756721696',), 1332877579: ('0.07937635756721696',), 1332877577: ('0.07937635756721696',), 1332877575: ('0.07937635756721696',), 1332877571: ('0.07937635756721696',), 1332877506: ('0.07937635756721696',), 1332877503: ('0.07937635756721696',), 1332877347: ('0.07937635756721696',), 1332877345: ('0.07937635756721696',), 1332864735: ('0.07937635756721696',), 1332864731: ('0.07937635756721696',), 1332864652: ('0.07937635756721696',), 1332864651: ('0.07937635756721696',), 1332864649: ('0.07937635756721696',), 1332864648: ('0.07937635756721696',), 1332864647: ('0.07937635756721696',), 1332864646: ('0.07937635756721696',), 1332864540: ('0.07937635756721696',), 1332834889: ('0.07937635756721696',), 20098972: ()} output_args : {20098972: [{'cartonnette': 20099462, 'autre_refus': 20099463, 'kraft': 20099464, 'mal_croppe': 20099465, 'environnement': 20099466, 'papier': 20099467, 'Carton_gris': 20099468, 'metal': 20099469, 'plastique': 20099470, 'Teint_Dans_La_Masse': 20099471, 'Carton_brun': 20099472, 'flou': 20099473}]} args : 20098972 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 :22, first value : ('0.07937635756721696',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20098972) 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 (1332877749,1332877589,1332877582,1332877579,1332877577,1332877575,1332877571,1332877506,1332877503,1332877347,1332877345,1332864735,1332864731,1332864652,1332864651,1332864649,1332864648,1332864647,1332864646,1332864540,1332834889) Found this number of photos: 21 ##### Call download_photos : nb_thread : 5 begin to download photo : 1332834889 begin to download photo : 1332864649 begin to download photo : 1332877345 begin to download photo : 1332877575 begin to download photo : 1332877749 download finish for photo 1332877345 begin to download photo : 1332877347 download finish for photo 1332877749 download finish for photo 1332877575 begin to download photo : 1332877577 download finish for photo 1332864649 begin to download photo : 1332864651 download finish for photo 1332834889 begin to download photo : 1332864540 download finish for photo 1332864651 begin to download photo : 1332864652 download finish for photo 1332877347 begin to download photo : 1332877503 download finish for photo 1332877577 begin to download photo : 1332877579 download finish for photo 1332864540 begin to download photo : 1332864646 download finish for photo 1332864652 begin to download photo : 1332864731 download finish for photo 1332877503 begin to download photo : 1332877506 download finish for photo 1332877579 begin to download photo : 1332877582 download finish for photo 1332864646 begin to download photo : 1332864647 download finish for photo 1332877506 begin to download photo : 1332877571 download finish for photo 1332864731 begin to download photo : 1332864735 download finish for photo 1332877582 begin to download photo : 1332877589 download finish for photo 1332864647 begin to download photo : 1332864648 download finish for photo 1332877571 download finish for photo 1332864735 download finish for photo 1332864648 download finish for photo 1332877589 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 21 ; length of list_pids : 21 ; length of list_args : 21 results_Auto_P20098972_10-02-2025_17_45_32.pdf 20099462 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=20099462 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1336160170: '1739101403_2618716_1332877589_7f0b0bd2a7a5140c21f866b12bcd30e8_rle_crop_3665705045_0.png', 1336160175: '1739101403_2618716_1332877571_832e1f8e211e5b684c5f41a9bbe4aa19_rle_crop_3665705513_0.png', 1336160180: '1739101403_2618716_1332864646_519c611fec1b31d3d83667d3c581c4da_rle_crop_3665708368_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/9/69a86393f24b2e884fcb8f9d52583b32_86528780.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/9/dee841c6b0e04129edf7e699269b3db6_5043869.png change filename to text .imagette200994621739205932/ imagette200994621739205932/1739101403_2618716_1332877589_7f0b0bd2a7a5140c21f866b12bcd30e8_rle_crop_3665705045_0.png.png imagette200994621739205932/1739101403_2618716_1332877571_832e1f8e211e5b684c5f41a9bbe4aa19_rle_crop_3665705513_0.png.png imagette200994621739205932/1739101403_2618716_1332864646_519c611fec1b31d3d83667d3c581c4da_rle_crop_3665708368_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/9/6e39c636759829b63956131fa4bb5f73_7299098.png imagette200994621739205932 20099463 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=20099463 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1336160071: '1739101403_2618716_1332877582_475c10edc981f245366711b1bd43e195_rle_crop_3665705139_0.png', 1336160079: '1739101403_2618716_1332877579_7355b423792136bab1bbb3ffdaac41c5_rle_crop_3665705233_0.png', 1336160083: '1739101403_2618716_1332864648_43c0b5d1c83b1a3d3908af4537adb23f_rle_crop_3665706777_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/9/5bd33aa6faa8b2ddf70c45a5a5bcbfc5_87146513.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/9/6bd49635fa4733844a13b5b61f30c82d_65984144.png change filename to text .imagette200994631739205933/ imagette200994631739205933/1739101403_2618716_1332877582_475c10edc981f245366711b1bd43e195_rle_crop_3665705139_0.png.png imagette200994631739205933/1739101403_2618716_1332877579_7355b423792136bab1bbb3ffdaac41c5_rle_crop_3665705233_0.png.png imagette200994631739205933/1739101403_2618716_1332864648_43c0b5d1c83b1a3d3908af4537adb23f_rle_crop_3665706777_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/9/758d6c374cfddd2806b45b732ed6f2f6_93676287.png imagette200994631739205933 20099464 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=20099464 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1336160329: '1739101403_2618716_1332877579_7355b423792136bab1bbb3ffdaac41c5_rle_crop_3665705234_0.png', 1336160330: '1739101403_2618716_1332877577_8f12e21b9a09be17f8a6b7f987863b2d_rle_crop_3665705362_0.png', 1336160334: '1739101403_2618716_1332877577_8f12e21b9a09be17f8a6b7f987863b2d_rle_crop_3665705358_0.png', 1336160336: '1739101403_2618716_1332877577_8f12e21b9a09be17f8a6b7f987863b2d_rle_crop_3665705353_0.png', 1336160338: '1739101403_2618716_1332877575_95d1dc2dd64e39c139f8d447469c02bc_rle_crop_3665705454_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/9/6449ec88866793eb3d6775fc94695acf_48390264.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/9/cddb5e028f5ad39ff317441ae20c770c_5857446.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/9/e8cec9b3e528af1ca9ad27e6d4b0fe59_26842006.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/9/5d44bfab6323fd74972412f59d5143b5_88091411.png change filename to text .imagette200994641739205933/ imagette200994641739205933/1739101403_2618716_1332877577_8f12e21b9a09be17f8a6b7f987863b2d_rle_crop_3665705362_0.png.png imagette200994641739205933/1739101403_2618716_1332877577_8f12e21b9a09be17f8a6b7f987863b2d_rle_crop_3665705353_0.png.png imagette200994641739205933/1739101403_2618716_1332877579_7355b423792136bab1bbb3ffdaac41c5_rle_crop_3665705234_0.png.png imagette200994641739205933/1739101403_2618716_1332877577_8f12e21b9a09be17f8a6b7f987863b2d_rle_crop_3665705358_0.png.png imagette200994641739205933/1739101403_2618716_1332877575_95d1dc2dd64e39c139f8d447469c02bc_rle_crop_3665705454_0.png.png imagette200994651739205933/ imagette200994691739205933/ wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/9/d9ade8b3c56673aedb90455d7182d47d_2549723.png imagette200994641739205933 20099465 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=20099465 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette200994651739205933 20099469 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=20099469 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette200994691739205933 20099470 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=20099470 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1336160308: '1739101403_2618716_1332877589_7f0b0bd2a7a5140c21f866b12bcd30e8_rle_crop_3665705043_0.png', 1336160312: '1739101403_2618716_1332877582_475c10edc981f245366711b1bd43e195_rle_crop_3665705140_0.png', 1336160314: '1739101403_2618716_1332877577_8f12e21b9a09be17f8a6b7f987863b2d_rle_crop_3665705360_0.png', 1336160316: '1739101403_2618716_1332864731_feca5e8e8d8d2c8744c0a469155b3e44_rle_crop_3665705900_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/9/3dd1f4434063fdd7fc4370c02d3544c8_92844353.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/9/b0b250bb9cf38ab87e4f08993e9e5153_83983858.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/9/4faaf6637790b0c8e4300d239975119a_88880907.png change filename to text .imagette200994701739205933/ imagette200994701739205933/1739101403_2618716_1332877582_475c10edc981f245366711b1bd43e195_rle_crop_3665705140_0.png.png imagette200994701739205933/1739101403_2618716_1332864731_feca5e8e8d8d2c8744c0a469155b3e44_rle_crop_3665705900_0.png.png imagette200994701739205933/1739101403_2618716_1332877577_8f12e21b9a09be17f8a6b7f987863b2d_rle_crop_3665705360_0.png.png imagette200994701739205933/1739101403_2618716_1332877589_7f0b0bd2a7a5140c21f866b12bcd30e8_rle_crop_3665705043_0.png.png imagette200994731739205934/ wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/9/e3890b525c836cbc21850dbb3e21b5d9_98274162.png imagette200994701739205933 20099473 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=20099473 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette200994731739205934 20099468 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=20099468 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1336160124: '1739101403_2618716_1332877589_7f0b0bd2a7a5140c21f866b12bcd30e8_rle_crop_3665705044_0.png', 1336160125: '1739101403_2618716_1332877582_475c10edc981f245366711b1bd43e195_rle_crop_3665705137_0.png', 1336160127: '1739101403_2618716_1332877579_7355b423792136bab1bbb3ffdaac41c5_rle_crop_3665705243_0.png', 1336160128: '1739101403_2618716_1332877575_95d1dc2dd64e39c139f8d447469c02bc_rle_crop_3665705452_0.png', 1336160129: '1739101403_2618716_1332877503_5c6fdf7a23e5224c7a7d373e2b5f0c8a_rle_crop_3665705694_0.png', 1336160131: '1739101403_2618716_1332864652_50cfe699063125bc62312d5bee56cbfb_rle_crop_3665706031_0.png', 1336160132: '1739101403_2618716_1332864648_43c0b5d1c83b1a3d3908af4537adb23f_rle_crop_3665706791_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/9/81e302bf86db6810ba7d3d69ab133e90_58528985.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/9/186dd2032a06ca10f901668b7ae3bd01_24908878.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/9/80dae4a03320dab36263ba5a23f516fc_8156356.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/9/3a4b322e8be5812a0c8ce517c65be701_93856824.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/9/bac56d53371c650b4abd2e37366e1d8a_91372933.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/9/ef3a3a30cc4fb41569a441a6e0849adb_50242096.png change filename to text .imagette200994681739205934/ imagette200994681739205934/1739101403_2618716_1332864652_50cfe699063125bc62312d5bee56cbfb_rle_crop_3665706031_0.png.png imagette200994681739205934/1739101403_2618716_1332877579_7355b423792136bab1bbb3ffdaac41c5_rle_crop_3665705243_0.png.png imagette200994681739205934/1739101403_2618716_1332877503_5c6fdf7a23e5224c7a7d373e2b5f0c8a_rle_crop_3665705694_0.png.png imagette200994681739205934/1739101403_2618716_1332864648_43c0b5d1c83b1a3d3908af4537adb23f_rle_crop_3665706791_0.png.png imagette200994681739205934/1739101403_2618716_1332877575_95d1dc2dd64e39c139f8d447469c02bc_rle_crop_3665705452_0.png.png imagette200994681739205934/1739101403_2618716_1332877589_7f0b0bd2a7a5140c21f866b12bcd30e8_rle_crop_3665705044_0.png.png imagette200994681739205934/1739101403_2618716_1332877582_475c10edc981f245366711b1bd43e195_rle_crop_3665705137_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/9/18bb054ab0ea4d92fe659d5c4fdfe0ea_95192777.png imagette200994681739205934 20099471 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=20099471 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1336160032: '1739101403_2618716_1332877749_3ceec6dcd8a5e247601c196682fd7e5d_rle_crop_3665704912_0.png', 1336160033: '1739101403_2618716_1332877579_7355b423792136bab1bbb3ffdaac41c5_rle_crop_3665705239_0.png', 1336160038: '1739101403_2618716_1332864648_43c0b5d1c83b1a3d3908af4537adb23f_rle_crop_3665706775_0.png', 1336160046: '1739101403_2618716_1332864646_519c611fec1b31d3d83667d3c581c4da_rle_crop_3665708382_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/9/92e7aabc2a6ceaa4eb313e41f9016429_80393136.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/9/ffe1a20dd2f636790812ac81674470d1_6365745.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/9/edd929f9db3d1c6cda3d0f7dc1853508_62098859.png change filename to text .imagette200994711739205934/ imagette200994711739205934/1739101403_2618716_1332877749_3ceec6dcd8a5e247601c196682fd7e5d_rle_crop_3665704912_0.png.png imagette200994711739205934/1739101403_2618716_1332864646_519c611fec1b31d3d83667d3c581c4da_rle_crop_3665708382_0.png.png imagette200994711739205934/1739101403_2618716_1332864648_43c0b5d1c83b1a3d3908af4537adb23f_rle_crop_3665706775_0.png.png imagette200994711739205934/1739101403_2618716_1332877579_7355b423792136bab1bbb3ffdaac41c5_rle_crop_3665705239_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/9/15be3a8b34f0818ea818f999e65a524c_92332644.png imagette200994711739205934 20099472 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=20099472 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1336160296: '1739101403_2618716_1332864646_519c611fec1b31d3d83667d3c581c4da_rle_crop_3665708374_0.png', 1336160285: '1739101403_2618716_1332864649_a12c3f26cfe44727d825ce31df844496_rle_crop_3665706185_0.png', 1336160286: '1739101403_2618716_1332864649_a12c3f26cfe44727d825ce31df844496_rle_crop_3665706196_0.png', 1336160288: '1739101403_2618716_1332864648_43c0b5d1c83b1a3d3908af4537adb23f_rle_crop_3665706778_0.png', 1336160289: '1739101403_2618716_1332864648_43c0b5d1c83b1a3d3908af4537adb23f_rle_crop_3665706781_0.png', 1336160290: '1739101403_2618716_1332864648_43c0b5d1c83b1a3d3908af4537adb23f_rle_crop_3665706787_0.png', 1336160292: '1739101403_2618716_1332864647_db869af3c13673fbd7fb127d6bf06e90_rle_crop_3665707305_0.png', 1336160293: '1739101403_2618716_1332864647_db869af3c13673fbd7fb127d6bf06e90_rle_crop_3665707309_0.png', 1336160294: '1739101403_2618716_1332864647_db869af3c13673fbd7fb127d6bf06e90_rle_crop_3665707307_0.png', 1336160283: '1739101403_2618716_1332864649_a12c3f26cfe44727d825ce31df844496_rle_crop_3665706195_0.png', 1336160297: '1739101403_2618716_1332864646_519c611fec1b31d3d83667d3c581c4da_rle_crop_3665708371_0.png', 1336160298: '1739101403_2618716_1332864646_519c611fec1b31d3d83667d3c581c4da_rle_crop_3665708378_0.png', 1336160300: '1739101403_2618716_1332864646_519c611fec1b31d3d83667d3c581c4da_rle_crop_3665708372_0.png', 1336160697: '1739102154_2667061_1332834889_644ca2c3f3174908e940ea22473d3ebb_rle_crop_3665724825_0.png', 1336160698: '1739102154_2667061_1332834889_644ca2c3f3174908e940ea22473d3ebb_rle_crop_3665724824_0.png', 1336160699: '1739102154_2667061_1332834889_644ca2c3f3174908e940ea22473d3ebb_rle_crop_3665724828_0.png', 1336160700: '1739102154_2667061_1332834889_644ca2c3f3174908e940ea22473d3ebb_rle_crop_3665724826_0.png', 1336160258: '1739101403_2618716_1332877749_3ceec6dcd8a5e247601c196682fd7e5d_rle_crop_3665704918_0.png', 1336160282: '1739101403_2618716_1332864651_cbb10e9d8af9a090b6f3e5cf8a18a8af_rle_crop_3665706126_0.png', 1336160280: '1739101403_2618716_1332864651_cbb10e9d8af9a090b6f3e5cf8a18a8af_rle_crop_3665706131_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/9/1349e87521b9d9f7e995bf7d270f1f99_20664303.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/9/639c37346d0ed863661dd62b2441b0f8_74869848.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/9/2841c2b8a2f1f90ac63f5e1b6a172c5a_2170541.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/9/3c143cf2ff12ba1d11fde62f39f8d1b8_18922837.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/9/093100175722c1de40b574ead4162fb6_71807376.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/9/bb47a1d096f5de07861fc9b64023b167_85976597.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/9/a83bda032c412a9f1249562a0a5dc81c_39663504.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/9/104228ebf762fa019773ecdac04e3729_16032117.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/9/512cc64c8190b71fc6da1783318740a1_23457537.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/9/d913560f52a02d72c0b19fd79025a6d9_28181627.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/9/a59ca0bd666d5767d66c2b0657a0713c_31769224.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/9/16a7c37e6ec94087635f1b06ec956a24_12788210.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/9/197453b321786b5a6ea2831b48009822_83093351.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/9/c67ca39d0538943ed2212e22ecc1feb3_86304654.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/9/d021ca4b951595c911ebf44202cde739_91827156.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/9/961c8f2897445a049252fde2b8a33226_50251732.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/9/6b486fce19d7f8e629e996bc34f71008_3559494.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/9/a2a2e8cf01c3ca25df9c1e317771ba95_38744315.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/9/07fb0554d3c7ae9402f4ccec7364108f_38598301.png change filename to text .imagette200994721739205935/ imagette200994721739205935/1739102154_2667061_1332834889_644ca2c3f3174908e940ea22473d3ebb_rle_crop_3665724825_0.png.png imagette200994721739205935/1739101403_2618716_1332864648_43c0b5d1c83b1a3d3908af4537adb23f_rle_crop_3665706778_0.png.png imagette200994721739205935/1739101403_2618716_1332864647_db869af3c13673fbd7fb127d6bf06e90_rle_crop_3665707305_0.png.png imagette200994721739205935/1739101403_2618716_1332864649_a12c3f26cfe44727d825ce31df844496_rle_crop_3665706196_0.png.png imagette200994721739205935/1739102154_2667061_1332834889_644ca2c3f3174908e940ea22473d3ebb_rle_crop_3665724824_0.png.png imagette200994721739205935/1739101403_2618716_1332864646_519c611fec1b31d3d83667d3c581c4da_rle_crop_3665708371_0.png.png imagette200994721739205935/1739101403_2618716_1332864648_43c0b5d1c83b1a3d3908af4537adb23f_rle_crop_3665706787_0.png.png imagette200994721739205935/1739101403_2618716_1332864646_519c611fec1b31d3d83667d3c581c4da_rle_crop_3665708372_0.png.png imagette200994721739205935/1739101403_2618716_1332864646_519c611fec1b31d3d83667d3c581c4da_rle_crop_3665708378_0.png.png imagette200994721739205935/1739101403_2618716_1332864646_519c611fec1b31d3d83667d3c581c4da_rle_crop_3665708374_0.png.png imagette200994721739205935/1739101403_2618716_1332864649_a12c3f26cfe44727d825ce31df844496_rle_crop_3665706185_0.png.png imagette200994721739205935/1739101403_2618716_1332877749_3ceec6dcd8a5e247601c196682fd7e5d_rle_crop_3665704918_0.png.png imagette200994721739205935/1739102154_2667061_1332834889_644ca2c3f3174908e940ea22473d3ebb_rle_crop_3665724826_0.png.png imagette200994721739205935/1739101403_2618716_1332864649_a12c3f26cfe44727d825ce31df844496_rle_crop_3665706195_0.png.png imagette200994721739205935/1739101403_2618716_1332864647_db869af3c13673fbd7fb127d6bf06e90_rle_crop_3665707307_0.png.png imagette200994721739205935/1739102154_2667061_1332834889_644ca2c3f3174908e940ea22473d3ebb_rle_crop_3665724828_0.png.png imagette200994721739205935/1739101403_2618716_1332864651_cbb10e9d8af9a090b6f3e5cf8a18a8af_rle_crop_3665706131_0.png.png imagette200994721739205935/1739101403_2618716_1332864647_db869af3c13673fbd7fb127d6bf06e90_rle_crop_3665707309_0.png.png imagette200994721739205935/1739101403_2618716_1332864651_cbb10e9d8af9a090b6f3e5cf8a18a8af_rle_crop_3665706126_0.png.png imagette200994721739205935/1739101403_2618716_1332864648_43c0b5d1c83b1a3d3908af4537adb23f_rle_crop_3665706781_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/9/a0996b0604530fef65e5ac1011cba42d_84269941.png imagette200994721739205935 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=20098972 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/20099474,20099475,20099476,20099477,20099478,20099479,20099480,20099481,20099482,20099483,20099484,20099485?tags=cartonnette,autre_refus,kraft,mal_croppe,environnement,papier,Carton_gris,metal,plastique,Teint_Dans_La_Masse,Carton_brun,flou your option no_mail is active, we will not send the real mail to your client args[1332877749] : ('0.07937635756721696',) no score found for photo 1332877749 apple ('0.07937635756721696',) We are sending mail with results at report@fotonower.com args[1332877589] : ('0.07937635756721696',) no score found for photo 1332877589 apple ('0.07937635756721696',) We are sending mail with results at report@fotonower.com args[1332877582] : ('0.07937635756721696',) no score found for photo 1332877582 apple ('0.07937635756721696',) We are sending mail with results at report@fotonower.com args[1332877579] : ('0.07937635756721696',) no score found for photo 1332877579 apple ('0.07937635756721696',) We are sending mail with results at report@fotonower.com args[1332877577] : ('0.07937635756721696',) no score found for photo 1332877577 apple ('0.07937635756721696',) We are sending mail with results at report@fotonower.com args[1332877575] : ('0.07937635756721696',) no score found for photo 1332877575 apple ('0.07937635756721696',) We are sending mail with results at report@fotonower.com args[1332877571] : ('0.07937635756721696',) no score found for photo 1332877571 apple ('0.07937635756721696',) We are sending mail with results at report@fotonower.com args[1332877506] : ('0.07937635756721696',) no score found for photo 1332877506 apple ('0.07937635756721696',) We are sending mail with results at report@fotonower.com args[1332877503] : ('0.07937635756721696',) no score found for photo 1332877503 apple ('0.07937635756721696',) We are sending mail with results at report@fotonower.com args[1332877347] : ('0.07937635756721696',) no score found for photo 1332877347 apple ('0.07937635756721696',) We are sending mail with results at report@fotonower.com args[1332877345] : ('0.07937635756721696',) no score found for photo 1332877345 apple ('0.07937635756721696',) We are sending mail with results at report@fotonower.com args[1332864735] : ('0.07937635756721696',) no score found for photo 1332864735 apple ('0.07937635756721696',) We are sending mail with results at report@fotonower.com args[1332864731] : ('0.07937635756721696',) no score found for photo 1332864731 apple ('0.07937635756721696',) We are sending mail with results at report@fotonower.com args[1332864652] : ('0.07937635756721696',) no score found for photo 1332864652 apple ('0.07937635756721696',) We are sending mail with results at report@fotonower.com args[1332864651] : ('0.07937635756721696',) no score found for photo 1332864651 apple ('0.07937635756721696',) We are sending mail with results at report@fotonower.com args[1332864649] : ('0.07937635756721696',) no score found for photo 1332864649 apple ('0.07937635756721696',) We are sending mail with results at report@fotonower.com args[1332864648] : ('0.07937635756721696',) no score found for photo 1332864648 apple ('0.07937635756721696',) We are sending mail with results at report@fotonower.com args[1332864647] : ('0.07937635756721696',) no score found for photo 1332864647 apple ('0.07937635756721696',) We are sending mail with results at report@fotonower.com args[1332864646] : ('0.07937635756721696',) no score found for photo 1332864646 apple ('0.07937635756721696',) We are sending mail with results at report@fotonower.com args[1332864540] : ('0.07937635756721696',) no score found for photo 1332864540 apple ('0.07937635756721696',) We are sending mail with results at report@fotonower.com args[1332834889] : ('0.07937635756721696',) no score found for photo 1332834889 apple ('0.07937635756721696',) We are sending mail with results at report@fotonower.com refus_total : 0.07937635756721696 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=20098972 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_P20098972_10-02-2025_17_45_32.pdf results_Auto_P20098972_10-02-2025_17_45_32.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20098972_10-02-2025_17_45_32.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','20098972','results_Auto_P20098972_10-02-2025_17_45_32.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20098972_10-02-2025_17_45_32.pdf','pdf','','0.31','0.07937635756721696') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20098972]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1332877749, 1332877589, 1332877582, 1332877579, 1332877577, 1332877575, 1332877571, 1332877506, 1332877503, 1332877347, 1332877345, 1332864735, 1332864731, 1332864652, 1332864651, 1332864649, 1332864648, 1332864647, 1332864646, 1332864540, 1332834889] map_info['map_portfolio_photo'] : {20098972: [1332877749, 1332877589, 1332877582, 1332877579, 1332877577, 1332877575, 1332877571, 1332877506, 1332877503, 1332877347, 1332877345, 1332864735, 1332864731, 1332864652, 1332864651, 1332864649, 1332864648, 1332864647, 1332864646, 1332864540, 1332834889]} final : False mtd_id 4302 list_pids : [1332877749, 1332877589, 1332877582, 1332877579, 1332877577, 1332877575, 1332877571, 1332877506, 1332877503, 1332877347, 1332877345, 1332864735, 1332864731, 1332864652, 1332864651, 1332864649, 1332864648, 1332864647, 1332864646, 1332864540, 1332834889] 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, '2572501') ('4302', '20098972', '1332877749', None, None, None, None, None, '2572501') ('4302', None, None, None, None, None, None, None, '2572501') ('4302', '20098972', '1332877589', None, None, None, None, None, '2572501') ('4302', None, None, None, None, None, None, None, '2572501') ('4302', '20098972', '1332877582', None, None, None, None, None, '2572501') ('4302', None, None, None, None, None, None, None, '2572501') ('4302', '20098972', '1332877579', None, None, None, None, None, '2572501') ('4302', None, None, None, None, None, None, None, '2572501') ('4302', '20098972', '1332877577', None, None, None, None, None, '2572501') ('4302', None, None, None, None, None, None, None, '2572501') ('4302', '20098972', '1332877575', None, None, None, None, None, '2572501') ('4302', None, None, None, None, None, None, None, '2572501') ('4302', '20098972', '1332877571', None, None, None, None, None, '2572501') ('4302', None, None, None, None, None, None, None, '2572501') ('4302', '20098972', '1332877506', None, None, None, None, None, '2572501') ('4302', None, None, None, None, None, None, None, '2572501') ('4302', '20098972', '1332877503', None, None, None, None, None, '2572501') ('4302', None, None, None, None, None, None, None, '2572501') ('4302', '20098972', '1332877347', None, None, None, None, None, '2572501') ('4302', None, None, None, None, None, None, None, '2572501') ('4302', '20098972', '1332877345', None, None, None, None, None, '2572501') ('4302', None, None, None, None, None, None, None, '2572501') ('4302', '20098972', '1332864735', None, None, None, None, None, '2572501') ('4302', None, None, None, None, None, None, None, '2572501') ('4302', '20098972', '1332864731', None, None, None, None, None, '2572501') ('4302', None, None, None, None, None, None, None, '2572501') ('4302', '20098972', '1332864652', None, None, None, None, None, '2572501') ('4302', None, None, None, None, None, None, None, '2572501') ('4302', '20098972', '1332864651', None, None, None, None, None, '2572501') ('4302', None, None, None, None, None, None, None, '2572501') ('4302', '20098972', '1332864649', None, None, None, None, None, '2572501') ('4302', None, None, None, None, None, None, None, '2572501') ('4302', '20098972', '1332864648', None, None, None, None, None, '2572501') ('4302', None, None, None, None, None, None, None, '2572501') ('4302', '20098972', '1332864647', None, None, None, None, None, '2572501') ('4302', None, None, None, None, None, None, None, '2572501') ('4302', '20098972', '1332864646', None, None, None, None, None, '2572501') ('4302', None, None, None, None, None, None, None, '2572501') ('4302', '20098972', '1332864540', None, None, None, None, None, '2572501') ('4302', None, None, None, None, None, None, None, '2572501') ('4302', '20098972', '1332834889', None, None, None, None, None, '2572501') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 21 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', '20098972', '1332877749', None, None, None, None, None, '2572501'), ('4302', '20098972', '1332877589', None, None, None, None, None, '2572501'), ('4302', '20098972', '1332877582', None, None, None, None, None, '2572501'), ('4302', '20098972', '1332877579', None, None, None, None, None, '2572501'), ('4302', '20098972', '1332877577', None, None, None, None, None, '2572501'), ('4302', '20098972', '1332877575', None, None, None, None, None, '2572501'), ('4302', '20098972', '1332877571', None, None, None, None, None, '2572501'), ('4302', '20098972', '1332877506', None, None, None, None, None, '2572501'), ('4302', '20098972', '1332877503', None, None, None, None, None, '2572501'), ('4302', '20098972', '1332877347', None, None, None, None, None, '2572501'), ('4302', '20098972', '1332877345', None, None, None, None, None, '2572501'), ('4302', '20098972', '1332864735', None, None, None, None, None, '2572501'), ('4302', '20098972', '1332864731', None, None, None, None, None, '2572501'), ('4302', '20098972', '1332864652', None, None, None, None, None, '2572501'), ('4302', '20098972', '1332864651', None, None, None, None, None, '2572501'), ('4302', '20098972', '1332864649', None, None, None, None, None, '2572501'), ('4302', '20098972', '1332864648', None, None, None, None, None, '2572501'), ('4302', '20098972', '1332864647', None, None, None, None, None, '2572501'), ('4302', '20098972', '1332864646', None, None, None, None, None, '2572501'), ('4302', '20098972', '1332864540', None, None, None, None, None, '2572501'), ('4302', '20098972', '1332834889', None, None, None, None, None, '2572501')] time used for this insertion : 0.014417409896850586 save_final save missing photos in datou_result : time spend for datou_step_exec : 7.379751205444336 time spend to save output : 0.014747381210327148 total time spend for step 4 : 7.394498586654663 step5:split_time_score Mon Feb 10 17:45: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 : ['20098972'] 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 : [('20098972',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20098972) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1332877749: {'path': 'temp/1739205931_3384898_1332877749_3ceec6dcd8a5e247601c196682fd7e5d.jpg', 'extension': 'jpg'}, 1332877345: {'path': 'temp/1739205931_3384898_1332877345_ac357777805adeb67f574edfacd9af6c.jpg', 'extension': 'jpg'}, 1332877347: {'path': 'temp/1739205931_3384898_1332877347_22c059f899dcfe1aac52d82889d26219.jpg', 'extension': 'jpg'}, 1332877503: {'path': 'temp/1739205931_3384898_1332877503_5c6fdf7a23e5224c7a7d373e2b5f0c8a.jpg', 'extension': 'jpg'}, 1332877506: {'path': 'temp/1739205931_3384898_1332877506_9eb71e887fd64a8db7cd63ea9d0a6c14.jpg', 'extension': 'jpg'}, 1332877571: {'path': 'temp/1739205931_3384898_1332877571_832e1f8e211e5b684c5f41a9bbe4aa19.jpg', 'extension': 'jpg'}, 1332864649: {'path': 'temp/1739205931_3384898_1332864649_a12c3f26cfe44727d825ce31df844496.jpg', 'extension': 'jpg'}, 1332864651: {'path': 'temp/1739205931_3384898_1332864651_cbb10e9d8af9a090b6f3e5cf8a18a8af.jpg', 'extension': 'jpg'}, 1332864652: {'path': 'temp/1739205931_3384898_1332864652_50cfe699063125bc62312d5bee56cbfb.jpg', 'extension': 'jpg'}, 1332864731: {'path': 'temp/1739205931_3384898_1332864731_feca5e8e8d8d2c8744c0a469155b3e44.jpg', 'extension': 'jpg'}, 1332864735: {'path': 'temp/1739205931_3384898_1332864735_30a2ff7f14b32e8d5e346cc90336b705.jpg', 'extension': 'jpg'}, 1332834889: {'path': 'temp/1739205931_3384898_1332834889_644ca2c3f3174908e940ea22473d3ebb.jpg', 'extension': 'jpg'}, 1332864540: {'path': 'temp/1739205931_3384898_1332864540_5b0da7d67c65e0568472e523c5ed81ab.jpg', 'extension': 'jpg'}, 1332864646: {'path': 'temp/1739205931_3384898_1332864646_519c611fec1b31d3d83667d3c581c4da.jpg', 'extension': 'jpg'}, 1332864647: {'path': 'temp/1739205931_3384898_1332864647_db869af3c13673fbd7fb127d6bf06e90.jpg', 'extension': 'jpg'}, 1332864648: {'path': 'temp/1739205931_3384898_1332864648_43c0b5d1c83b1a3d3908af4537adb23f.jpg', 'extension': 'jpg'}, 1332877575: {'path': 'temp/1739205931_3384898_1332877575_95d1dc2dd64e39c139f8d447469c02bc.jpg', 'extension': 'jpg'}, 1332877577: {'path': 'temp/1739205931_3384898_1332877577_8f12e21b9a09be17f8a6b7f987863b2d.jpg', 'extension': 'jpg'}, 1332877579: {'path': 'temp/1739205931_3384898_1332877579_7355b423792136bab1bbb3ffdaac41c5.jpg', 'extension': 'jpg'}, 1332877582: {'path': 'temp/1739205931_3384898_1332877582_475c10edc981f245366711b1bd43e195.jpg', 'extension': 'jpg'}, 1332877589: {'path': 'temp/1739205931_3384898_1332877589_7f0b0bd2a7a5140c21f866b12bcd30e8.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 = 20098972; (('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 = 20098972 group by h (('02', 21),) 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=20098972 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 (20098972) 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 (20098972) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 30012025 20098972 Nombre de photos uploadées : 21 / 23040 (0%) 30012025 20098972 Nombre de photos taguées (types de déchets): 0 / 21 (0%) 30012025 20098972 Nombre de photos taguées (volume) : 0 / 21 (0%) [{'photo_id': 1332864540, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/30/5b0da7d67c65e0568472e523c5ed81ab.jpg', 'username': None, 'uploaded_at': 1738206917, 'text': 'image_30012025_02_20_14_10141.jpg'}, {'photo_id': 1332864735, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/30/30a2ff7f14b32e8d5e346cc90336b705.jpg', 'username': None, 'uploaded_at': 1738207002, 'text': 'image_30012025_02_20_44_10135.jpg'}, {'photo_id': 1332864731, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/30/feca5e8e8d8d2c8744c0a469155b3e44.jpg', 'username': None, 'uploaded_at': 1738207002, 'text': 'image_30012025_02_20_54_10135.jpg'}, {'photo_id': 1332864652, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/30/50cfe699063125bc62312d5bee56cbfb.jpg', 'username': None, 'uploaded_at': 1738206968, 'text': 'image_30012025_02_21_04_10137.jpg'}] 0 [] elapsed_time : load_data_split_time_score 1.6689300537109375e-06 elapsed_time : order_list_meta_photo_and_scores 4.76837158203125e-06 ????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0010042190551757812 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 20098972, '2025-01-30' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1564699,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.02207469940185547 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= 1564699 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1564699, 'dashboard_run_id': 1578474, 'mtr_portfolio_id': 20098972, 'dashboard_result_id': 8643621, '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_P20098972_31-01-2025_06_08_05.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20099462, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20099463, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20099464, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20099465, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20099466, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20099467, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20099468, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20099469, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20099470, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20099471, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20099472, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20099473, 'pht': 3726}}"}, {'dashboat_entry_day': 1564699, 'dashboard_run_id': 1578474, 'mtr_portfolio_id': 20098975, 'dashboard_result_id': 8643622, '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_P20098975_10-02-2025_17_45_04.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20099548, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20099549, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20099550, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20099551, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20099552, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20099553, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20099554, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20099555, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20099556, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20099557, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20099558, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20099559, 'pht': 3726}}"}, {'dashboat_entry_day': 1564699, 'dashboard_run_id': 1578474, 'mtr_portfolio_id': 20098976, 'dashboard_result_id': 8643623, '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_P20098976_10-02-2025_17_44_37.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20099031, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20099032, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20099033, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20099034, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20099035, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20099036, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20099037, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20099038, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20099039, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20099040, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20099041, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20099042, 'pht': 3726}}"}, {'dashboat_entry_day': 1564699, 'dashboard_run_id': 1578474, 'mtr_portfolio_id': 20098977, 'dashboard_result_id': 8643624, '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_P20098977_10-02-2025_17_44_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20099406, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20099407, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20099408, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20099409, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20099410, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20099411, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20099412, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20099413, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20099414, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20099415, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20099416, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20099417, 'pht': 3726}}"}, {'dashboat_entry_day': 1564699, 'dashboard_run_id': 1578474, 'mtr_portfolio_id': 20098978, 'dashboard_result_id': 8643625, '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_P20098978_31-01-2025_06_06_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20099344, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20099345, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20099346, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20099347, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20099348, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20099349, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20099350, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20099351, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20099352, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20099353, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20099354, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20099355, 'pht': 3726}}"}, {'dashboat_entry_day': 1564699, 'dashboard_run_id': 1578474, 'mtr_portfolio_id': 20055895, 'dashboard_result_id': 8643626, '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_P20055895_31-01-2025_06_05_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20055901, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20055902, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20055903, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20055904, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20055905, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20055906, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20055907, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20055908, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20055909, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20055910, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20055911, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20055912, 'pht': 3726}}"}, {'dashboat_entry_day': 1564699, 'dashboard_run_id': 1578474, 'mtr_portfolio_id': 20055928, 'dashboard_result_id': 8643627, '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_P20055928_10-02-2025_17_42_35.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20055984, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20055985, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20055986, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20055987, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20055988, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20055989, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20055990, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20055991, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20055992, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20055993, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20055994, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20055995, 'pht': 3726}}"}, {'dashboat_entry_day': 1564699, 'dashboard_run_id': 1578474, 'mtr_portfolio_id': 20056058, 'dashboard_result_id': 8643628, '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_P20056058_10-02-2025_17_42_09.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20056104, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20056105, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20056106, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20056107, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20056108, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20056109, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20056110, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20056111, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20056112, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20056113, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20056114, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20056115, 'pht': 3726}}"}, {'dashboat_entry_day': 1564699, 'dashboard_run_id': 1578474, 'mtr_portfolio_id': 20056189, 'dashboard_result_id': 8643629, '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_P20056189_30-01-2025_04_47_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20056206, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20056207, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20056208, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20056209, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20056210, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20056211, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20056212, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20056213, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20056214, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20056215, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20056216, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20056217, 'pht': 3726}}"}, {'dashboat_entry_day': 1564699, 'dashboard_run_id': 1578474, 'mtr_portfolio_id': 20056268, 'dashboard_result_id': 8643630, '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_P20056268_30-01-2025_05_04_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20056286, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20056287, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20056288, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20056289, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20056290, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20056291, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20056292, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20056293, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20056294, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20056295, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20056296, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20056297, 'pht': 3726}}"}, {'dashboat_entry_day': 1564699, 'dashboard_run_id': 1578474, 'mtr_portfolio_id': 20057670, 'dashboard_result_id': 8643631, '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_P20057670_30-01-2025_05_18_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20057703, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20057704, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20057705, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20057706, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20057707, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20057708, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20057709, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20057710, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20057711, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20057712, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20057713, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20057714, 'pht': 3726}}"}, {'dashboat_entry_day': 1564699, 'dashboard_run_id': 1578474, 'mtr_portfolio_id': 20057884, 'dashboard_result_id': 8643632, '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_P20057884_30-01-2025_05_37_04.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20057897, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20057898, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20057899, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20057900, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20057901, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20057902, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20057903, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20057904, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20057905, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20057906, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20057907, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20057908, 'pht': 3726}}"}, {'dashboat_entry_day': 1564699, 'dashboard_run_id': 1578474, 'mtr_portfolio_id': 20058713, 'dashboard_result_id': 8643633, '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_P20058713_30-01-2025_05_49_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20058715, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20058716, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20058717, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20058718, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20058719, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20058720, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20058721, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20058722, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20058723, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20058724, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20058725, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20058726, 'pht': 3726}}"}, {'dashboat_entry_day': 1564699, 'dashboard_run_id': 1578474, 'mtr_portfolio_id': 20059293, 'dashboard_result_id': 8643634, '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_P20059293_30-01-2025_06_03_02.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20059295, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20059296, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20059297, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20059298, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20059299, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20059300, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20059301, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20059302, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20059303, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20059304, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20059305, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20059306, 'pht': 3726}}"}, {'dashboat_entry_day': 1564699, 'dashboard_run_id': 1578474, 'mtr_portfolio_id': 20059801, 'dashboard_result_id': 8643635, '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_P20059801_30-01-2025_06_18_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20059841, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20059842, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20059843, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20059844, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20059845, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20059846, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20059847, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20059848, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20059849, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20059850, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20059851, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20059852, 'pht': 3726}}"}, {'dashboat_entry_day': 1564699, 'dashboard_run_id': 1578474, 'mtr_portfolio_id': 20060327, 'dashboard_result_id': 8643636, '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_P20060327_30-01-2025_06_32_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20060361, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20060362, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20060363, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20060364, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20060365, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20060366, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20060367, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20060368, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20060369, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20060370, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20060371, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20060372, 'pht': 3726}}"}, {'dashboat_entry_day': 1564699, 'dashboard_run_id': 1578474, 'mtr_portfolio_id': 20060740, 'dashboard_result_id': 8643637, '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_P20060740_30-01-2025_06_48_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20060741, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20060742, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20060743, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20060744, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20060745, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20060746, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20060747, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20060748, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20060749, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20060750, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20060751, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20060752, 'pht': 3726}}"}, {'dashboat_entry_day': 1564699, 'dashboard_run_id': 1578474, 'mtr_portfolio_id': 20061261, 'dashboard_result_id': 8643638, '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_P20061261_30-01-2025_07_03_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20061340, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20061341, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20061342, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20061343, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20061344, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20061345, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20061346, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20061347, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20061348, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20061349, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20061350, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20061351, 'pht': 3726}}"}, {'dashboat_entry_day': 1564699, 'dashboard_run_id': 1578474, 'mtr_portfolio_id': 20062120, 'dashboard_result_id': 8643639, '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_P20062120_30-01-2025_07_23_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20062177, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20062178, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20062179, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20062180, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20062181, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20062182, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20062183, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20062184, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20062185, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20062186, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20062187, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20062188, 'pht': 3726}}"}, {'dashboat_entry_day': 1564699, 'dashboard_run_id': 1578474, 'mtr_portfolio_id': 20062660, 'dashboard_result_id': 8643640, '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_P20062660_30-01-2025_07_32_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20062685, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20062686, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20062687, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20062688, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20062689, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20062690, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20062691, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20062692, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20062693, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20062694, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20062695, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20062696, 'pht': 3726}}"}, {'dashboat_entry_day': 1564699, 'dashboard_run_id': 1578474, 'mtr_portfolio_id': 20063587, 'dashboard_result_id': 8643641, '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_P20063587_30-01-2025_07_48_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20063642, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20063643, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20063644, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20063645, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20063646, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20063647, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20063648, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20063649, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20063650, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20063651, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20063652, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20063653, 'pht': 3726}}"}, {'dashboat_entry_day': 1564699, 'dashboard_run_id': 1578474, 'mtr_portfolio_id': 20064416, 'dashboard_result_id': 8643642, '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_P20064416_30-01-2025_08_05_30.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20064440, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20064441, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20064442, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20064443, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20064444, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20064445, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20064446, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20064447, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20064448, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20064449, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20064450, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20064451, 'pht': 3726}}"}, {'dashboat_entry_day': 1564699, 'dashboard_run_id': 1578474, 'mtr_portfolio_id': 20065107, 'dashboard_result_id': 8643643, '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_P20065107_30-01-2025_08_24_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20065115, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20065116, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20065117, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20065118, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20065119, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20065120, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20065121, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20065122, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20065123, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20065124, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20065125, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20065126, 'pht': 3726}}"}, {'dashboat_entry_day': 1564699, 'dashboard_run_id': 1578474, 'mtr_portfolio_id': 20066031, 'dashboard_result_id': 8643644, '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_P20066031_30-01-2025_08_33_03.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20066055, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20066056, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20066057, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20066058, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20066059, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20066060, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20066061, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20066062, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20066063, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20066064, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20066065, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20066066, 'pht': 3726}}"}, {'dashboat_entry_day': 1564699, 'dashboard_run_id': 1578474, 'mtr_portfolio_id': 20066185, 'dashboard_result_id': 8643645, '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_P20066185_30-01-2025_08_49_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20066193, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20066194, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20066195, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20066196, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20066197, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20066198, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20066199, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20066200, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20066201, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20066202, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20066203, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20066204, 'pht': 3726}}"}, {'dashboat_entry_day': 1564699, 'dashboard_run_id': 1578474, 'mtr_portfolio_id': 20066625, 'dashboard_result_id': 8643646, '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_P20066625_30-01-2025_09_02_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20066641, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20066642, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20066643, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20066644, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20066645, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20066646, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20066647, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20066648, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20066649, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20066650, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20066651, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20066652, 'pht': 3726}}"}, {'dashboat_entry_day': 1564699, 'dashboard_run_id': 1578474, 'mtr_portfolio_id': 20068342, 'dashboard_result_id': 8643647, '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_P20068342_30-01-2025_09_49_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20068362, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20068363, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20068364, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20068365, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20068366, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20068367, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20068368, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20068369, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20068370, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20068371, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20068372, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20068373, 'pht': 3726}}"}, {'dashboat_entry_day': 1564699, 'dashboard_run_id': 1578474, 'mtr_portfolio_id': 20068574, 'dashboard_result_id': 8643648, '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_P20068574_30-01-2025_10_03_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20068578, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20068579, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20068580, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20068581, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20068582, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20068583, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20068584, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20068585, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20068586, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20068587, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20068588, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20068589, 'pht': 3726}}"}, {'dashboat_entry_day': 1564699, 'dashboard_run_id': 1578474, 'mtr_portfolio_id': 20069146, 'dashboard_result_id': 8643649, '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_P20069146_30-01-2025_10_19_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20069153, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20069154, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20069155, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20069156, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20069157, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20069158, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20069159, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20069160, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20069161, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20069162, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20069163, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20069164, 'pht': 3726}}"}, {'dashboat_entry_day': 1564699, 'dashboard_run_id': 1578474, 'mtr_portfolio_id': 20069972, 'dashboard_result_id': 8643650, '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_P20069972_30-01-2025_10_33_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20069978, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20069979, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20069980, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20069981, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20069982, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20069983, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20069984, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20069985, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20069986, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20069987, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20069988, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20069989, 'pht': 3726}}"}, {'dashboat_entry_day': 1564699, 'dashboard_run_id': 1578474, 'mtr_portfolio_id': 20070921, 'dashboard_result_id': 8643651, '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_P20070921_31-01-2025_06_04_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20070923, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20070924, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20070925, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20070926, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20070927, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20070928, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20070929, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20070930, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20070931, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20070932, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20070933, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20070934, 'pht': 3726}}"}, {'dashboat_entry_day': 1564699, 'dashboard_run_id': 1578474, 'mtr_portfolio_id': 20074661, 'dashboard_result_id': 8643652, '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_P20074661_30-01-2025_14_34_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20074687, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20074688, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20074689, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20074690, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20074691, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20074692, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20074693, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20074694, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20074695, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20074696, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20074697, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20074698, 'pht': 3726}}"}, {'dashboat_entry_day': 1564699, 'dashboard_run_id': 1578474, 'mtr_portfolio_id': 20075027, 'dashboard_result_id': 8643653, '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_P20075027_30-01-2025_14_47_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20075029, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20075030, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20075031, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20075032, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20075033, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20075034, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20075035, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20075036, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20075037, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20075038, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20075039, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20075040, 'pht': 3726}}"}, {'dashboat_entry_day': 1564699, 'dashboard_run_id': 1578474, 'mtr_portfolio_id': 20075165, 'dashboard_result_id': 8643654, '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_P20075165_30-01-2025_15_02_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20075168, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20075169, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20075170, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20075171, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20075172, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20075173, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20075174, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20075175, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20075176, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20075177, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20075178, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20075179, 'pht': 3726}}"}, {'dashboat_entry_day': 1564699, 'dashboard_run_id': 1578474, 'mtr_portfolio_id': 20075513, 'dashboard_result_id': 8643655, '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_P20075513_30-01-2025_15_16_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20075516, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20075517, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20075518, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20075519, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20075520, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20075521, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20075522, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20075523, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20075524, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20075525, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20075526, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20075527, 'pht': 3726}}"}, {'dashboat_entry_day': 1564699, 'dashboard_run_id': 1578474, 'mtr_portfolio_id': 20075818, 'dashboard_result_id': 8643656, '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_P20075818_30-01-2025_15_34_30.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20075821, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20075822, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20075823, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20075824, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20075825, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20075826, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20075827, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20075828, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20075829, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20075830, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20075831, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20075832, 'pht': 3726}}"}, {'dashboat_entry_day': 1564699, 'dashboard_run_id': 1578474, 'mtr_portfolio_id': 20076294, 'dashboard_result_id': 8643657, '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_P20076294_30-01-2025_15_48_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20076296, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20076297, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20076298, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20076299, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20076300, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20076301, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20076302, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20076303, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20076304, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20076305, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20076306, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20076307, 'pht': 3726}}"}, {'dashboat_entry_day': 1564699, 'dashboard_run_id': 1578474, 'mtr_portfolio_id': 20076688, 'dashboard_result_id': 8643658, '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_P20076688_30-01-2025_16_02_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20076689, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20076690, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20076691, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20076692, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20076693, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20076694, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20076695, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20076696, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20076697, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20076698, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20076699, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20076700, 'pht': 3726}}"}, {'dashboat_entry_day': 1564699, 'dashboard_run_id': 1578474, 'mtr_portfolio_id': 20077004, 'dashboard_result_id': 8643659, '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_P20077004_30-01-2025_16_17_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20077031, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20077032, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20077033, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20077034, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20077035, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20077036, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20077037, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20077038, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20077039, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20077040, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20077041, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20077042, 'pht': 3726}}"}, {'dashboat_entry_day': 1564699, 'dashboard_run_id': 1578474, 'mtr_portfolio_id': 20077528, 'dashboard_result_id': 8643660, '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_P20077528_30-01-2025_16_32_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20077530, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20077531, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20077532, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20077533, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20077534, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20077535, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20077536, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20077537, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20077538, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20077539, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20077540, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20077541, 'pht': 3726}}"}, {'dashboat_entry_day': 1564699, 'dashboard_run_id': 1578474, 'mtr_portfolio_id': 20078208, 'dashboard_result_id': 8643661, '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_P20078208_30-01-2025_16_46_56.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20078210, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20078211, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20078212, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20078213, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20078214, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20078215, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20078216, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20078217, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20078218, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20078219, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20078220, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20078221, 'pht': 3726}}"}, {'dashboat_entry_day': 1564699, 'dashboard_run_id': 1578474, 'mtr_portfolio_id': 20078713, 'dashboard_result_id': 8643662, '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_P20078713_30-01-2025_17_03_03.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20078714, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20078715, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20078716, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20078717, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20078718, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20078719, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20078720, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20078721, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20078722, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20078723, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20078724, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20078725, 'pht': 3726}}"}, {'dashboat_entry_day': 1564699, 'dashboard_run_id': 1578474, 'mtr_portfolio_id': 20079278, 'dashboard_result_id': 8643663, '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_P20079278_30-01-2025_17_16_32.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20079280, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20079281, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20079282, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20079283, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20079284, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20079285, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20079286, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20079287, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20079288, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20079289, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20079290, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20079291, 'pht': 3726}}"}, {'dashboat_entry_day': 1564699, 'dashboard_run_id': 1578474, 'mtr_portfolio_id': 20079803, 'dashboard_result_id': 8643664, '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_P20079803_30-01-2025_17_49_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20079805, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20079806, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20079807, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20079808, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20079809, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20079810, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20079811, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20079812, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20079813, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20079814, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20079815, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20079816, 'pht': 3726}}"}, {'dashboat_entry_day': 1564699, 'dashboard_run_id': 1578474, 'mtr_portfolio_id': 20081116, 'dashboard_result_id': 8643665, '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_P20081116_30-01-2025_18_23_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20081125, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20081126, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20081127, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20081128, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20081129, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20081130, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20081131, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20081132, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20081133, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20081134, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20081135, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20081136, 'pht': 3726}}"}, {'dashboat_entry_day': 1564699, 'dashboard_run_id': 1578474, 'mtr_portfolio_id': 20081270, 'dashboard_result_id': 8643666, '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_P20081270_30-01-2025_18_33_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20081325, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20081326, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20081327, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20081328, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20081329, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20081330, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20081331, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20081332, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20081333, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20081334, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20081335, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20081336, 'pht': 3726}}"}, {'dashboat_entry_day': 1564699, 'dashboard_run_id': 1578474, 'mtr_portfolio_id': 20082017, 'dashboard_result_id': 8643667, '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_P20082017_30-01-2025_18_47_06.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20082019, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20082020, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20082021, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20082022, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20082023, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20082024, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20082025, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20082026, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20082027, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20082028, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20082029, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20082030, 'pht': 3726}}"}, {'dashboat_entry_day': 1564699, 'dashboard_run_id': 1578474, 'mtr_portfolio_id': 20082247, 'dashboard_result_id': 8643668, '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_P20082247_30-01-2025_19_02_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20082248, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20082249, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20082250, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20082251, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20082252, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20082253, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20082254, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20082255, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20082256, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20082257, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20082258, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20082259, 'pht': 3726}}"}, {'dashboat_entry_day': 1564699, 'dashboard_run_id': 1578474, 'mtr_portfolio_id': 20082477, 'dashboard_result_id': 8643669, '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_P20082477_30-01-2025_19_16_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20082482, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20082483, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20082484, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20082485, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20082486, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20082487, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20082488, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20082489, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20082490, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20082491, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20082492, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20082493, 'pht': 3726}}"}, {'dashboat_entry_day': 1564699, 'dashboard_run_id': 1578474, 'mtr_portfolio_id': 20082857, 'dashboard_result_id': 8643670, '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_P20082857_30-01-2025_19_33_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20082858, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20082859, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20082860, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20082861, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20082862, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20082863, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20082864, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20082865, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20082866, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20082867, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20082868, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20082869, 'pht': 3726}}"}, {'dashboat_entry_day': 1564699, 'dashboard_run_id': 1578474, 'mtr_portfolio_id': 20083271, 'dashboard_result_id': 8643671, '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_P20083271_30-01-2025_19_55_03.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20083276, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20083277, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20083278, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20083279, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20083280, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20083281, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20083282, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20083283, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20083284, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20083285, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20083286, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20083287, 'pht': 3726}}"}, {'dashboat_entry_day': 1564699, 'dashboard_run_id': 1578474, 'mtr_portfolio_id': 20083906, 'dashboard_result_id': 8643672, '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_P20083906_30-01-2025_20_08_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20083908, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20083909, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20083910, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20083911, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20083912, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20083913, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20083914, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20083915, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20083916, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20083917, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20083918, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20083919, 'pht': 3726}}"}, {'dashboat_entry_day': 1564699, 'dashboard_run_id': 1578474, 'mtr_portfolio_id': 20084164, 'dashboard_result_id': 8643673, '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_P20084164_30-01-2025_20_17_28.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20084192, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20084193, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20084194, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20084195, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20084196, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20084197, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20084198, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20084199, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20084200, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20084201, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20084202, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20084203, 'pht': 3726}}"}, {'dashboat_entry_day': 1564699, 'dashboard_run_id': 1578474, 'mtr_portfolio_id': 20084560, 'dashboard_result_id': 8643674, '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_P20084560_30-01-2025_20_32_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20084580, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20084581, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20084582, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20084583, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20084584, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20084585, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20084586, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20084587, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20084588, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20084589, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20084590, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20084591, 'pht': 3726}}"}, {'dashboat_entry_day': 1564699, 'dashboard_run_id': 1578474, 'mtr_portfolio_id': 20084956, 'dashboard_result_id': 8643675, '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_P20084956_30-01-2025_21_03_02.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20084985, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20084986, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20084987, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20084988, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20084989, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20084990, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20084991, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20084992, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20084993, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20084994, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20084995, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20084996, 'pht': 3726}}"}, {'dashboat_entry_day': 1564699, 'dashboard_run_id': 1578474, 'mtr_portfolio_id': 20085919, 'dashboard_result_id': 8643676, '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_P20085919_30-01-2025_21_18_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20085941, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20085942, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20085943, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20085944, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20085945, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20085946, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20085947, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20085948, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20085949, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20085950, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20085951, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20085952, 'pht': 3726}}"}, {'dashboat_entry_day': 1564699, 'dashboard_run_id': 1578474, 'mtr_portfolio_id': 20086090, 'dashboard_result_id': 8643677, '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_P20086090_30-01-2025_21_33_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20086233, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20086234, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20086235, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20086236, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20086237, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20086238, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20086239, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20086240, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20086241, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20086242, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20086243, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20086244, 'pht': 3726}}"}, {'dashboat_entry_day': 1564699, 'dashboard_run_id': 1578474, 'mtr_portfolio_id': 20086757, 'dashboard_result_id': 8643678, '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_P20086757_30-01-2025_21_48_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20086761, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20086762, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20086763, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20086764, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20086765, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20086766, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20086767, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20086768, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20086769, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20086770, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20086771, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20086772, 'pht': 3726}}"}, {'dashboat_entry_day': 1564699, 'dashboard_run_id': 1578474, 'mtr_portfolio_id': 20087352, 'dashboard_result_id': 8643679, '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_P20087352_30-01-2025_22_24_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20087440, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20087441, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20087442, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20087443, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20087444, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20087445, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20087446, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20087447, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20087448, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20087449, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20087450, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20087451, 'pht': 3726}}"}, {'dashboat_entry_day': 1564699, 'dashboard_run_id': 1578474, 'mtr_portfolio_id': 20088703, 'dashboard_result_id': 8643680, '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_P20088703_31-01-2025_06_01_32.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20088706, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20088707, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20088708, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20088709, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20088710, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20088711, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20088712, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20088713, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20088714, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20088715, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20088716, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20088717, 'pht': 3726}}"}, {'dashboat_entry_day': 1564699, 'dashboard_run_id': 1578474, 'mtr_portfolio_id': 20099027, 'dashboard_result_id': 8643681, '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_P20099027_10-02-2025_17_41_38.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20099110, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20099111, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20099112, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20099113, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20099114, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20099115, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20099116, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20099117, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20099118, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20099119, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20099120, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20099121, 'pht': 3726}}"}, {'dashboat_entry_day': 1564699, 'dashboard_run_id': 1578474, 'mtr_portfolio_id': 20099028, 'dashboard_result_id': 8643682, '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_P20099028_10-02-2025_17_41_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20099134, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20099135, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20099136, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20099137, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20099138, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20099139, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20099140, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20099141, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20099142, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20099143, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20099144, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20099145, 'pht': 3726}}"}, {'dashboat_entry_day': 1564699, 'dashboard_run_id': 1578474, 'mtr_portfolio_id': 20099029, 'dashboard_result_id': 8643683, '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_P20099029_10-02-2025_17_40_32.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20099198, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20099199, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20099200, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20099201, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20099202, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20099203, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20099204, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20099205, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20099206, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20099207, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20099208, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20099209, 'pht': 3726}}"}, {'dashboat_entry_day': 1564699, 'dashboard_run_id': 1578474, 'mtr_portfolio_id': 20099030, 'dashboard_result_id': 8643684, '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_P20099030_10-02-2025_17_40_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20099080, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20099081, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20099082, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20099083, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20099084, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20099085, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20099086, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20099087, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20099088, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20099089, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20099090, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20099091, '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 = 20098972 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': 2572501, 'mtr_portfolio_id': 20098972, 'created_at': datetime.datetime(2025, 2, 10, 17, 45, 31), 'result': '0.07937635756721696', 'result_long': None, 'result_double': None}] Qualite : 0.07937635756721696 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20098972 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20098972_10-02-2025_17_45_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20098972 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_P20098972_10-02-2025_17_45_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20099462, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20099463, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20099464, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20099465, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20099466, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20099467, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20099468, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20099469, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20099470, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20099471, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20099472, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20099473, 'pht': 3726}}" where mtr_portfolio_id = 20098972 and dashboard_run_id = 1578474 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`=20098972 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8643621, 0.07937635756721696, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20098972_10-02-2025_17_45_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20099462, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20099463, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20099464, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20099465, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20099466, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20099467, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20099468, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20099469, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20099470, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20099471, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20099472, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20099473, '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 = 20098975 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': 2572502, 'mtr_portfolio_id': 20098975, 'created_at': datetime.datetime(2025, 2, 10, 17, 45), 'result': '0.04613256377758806', 'result_long': None, 'result_double': None}] Qualite : 0.04613256377758806 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20098975 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20098975_10-02-2025_17_45_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20098975 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_P20098975_10-02-2025_17_45_04.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20099548, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20099549, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20099550, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20099551, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20099552, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20099553, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20099554, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20099555, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20099556, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20099557, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20099558, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20099559, 'pht': 3726}}" where mtr_portfolio_id = 20098975 and dashboard_run_id = 1578474 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`=20098975 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8643622, 0.04613256377758806, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20098975_10-02-2025_17_45_04.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20099548, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20099549, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20099550, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20099551, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20099552, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20099553, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20099554, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20099555, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20099556, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20099557, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20099558, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20099559, '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 = 20098976 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': 2572503, 'mtr_portfolio_id': 20098976, 'created_at': datetime.datetime(2025, 2, 10, 17, 44, 34), 'result': '0.04602001004647943', 'result_long': None, 'result_double': None}] Qualite : 0.04602001004647943 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20098976 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20098976_10-02-2025_17_44_37.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20098976 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_P20098976_10-02-2025_17_44_37.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20099031, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20099032, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20099033, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20099034, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20099035, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20099036, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20099037, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20099038, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20099039, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20099040, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20099041, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20099042, 'pht': 3726}}" where mtr_portfolio_id = 20098976 and dashboard_run_id = 1578474 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`=20098976 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8643623, 0.04602001004647943, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20098976_10-02-2025_17_44_37.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20099031, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20099032, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20099033, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20099034, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20099035, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20099036, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20099037, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20099038, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20099039, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20099040, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20099041, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20099042, '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 = 20098977 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': 2572504, 'mtr_portfolio_id': 20098977, 'created_at': datetime.datetime(2025, 2, 10, 17, 43, 58), 'result': '0.06230842310209141', 'result_long': None, 'result_double': None}] Qualite : 0.06230842310209141 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20098977 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20098977_10-02-2025_17_44_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20098977 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_P20098977_10-02-2025_17_44_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20099406, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20099407, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20099408, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20099409, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20099410, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20099411, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20099412, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20099413, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20099414, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20099415, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20099416, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20099417, 'pht': 3726}}" where mtr_portfolio_id = 20098977 and dashboard_run_id = 1578474 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`=20098977 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8643624, 0.06230842310209141, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20098977_10-02-2025_17_44_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20099406, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20099407, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20099408, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20099409, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20099410, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20099411, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20099412, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20099413, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20099414, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20099415, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20099416, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20099417, '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 = 20098978 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20098978 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 20098978 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20098978 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20098978 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2532660, 'mtr_portfolio_id': 20098978, 'created_at': datetime.datetime(2025, 1, 31, 6, 6, 28), 'result': 0.0, 'result_long': None, 'result_double': None}] Qualite : 0.0 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20098978 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20098978_31-01-2025_06_06_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20098978 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_P20098978_31-01-2025_06_06_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20099344, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20099345, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20099346, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20099347, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20099348, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20099349, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20099350, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20099351, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20099352, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20099353, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20099354, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20099355, 'pht': 3726}}" where mtr_portfolio_id = 20098978 and dashboard_run_id = 1578474 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`=20098978 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8643625, 0.0, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20098978_31-01-2025_06_06_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20099344, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20099345, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20099346, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20099347, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20099348, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20099349, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20099350, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20099351, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20099352, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20099353, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20099354, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20099355, '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 = 20055895 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': 2527425, 'mtr_portfolio_id': 20055895, 'created_at': datetime.datetime(2025, 1, 31, 6, 5, 28), 'result': '0.06296348075666208', 'result_long': None, 'result_double': None}] Qualite : 0.06296348075666208 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20055895 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20055895_31-01-2025_06_05_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20055895 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_P20055895_31-01-2025_06_05_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20055901, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20055902, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20055903, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20055904, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20055905, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20055906, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20055907, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20055908, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20055909, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20055910, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20055911, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20055912, 'pht': 3726}}" where mtr_portfolio_id = 20055895 and dashboard_run_id = 1578474 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`=20055895 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8643626, 0.06296348075666208, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20055895_31-01-2025_06_05_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20055901, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20055902, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20055903, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20055904, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20055905, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20055906, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20055907, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20055908, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20055909, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20055910, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20055911, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20055912, '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 = 20055928 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': 2572505, 'mtr_portfolio_id': 20055928, 'created_at': datetime.datetime(2025, 2, 10, 17, 42, 33), 'result': '0.055580248289328046', 'result_long': None, 'result_double': None}] Qualite : 0.055580248289328046 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20055928 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20055928_10-02-2025_17_42_35.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20055928 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_P20055928_10-02-2025_17_42_35.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20055984, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20055985, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20055986, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20055987, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20055988, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20055989, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20055990, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20055991, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20055992, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20055993, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20055994, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20055995, 'pht': 3726}}" where mtr_portfolio_id = 20055928 and dashboard_run_id = 1578474 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`=20055928 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8643627, 0.055580248289328046, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20055928_10-02-2025_17_42_35.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20055984, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20055985, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20055986, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20055987, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20055988, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20055989, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20055990, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20055991, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20055992, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20055993, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20055994, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20055995, '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 = 20056058 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': 2572506, 'mtr_portfolio_id': 20056058, 'created_at': datetime.datetime(2025, 2, 10, 17, 42, 5), 'result': '0.05002227236978246', 'result_long': None, 'result_double': None}] Qualite : 0.05002227236978246 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20056058 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20056058_10-02-2025_17_42_09.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20056058 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_P20056058_10-02-2025_17_42_09.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20056104, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20056105, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20056106, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20056107, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20056108, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20056109, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20056110, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20056111, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20056112, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20056113, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20056114, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20056115, 'pht': 3726}}" where mtr_portfolio_id = 20056058 and dashboard_run_id = 1578474 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`=20056058 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8643628, 0.05002227236978246, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20056058_10-02-2025_17_42_09.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20056104, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20056105, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20056106, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20056107, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20056108, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20056109, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20056110, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20056111, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20056112, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20056113, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20056114, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20056115, '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 = 20056189 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': 2527456, 'mtr_portfolio_id': 20056189, 'created_at': datetime.datetime(2025, 1, 30, 4, 47, 29), 'result': '0.04593899001778912', 'result_long': None, 'result_double': None}] Qualite : 0.04593899001778912 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20056189 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20056189_30-01-2025_04_47_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20056189 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_P20056189_30-01-2025_04_47_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20056206, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20056207, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20056208, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20056209, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20056210, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20056211, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20056212, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20056213, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20056214, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20056215, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20056216, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20056217, 'pht': 3726}}" where mtr_portfolio_id = 20056189 and dashboard_run_id = 1578474 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`=20056189 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8643629, 0.04593899001778912, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20056189_30-01-2025_04_47_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20056206, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20056207, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20056208, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20056209, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20056210, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20056211, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20056212, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20056213, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20056214, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20056215, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20056216, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20056217, '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 = 20056268 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': 2527475, 'mtr_portfolio_id': 20056268, 'created_at': datetime.datetime(2025, 1, 30, 5, 4, 58), 'result': '0.042032386729788845', 'result_long': None, 'result_double': None}] Qualite : 0.042032386729788845 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20056268 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20056268_30-01-2025_05_04_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20056268 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_P20056268_30-01-2025_05_04_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20056286, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20056287, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20056288, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20056289, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20056290, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20056291, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20056292, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20056293, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20056294, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20056295, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20056296, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20056297, 'pht': 3726}}" where mtr_portfolio_id = 20056268 and dashboard_run_id = 1578474 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`=20056268 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8643630, 0.042032386729788845, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20056268_30-01-2025_05_04_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20056286, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20056287, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20056288, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20056289, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20056290, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20056291, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20056292, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20056293, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20056294, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20056295, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20056296, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20056297, '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 = 20057670 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': 2527789, 'mtr_portfolio_id': 20057670, 'created_at': datetime.datetime(2025, 1, 30, 5, 18, 59), 'result': '0.020592408099349008', 'result_long': None, 'result_double': None}] Qualite : 0.020592408099349008 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20057670 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20057670_30-01-2025_05_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20057670 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_P20057670_30-01-2025_05_18_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20057703, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20057704, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20057705, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20057706, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20057707, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20057708, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20057709, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20057710, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20057711, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20057712, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20057713, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20057714, 'pht': 3726}}" where mtr_portfolio_id = 20057670 and dashboard_run_id = 1578474 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`=20057670 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8643631, 0.020592408099349008, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20057670_30-01-2025_05_18_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20057703, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20057704, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20057705, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20057706, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20057707, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20057708, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20057709, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20057710, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20057711, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20057712, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20057713, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20057714, '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 = 20057884 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': 2527854, 'mtr_portfolio_id': 20057884, 'created_at': datetime.datetime(2025, 1, 30, 5, 37, 3), 'result': '0.051555816877959834', 'result_long': None, 'result_double': None}] Qualite : 0.051555816877959834 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20057884 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20057884_30-01-2025_05_37_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20057884 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_P20057884_30-01-2025_05_37_04.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20057897, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20057898, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20057899, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20057900, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20057901, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20057902, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20057903, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20057904, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20057905, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20057906, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20057907, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20057908, 'pht': 3726}}" where mtr_portfolio_id = 20057884 and dashboard_run_id = 1578474 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`=20057884 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8643632, 0.051555816877959834, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20057884_30-01-2025_05_37_04.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20057897, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20057898, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20057899, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20057900, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20057901, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20057902, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20057903, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20057904, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20057905, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20057906, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20057907, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20057908, '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 = 20058713 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': 2527953, 'mtr_portfolio_id': 20058713, 'created_at': datetime.datetime(2025, 1, 30, 5, 48, 59), 'result': '0.04649453621529466', 'result_long': None, 'result_double': None}] Qualite : 0.04649453621529466 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20058713 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20058713_30-01-2025_05_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20058713 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_P20058713_30-01-2025_05_49_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20058715, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20058716, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20058717, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20058718, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20058719, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20058720, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20058721, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20058722, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20058723, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20058724, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20058725, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20058726, 'pht': 3726}}" where mtr_portfolio_id = 20058713 and dashboard_run_id = 1578474 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`=20058713 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8643633, 0.04649453621529466, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20058713_30-01-2025_05_49_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20058715, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20058716, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20058717, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20058718, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20058719, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20058720, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20058721, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20058722, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20058723, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20058724, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20058725, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20058726, '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 = 20059293 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': 2527980, 'mtr_portfolio_id': 20059293, 'created_at': datetime.datetime(2025, 1, 30, 6, 3, 2), 'result': '0.057933815006092654', 'result_long': None, 'result_double': None}] Qualite : 0.057933815006092654 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20059293 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20059293_30-01-2025_06_03_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20059293 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_P20059293_30-01-2025_06_03_02.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20059295, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20059296, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20059297, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20059298, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20059299, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20059300, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20059301, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20059302, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20059303, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20059304, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20059305, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20059306, 'pht': 3726}}" where mtr_portfolio_id = 20059293 and dashboard_run_id = 1578474 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`=20059293 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8643634, 0.057933815006092654, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20059293_30-01-2025_06_03_02.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20059295, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20059296, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20059297, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20059298, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20059299, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20059300, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20059301, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20059302, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20059303, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20059304, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20059305, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20059306, '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 = 20059801 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': 2528027, 'mtr_portfolio_id': 20059801, 'created_at': datetime.datetime(2025, 1, 30, 6, 18, 58), 'result': '0.05948213972553956', 'result_long': None, 'result_double': None}] Qualite : 0.05948213972553956 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20059801 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20059801_30-01-2025_06_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20059801 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_P20059801_30-01-2025_06_18_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20059841, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20059842, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20059843, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20059844, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20059845, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20059846, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20059847, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20059848, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20059849, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20059850, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20059851, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20059852, 'pht': 3726}}" where mtr_portfolio_id = 20059801 and dashboard_run_id = 1578474 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`=20059801 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8643635, 0.05948213972553956, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20059801_30-01-2025_06_18_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20059841, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20059842, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20059843, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20059844, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20059845, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20059846, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20059847, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20059848, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20059849, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20059850, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20059851, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20059852, '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 = 20060327 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': 2528073, 'mtr_portfolio_id': 20060327, 'created_at': datetime.datetime(2025, 1, 30, 6, 32, 57), 'result': '0.04199219167945328', 'result_long': None, 'result_double': None}] Qualite : 0.04199219167945328 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20060327 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20060327_30-01-2025_06_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20060327 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_P20060327_30-01-2025_06_32_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20060361, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20060362, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20060363, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20060364, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20060365, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20060366, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20060367, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20060368, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20060369, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20060370, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20060371, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20060372, 'pht': 3726}}" where mtr_portfolio_id = 20060327 and dashboard_run_id = 1578474 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`=20060327 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8643636, 0.04199219167945328, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20060327_30-01-2025_06_32_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20060361, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20060362, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20060363, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20060364, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20060365, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20060366, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20060367, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20060368, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20060369, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20060370, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20060371, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20060372, '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 = 20060740 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': 2528200, 'mtr_portfolio_id': 20060740, 'created_at': datetime.datetime(2025, 1, 30, 6, 48, 58), 'result': '0.053127196889105985', 'result_long': None, 'result_double': None}] Qualite : 0.053127196889105985 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20060740 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20060740_30-01-2025_06_48_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20060740 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_P20060740_30-01-2025_06_48_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20060741, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20060742, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20060743, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20060744, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20060745, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20060746, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20060747, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20060748, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20060749, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20060750, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20060751, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20060752, 'pht': 3726}}" where mtr_portfolio_id = 20060740 and dashboard_run_id = 1578474 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`=20060740 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8643637, 0.053127196889105985, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20060740_30-01-2025_06_48_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20060741, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20060742, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20060743, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20060744, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20060745, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20060746, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20060747, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20060748, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20060749, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20060750, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20060751, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20060752, '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 = 20061261 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': 2528312, 'mtr_portfolio_id': 20061261, 'created_at': datetime.datetime(2025, 1, 30, 7, 2, 59), 'result': '0.049472869887084416', 'result_long': None, 'result_double': None}] Qualite : 0.049472869887084416 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20061261 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20061261_30-01-2025_07_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20061261 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_P20061261_30-01-2025_07_03_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20061340, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20061341, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20061342, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20061343, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20061344, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20061345, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20061346, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20061347, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20061348, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20061349, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20061350, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20061351, 'pht': 3726}}" where mtr_portfolio_id = 20061261 and dashboard_run_id = 1578474 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`=20061261 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8643638, 0.049472869887084416, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20061261_30-01-2025_07_03_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20061340, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20061341, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20061342, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20061343, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20061344, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20061345, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20061346, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20061347, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20061348, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20061349, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20061350, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20061351, '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 = 20062120 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': 2528482, 'mtr_portfolio_id': 20062120, 'created_at': datetime.datetime(2025, 1, 30, 7, 22, 59), 'result': '0.046173476779867106', 'result_long': None, 'result_double': None}] Qualite : 0.046173476779867106 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20062120 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20062120_30-01-2025_07_23_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20062120 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_P20062120_30-01-2025_07_23_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20062177, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20062178, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20062179, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20062180, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20062181, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20062182, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20062183, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20062184, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20062185, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20062186, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20062187, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20062188, 'pht': 3726}}" where mtr_portfolio_id = 20062120 and dashboard_run_id = 1578474 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`=20062120 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8643639, 0.046173476779867106, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20062120_30-01-2025_07_23_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20062177, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20062178, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20062179, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20062180, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20062181, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20062182, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20062183, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20062184, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20062185, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20062186, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20062187, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20062188, '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 = 20062660 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': 2528548, 'mtr_portfolio_id': 20062660, 'created_at': datetime.datetime(2025, 1, 30, 7, 32, 57), 'result': '0.03529328847861824', 'result_long': None, 'result_double': None}] Qualite : 0.03529328847861824 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20062660 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20062660_30-01-2025_07_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20062660 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_P20062660_30-01-2025_07_32_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20062685, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20062686, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20062687, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20062688, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20062689, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20062690, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20062691, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20062692, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20062693, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20062694, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20062695, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20062696, 'pht': 3726}}" where mtr_portfolio_id = 20062660 and dashboard_run_id = 1578474 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`=20062660 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8643640, 0.03529328847861824, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20062660_30-01-2025_07_32_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20062685, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20062686, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20062687, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20062688, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20062689, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20062690, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20062691, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20062692, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20062693, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20062694, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20062695, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20062696, '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 = 20063587 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': 2528615, 'mtr_portfolio_id': 20063587, 'created_at': datetime.datetime(2025, 1, 30, 7, 48, 58), 'result': '0.04304334959882606', 'result_long': None, 'result_double': None}] Qualite : 0.04304334959882606 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20063587 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20063587_30-01-2025_07_48_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20063587 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_P20063587_30-01-2025_07_48_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20063642, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20063643, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20063644, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20063645, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20063646, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20063647, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20063648, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20063649, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20063650, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20063651, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20063652, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20063653, 'pht': 3726}}" where mtr_portfolio_id = 20063587 and dashboard_run_id = 1578474 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`=20063587 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8643641, 0.04304334959882606, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20063587_30-01-2025_07_48_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20063642, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20063643, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20063644, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20063645, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20063646, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20063647, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20063648, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20063649, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20063650, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20063651, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20063652, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20063653, '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 = 20064416 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': 2528666, 'mtr_portfolio_id': 20064416, 'created_at': datetime.datetime(2025, 1, 30, 8, 5, 30), 'result': '0.05985537634414505', 'result_long': None, 'result_double': None}] Qualite : 0.05985537634414505 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20064416 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20064416_30-01-2025_08_05_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20064416 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_P20064416_30-01-2025_08_05_30.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20064440, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20064441, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20064442, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20064443, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20064444, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20064445, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20064446, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20064447, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20064448, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20064449, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20064450, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20064451, 'pht': 3726}}" where mtr_portfolio_id = 20064416 and dashboard_run_id = 1578474 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`=20064416 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8643642, 0.05985537634414505, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20064416_30-01-2025_08_05_30.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20064440, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20064441, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20064442, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20064443, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20064444, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20064445, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20064446, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20064447, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20064448, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20064449, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20064450, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20064451, '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 = 20065107 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': 2528740, 'mtr_portfolio_id': 20065107, 'created_at': datetime.datetime(2025, 1, 30, 8, 24, 29), 'result': '0.057012189567817596', 'result_long': None, 'result_double': None}] Qualite : 0.057012189567817596 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20065107 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20065107_30-01-2025_08_24_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20065107 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_P20065107_30-01-2025_08_24_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20065115, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20065116, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20065117, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20065118, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20065119, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20065120, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20065121, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20065122, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20065123, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20065124, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20065125, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20065126, 'pht': 3726}}" where mtr_portfolio_id = 20065107 and dashboard_run_id = 1578474 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`=20065107 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8643643, 0.057012189567817596, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20065107_30-01-2025_08_24_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20065115, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20065116, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20065117, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20065118, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20065119, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20065120, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20065121, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20065122, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20065123, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20065124, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20065125, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20065126, '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 = 20066031 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': 2528848, 'mtr_portfolio_id': 20066031, 'created_at': datetime.datetime(2025, 1, 30, 8, 33, 2), 'result': '0.0430748359618915', 'result_long': None, 'result_double': None}] Qualite : 0.0430748359618915 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20066031 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20066031_30-01-2025_08_33_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20066031 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_P20066031_30-01-2025_08_33_03.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20066055, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20066056, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20066057, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20066058, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20066059, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20066060, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20066061, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20066062, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20066063, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20066064, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20066065, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20066066, 'pht': 3726}}" where mtr_portfolio_id = 20066031 and dashboard_run_id = 1578474 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`=20066031 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8643644, 0.0430748359618915, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20066031_30-01-2025_08_33_03.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20066055, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20066056, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20066057, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20066058, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20066059, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20066060, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20066061, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20066062, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20066063, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20066064, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20066065, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20066066, '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 = 20066185 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': 2528879, 'mtr_portfolio_id': 20066185, 'created_at': datetime.datetime(2025, 1, 30, 8, 49), 'result': '0.05976479989679345', 'result_long': None, 'result_double': None}] Qualite : 0.05976479989679345 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20066185 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20066185_30-01-2025_08_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20066185 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_P20066185_30-01-2025_08_49_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20066193, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20066194, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20066195, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20066196, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20066197, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20066198, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20066199, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20066200, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20066201, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20066202, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20066203, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20066204, 'pht': 3726}}" where mtr_portfolio_id = 20066185 and dashboard_run_id = 1578474 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`=20066185 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8643645, 0.05976479989679345, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20066185_30-01-2025_08_49_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20066193, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20066194, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20066195, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20066196, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20066197, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20066198, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20066199, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20066200, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20066201, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20066202, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20066203, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20066204, '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 = 20066625 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': 2529032, 'mtr_portfolio_id': 20066625, 'created_at': datetime.datetime(2025, 1, 30, 9, 2, 59), 'result': '0.053920733518836236', 'result_long': None, 'result_double': None}] Qualite : 0.053920733518836236 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20066625 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20066625_30-01-2025_09_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20066625 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_P20066625_30-01-2025_09_02_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20066641, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20066642, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20066643, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20066644, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20066645, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20066646, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20066647, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20066648, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20066649, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20066650, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20066651, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20066652, 'pht': 3726}}" where mtr_portfolio_id = 20066625 and dashboard_run_id = 1578474 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`=20066625 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8643646, 0.053920733518836236, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20066625_30-01-2025_09_02_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20066641, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20066642, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20066643, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20066644, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20066645, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20066646, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20066647, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20066648, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20066649, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20066650, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20066651, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20066652, '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 = 20068342 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': 2529275, 'mtr_portfolio_id': 20068342, 'created_at': datetime.datetime(2025, 1, 30, 9, 49, 1), 'result': '0.036761713670243196', 'result_long': None, 'result_double': None}] Qualite : 0.036761713670243196 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20068342 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20068342_30-01-2025_09_49_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20068342 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_P20068342_30-01-2025_09_49_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20068362, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20068363, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20068364, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20068365, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20068366, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20068367, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20068368, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20068369, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20068370, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20068371, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20068372, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20068373, 'pht': 3726}}" where mtr_portfolio_id = 20068342 and dashboard_run_id = 1578474 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`=20068342 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8643647, 0.036761713670243196, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20068342_30-01-2025_09_49_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20068362, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20068363, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20068364, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20068365, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20068366, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20068367, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20068368, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20068369, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20068370, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20068371, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20068372, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20068373, '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 = 20068574 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': 2529293, 'mtr_portfolio_id': 20068574, 'created_at': datetime.datetime(2025, 1, 30, 10, 3), 'result': '0.032233818477437365', 'result_long': None, 'result_double': None}] Qualite : 0.032233818477437365 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20068574 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20068574_30-01-2025_10_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20068574 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_P20068574_30-01-2025_10_03_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20068578, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20068579, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20068580, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20068581, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20068582, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20068583, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20068584, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20068585, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20068586, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20068587, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20068588, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20068589, 'pht': 3726}}" where mtr_portfolio_id = 20068574 and dashboard_run_id = 1578474 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`=20068574 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8643648, 0.032233818477437365, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20068574_30-01-2025_10_03_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20068578, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20068579, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20068580, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20068581, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20068582, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20068583, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20068584, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20068585, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20068586, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20068587, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20068588, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20068589, '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 = 20069146 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': 2529358, 'mtr_portfolio_id': 20069146, 'created_at': datetime.datetime(2025, 1, 30, 10, 19), 'result': '0.04573946415664441', 'result_long': None, 'result_double': None}] Qualite : 0.04573946415664441 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20069146 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20069146_30-01-2025_10_19_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20069146 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_P20069146_30-01-2025_10_19_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20069153, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20069154, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20069155, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20069156, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20069157, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20069158, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20069159, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20069160, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20069161, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20069162, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20069163, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20069164, 'pht': 3726}}" where mtr_portfolio_id = 20069146 and dashboard_run_id = 1578474 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`=20069146 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8643649, 0.04573946415664441, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20069146_30-01-2025_10_19_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20069153, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20069154, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20069155, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20069156, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20069157, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20069158, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20069159, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20069160, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20069161, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20069162, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20069163, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20069164, '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 = 20069972 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': 2529409, 'mtr_portfolio_id': 20069972, 'created_at': datetime.datetime(2025, 1, 30, 10, 32, 59), 'result': '0.041748175666520594', 'result_long': None, 'result_double': None}] Qualite : 0.041748175666520594 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20069972 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20069972_30-01-2025_10_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20069972 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_P20069972_30-01-2025_10_33_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20069978, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20069979, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20069980, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20069981, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20069982, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20069983, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20069984, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20069985, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20069986, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20069987, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20069988, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20069989, 'pht': 3726}}" where mtr_portfolio_id = 20069972 and dashboard_run_id = 1578474 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`=20069972 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8643650, 0.041748175666520594, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20069972_30-01-2025_10_33_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20069978, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20069979, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20069980, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20069981, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20069982, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20069983, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20069984, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20069985, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20069986, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20069987, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20069988, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20069989, '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 = 20070921 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': 2529479, 'mtr_portfolio_id': 20070921, 'created_at': datetime.datetime(2025, 1, 31, 6, 4, 58), 'result': '0.04317797974613395', 'result_long': None, 'result_double': None}] Qualite : 0.04317797974613395 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20070921 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20070921_31-01-2025_06_04_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20070921 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_P20070921_31-01-2025_06_04_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20070923, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20070924, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20070925, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20070926, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20070927, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20070928, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20070929, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20070930, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20070931, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20070932, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20070933, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20070934, 'pht': 3726}}" where mtr_portfolio_id = 20070921 and dashboard_run_id = 1578474 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`=20070921 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8643651, 0.04317797974613395, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20070921_31-01-2025_06_04_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20070923, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20070924, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20070925, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20070926, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20070927, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20070928, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20070929, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20070930, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20070931, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20070932, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20070933, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20070934, '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 = 20074661 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': 2529904, 'mtr_portfolio_id': 20074661, 'created_at': datetime.datetime(2025, 1, 30, 14, 34, 58), 'result': '0.05238244764970017', 'result_long': None, 'result_double': None}] Qualite : 0.05238244764970017 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20074661 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20074661_30-01-2025_14_34_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20074661 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_P20074661_30-01-2025_14_34_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20074687, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20074688, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20074689, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20074690, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20074691, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20074692, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20074693, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20074694, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20074695, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20074696, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20074697, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20074698, 'pht': 3726}}" where mtr_portfolio_id = 20074661 and dashboard_run_id = 1578474 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`=20074661 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8643652, 0.05238244764970017, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20074661_30-01-2025_14_34_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20074687, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20074688, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20074689, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20074690, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20074691, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20074692, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20074693, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20074694, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20074695, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20074696, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20074697, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20074698, '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 = 20075027 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': 2529941, 'mtr_portfolio_id': 20075027, 'created_at': datetime.datetime(2025, 1, 30, 14, 47), 'result': '0.004734448586005418', 'result_long': None, 'result_double': None}] Qualite : 0.004734448586005418 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20075027 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20075027_30-01-2025_14_47_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20075027 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_P20075027_30-01-2025_14_47_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20075029, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20075030, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20075031, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20075032, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20075033, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20075034, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20075035, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20075036, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20075037, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20075038, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20075039, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20075040, 'pht': 3726}}" where mtr_portfolio_id = 20075027 and dashboard_run_id = 1578474 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`=20075027 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8643653, 0.004734448586005418, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20075027_30-01-2025_14_47_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20075029, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20075030, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20075031, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20075032, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20075033, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20075034, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20075035, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20075036, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20075037, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20075038, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20075039, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20075040, '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 = 20075165 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': 2529950, 'mtr_portfolio_id': 20075165, 'created_at': datetime.datetime(2025, 1, 30, 15, 2, 30), 'result': '0.07736266667562723', 'result_long': None, 'result_double': None}] Qualite : 0.07736266667562723 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20075165 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20075165_30-01-2025_15_02_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20075165 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_P20075165_30-01-2025_15_02_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20075168, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20075169, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20075170, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20075171, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20075172, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20075173, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20075174, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20075175, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20075176, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20075177, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20075178, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20075179, 'pht': 3726}}" where mtr_portfolio_id = 20075165 and dashboard_run_id = 1578474 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`=20075165 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8643654, 0.07736266667562723, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20075165_30-01-2025_15_02_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20075168, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20075169, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20075170, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20075171, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20075172, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20075173, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20075174, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20075175, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20075176, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20075177, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20075178, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20075179, '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 = 20075513 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': 2529989, 'mtr_portfolio_id': 20075513, 'created_at': datetime.datetime(2025, 1, 30, 15, 16, 59), 'result': '0.04542583970036757', 'result_long': None, 'result_double': None}] Qualite : 0.04542583970036757 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20075513 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20075513_30-01-2025_15_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20075513 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_P20075513_30-01-2025_15_16_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20075516, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20075517, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20075518, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20075519, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20075520, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20075521, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20075522, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20075523, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20075524, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20075525, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20075526, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20075527, 'pht': 3726}}" where mtr_portfolio_id = 20075513 and dashboard_run_id = 1578474 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`=20075513 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8643655, 0.04542583970036757, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20075513_30-01-2025_15_16_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20075516, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20075517, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20075518, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20075519, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20075520, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20075521, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20075522, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20075523, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20075524, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20075525, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20075526, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20075527, '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 = 20075818 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': 2530012, 'mtr_portfolio_id': 20075818, 'created_at': datetime.datetime(2025, 1, 30, 15, 34, 29), 'result': '0.06239272560993571', 'result_long': None, 'result_double': None}] Qualite : 0.06239272560993571 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20075818 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20075818_30-01-2025_15_34_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20075818 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_P20075818_30-01-2025_15_34_30.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20075821, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20075822, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20075823, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20075824, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20075825, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20075826, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20075827, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20075828, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20075829, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20075830, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20075831, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20075832, 'pht': 3726}}" where mtr_portfolio_id = 20075818 and dashboard_run_id = 1578474 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`=20075818 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8643656, 0.06239272560993571, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20075818_30-01-2025_15_34_30.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20075821, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20075822, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20075823, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20075824, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20075825, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20075826, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20075827, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20075828, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20075829, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20075830, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20075831, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20075832, '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 = 20076294 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': 2530075, 'mtr_portfolio_id': 20076294, 'created_at': datetime.datetime(2025, 1, 30, 15, 48, 57), 'result': '0.050000742320291364', 'result_long': None, 'result_double': None}] Qualite : 0.050000742320291364 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20076294 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20076294_30-01-2025_15_48_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20076294 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_P20076294_30-01-2025_15_48_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20076296, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20076297, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20076298, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20076299, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20076300, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20076301, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20076302, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20076303, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20076304, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20076305, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20076306, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20076307, 'pht': 3726}}" where mtr_portfolio_id = 20076294 and dashboard_run_id = 1578474 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`=20076294 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8643657, 0.050000742320291364, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20076294_30-01-2025_15_48_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20076296, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20076297, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20076298, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20076299, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20076300, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20076301, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20076302, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20076303, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20076304, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20076305, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20076306, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20076307, '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 = 20076688 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': 2530106, 'mtr_portfolio_id': 20076688, 'created_at': datetime.datetime(2025, 1, 30, 16, 2, 57), 'result': '0.028779489796110853', 'result_long': None, 'result_double': None}] Qualite : 0.028779489796110853 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20076688 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20076688_30-01-2025_16_02_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20076688 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_P20076688_30-01-2025_16_02_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20076689, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20076690, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20076691, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20076692, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20076693, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20076694, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20076695, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20076696, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20076697, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20076698, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20076699, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20076700, 'pht': 3726}}" where mtr_portfolio_id = 20076688 and dashboard_run_id = 1578474 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`=20076688 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8643658, 0.028779489796110853, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20076688_30-01-2025_16_02_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20076689, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20076690, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20076691, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20076692, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20076693, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20076694, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20076695, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20076696, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20076697, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20076698, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20076699, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20076700, '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 = 20077004 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': 2530154, 'mtr_portfolio_id': 20077004, 'created_at': datetime.datetime(2025, 1, 30, 16, 17), 'result': '0.05029782460846653', 'result_long': None, 'result_double': None}] Qualite : 0.05029782460846653 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20077004 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20077004_30-01-2025_16_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20077004 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_P20077004_30-01-2025_16_17_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20077031, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20077032, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20077033, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20077034, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20077035, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20077036, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20077037, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20077038, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20077039, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20077040, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20077041, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20077042, 'pht': 3726}}" where mtr_portfolio_id = 20077004 and dashboard_run_id = 1578474 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`=20077004 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8643659, 0.05029782460846653, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20077004_30-01-2025_16_17_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20077031, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20077032, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20077033, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20077034, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20077035, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20077036, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20077037, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20077038, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20077039, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20077040, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20077041, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20077042, '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 = 20077528 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': 2530179, 'mtr_portfolio_id': 20077528, 'created_at': datetime.datetime(2025, 1, 30, 16, 32, 59), 'result': '0.05283106108160866', 'result_long': None, 'result_double': None}] Qualite : 0.05283106108160866 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20077528 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20077528_30-01-2025_16_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20077528 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_P20077528_30-01-2025_16_32_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20077530, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20077531, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20077532, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20077533, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20077534, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20077535, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20077536, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20077537, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20077538, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20077539, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20077540, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20077541, 'pht': 3726}}" where mtr_portfolio_id = 20077528 and dashboard_run_id = 1578474 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`=20077528 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8643660, 0.05283106108160866, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20077528_30-01-2025_16_32_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20077530, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20077531, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20077532, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20077533, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20077534, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20077535, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20077536, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20077537, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20077538, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20077539, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20077540, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20077541, '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 = 20078208 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': 2530219, 'mtr_portfolio_id': 20078208, 'created_at': datetime.datetime(2025, 1, 30, 16, 46, 56), 'result': '0.06615932225303257', 'result_long': None, 'result_double': None}] Qualite : 0.06615932225303257 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20078208 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20078208_30-01-2025_16_46_56.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20078208 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_P20078208_30-01-2025_16_46_56.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20078210, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20078211, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20078212, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20078213, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20078214, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20078215, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20078216, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20078217, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20078218, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20078219, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20078220, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20078221, 'pht': 3726}}" where mtr_portfolio_id = 20078208 and dashboard_run_id = 1578474 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`=20078208 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8643661, 0.06615932225303257, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20078208_30-01-2025_16_46_56.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20078210, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20078211, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20078212, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20078213, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20078214, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20078215, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20078216, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20078217, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20078218, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20078219, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20078220, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20078221, '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 = 20078713 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': 2530252, 'mtr_portfolio_id': 20078713, 'created_at': datetime.datetime(2025, 1, 30, 17, 3, 3), 'result': '0.057577370523081955', 'result_long': None, 'result_double': None}] Qualite : 0.057577370523081955 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20078713 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20078713_30-01-2025_17_03_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20078713 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_P20078713_30-01-2025_17_03_03.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20078714, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20078715, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20078716, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20078717, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20078718, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20078719, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20078720, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20078721, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20078722, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20078723, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20078724, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20078725, 'pht': 3726}}" where mtr_portfolio_id = 20078713 and dashboard_run_id = 1578474 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`=20078713 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8643662, 0.057577370523081955, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20078713_30-01-2025_17_03_03.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20078714, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20078715, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20078716, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20078717, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20078718, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20078719, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20078720, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20078721, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20078722, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20078723, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20078724, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20078725, '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 = 20079278 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': 2530311, 'mtr_portfolio_id': 20079278, 'created_at': datetime.datetime(2025, 1, 30, 17, 16, 31), 'result': '0.06885764172913689', 'result_long': None, 'result_double': None}] Qualite : 0.06885764172913689 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20079278 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20079278_30-01-2025_17_16_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20079278 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_P20079278_30-01-2025_17_16_32.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20079280, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20079281, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20079282, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20079283, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20079284, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20079285, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20079286, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20079287, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20079288, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20079289, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20079290, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20079291, 'pht': 3726}}" where mtr_portfolio_id = 20079278 and dashboard_run_id = 1578474 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`=20079278 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8643663, 0.06885764172913689, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20079278_30-01-2025_17_16_32.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20079280, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20079281, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20079282, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20079283, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20079284, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20079285, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20079286, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20079287, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20079288, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20079289, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20079290, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20079291, '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 = 20079803 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': 2530341, 'mtr_portfolio_id': 20079803, 'created_at': datetime.datetime(2025, 1, 30, 17, 48, 59), 'result': '0.047807245207865695', 'result_long': None, 'result_double': None}] Qualite : 0.047807245207865695 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20079803 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20079803_30-01-2025_17_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20079803 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_P20079803_30-01-2025_17_49_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20079805, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20079806, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20079807, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20079808, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20079809, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20079810, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20079811, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20079812, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20079813, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20079814, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20079815, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20079816, 'pht': 3726}}" where mtr_portfolio_id = 20079803 and dashboard_run_id = 1578474 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`=20079803 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8643664, 0.047807245207865695, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20079803_30-01-2025_17_49_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20079805, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20079806, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20079807, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20079808, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20079809, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20079810, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20079811, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20079812, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20079813, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20079814, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20079815, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20079816, '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 = 20081116 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': 2530488, 'mtr_portfolio_id': 20081116, 'created_at': datetime.datetime(2025, 1, 30, 18, 22, 59), 'result': '0.04509852805714943', 'result_long': None, 'result_double': None}] Qualite : 0.04509852805714943 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20081116 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20081116_30-01-2025_18_23_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20081116 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_P20081116_30-01-2025_18_23_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20081125, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20081126, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20081127, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20081128, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20081129, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20081130, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20081131, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20081132, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20081133, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20081134, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20081135, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20081136, 'pht': 3726}}" where mtr_portfolio_id = 20081116 and dashboard_run_id = 1578474 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`=20081116 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8643665, 0.04509852805714943, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20081116_30-01-2025_18_23_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20081125, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20081126, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20081127, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20081128, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20081129, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20081130, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20081131, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20081132, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20081133, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20081134, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20081135, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20081136, '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 = 20081270 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': 2530514, 'mtr_portfolio_id': 20081270, 'created_at': datetime.datetime(2025, 1, 30, 18, 33), 'result': '0.022643483468158365', 'result_long': None, 'result_double': None}] Qualite : 0.022643483468158365 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20081270 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20081270_30-01-2025_18_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20081270 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_P20081270_30-01-2025_18_33_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20081325, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20081326, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20081327, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20081328, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20081329, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20081330, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20081331, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20081332, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20081333, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20081334, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20081335, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20081336, 'pht': 3726}}" where mtr_portfolio_id = 20081270 and dashboard_run_id = 1578474 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`=20081270 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8643666, 0.022643483468158365, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20081270_30-01-2025_18_33_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20081325, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20081326, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20081327, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20081328, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20081329, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20081330, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20081331, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20081332, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20081333, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20081334, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20081335, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20081336, '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 = 20082017 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': 2530573, 'mtr_portfolio_id': 20082017, 'created_at': datetime.datetime(2025, 1, 30, 18, 47, 6), 'result': '0.12573640114502874', 'result_long': None, 'result_double': None}] Qualite : 0.12573640114502874 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20082017 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20082017_30-01-2025_18_47_06.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20082017 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_P20082017_30-01-2025_18_47_06.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20082019, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20082020, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20082021, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20082022, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20082023, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20082024, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20082025, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20082026, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20082027, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20082028, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20082029, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20082030, 'pht': 3726}}" where mtr_portfolio_id = 20082017 and dashboard_run_id = 1578474 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`=20082017 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8643667, 0.12573640114502874, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20082017_30-01-2025_18_47_06.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20082019, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20082020, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20082021, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20082022, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20082023, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20082024, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20082025, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20082026, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20082027, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20082028, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20082029, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20082030, '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 = 20082247 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': 2530586, 'mtr_portfolio_id': 20082247, 'created_at': datetime.datetime(2025, 1, 30, 19, 2, 58), 'result': '0.0477037510770824', 'result_long': None, 'result_double': None}] Qualite : 0.0477037510770824 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20082247 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20082247_30-01-2025_19_02_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20082247 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_P20082247_30-01-2025_19_02_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20082248, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20082249, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20082250, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20082251, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20082252, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20082253, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20082254, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20082255, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20082256, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20082257, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20082258, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20082259, 'pht': 3726}}" where mtr_portfolio_id = 20082247 and dashboard_run_id = 1578474 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`=20082247 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8643668, 0.0477037510770824, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20082247_30-01-2025_19_02_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20082248, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20082249, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20082250, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20082251, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20082252, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20082253, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20082254, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20082255, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20082256, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20082257, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20082258, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20082259, '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 = 20082477 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': 2530631, 'mtr_portfolio_id': 20082477, 'created_at': datetime.datetime(2025, 1, 30, 19, 16, 58), 'result': '0.055334288043392015', 'result_long': None, 'result_double': None}] Qualite : 0.055334288043392015 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20082477 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20082477_30-01-2025_19_16_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20082477 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_P20082477_30-01-2025_19_16_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20082482, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20082483, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20082484, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20082485, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20082486, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20082487, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20082488, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20082489, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20082490, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20082491, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20082492, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20082493, 'pht': 3726}}" where mtr_portfolio_id = 20082477 and dashboard_run_id = 1578474 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`=20082477 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8643669, 0.055334288043392015, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20082477_30-01-2025_19_16_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20082482, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20082483, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20082484, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20082485, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20082486, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20082487, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20082488, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20082489, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20082490, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20082491, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20082492, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20082493, '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 = 20082857 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': 2530671, 'mtr_portfolio_id': 20082857, 'created_at': datetime.datetime(2025, 1, 30, 19, 32, 59), 'result': '0.027345338743625706', 'result_long': None, 'result_double': None}] Qualite : 0.027345338743625706 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20082857 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20082857_30-01-2025_19_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20082857 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_P20082857_30-01-2025_19_33_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20082858, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20082859, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20082860, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20082861, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20082862, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20082863, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20082864, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20082865, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20082866, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20082867, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20082868, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20082869, 'pht': 3726}}" where mtr_portfolio_id = 20082857 and dashboard_run_id = 1578474 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`=20082857 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8643670, 0.027345338743625706, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20082857_30-01-2025_19_33_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20082858, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20082859, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20082860, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20082861, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20082862, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20082863, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20082864, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20082865, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20082866, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20082867, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20082868, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20082869, '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 = 20083271 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': 2530734, 'mtr_portfolio_id': 20083271, 'created_at': datetime.datetime(2025, 1, 30, 19, 55, 3), 'result': '0.03278499632590748', 'result_long': None, 'result_double': None}] Qualite : 0.03278499632590748 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20083271 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20083271_30-01-2025_19_55_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20083271 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_P20083271_30-01-2025_19_55_03.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20083276, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20083277, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20083278, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20083279, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20083280, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20083281, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20083282, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20083283, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20083284, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20083285, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20083286, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20083287, 'pht': 3726}}" where mtr_portfolio_id = 20083271 and dashboard_run_id = 1578474 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`=20083271 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8643671, 0.03278499632590748, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20083271_30-01-2025_19_55_03.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20083276, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20083277, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20083278, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20083279, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20083280, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20083281, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20083282, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20083283, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20083284, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20083285, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20083286, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20083287, '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 = 20083906 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': 2530774, 'mtr_portfolio_id': 20083906, 'created_at': datetime.datetime(2025, 1, 30, 20, 8, 58), 'result': '0.023210890623829653', 'result_long': None, 'result_double': None}] Qualite : 0.023210890623829653 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20083906 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20083906_30-01-2025_20_08_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20083906 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_P20083906_30-01-2025_20_08_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20083908, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20083909, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20083910, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20083911, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20083912, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20083913, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20083914, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20083915, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20083916, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20083917, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20083918, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20083919, 'pht': 3726}}" where mtr_portfolio_id = 20083906 and dashboard_run_id = 1578474 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`=20083906 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8643672, 0.023210890623829653, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20083906_30-01-2025_20_08_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20083908, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20083909, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20083910, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20083911, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20083912, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20083913, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20083914, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20083915, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20083916, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20083917, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20083918, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20083919, '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 = 20084164 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': 2530797, 'mtr_portfolio_id': 20084164, 'created_at': datetime.datetime(2025, 1, 30, 20, 17, 28), 'result': '0.05791764048292499', 'result_long': None, 'result_double': None}] Qualite : 0.05791764048292499 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20084164 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20084164_30-01-2025_20_17_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20084164 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_P20084164_30-01-2025_20_17_28.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20084192, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20084193, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20084194, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20084195, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20084196, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20084197, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20084198, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20084199, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20084200, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20084201, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20084202, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20084203, 'pht': 3726}}" where mtr_portfolio_id = 20084164 and dashboard_run_id = 1578474 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`=20084164 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8643673, 0.05791764048292499, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20084164_30-01-2025_20_17_28.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20084192, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20084193, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20084194, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20084195, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20084196, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20084197, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20084198, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20084199, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20084200, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20084201, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20084202, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20084203, '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 = 20084560 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': 2530823, 'mtr_portfolio_id': 20084560, 'created_at': datetime.datetime(2025, 1, 30, 20, 32, 57), 'result': '0.04101487154146828', 'result_long': None, 'result_double': None}] Qualite : 0.04101487154146828 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20084560 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20084560_30-01-2025_20_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20084560 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_P20084560_30-01-2025_20_32_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20084580, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20084581, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20084582, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20084583, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20084584, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20084585, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20084586, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20084587, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20084588, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20084589, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20084590, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20084591, 'pht': 3726}}" where mtr_portfolio_id = 20084560 and dashboard_run_id = 1578474 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`=20084560 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8643674, 0.04101487154146828, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20084560_30-01-2025_20_32_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20084580, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20084581, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20084582, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20084583, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20084584, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20084585, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20084586, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20084587, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20084588, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20084589, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20084590, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20084591, '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 = 20084956 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': 2530864, 'mtr_portfolio_id': 20084956, 'created_at': datetime.datetime(2025, 1, 30, 21, 3), 'result': '0.055249123237065885', 'result_long': None, 'result_double': None}] Qualite : 0.055249123237065885 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20084956 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20084956_30-01-2025_21_03_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20084956 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_P20084956_30-01-2025_21_03_02.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20084985, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20084986, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20084987, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20084988, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20084989, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20084990, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20084991, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20084992, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20084993, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20084994, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20084995, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20084996, 'pht': 3726}}" where mtr_portfolio_id = 20084956 and dashboard_run_id = 1578474 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`=20084956 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8643675, 0.055249123237065885, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20084956_30-01-2025_21_03_02.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20084985, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20084986, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20084987, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20084988, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20084989, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20084990, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20084991, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20084992, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20084993, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20084994, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20084995, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20084996, '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 = 20085919 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': 2530947, 'mtr_portfolio_id': 20085919, 'created_at': datetime.datetime(2025, 1, 30, 21, 18, 58), 'result': '0.029166842492369737', 'result_long': None, 'result_double': None}] Qualite : 0.029166842492369737 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20085919 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20085919_30-01-2025_21_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20085919 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_P20085919_30-01-2025_21_18_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20085941, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20085942, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20085943, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20085944, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20085945, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20085946, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20085947, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20085948, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20085949, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20085950, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20085951, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20085952, 'pht': 3726}}" where mtr_portfolio_id = 20085919 and dashboard_run_id = 1578474 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`=20085919 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8643676, 0.029166842492369737, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20085919_30-01-2025_21_18_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20085941, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20085942, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20085943, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20085944, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20085945, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20085946, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20085947, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20085948, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20085949, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20085950, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20085951, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20085952, '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 = 20086090 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': 2530956, 'mtr_portfolio_id': 20086090, 'created_at': datetime.datetime(2025, 1, 30, 21, 32, 59), 'result': '0.04265460553408116', 'result_long': None, 'result_double': None}] Qualite : 0.04265460553408116 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20086090 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20086090_30-01-2025_21_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20086090 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_P20086090_30-01-2025_21_33_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20086233, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20086234, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20086235, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20086236, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20086237, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20086238, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20086239, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20086240, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20086241, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20086242, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20086243, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20086244, 'pht': 3726}}" where mtr_portfolio_id = 20086090 and dashboard_run_id = 1578474 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`=20086090 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8643677, 0.04265460553408116, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20086090_30-01-2025_21_33_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20086233, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20086234, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20086235, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20086236, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20086237, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20086238, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20086239, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20086240, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20086241, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20086242, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20086243, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20086244, '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 = 20086757 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': 2531004, 'mtr_portfolio_id': 20086757, 'created_at': datetime.datetime(2025, 1, 30, 21, 48, 59), 'result': '0.05791413568661302', 'result_long': None, 'result_double': None}] Qualite : 0.05791413568661302 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20086757 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20086757_30-01-2025_21_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20086757 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_P20086757_30-01-2025_21_48_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20086761, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20086762, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20086763, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20086764, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20086765, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20086766, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20086767, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20086768, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20086769, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20086770, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20086771, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20086772, 'pht': 3726}}" where mtr_portfolio_id = 20086757 and dashboard_run_id = 1578474 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`=20086757 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8643678, 0.05791413568661302, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20086757_30-01-2025_21_48_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20086761, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20086762, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20086763, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20086764, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20086765, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20086766, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20086767, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20086768, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20086769, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20086770, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20086771, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20086772, '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 = 20087352 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': 2531039, 'mtr_portfolio_id': 20087352, 'created_at': datetime.datetime(2025, 1, 30, 22, 24, 59), 'result': '0.026912634450411758', 'result_long': None, 'result_double': None}] Qualite : 0.026912634450411758 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20087352 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20087352_30-01-2025_22_24_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20087352 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_P20087352_30-01-2025_22_24_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20087440, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20087441, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20087442, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20087443, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20087444, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20087445, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20087446, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20087447, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20087448, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20087449, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20087450, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20087451, 'pht': 3726}}" where mtr_portfolio_id = 20087352 and dashboard_run_id = 1578474 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`=20087352 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8643679, 0.026912634450411758, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20087352_30-01-2025_22_24_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20087440, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20087441, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20087442, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20087443, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20087444, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20087445, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20087446, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20087447, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20087448, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20087449, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20087450, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20087451, '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 = 20088703 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': 2531210, 'mtr_portfolio_id': 20088703, 'created_at': datetime.datetime(2025, 1, 31, 6, 1, 31), 'result': '0.035745651036847334', 'result_long': None, 'result_double': None}] Qualite : 0.035745651036847334 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20088703 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20088703_31-01-2025_06_01_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20088703 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_P20088703_31-01-2025_06_01_32.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20088706, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20088707, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20088708, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20088709, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20088710, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20088711, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20088712, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20088713, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20088714, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20088715, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20088716, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20088717, 'pht': 3726}}" where mtr_portfolio_id = 20088703 and dashboard_run_id = 1578474 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`=20088703 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8643680, 0.035745651036847334, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20088703_31-01-2025_06_01_32.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20088706, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20088707, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20088708, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20088709, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20088710, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20088711, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20088712, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20088713, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20088714, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20088715, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20088716, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20088717, '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 = 20099027 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': 2572507, 'mtr_portfolio_id': 20099027, 'created_at': datetime.datetime(2025, 2, 10, 17, 41, 34), 'result': '0.03789507934452931', 'result_long': None, 'result_double': None}] Qualite : 0.03789507934452931 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20099027 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20099027_10-02-2025_17_41_38.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20099027 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_P20099027_10-02-2025_17_41_38.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20099110, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20099111, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20099112, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20099113, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20099114, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20099115, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20099116, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20099117, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20099118, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20099119, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20099120, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20099121, 'pht': 3726}}" where mtr_portfolio_id = 20099027 and dashboard_run_id = 1578474 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`=20099027 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8643681, 0.03789507934452931, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20099027_10-02-2025_17_41_38.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20099110, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20099111, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20099112, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20099113, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20099114, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20099115, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20099116, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20099117, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20099118, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20099119, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20099120, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20099121, '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 = 20099028 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': 2572508, 'mtr_portfolio_id': 20099028, 'created_at': datetime.datetime(2025, 2, 10, 17, 40, 58), 'result': '0.040969447986923535', 'result_long': None, 'result_double': None}] Qualite : 0.040969447986923535 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20099028 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20099028_10-02-2025_17_41_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20099028 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_P20099028_10-02-2025_17_41_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20099134, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20099135, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20099136, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20099137, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20099138, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20099139, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20099140, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20099141, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20099142, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20099143, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20099144, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20099145, 'pht': 3726}}" where mtr_portfolio_id = 20099028 and dashboard_run_id = 1578474 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`=20099028 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8643682, 0.040969447986923535, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20099028_10-02-2025_17_41_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20099134, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20099135, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20099136, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20099137, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20099138, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20099139, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20099140, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20099141, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20099142, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20099143, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20099144, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20099145, '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 = 20099029 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': 2572509, 'mtr_portfolio_id': 20099029, 'created_at': datetime.datetime(2025, 2, 10, 17, 40, 29), 'result': '0.040969500669604045', 'result_long': None, 'result_double': None}] Qualite : 0.040969500669604045 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20099029 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20099029_10-02-2025_17_40_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20099029 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_P20099029_10-02-2025_17_40_32.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20099198, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20099199, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20099200, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20099201, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20099202, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20099203, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20099204, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20099205, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20099206, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20099207, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20099208, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20099209, 'pht': 3726}}" where mtr_portfolio_id = 20099029 and dashboard_run_id = 1578474 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`=20099029 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8643683, 0.040969500669604045, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20099029_10-02-2025_17_40_32.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20099198, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20099199, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20099200, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20099201, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20099202, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20099203, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20099204, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20099205, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20099206, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20099207, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20099208, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20099209, '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 = 20099030 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': 2572510, 'mtr_portfolio_id': 20099030, 'created_at': datetime.datetime(2025, 2, 10, 17, 39, 59), 'result': '0.03966074997642459', 'result_long': None, 'result_double': None}] Qualite : 0.03966074997642459 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20099030 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20099030_10-02-2025_17_40_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20099030 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_P20099030_10-02-2025_17_40_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20099080, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20099081, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20099082, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20099083, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20099084, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20099085, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20099086, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20099087, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20099088, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20099089, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20099090, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20099091, 'pht': 3726}}" where mtr_portfolio_id = 20099030 and dashboard_run_id = 1578474 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`=20099030 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8643684, 0.03966074997642459, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20099030_10-02-2025_17_40_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20099080, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20099081, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20099082, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20099083, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20099084, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20099085, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20099086, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20099087, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20099088, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20099089, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20099090, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20099091, '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 (20098972,20098975,20098976,20098977,20098978,20055895,20055928,20056058,20056189,20056268,20057670,20057884,20058713,20059293,20059801,20060327,20060740,20061261,20062120,20062660,20063587,20064416,20065107,20066031,20066185,20066625,20068342,20068574,20069146,20069972,20070921,20074661,20075027,20075165,20075513,20075818,20076294,20076688,20077004,20077528,20078208,20078713,20079278,20079803,20081116,20081270,20082017,20082247,20082477,20082857,20083271,20083906,20084164,20084560,20084956,20085919,20086090,20086757,20087352,20088703,20099027,20099028,20099029,20099030) result : ((1332852667,), (1332852668,), (1332866868,), (1332866870,), (1332866873,), (1332866876,), (1332866879,), (1332866881,), (1332866886,), (1332866888,), (1332866889,), (1332866931,), (1332867098,), (1332867104,), (1332867107,), (1332867120,), (1332867123,), (1332867131,), (1332867171,), (1332867174,), (1332867186,), (1332867188,), (1332867191,), (1332873906,), (1332873909,), (1332873911,), (1332873913,), (1332873917,), (1332873925,), (1332873928,), (1332873929,), (1332873931,), (1332873932,), (1332873933,), (1332873939,), (1332873940,), (1332873943,), (1332873946,), (1332873950,), (1332873952,), (1332873959,), (1332873960,), (1332873966,), (1332873971,), (1332873972,), (1332873974,), (1332873980,), (1332873981,), (1332873984,), (1332873986,), (1332873988,), (1332873991,), (1332873995,), (1332873997,), (1332874004,), (1332874007,), (1332874011,), (1332874013,), (1332874016,), (1332874017,), (1332874019,), (1332874021,), (1332874024,), (1332874027,), (1332874039,), (1332874043,), (1332874045,), (1332874049,), (1332874053,), (1332874054,), (1332874055,), (1332857760,), (1332867198,), (1332867200,), (1332867203,), (1332867205,), (1332867207,), (1332867209,), (1332867212,), (1332867214,), (1332867268,), (1332867429,), (1332867598,), (1332867706,), (1332868137,), (1332868300,), (1332868377,), (1332868402,), (1332868483,), (1332868552,), (1332868771,), (1332868843,), (1332868924,), (1332868996,), (1332869059,), (1332869064,), (1332869082,), (1332869083,), (1332869085,), (1332869087,), (1332869094,), (1332869117,), (1332873831,), (1332873853,), (1332873861,), (1332873864,), (1332873893,), (1332873895,), (1332873898,), (1332873901,), (1332869327,), (1332869403,), (1332869462,), (1332869547,), (1332869649,), (1332869751,), (1332869898,), (1332869968,), (1332870024,), (1332870056,), (1332870058,), (1332870105,), (1332870109,), (1332870112,), (1332870113,), (1332870115,), (1332870116,), (1332872404,), (1332872416,), (1332872418,), (1332872422,), (1332872426,), (1332872429,), (1332872433,), (1332872440,), (1332872441,), (1332872442,), (1332872508,), (1332872672,), (1332872799,), (1332873171,), (1332873234,), (1332873237,), (1332873240,), (1332873243,), (1332873245,), (1332873250,), (1332873252,), (1332873255,), (1332873258,), (1332873261,), (1332873265,), (1332873274,), (1332873276,), (1332873278,), (1332873280,), (1332873281,), (1332873312,), (1332873674,), (1332873677,), (1332873680,), (1332873682,), (1332873685,), (1332873698,), (1332873744,), (1332873746,), (1332873749,), (1332873788,), (1332866440,), (1332870241,), (1332870258,), (1332870263,), (1332870291,), (1332870294,), (1332870297,), (1332870314,), (1332870317,), (1332870319,), (1332870321,), (1332870324,), (1332870327,), (1332870333,), (1332870334,), (1332870337,), (1332870338,), (1332870341,), (1332870342,), (1332870345,), (1332870346,), (1332870348,), (1332870349,), (1332870358,), (1332870359,), (1332870436,), (1332870438,), (1332870896,), (1332870965,), (1332871041,), (1332871049,), (1332871050,), (1332871239,), (1332871265,), (1332871267,), (1332871269,), (1332871272,), (1332871341,), (1332871470,), (1332871566,), (1332871570,), (1332871574,), (1332871588,), (1332871603,), (1332871606,), (1332871613,), (1332871615,), (1332871617,), (1332871642,), (1332871644,), (1332871656,), (1332871659,), (1332871664,), (1332871667,), (1332871690,), (1332871711,), (1332871743,), (1332871810,), (1332871873,), (1332871940,), (1332872113,), (1332872117,), (1332872120,), (1332872124,), (1332872127,), (1332872165,), (1332872284,), (1332872286,), (1332872289,), (1332872297,), (1332872309,), (1332872380,), (1332872394,), (1332872395,), (1332872397,), (1332872399,), (1332872401,), (1332869890,), (1332870368,), (1332870370,), (1332870371,), (1332870374,), (1332870376,), (1332870379,), (1332870408,), (1332870417,), (1332870418,), (1332870435,), (1332870444,), (1332870448,), (1332870452,), (1332870456,), (1332870459,), (1332870461,), (1332870464,), (1332870466,), (1332870467,), (1332870469,), (1332870471,), (1332870474,), (1332870481,), (1332870482,), (1332870486,), (1332870490,), (1332870493,), (1332870563,), (1332870568,), (1332870589,), (1332870594,), (1332870596,), (1332870600,), (1332870603,), (1332870832,), (1332871051,), (1332871053,), (1332871055,), (1332871118,), (1332871184,), (1332871480,), (1332871481,), (1332871483,), (1332871485,), (1332871486,), (1332871487,), (1332871489,), (1332871490,), (1332871491,), (1332871492,), (1332871550,), (1332871551,), (1332871555,), (1332871558,), (1332871561,), (1332874579,), (1332874575,), (1332874577,), (1332874656,), (1332874659,), (1332876326,), (1332876331,), (1332876335,), (1332876339,), (1332876340,), (1332876383,), (1332876384,), (1332876385,), (1332876387,), (1332876397,), (1332876398,), (1332876401,), (1332876402,), (1332876404,), (1332876405,), (1332876407,), (1332876408,), (1332876427,), (1332876429,), (1332876472,), (1332876590,), (1332876681,), (1332876684,), (1332876692,), (1332876696,), (1332876749,), (1332876793,), (1332876796,), (1332876800,), (1332876803,), (1332876806,), (1332876810,), (1332876829,), (1332876833,), (1332876836,), (1332876838,), (1332876840,), (1332876863,), (1332876865,), (1332876869,), (1332876871,), (1332876875,), (1332877365,), (1332877418,), (1332877488,), (1332877498,), (1332877733,), (1332877738,), (1332877742,), (1332877745,), (1332877765,), (1332877751,), (1332877752,), (1332877755,), (1332877758,), (1332877762,), (1332877782,), (1332877785,), (1332877837,), (1332877907,), (1332878213,), (1332878216,), (1332878219,), (1332878222,), (1332878224,), (1332878226,), (1332878232,), (1332878234,), (1332878237,), (1332878240,), (1332878286,), (1332878336,), (1332878341,), (1332878346,), (1332878354,), (1332878356,), (1332878383,), (1332878386,), (1332878389,), (1332878394,), (1332878398,), (1332878402,), (1332878434,), (1332878437,), (1332878439,), (1332878442,), (1332878444,), (1332878463,), (1332878466,), (1332878468,), (1332878488,), (1332878494,), (1332878504,), (1332879746,), (1332879750,), (1332879754,), (1332879761,), (1332879788,), (1332879794,), (1332879799,), (1332879802,), (1332880292,), (1332880295,), (1332880298,), (1332880457,), (1332880575,), (1332881727,), (1332881731,), (1332881735,), (1332881738,), (1332881742,), (1332881794,), (1332881797,), (1332881798,), (1332881799,), (1332881866,), (1332882563,), (1332882730,), (1332882877,), (1332883502,), (1332883571,), (1332883576,), (1332883581,), (1332883642,), (1332883666,), (1332883726,), (1332883712,), (1332883715,), (1332883718,), (1332883719,), (1332883731,), (1332883733,), (1332883735,), (1332883736,), (1332883739,), (1332883743,), (1332883754,), (1332883755,), (1332883756,), (1332883758,), (1332883760,), (1332883772,), (1332883780,), (1332883782,), (1332883785,), (1332883787,), (1332883793,), (1332883795,), (1332883805,), (1332883816,), (1332883821,), (1332883829,), (1332883915,), (1332883916,), (1332884059,), (1332884060,), (1332884129,), (1332884130,), (1332884133,), (1332884134,), (1332884141,), (1332884147,), (1332884148,), (1332884212,), (1332884221,), (1332884229,), (1332884768,), (1332884891,), (1332885018,), (1332885113,), (1332885130,), (1332885488,), (1332885495,), (1332885499,), (1332885506,), (1332885526,), (1332885529,), (1332885531,), (1332885532,), (1332885536,), (1332885539,), (1332885578,), (1332885582,), (1332885586,), (1332885590,), (1332885610,), (1332885614,), (1332885624,), (1332885633,), (1332885636,), (1332885664,), (1332885665,), (1332885669,), (1332885670,), (1332885671,), (1332885672,), (1332885680,), (1332885681,), (1332885691,), (1332885692,), (1332885714,), (1332885716,), (1332885718,), (1332885720,), (1332885723,), (1332885919,), (1332885921,), (1332885925,), (1332885972,), (1332885974,), (1332885986,), (1332885993,), (1332886002,), (1332886005,), (1332886341,), (1332886327,), (1332886330,), (1332886332,), (1332886335,), (1332886337,), (1332886699,), (1332886713,), (1332886725,), (1332886742,), (1332886747,), (1332886751,), (1332886794,), (1332886798,), (1332886802,), (1332886804,), (1332887081,), (1332887149,), (1332887206,), (1332887265,), (1332887335,), (1332887412,), (1332887436,), (1332887438,), (1332887440,), (1332887707,), (1332887791,), (1332887802,), (1332887806,), (1332887808,), (1332887841,), (1332887854,), (1332887861,), (1332887864,), (1332887867,), (1332888273,), (1332888274,), (1332888290,), (1332888304,), (1332888339,), (1332888342,), (1332888344,), (1332888346,), (1332888349,), (1332888350,), (1332888378,), (1332888380,), (1332888396,), (1332888412,), (1332888415,), (1332888504,), (1332888506,), (1332888507,), (1332888523,), (1332888530,), (1332888550,), (1332888567,), (1332888573,), (1332888581,), (1332888595,), (1332888785,), (1332888790,), (1332888793,), (1332888797,), (1332888801,), (1332888803,), (1332888854,), (1332888857,), (1332888860,), (1332888863,), (1332888866,), (1332889219,), (1332889284,), (1332889355,), (1332889433,), (1332889474,), (1332889611,), (1332889560,), (1332890574,), (1332890675,), (1332890793,), (1332890946,), (1332891031,), (1332891158,), (1332891276,), (1332891280,), (1332891284,), (1332891287,), (1332891549,), (1332891639,), (1332891642,), (1332891646,), (1332891709,), (1332891712,), (1332891715,), (1332891719,), (1332891721,), (1332891724,), (1332891764,), (1332891767,), (1332891771,), (1332891775,), (1332891777,), (1332891836,), (1332891838,), (1332891842,), (1332891846,), (1332891852,), (1332891876,), (1332891885,), (1332891887,), (1332891890,), (1332891893,), (1332891894,), (1332891899,), (1332891900,), (1332891903,), (1332891905,), (1332891908,), (1332891932,), (1332891937,), (1332891951,), (1332891963,), (1332891972,), (1332891997,), (1332891999,), (1332892001,), (1332892002,), (1332892004,), (1332892007,), (1332892008,), (1332892014,), (1332892022,), (1332892457,), (1332892458,), (1332892460,), (1332892462,), (1332892465,), (1332892692,), (1332892738,), (1332892790,), (1332892799,), (1332892804,), (1332892810,), (1332892851,), (1332892833,), (1332892840,), (1332892843,), (1332892847,), (1332893155,), (1332893160,), (1332893164,), (1332893167,), (1332893171,), (1332893243,), (1332893250,), (1332893255,), (1332893259,), (1332893261,), (1332893263,), (1332893267,), (1332893268,), (1332893270,), (1332893274,), (1332893278,), (1332893300,), (1332893302,), (1332893305,), (1332893307,), (1332893311,), (1332893435,), (1332893451,), (1332893526,), (1332893569,), (1332893572,), (1332893604,), (1332893671,), (1332893747,), (1332893817,), (1332894117,), (1332894175,), (1332894196,), (1332894200,), (1332894207,), (1332894211,), (1332894333,), (1332894336,), (1332894340,), (1332894343,), (1332894346,), (1332894350,), (1332894351,), (1332894352,), (1332894353,), (1332894355,), (1332894379,), (1332894380,), (1332894383,), (1332894388,), (1332894391,), (1332894393,), (1332894479,), (1332894563,), (1332894623,), (1332894629,), (1332894632,), (1332894783,), (1332894786,), (1332894789,), (1332894792,), (1332894795,), (1332894798,), (1332894802,), (1332894804,), (1332894805,), (1332894807,), (1332894809,), (1332894853,), (1332894856,), (1332894859,), (1332894862,), (1332894865,), (1332894869,), (1332894955,), (1332894947,), (1332894949,), (1332894952,), (1332894996,), (1332894997,), (1332895001,), (1332895002,), (1332895005,), (1332895006,), (1332895008,), (1332895009,), (1332895012,), (1332895013,), (1332895406,), (1332895409,), (1332895415,), (1332895424,), (1332895460,), (1332895512,), (1332895524,), (1332895528,), (1332895536,), (1332895539,), (1332895542,), (1332895560,), (1332895564,), (1332895568,), (1332895572,), (1332895575,), (1332895632,), (1332895634,), (1332895638,), (1332895642,), (1332895645,), (1332895649,), (1332895938,), (1332896061,), (1332896226,), (1332896518,), (1332896642,), (1332896648,), (1332896655,), (1332896959,), (1332896963,), (1332896967,), (1332896987,), (1332896990,), (1332896997,), (1332897591,), (1332897606,), (1332897830,), (1332897834,), (1332897951,), (1332897952,), (1332897957,), (1332897958,), (1332897963,), (1332897964,), (1332897968,), (1332897970,), (1332897972,), (1332897974,), (1332897989,), (1332897997,), (1332898497,), (1332898515,), (1332898520,), (1332898527,), (1332898651,), (1332898658,), (1332898664,), (1332898678,), (1332898700,), (1332898705,), (1332899064,), (1332899071,), (1332899082,), (1332899085,), (1332899089,), (1332899095,), (1332899096,), (1332899097,), (1332899101,), (1332899104,), (1332899152,), (1332899136,), (1332899137,), (1332899142,), (1332899534,), (1332899545,), (1332899574,), (1332899589,), (1332899593,), (1332899603,), (1332899606,), (1332899612,), (1332899621,), (1332899624,), (1332899663,), (1332899666,), (1332899669,), (1332899672,), (1332899675,), (1332899719,), (1332899720,), (1332899729,), (1332899730,), (1332899739,), (1332899754,), (1332899760,), (1332899762,), (1332899765,), (1332899766,), (1332899768,), (1332899770,), (1332899778,), (1332899780,), (1332899785,), (1332899789,), (1332899793,), (1332899801,), (1332899803,), (1332899807,), (1332899808,), (1332899812,), (1332899814,), (1332899842,), (1332899845,), (1332899848,), (1332899858,), (1332899868,), (1332899872,), (1332899958,), (1332899964,), (1332899973,), (1332899983,), (1332899987,), (1332900028,), (1332900143,), (1332900150,), (1332900160,), (1332900167,), (1332900495,), (1332900498,), (1332900503,), (1332900506,), (1332901114,), (1332901207,), (1332901348,), (1332901467,), (1332901580,), (1332901664,), (1332901991,), (1332901996,), (1332902000,), (1332902004,), (1332902183,), (1332902208,), (1332902273,), (1332902365,), (1332902421,), (1332902494,), (1332903098,), (1332903224,), (1332903402,), (1332903448,), (1332904015,), (1332903653,), (1332903708,), (1332903794,), (1332903817,), (1332903926,), (1332904230,), (1332904242,), (1332904276,), (1332904278,), (1332904285,), (1332904287,), (1332904877,), (1332904962,), (1332904972,), (1332905208,), (1332905212,), (1332905264,), (1332905266,), (1332905270,), (1332905271,), (1332905274,), (1332905276,), (1332905433,), (1332905446,), (1332905457,), (1332905463,), (1332905469,), (1332906175,), (1332906185,), (1332906190,), (1332906201,), (1332906234,), (1332906286,), (1332906352,), (1332906428,), (1332906434,), (1332906585,), (1332906587,), (1332906612,), (1332906617,), (1332906623,), (1332906626,), (1332906796,), (1332906800,), (1332906804,), (1332906819,), (1332906824,), (1332906829,), (1332906835,), (1332906842,), (1332906846,), (1332906866,), (1332906868,), (1332906872,), (1332906873,), (1332906885,), (1332906890,), (1332906895,), (1332906898,), (1332906903,), (1332906907,), (1332906983,), (1332906990,), (1332907000,), (1332907010,), (1332907015,), (1332907018,), (1332907058,), (1332907071,), (1332907087,), (1332907096,), (1332907104,), (1332907116,), (1332907120,), (1332907145,), (1332907146,), (1332907150,), (1332907151,), (1332907209,), (1332906861,), (1332906863,), (1332906918,), (1332906922,), (1332906930,), (1332906948,), (1332906965,), (1332906970,), (1332907023,), (1332907028,), (1332907032,), (1332907036,), (1332907049,), (1332907127,), (1332907129,), (1332907133,), (1332907134,), (1332907138,), (1332907139,), (1332907140,), (1332907144,), (1332907174,), (1332907177,), (1332907181,), (1332907183,), (1332907187,), (1332907191,), (1332907313,), (1332907316,), (1332907321,), (1332907324,), (1332907326,), (1332907330,), (1332907341,), (1332907350,), (1332907360,), (1332907430,), (1332907435,), (1332907441,), (1332907444,), (1332907446,), (1332907451,), (1332907513,), (1332907515,), (1332907522,), (1332907524,), (1332907535,), (1332907536,), (1332907540,), (1332907541,), (1332907658,), (1332907662,), (1332907675,), (1332907684,), (1332907688,), (1332907692,), (1332907729,), (1332907734,), (1332907738,), (1332907742,), (1332907746,), (1332907938,), (1332907943,), (1332907946,), (1332907952,), (1332907957,), (1332907963,), (1332908125,), (1332908212,), (1332908232,), (1332908268,), (1332908382,), (1332908395,), (1332908440,), (1332908479,), (1332908525,), (1332909132,), (1332909169,), (1332909265,), (1332909306,), (1332909675,), (1332909677,), (1332909644,), (1332909646,), (1332909649,), (1332909651,), (1332909656,), (1332909658,), (1332909662,), (1332909665,), (1332909671,), (1332909672,), (1332909688,), (1332909734,), (1332909799,), (1332909839,), (1332910097,), (1332910101,), (1332910107,), (1332910112,), (1332910119,), (1332910123,), (1332910397,), (1332910401,), (1332910407,), (1332910413,), (1332910443,), (1332910463,), (1332910487,), (1332910503,), (1332910514,), (1332910519,), (1332910566,), (1332910570,), (1332910576,), (1332910578,), (1332910585,), (1332910593,), (1332910643,), (1332910682,), (1332910734,), (1332910787,), (1332910836,), (1332910892,), (1332911002,), (1332911093,), (1332911238,), (1332911456,), (1332911899,), (1332911903,), (1332911918,), (1332911933,), (1332911951,), (1332912313,), (1332912318,), (1332912371,), (1332912377,), (1332912407,), (1332912430,), (1332912453,), (1332912538,), (1332912569,), (1332912641,), (1332913016,), (1332913062,), (1332913143,), (1332913198,), (1332913300,), (1332913368,), (1332913934,), (1332913966,), (1332913984,), (1332914038,), (1332914044,), (1332914428,), (1332914430,), (1332914443,), (1332914444,), (1332914447,), (1332914448,), (1332914452,), (1332914453,), (1332914696,), (1332914700,), (1332914705,), (1332914709,), (1332914713,), (1332914716,), (1332914729,), (1332914733,), (1332914736,), (1332914741,), (1332914751,), (1332914832,), (1332914816,), (1332914825,), (1332914828,), (1332915110,), (1332915142,), (1332915145,), (1332915147,), (1332915150,), (1332915154,), (1332915249,), (1332915252,), (1332915257,), (1332915447,), (1332915452,), (1332915601,), (1332915602,), (1332915607,), (1332915608,), (1332916076,), (1332916079,), (1332916121,), (1332916129,), (1332916193,), (1332916194,), (1332916198,), (1332916203,), (1332916207,), (1332916212,), (1332916243,), (1332916248,), (1332916253,), (1332916257,), (1332916261,), (1332916266,), (1332916354,), (1332916358,), (1332916362,), (1332916366,), (1332916370,), (1332916380,), (1332916381,), (1332916383,), (1332916388,), (1332916393,), (1332916436,), (1332916438,), (1332916440,), (1332916444,), (1332916448,), (1332917086,), (1332917114,), (1332917143,), (1332917359,), (1332917367,), (1332917408,), (1332917412,), (1332917427,), (1332917443,), (1332917343,), (1332917345,), (1332917347,), (1332917353,), (1332917385,), (1332917401,), (1332917406,), (1332917458,), (1332917461,), (1332917465,), (1332917469,), (1332917891,), (1332917893,), (1332917894,), (1332917924,), (1332917989,), (1332917994,), (1332918137,), (1332918140,), (1332918144,), (1332918149,), (1332918157,), (1332918224,), (1332918226,), (1332918230,), (1332918231,), (1332918272,), (1332920900,), (1332922108,), (1332922109,), (1332921993,), (1332921994,), (1332922103,), (1332922104,), (1332922754,), (1332922758,), (1332922828,), (1332923564,), (1332923759,), (1332923760,), (1332923765,), (1332923766,), (1332923769,), (1332923771,), (1332923848,), (1332923901,), (1332923991,), (1332924013,), (1332924022,), (1332924035,), (1332924094,), (1332924097,), (1332924076,), (1332924077,), (1332924083,), (1332924085,), (1332924089,), (1332924091,), (1332924106,), (1332924110,), (1332924114,), (1332924119,), (1332924126,), (1332924435,), (1332924476,), (1332924485,), (1332924500,), (1332924534,), (1332924553,), (1332924615,), (1332924642,), (1332924681,), (1332924726,), (1332924785,), (1332924807,), (1332924813,), (1332924821,), (1332924895,), (1332924899,), (1332924912,), (1332924997,), (1332925032,), (1332925141,), (1332925147,), (1332925206,), (1332925211,), (1332925216,), (1332925219,), (1332925223,), (1332925234,), (1332925237,), (1332925239,), (1332925243,), (1332925248,), (1332925345,), (1332925350,), (1332925357,), (1332925362,), (1332925366,), (1332925374,), (1332925417,), (1332925419,), (1332925424,), (1332925463,), (1332925467,), (1332925473,), (1332925478,), (1332925482,), (1332925487,), (1332925540,), (1332925541,), (1332925548,), (1332925549,), (1332925554,), (1332925556,), (1332925560,), (1332925562,), (1332925567,), (1332925568,), (1332925579,), (1332925581,), (1332925582,), (1332925684,), (1332925853,), (1332926094,), (1332926287,), (1332926750,), (1332926668,), (1332926688,), (1332926694,), (1332926721,), (1332926761,), (1332926765,), (1332926768,), (1332926770,), (1332926775,), (1332926851,), (1332926856,), (1332926859,), (1332926864,), (1332926867,), (1332926871,), (1332926920,), (1332926924,), (1332926928,), (1332926931,), (1332926934,), (1332926980,), (1332926984,), (1332926988,), (1332926992,), (1332926996,), (1332927000,), (1332927045,), (1332927050,), (1332927054,), (1332927093,), (1332927099,), (1332927155,), (1332927156,), (1332927167,), (1332927168,), (1332927175,), (1332927176,), (1332927189,), (1332927190,), (1332927202,), (1332927204,), (1332927221,), (1332927226,), (1332927228,), (1332927230,), (1332927232,), (1332927235,), (1332927299,), (1332927304,), (1332927310,), (1332927367,), (1332927418,), (1332927636,), (1332927798,), (1332928308,), (1332928317,), (1332928321,), (1332929160,), (1332929353,), (1332929633,), (1332929808,), (1332929811,), (1332929849,), (1332929915,), (1332929918,), (1332929920,), (1332930403,), (1332930409,), (1332930416,), (1332930418,), (1332930422,), (1332930546,), (1332937549,), (1332937551,), (1332937554,), (1332937593,), (1332937657,), (1332937660,), (1332937662,), (1332937665,), (1332937667,), (1332937671,), (1332937698,), (1332937752,), (1332937755,), (1332937802,), (1332937807,), (1332937811,), (1332937856,), (1332937858,), (1332937862,), (1332937866,), (1332937870,), (1332937874,), (1332937922,), (1332937939,), (1332937944,), (1332937947,), (1332937961,), (1332937973,), (1332938015,), (1332938018,), (1332938022,), (1332938064,), (1332938068,), (1332938091,), (1332938127,), (1332938131,), (1332938137,), (1332938188,), (1332938163,), (1332938172,), (1332938255,), (1332938268,), (1332938271,), (1332938274,), (1332938276,), (1332938280,), (1332938320,), (1332938324,), (1332938326,), (1332938328,), (1332938330,), (1332938399,), (1332938402,), (1332938404,), (1332938474,), (1332938478,), (1332938482,), (1332938485,), (1332938489,), (1332938493,), (1332938627,), (1332938632,), (1332938636,), (1332938640,), (1332938643,), (1332938729,), (1332938737,), (1332938745,), (1332938750,), (1332938754,), (1332938758,), (1332938788,), (1332938816,), (1332938819,), (1332938870,), (1332938874,), (1332938878,), (1332938880,), (1332939034,), (1332939111,), (1332939151,), (1332939341,), (1332939676,), (1332939956,), (1332940205,), (1332940617,), (1332940620,), (1332940623,), (1332940626,), (1332941009,), (1332941012,), (1332941014,), (1332941016,), (1332941019,), (1332941304,), (1332941306,), (1332941309,), (1332942012,), (1332942017,), (1332942023,), (1332942033,), (1332942037,), (1332942166,), (1332942122,), (1332942126,), (1332942129,), (1332942132,), (1332942138,), (1332942294,), (1332942327,), (1332942338,), (1332942341,), (1332942408,), (1332942410,), (1332942463,), (1332942469,), (1332942472,), (1332942478,), (1332942691,), (1332942693,), (1332942695,), (1332942698,), (1332942740,), (1332942744,), (1332942747,), (1332942774,), (1332942849,), (1332942853,), (1332942927,), (1332942950,), (1332942962,), (1332942968,), (1332942972,), (1332942975,), (1332943030,), (1332943108,), (1332943123,), (1332943130,), (1332944044,), (1332944056,), (1332944075,), (1332944080,), (1332944084,), (1332944379,), (1332944383,), (1332944386,), (1332944450,), (1332944695,), (1332944697,), (1332944699,), (1332944830,), (1332944833,), (1332944837,), (1332944841,), (1332944845,), (1332944917,), (1332944929,), (1332944935,), (1332944937,), (1332945038,), (1332945041,), (1332945043,), (1332945049,), (1332945108,), (1332945112,), (1332945123,), (1332945128,), (1332945134,), (1332945139,), (1332945165,), (1332945170,), (1332945173,), (1332945177,), (1332945274,), (1332945243,), (1332945246,), (1332945249,), (1332945267,), (1332945270,), (1332945311,), (1332945315,), (1332945337,), (1332945341,), (1332945371,), (1332945374,), (1332945378,), (1332945381,), (1332945388,), (1332945395,), (1332945465,), (1332945470,), (1332945544,), (1332945579,), (1332945594,), (1332945601,), (1332945653,), (1332945780,), (1332945784,), (1332945788,), (1332945843,), (1332945846,), (1332945848,), (1332945853,), (1332945877,), (1332946039,), (1332946044,), (1332946107,), (1332946108,), (1332946155,), (1332946160,), (1332946166,), (1332946177,), (1332946182,), (1332946332,), (1332946356,), (1332946359,), (1332946360,), (1332946364,), (1332946389,), (1332947592,), (1332947649,), (1332947692,), (1332947716,), (1332947798,), (1332947802,), (1332947812,), (1332947826,), (1332947853,), (1332947927,), (1332948401,), (1332948406,), (1332948409,), (1332948452,), (1332948512,), (1332948517,), (1332948519,), (1332948524,), (1332948567,), (1332949005,), (1332949008,), (1332949011,), (1332949014,), (1332949064,), (1332949087,), (1332949089,), (1332949094,), (1332949101,), (1332949103,), (1332949227,), (1332949199,), (1332949214,), (1332949225,), (1332949336,), (1332949339,), (1332949341,), (1332949345,), (1332949372,), (1332964655,), (1333001394,), (1333001494,), (1333001737,), (1333002098,), (1333002352,), (1333002353,), (1333002389,), (1333002462,), (1333003653,), (1333004220,), (1333004258,), (1333004417,), (1333004421,), (1333005257,), (1333005676,), (1333005679,), (1333005804,), (1333005845,), (1333006024,), (1333006026,), (1333006028,), (1333006089,), (1333006094,), (1333007366,), (1333007636,), (1333007637,), (1333007687,), (1333007836,), (1333007882,), (1333007886,), (1333008234,), (1333008237,), (1333008380,), (1333008564,), (1333008562,), (1333008689,), (1333009317,), (1333009424,), (1333009612,), (1333009614,), (1333009616,), (1333009651,), (1333009654,), (1333009657,), (1333009660,), (1333012947,), (1333013234,), (1333013238,), (1333013288,), (1333013331,), (1333013334,), (1333013336,), (1333013747,), (1333013766,), (1333014158,), (1333014161,), (1333014284,), (1333014436,), (1333014764,), (1333014767,), (1333015710,), (1333015884,), (1333016424,), (1333016426,), (1333016428,), (1333016493,), (1333016936,), (1333017021,), (1333017096,), (1333017373,), (1333017377,), (1333017436,), (1333017489,), (1333017491,), (1333018243,), (1333017609,), (1333018426,), (1333018428,), (1333018430,), (1333019217,), (1333019342,), (1333019551,), (1333019553,), (1333019894,), (1333020205,), (1333020208,), (1333020211,), (1333020257,), (1333020381,), (1333020433,), (1333020436,), (1333020785,), (1333021309,), (1333021460,), (1333021875,), (1333021877,), (1333021917,), (1333022262,), (1333022267,), (1333022277,), (1333022280,), (1333022389,), (1333022615,), (1333022904,), (1333022909,), (1333022913,), (1333022932,), (1333022937,), (1333023034,), (1333022996,), (1333023029,), (1333023115,), (1333023222,), (1333023224,), (1333023226,), (1333023704,), (1333024158,), (1333024432,), (1333025211,), (1333025214,), (1333025217,), (1333027497,), (1333027673,), (1333027675,), (1333028209,), (1333028216,), (1333028287,), (1333028336,), (1333028338,), (1333028943,), (1333029131,), (1333029134,), (1333029137,), (1333029251,), (1333029245,), (1333029248,), (1333029250,), (1333029299,), (1333029301,), (1333029333,), (1333029853,), (1333029859,), (1333029907,), (1333029910,), (1333030047,), (1333030098,), (1333030102,), (1333030112,), (1333030155,), (1333030158,), (1333030160,), (1333030518,), (1333031028,), (1333031394,), (1333031569,), (1333031724,), (1333031896,), (1333031901,), (1333032317,), (1333032319,), (1333032528,), (1333032583,), (1333032587,), (1333032602,), (1333032758,), (1333032761,), (1333032762,), (1333032766,), (1333032813,), (1333032802,), (1333032807,), (1333032809,), (1333033154,), (1333033169,), (1333033184,), (1333033703,), (1333033709,), (1333033712,), (1333033875,), (1333033877,), (1333033950,), (1333033969,), (1333033972,), (1333034005,), (1333034006,), (1333034056,), (1333034057,), (1333034596,), (1333035064,), (1333035065,), (1333035201,), (1333035414,), (1333035416,), (1333035417,), (1333035487,), (1333035500,), (1333035565,), (1333035561,), (1333035563,), (1333035782,), (1333035784,), (1333035871,), (1333035874,), (1333035876,), (1333035913,), (1333035964,), (1333035968,), (1333035971,), (1333035974,), (1333036027,), (1333036031,), (1333037014,), (1333037017,), (1333037020,), (1333037339,), (1333037498,), (1333037687,), (1333037736,), (1333038017,), (1333038025,), (1333038029,), (1333038031,), (1333038397,), (1333038463,), (1333038464,), (1333038465,), (1333038467,), (1333038696,), (1333038698,), (1333038753,), (1333038759,), (1333038765,), (1333038774,), (1333038780,), (1333038785,), (1333038808,), (1333039074,), (1333040672,), (1333040676,), (1333040679,), (1333040722,), (1333040724,), (1333040776,), (1333040779,), (1333041754,), (1333041787,), (1333041791,), (1333041794,), (1333041971,), (1333042061,), (1333042131,), (1333042136,), (1333042140,), (1333042143,), (1333042489,), (1333042490,), (1333042493,), (1333042534,), (1333042538,), (1333042540,), (1333042584,), (1333042586,), (1333042994,), (1333043068,), (1333043072,), (1333043225,), (1333043478,), (1333043506,), (1333043526,), (1333043532,), (1333043537,), (1333043569,), (1333043626,), (1333043682,), (1333043685,), (1333043873,), (1333043884,), (1333044342,), (1333044398,), (1333044402,), (1333045105,), (1333045225,), (1333045520,), (1333045522,), (1333045524,), (1333045864,), (1333045928,), (1333045996,), (1333045998,), (1333045999,), (1333046184,), (1333046360,), (1333046482,), (1333046561,), (1333046563,), (1333046566,), (1333046654,), (1333046655,), (1333046659,), (1333046861,), (1333049574,), (1333052604,), (1333052900,), (1333052903,), (1333052906,), (1333052908,), (1333052930,), (1333053050,), (1333053153,), (1333053167,), (1333053169,), (1333053172,), (1333053277,), (1333053370,), (1333053373,), (1333053382,), (1333053385,), (1333053441,), (1333053444,), (1333053485,), (1333053594,), (1333053596,), (1333053653,), (1333053655,), (1333053751,), (1333054370,), (1333054242,), (1333054426,), (1333054431,), (1333055219,), (1333055408,), (1333055484,), (1333055677,), (1333055681,), (1333056063,), (1333056066,), (1333056189,), (1333056197,), (1333056299,), (1333056707,), (1333057944,), (1333057854,), (1333058832,), (1333058835,), (1333059869,), (1333060403,), (1333060720,), (1333060759,), (1333061462,), (1333061464,), (1333061522,), (1333061601,), (1333061599,), (1333061924,), (1333062371,), (1333062483,), (1333062487,), (1333062683,), (1333062712,), (1333062714,), (1333062807,), (1333062846,), (1333062885,), (1333062888,), (1333062931,), (1333063071,), (1333063072,), (1333063324,), (1333063330,), (1333063417,), (1333063514,), (1333063596,), (1333063662,), (1333063975,), (1333064221,), (1333064433,), (1333064471,), (1333064479,), (1333064855,), (1333064898,), (1333064901,), (1333064905,), (1333064990,), (1333065000,), (1333065028,), (1333065031,), (1333065149,), (1333065221,), (1333065435,), (1333065437,), (1333065534,), (1333065623,), (1333065694,), (1333065692,), (1333066723,), (1333067091,), (1333067094,), (1333067162,), (1333067430,), (1333067518,), (1333069117,), (1333069326,), (1333069328,), (1333069330,), (1333069360,), (1333069363,), (1333069653,), (1333069701,), (1333069702,), (1333069755,), (1333069814,), (1333069817,), (1333069820,), (1333069873,), (1333069876,), (1333069909,), (1333069911,), (1333069946,), (1333070215,), (1333070212,), (1333070408,), (1333070412,), (1333070488,), (1333070631,), (1333070876,), (1333071026,), (1333071028,), (1333071095,), (1333072253,), (1333072257,), (1333072773,), (1333072776,), (1333073188,), (1333073190,), (1333073193,), (1333073196,), (1333073294,), (1333073299,), (1333073300,), (1333073301,), (1333076810,), (1333074180,), (1333077015,), (1333077019,), (1333077174,), (1333077175,), (1333077177,), (1333077231,), (1333078112,), (1333078188,), (1333079000,), (1333079260,), (1333079257,), (1333079450,), (1333079453,), (1333079537,), (1333079856,), (1333079866,), (1333079981,), (1333080884,), (1333080887,), (1333080889,), (1333080891,), (1333081151,), (1333081155,), (1333081158,), (1333081201,), (1333081204,), (1333081207,), (1333081325,), (1333081335,), (1333081480,), (1333081484,), (1333081487,), (1333081853,), (1333081848,), (1333081910,), (1333081956,), (1333082000,), (1333082042,), (1333082044,), (1333082046,), (1333082146,), (1333082149,), (1333082152,), (1333082193,), (1333082195,), (1333082197,), (1333082257,), (1333082260,), (1333082314,), (1333082377,), (1333082380,), (1333082382,), (1333082691,), (1333082766,), (1333082769,), (1333082816,), (1333082819,), (1333083082,), (1333083083,), (1333083084,), (1333083167,), (1333083169,), (1333083213,), (1333083216,), (1333083223,), (1333083225,), (1333083316,), (1333083308,), (1333083312,), (1333083359,), (1333083361,), (1333083364,), (1333083366,), (1333083369,), (1333083444,), (1333083446,), (1333084263,), (1333084266,), (1333084277,), (1333084403,), (1333084410,), (1333085094,), (1333085189,), (1333085280,), (1333085387,), (1333086463,), (1333086564,), (1333087822,), (1333090230,), (1333090210,), (1333090224,), (1333094005,), (1333094008,), (1333094010,), (1333094012,), (1333094125,), (1333094139,), (1333094141,), (1333094150,), (1333094240,), (1333094335,), (1333094383,), (1333094425,), (1333094428,), (1333094535,), (1333094538,), (1333094559,), (1333094581,), (1333094663,), (1333094721,), (1333094800,), (1333094900,), (1333094939,), (1333094942,), (1333095107,), (1333094956,), (1333095058,), (1333095063,), (1333095091,), (1333095221,), (1333095223,), (1333095226,), (1333095229,), (1333095327,), (1333095331,), (1333095334,), (1333095337,), (1333095374,), (1333095375,), (1333095377,), (1333095385,), (1333095388,), (1333095590,), (1333095594,), (1333095596,), (1333095598,), (1333095673,), (1333095675,), (1333095680,), (1333095712,), (1333095735,), (1333095742,), (1333095767,), (1333095769,), (1333095771,), (1333095772,), (1333095775,), (1333095809,), (1333095811,), (1333095812,), (1333095821,), (1333095907,), (1333095910,), (1333095913,), (1333095915,), (1333095919,), (1333096065,), (1333096079,), (1333096084,), (1333096092,), (1333096133,), (1333096138,), (1333096248,), (1333096256,), (1333096259,), (1333096261,), (1333096362,), (1333096364,), (1333096376,), (1333096377,), (1333096380,), (1333096384,), (1333096427,), (1333096428,), (1333096429,), (1333096432,), (1333096440,), (1333096490,), (1333096494,), (1333096496,), (1333096498,), (1333096499,), (1333096501,), (1333096525,), (1333096528,), (1333096531,), (1333096533,), (1333096582,), (1333096574,), (1333096576,), (1333096579,), (1333096580,), (1333096615,), (1333096651,), (1333096661,), (1333096667,), (1333096677,), (1333096754,), (1333097313,), (1333097343,), (1333097402,), (1333098297,), (1333098375,), (1333098445,), (1333098514,), (1333099004,), (1333099034,), (1333099036,), (1333099039,), (1333099041,), (1333099079,), (1333099082,), (1333099085,), (1333099087,), (1333099090,), (1333099091,), (1333099356,), (1333099367,), (1333099368,), (1333099372,), (1333099845,), (1333099906,), (1333100062,), (1333100145,), (1333100148,), (1333100665,), (1333100669,), (1333101656,), (1333101659,), (1333101664,), (1333101756,), (1333101777,), (1333101794,), (1333101803,), (1333101807,), (1333101883,), (1333101884,), (1333101886,), (1333101888,), (1333101891,), (1333101893,), (1333101930,), (1333101935,), (1333101938,), (1333101940,), (1333102144,), (1333102152,), (1333102170,), (1333102189,), (1333102194,), (1333102312,), (1333102303,), (1333102307,), (1333102310,), (1333102603,), (1333102652,), (1333102663,), (1333102675,), (1333102712,), (1333102736,), (1333102739,), (1333102741,), (1333102743,), (1333102780,), (1333102783,), (1333102833,), (1333102894,), (1333102977,), (1333103387,), (1333103441,), (1333103518,), (1333103524,), (1333103528,), (1333105065,), (1333112700,), (1333116664,), (1333116678,), (1333116680,), (1333116681,), (1333116710,), (1333116714,), (1333116717,), (1333116722,), (1333116727,), (1333117549,), (1333117554,), (1333117558,), (1333117562,), (1333117574,), (1333117661,), (1333117663,), (1333117701,), (1333117704,), (1333117803,), (1333117806,), (1333117811,), (1333117815,), (1333117818,), (1333117851,), (1333117852,), (1333117854,), (1333117865,), (1333117869,), (1333117892,), (1333117894,), (1333117896,), (1333117898,), (1333117932,), (1333117937,), (1333117992,), (1333117995,), (1333118088,), (1333118102,), (1333118336,), (1333118388,), (1333118392,), (1333118410,), (1333119014,), (1333119100,), (1333119185,), (1333119274,), (1333119416,), (1333119540,), (1333119542,), (1333119546,), (1333119550,), (1333119554,), (1333120147,), (1333120151,), (1333120155,), (1333120159,), (1333120161,), (1333192286,), (1333192295,), (1333192297,), (1333192418,), (1333192425,), (1333192427,), (1332834889,), (1332864540,), (1332864646,), (1332864647,), (1332864648,), (1332864649,), (1332864651,), (1332864652,), (1332864731,), (1332864735,), (1332877345,), (1332877347,), (1332877503,), (1332877506,), (1332877571,), (1332877575,), (1332877577,), (1332877579,), (1332877582,), (1332877589,), (1332877749,), (1332864940,), (1332865023,), (1332865079,), (1332865082,), (1332865085,), (1332865106,), (1332865152,), (1332865193,), (1332865195,), (1332865204,), (1332865230,), (1332865412,), (1332865467,), (1332865489,), (1332865560,), (1332865561,), (1332865562,), (1332865563,), (1332865589,), (1332865590,), (1332865591,), (1332875862,), (1332875915,), (1332876023,), (1332876025,), (1332876026,), (1332876028,), (1332876074,), (1332876115,), (1332876232,), (1332876243,), (1332876244,), (1332876276,), (1332876285,), (1332876298,), (1332876341,), (1332876346,), (1332876349,), (1332876351,), (1332876353,), (1332876356,), (1332876363,), (1332876611,), (1332876613,), (1332876639,), (1332876643,), (1332876647,), (1332876659,), (1332876660,), (1332876668,), (1332876752,), (1332876770,), (1332876782,), (1332876783,), (1332876785,), (1332876787,), (1332876789,), (1332876817,), (1332876818,), (1332876819,), (1332876820,), (1332876821,), (1332876823,), (1332876852,), (1332876924,), (1332877041,), (1332877167,), (1332877309,), (1332877344,), (1332865565,), (1332865568,), (1332865571,), (1332865575,), (1332865577,), (1332865579,), (1332865586,), (1332865587,), (1332865588,), (1332865598,), (1332865608,), (1332865670,), (1332865673,), (1332865676,), (1332865679,), (1332865682,), (1332865683,), (1332865689,), (1332865690,), (1332865692,), (1332865694,), (1332865705,), (1332865708,), (1332865712,), (1332865715,), (1332865718,), (1332865720,), (1332874346,), (1332874405,), (1332874486,), (1332874532,), (1332874544,), (1332874547,), (1332874568,), (1332874574,), (1332874582,), (1332874586,), (1332874589,), (1332874598,), (1332874606,), (1332874612,), (1332874616,), (1332874619,), (1332874624,), (1332874665,), (1332874668,), (1332874671,), (1332874685,), (1332874761,), (1332874817,), (1332874870,), (1332874872,), (1332874874,), (1332874877,), (1332875124,), (1332875236,), (1332875378,), (1332875512,), (1332875599,), (1332875690,), (1332875708,), (1332875713,), (1332875784,), (1332875815,), (1332847807,), (1332865727,), (1332865729,), (1332865732,), (1332865830,), (1332865988,), (1332866082,), (1332866317,), (1332866335,), (1332866338,), (1332866339,), (1332866403,), (1332866414,), (1332866545,), (1332866654,), (1332866667,), (1332866670,), (1332866687,), (1332866692,), (1332866698,), (1332866700,), (1332866702,), (1332866703,), (1332866705,), (1332874146,), (1332874148,), (1332874150,), (1332874154,), (1332874162,), (1332874164,), (1332874167,), (1332874169,), (1332874170,), (1332874172,), (1332874176,), (1332874177,), (1332874180,), (1332874183,), (1332874186,), (1332874189,), (1332874198,), (1332874200,), (1332874203,), (1332874205,), (1332874206,), (1332874207,), (1332874224,), (1332874234,), (1332874240,), (1332874243,), (1332874251,), (1332874254,), (1332874271,), (1332874276,), (1332874279,), (1332874282,), (1332874287,), (1332874294,), (1332874296,), (1332874299,), (1332874301,), (1332874304,), (1332874308,), (1332874314,), (1332874316,), (1332874323,), (1332874335,), (1332849539,), (1332849540,), (1332850891,), (1332866789,), (1332866811,), (1332866814,), (1332866816,), (1332866819,), (1332866822,), (1332866837,), (1332866840,), (1332866842,), (1332866844,), (1332866847,), (1332866849,), (1332866856,), (1332866858,), (1332866860,), (1332866861,), (1332866863,), (1332866865,), (1332866890,), (1332866892,), (1332866894,), (1332874057,), (1332874059,), (1332874063,), (1332874065,), (1332874069,), (1332874077,), (1332874080,), (1332874081,), (1332874082,), (1332874083,), (1332874084,), (1332874087,), (1332874089,), (1332874092,), (1332874094,), (1332874096,), (1332874097,), (1332874100,), (1332874102,), (1332874105,), (1332874110,), (1332874119,), (1332874120,), (1332874143,), (1332874145,), (1333164344,), (1333164347,), (1333164350,), (1333164377,), (1333164380,), (1333164385,), (1333164389,), (1333164392,), (1333164397,), (1333191039,), (1333191101,), (1333191106,), (1333191148,), (1333191149,), (1333191151,), (1333191153,), (1333191162,), (1333191170,), (1333191185,), (1333191189,), (1333191191,), (1333191193,), (1333191208,), (1333191269,), (1333191338,), (1333191342,), (1333191344,), (1333191347,), (1333191441,), (1333191444,), (1333191446,), (1333191457,), (1333191460,), (1333191467,), (1333191475,), (1333191480,), (1333191485,), (1333191492,), (1333191497,), (1333191502,), (1333191506,), (1333191507,), (1333191509,), (1333191542,), (1333191587,), (1333191719,), (1333191777,), (1333191779,), (1333191842,), (1333191860,), (1333191886,), (1333191902,), (1333191923,), (1333191927,), (1333191932,), (1333191934,), (1333191938,), (1333191940,), (1333191967,), (1333191969,), (1333191972,), (1333191975,), (1333191977,), (1333191978,), (1333191998,), (1333192002,), (1333192006,), (1333192010,), (1333192012,), (1333192013,), (1333192272,), (1333192275,), (1333192283,), (1333164326,), (1333164332,), (1333164515,), (1333164518,), (1333164522,), (1333164528,), (1333164530,), (1333164536,), (1333164665,), (1333164668,), (1333164673,), (1333164676,), (1333164681,), (1333164685,), (1333187479,), (1333187752,), (1333187754,), (1333187768,), (1333187793,), (1333187796,), (1333187798,), (1333188685,), (1333188695,), (1333188699,), (1333188712,), (1333188749,), (1333188775,), (1333188958,), (1333188960,), (1333188963,), (1333188966,), (1333188969,), (1333188973,), (1333189005,), (1333189010,), (1333189012,), (1333189043,), (1333189297,), (1333189305,), (1333189439,), (1333189504,), (1333189535,), (1333189539,), (1333189542,), (1333189545,), (1333189720,), (1333189728,), (1333189735,), (1333189738,), (1333189770,), (1333189774,), (1333189795,), (1333189800,), (1333189807,), (1333189815,), (1333189817,), (1333189820,), (1333190985,), (1333190988,), (1333190991,), (1333190992,), (1333190996,), (1333191001,), (1333191024,), (1333191028,), (1333191031,), (1333191034,), (1333191038,), (1333164320,), (1333164747,), (1333164752,), (1333164770,), (1333164777,), (1333164783,), (1333164789,), (1333164878,), (1333164891,), (1333164894,), (1333164897,), (1333164901,), (1333164906,), (1333164922,), (1333164969,), (1333164976,), (1333164980,), (1333164984,), (1333165250,), (1333165398,), (1333165543,), (1333165699,), (1333165868,), (1333165894,), (1333186531,), (1333186536,), (1333186539,), (1333186543,), (1333186546,), (1333186548,), (1333186661,), (1333186663,), (1333186664,), (1333186668,), (1333186670,), (1333186674,), (1333186707,), (1333186711,), (1333186714,), (1333186715,), (1333186718,), (1333186719,), (1333186766,), (1333186771,), (1333186775,), (1333186777,), (1333186780,), (1333186783,), (1333186834,), (1333186837,), (1333186839,), (1333186841,), (1333186844,), (1333186846,), (1333186906,), (1333186908,), (1333186909,), (1333186915,), (1333186918,), (1333186920,), (1333186927,), (1333186930,), (1333186932,), (1333186935,), (1333186938,), (1333186966,), (1333186975,), (1333186982,), (1333186986,), (1333186989,), (1333186990,), (1333186992,), (1333187469,), (1333187472,), (1333187473,), (1333187475,), (1333187477,), (1333164917,), (1333166054,), (1333166127,), (1333166195,), (1333166265,), (1333166437,), (1333166542,), (1333166989,), (1333167065,), (1333167172,), (1333167178,), (1333167182,), (1333167222,), (1333167276,), (1333167315,), (1333167323,), (1333167324,), (1333167326,), (1333167328,), (1333185810,), (1333185827,), (1333185889,), (1333185919,), (1333185944,), (1333185949,), (1333186031,), (1333186036,), (1333186043,), (1333186055,), (1333186063,), (1333186065,), (1333186158,), (1333186161,), (1333186163,), (1333186166,), (1333186167,), (1333186169,), (1333186200,), (1333186204,), (1333186208,), (1333186212,), (1333186214,), (1333186218,), (1333186248,), (1333186252,), (1333186253,), (1333186255,), (1333186257,), (1333186261,), (1333186336,), (1333186339,), (1333186342,), (1333186345,), (1333186349,), (1333186351,), (1333186368,), (1333186372,), (1333186375,), (1333186377,), (1333186381,), (1333186384,), (1333186411,), (1333186414,), (1333186417,), (1333186420,), (1333186423,), (1333186426,), (1333186472,), (1333186492,), (1333186493,), (1333186494,), (1333186495,), (1333186497,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'30012025': {'nb_upload': 21, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20098972]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1332877749, 1332877589, 1332877582, 1332877579, 1332877577, 1332877575, 1332877571, 1332877506, 1332877503, 1332877347, 1332877345, 1332864735, 1332864731, 1332864652, 1332864651, 1332864649, 1332864648, 1332864647, 1332864646, 1332864540, 1332834889] map_info['map_portfolio_photo'] : {20098972: [1332877749, 1332877589, 1332877582, 1332877579, 1332877577, 1332877575, 1332877571, 1332877506, 1332877503, 1332877347, 1332877345, 1332864735, 1332864731, 1332864652, 1332864651, 1332864649, 1332864648, 1332864647, 1332864646, 1332864540, 1332834889]} final : True mtd_id 4302 list_pids : [1332877749, 1332877589, 1332877582, 1332877579, 1332877577, 1332877575, 1332877571, 1332877506, 1332877503, 1332877347, 1332877345, 1332864735, 1332864731, 1332864652, 1332864651, 1332864649, 1332864648, 1332864647, 1332864646, 1332864540, 1332834889] Looping around the photos to save general results len do output : 1 /20098972Didn'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, '2572501') ('4302', '20098972', '1332877749', None, None, None, None, None, '2572501') ('4302', None, None, None, None, None, None, None, '2572501') ('4302', '20098972', '1332877589', None, None, None, None, None, '2572501') ('4302', None, None, None, None, None, None, None, '2572501') ('4302', '20098972', '1332877582', None, None, None, None, None, '2572501') ('4302', None, None, None, None, None, None, None, '2572501') ('4302', '20098972', '1332877579', None, None, None, None, None, '2572501') ('4302', None, None, None, None, None, None, None, '2572501') ('4302', '20098972', '1332877577', None, None, None, None, None, '2572501') ('4302', None, None, None, None, None, None, None, '2572501') ('4302', '20098972', '1332877575', None, None, None, None, None, '2572501') ('4302', None, None, None, None, None, None, None, '2572501') ('4302', '20098972', '1332877571', None, None, None, None, None, '2572501') ('4302', None, None, None, None, None, None, None, '2572501') ('4302', '20098972', '1332877506', None, None, None, None, None, '2572501') ('4302', None, None, None, None, None, None, None, '2572501') ('4302', '20098972', '1332877503', None, None, None, None, None, '2572501') ('4302', None, None, None, None, None, None, None, '2572501') ('4302', '20098972', '1332877347', None, None, None, None, None, '2572501') ('4302', None, None, None, None, None, None, None, '2572501') ('4302', '20098972', '1332877345', None, None, None, None, None, '2572501') ('4302', None, None, None, None, None, None, None, '2572501') ('4302', '20098972', '1332864735', None, None, None, None, None, '2572501') ('4302', None, None, None, None, None, None, None, '2572501') ('4302', '20098972', '1332864731', None, None, None, None, None, '2572501') ('4302', None, None, None, None, None, None, None, '2572501') ('4302', '20098972', '1332864652', None, None, None, None, None, '2572501') ('4302', None, None, None, None, None, None, None, '2572501') ('4302', '20098972', '1332864651', None, None, None, None, None, '2572501') ('4302', None, None, None, None, None, None, None, '2572501') ('4302', '20098972', '1332864649', None, None, None, None, None, '2572501') ('4302', None, None, None, None, None, None, None, '2572501') ('4302', '20098972', '1332864648', None, None, None, None, None, '2572501') ('4302', None, None, None, None, None, None, None, '2572501') ('4302', '20098972', '1332864647', None, None, None, None, None, '2572501') ('4302', None, None, None, None, None, None, None, '2572501') ('4302', '20098972', '1332864646', None, None, None, None, None, '2572501') ('4302', None, None, None, None, None, None, None, '2572501') ('4302', '20098972', '1332864540', None, None, None, None, None, '2572501') ('4302', None, None, None, None, None, None, None, '2572501') ('4302', '20098972', '1332834889', None, None, None, None, None, '2572501') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 22 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, '20098972', 'None', None, None, None, None, '2572501'), ('4302', '20098972', '1332877749', None, None, None, None, None, '2572501'), ('4302', '20098972', '1332877589', None, None, None, None, None, '2572501'), ('4302', '20098972', '1332877582', None, None, None, None, None, '2572501'), ('4302', '20098972', '1332877579', None, None, None, None, None, '2572501'), ('4302', '20098972', '1332877577', None, None, None, None, None, '2572501'), ('4302', '20098972', '1332877575', None, None, None, None, None, '2572501'), ('4302', '20098972', '1332877571', None, None, None, None, None, '2572501'), ('4302', '20098972', '1332877506', None, None, None, None, None, '2572501'), ('4302', '20098972', '1332877503', None, None, None, None, None, '2572501'), ('4302', '20098972', '1332877347', None, None, None, None, None, '2572501'), ('4302', '20098972', '1332877345', None, None, None, None, None, '2572501'), ('4302', '20098972', '1332864735', None, None, None, None, None, '2572501'), ('4302', '20098972', '1332864731', None, None, None, None, None, '2572501'), ('4302', '20098972', '1332864652', None, None, None, None, None, '2572501'), ('4302', '20098972', '1332864651', None, None, None, None, None, '2572501'), ('4302', '20098972', '1332864649', None, None, None, None, None, '2572501'), ('4302', '20098972', '1332864648', None, None, None, None, None, '2572501'), ('4302', '20098972', '1332864647', None, None, None, None, None, '2572501'), ('4302', '20098972', '1332864646', None, None, None, None, None, '2572501'), ('4302', '20098972', '1332864540', None, None, None, None, None, '2572501'), ('4302', '20098972', '1332834889', None, None, None, None, None, '2572501')] time used for this insertion : 0.014780282974243164 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.001532793045044 time spend to save output : 0.015087604522705078 total time spend for step 5 : 4.016620397567749 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 (2572501) 2.84user 2.37system 0:17.57elapsed 29%CPU (0avgtext+0avgdata 161228maxresident)k 504inputs+20608outputs (1major+76786minor)pagefaults 0swaps