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 : 2380011 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 (2595265) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2595265) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20608349 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2595265'] with mtr_portfolio_ids : ['20608349'] and first list_photo_ids : [] new path : /proc/2380011/ Name: python3 Umask: 0002 State: R (running) Tgid: 2380011 Ngid: 0 Pid: 2380011 PPid: 2380009 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 2380011 NSpid: 2380011 NSpgid: 2378853 NSsid: 2378853 VmPeak: 1106836 kB VmSize: 1106836 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 100728 kB VmRSS: 100728 kB RssAnon: 59756 kB RssFile: 40972 kB RssShmem: 0 kB VmData: 865588 kB VmStk: 132 kB VmExe: 2640 kB VmLib: 130468 kB VmPTE: 576 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 4/63054 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 52 nonvoluntary_ctxt_switches: 113 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '2380011', 'Ngid': '0', 'Pid': '2380011', 'PPid': '2380009', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '2380011', 'NSpid': '2380011', 'NSpgid': '2378853', 'NSsid': '2378853', 'VmPeak': '1106836 kB', 'VmSize': '1106836 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '100728 kB', 'VmRSS': '100728 kB', 'RssAnon': '59756 kB', 'RssFile': '40972 kB', 'RssShmem': '0 kB', 'VmData': '865588 kB', 'VmStk': '132 kB', 'VmExe': '2640 kB', 'VmLib': '130468 kB', 'VmPTE': '576 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '4/63054', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '52', 'nonvoluntary_ctxt_switches': '113'} ('datou_batch_current', '2380011', '1106836', '0', '1106836', '865588', '100728', b'', 'marlene', '2595265') 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 (20608349) 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 (2595265 ) ) 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 (20608349) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1338161451, 'portfolio_id': 20608349}, {'photo_id': 1338161183, 'portfolio_id': 20608349}, {'photo_id': 1338161181, 'portfolio_id': 20608349}, {'photo_id': 1338161178, 'portfolio_id': 20608349}, {'photo_id': 1338161155, 'portfolio_id': 20608349}, {'photo_id': 1338161130, 'portfolio_id': 20608349}, {'photo_id': 1338160941, 'portfolio_id': 20608349}, {'photo_id': 1338160938, 'portfolio_id': 20608349}, {'photo_id': 1338160935, 'portfolio_id': 20608349}, {'photo_id': 1338160826, 'portfolio_id': 20608349}, {'photo_id': 1338160822, 'portfolio_id': 20608349}, {'photo_id': 1338160820, 'portfolio_id': 20608349}, {'photo_id': 1338160800, 'portfolio_id': 20608349}, {'photo_id': 1338160796, 'portfolio_id': 20608349}, {'photo_id': 1338160792, 'portfolio_id': 20608349}, {'photo_id': 1338160788, 'portfolio_id': 20608349}, {'photo_id': 1338160785, 'portfolio_id': 20608349}, {'photo_id': 1338160760, 'portfolio_id': 20608349}, {'photo_id': 1338160756, 'portfolio_id': 20608349}, {'photo_id': 1338160752, 'portfolio_id': 20608349}, {'photo_id': 1338160748, 'portfolio_id': 20608349}, {'photo_id': 1338160718, 'portfolio_id': 20608349}, {'photo_id': 1338160715, 'portfolio_id': 20608349}, {'photo_id': 1338159532, 'portfolio_id': 20608349}, {'photo_id': 1338159527, 'portfolio_id': 20608349}, {'photo_id': 1338159500, 'portfolio_id': 20608349}] map_portfolio_id_photo_id: {20608349: [1338161451, 1338161183, 1338161181, 1338161178, 1338161155, 1338161130, 1338160941, 1338160938, 1338160935, 1338160826, 1338160822, 1338160820, 1338160800, 1338160796, 1338160792, 1338160788, 1338160785, 1338160760, 1338160756, 1338160752, 1338160748, 1338160718, 1338160715, 1338159532, 1338159527, 1338159500]} ##### Call download_photos : nb_thread : 1 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos ##### After load_data_input time to download the photos : 0.09593653678894043 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Tue Feb 18 05:52:27 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 (20608349) 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 : 20608349 get user id for portfolio 20608349 get sub ptf for main ptf 20608349, type 3726 and hashtags ['cartonnette', 'plastique', 'Carton_brun', 'mal_croppe', 'autre_refus', 'Teint_Dans_La_Masse', 'flou', 'papier', 'metal', 'kraft', 'environnement', 'Carton_gris'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20608349 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','plastique','Carton_brun','mal_croppe','autre_refus','Teint_Dans_La_Masse','flou','papier','metal','kraft','environnement','Carton_gris')) 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`=20608349 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','plastique','Carton_brun','mal_croppe','autre_refus','Teint_Dans_La_Masse','flou','papier','metal','kraft','environnement','Carton_gris')) AND mptpi.`min_score`=0.5 To do returned map {'metal': {'main_port_id': 20608349, 'sub_port_id': 20608351, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13265432, 'last_updated_at': datetime.datetime(2025, 2, 17, 14, 2, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 17, 14, 2, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 17, 13, 54, 57)}, 'Carton_brun': {'main_port_id': 20608349, 'sub_port_id': 20608352, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13265433, 'last_updated_at': datetime.datetime(2025, 2, 17, 14, 2, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 17, 14, 2, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 17, 13, 54, 57)}, 'mal_croppe': {'main_port_id': 20608349, 'sub_port_id': 20608353, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13265434, 'last_updated_at': datetime.datetime(2025, 2, 17, 14, 2, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 17, 14, 2, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 17, 13, 54, 57)}, 'flou': {'main_port_id': 20608349, 'sub_port_id': 20608354, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13265435, 'last_updated_at': datetime.datetime(2025, 2, 17, 14, 2, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 17, 14, 2, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 17, 13, 54, 57)}, 'kraft': {'main_port_id': 20608349, 'sub_port_id': 20608355, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13265436, 'last_updated_at': datetime.datetime(2025, 2, 17, 14, 2, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 17, 14, 2, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 17, 13, 54, 57)}, 'Carton_gris': {'main_port_id': 20608349, 'sub_port_id': 20608356, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13265437, 'last_updated_at': datetime.datetime(2025, 2, 17, 14, 2, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 17, 14, 2, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 17, 13, 54, 57)}, 'cartonnette': {'main_port_id': 20608349, 'sub_port_id': 20608357, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13265438, 'last_updated_at': datetime.datetime(2025, 2, 17, 14, 2, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 17, 14, 2, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 17, 13, 54, 57)}, 'environnement': {'main_port_id': 20608349, 'sub_port_id': 20608358, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13265439, 'last_updated_at': datetime.datetime(2025, 2, 17, 14, 2, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 17, 14, 2, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 17, 13, 54, 57)}, 'plastique': {'main_port_id': 20608349, 'sub_port_id': 20608359, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13265440, 'last_updated_at': datetime.datetime(2025, 2, 17, 14, 2, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 17, 14, 2, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 17, 13, 54, 57)}, 'papier': {'main_port_id': 20608349, 'sub_port_id': 20608360, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13265441, 'last_updated_at': datetime.datetime(2025, 2, 17, 14, 2, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 17, 14, 2, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 17, 13, 54, 57)}, 'Teint_Dans_La_Masse': {'main_port_id': 20608349, 'sub_port_id': 20608361, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13265442, 'last_updated_at': datetime.datetime(2025, 2, 17, 14, 2, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 17, 14, 2, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 17, 13, 54, 57)}, 'autre_refus': {'main_port_id': 20608349, 'sub_port_id': 20608362, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13265443, 'last_updated_at': datetime.datetime(2025, 2, 17, 14, 2, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 17, 14, 2, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 17, 13, 54, 57)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20608351 , 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=20608349 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 (20608351) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20608349) result : ((1338159500,), (1338159527,), (1338159532,), (1338160715,), (1338160718,), (1338160748,), (1338160752,), (1338160756,), (1338160760,), (1338160785,), (1338160788,), (1338160792,), (1338160796,), (1338160800,), (1338160820,), (1338160822,), (1338160826,), (1338160935,), (1338160938,), (1338160941,), (1338161130,), (1338161155,), (1338161178,), (1338161181,), (1338161183,), (1338161451,)) 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 (1338159500,1338160800) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20608352 , 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=20608349 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 (20608352) result : ((1338160304,), (1338161050,), (1338166845,), (1338166882,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20608349) result : ((1338159500,), (1338159527,), (1338159532,), (1338160715,), (1338160718,), (1338160748,), (1338160752,), (1338160756,), (1338160760,), (1338160785,), (1338160788,), (1338160792,), (1338160796,), (1338160800,), (1338160820,), (1338160822,), (1338160826,), (1338160935,), (1338160938,), (1338160941,), (1338161130,), (1338161155,), (1338161178,), (1338161181,), (1338161183,), (1338161451,)) 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 (1338159500,1338160800) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20608353 , 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=20608349 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 (20608353) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20608349) result : ((1338159500,), (1338159527,), (1338159532,), (1338160715,), (1338160718,), (1338160748,), (1338160752,), (1338160756,), (1338160760,), (1338160785,), (1338160788,), (1338160792,), (1338160796,), (1338160800,), (1338160820,), (1338160822,), (1338160826,), (1338160935,), (1338160938,), (1338160941,), (1338161130,), (1338161155,), (1338161178,), (1338161181,), (1338161183,), (1338161451,)) 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 (1338159500,1338160800) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20608354 , 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=20608349 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 (20608354) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20608349) result : ((1338159500,), (1338159527,), (1338159532,), (1338160715,), (1338160718,), (1338160748,), (1338160752,), (1338160756,), (1338160760,), (1338160785,), (1338160788,), (1338160792,), (1338160796,), (1338160800,), (1338160820,), (1338160822,), (1338160826,), (1338160935,), (1338160938,), (1338160941,), (1338161130,), (1338161155,), (1338161178,), (1338161181,), (1338161183,), (1338161451,)) 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 (1338159500,1338160800) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20608355 , 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=20608349 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 (20608355) result : ((1338161217,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20608349) result : ((1338159500,), (1338159527,), (1338159532,), (1338160715,), (1338160718,), (1338160748,), (1338160752,), (1338160756,), (1338160760,), (1338160785,), (1338160788,), (1338160792,), (1338160796,), (1338160800,), (1338160820,), (1338160822,), (1338160826,), (1338160935,), (1338160938,), (1338160941,), (1338161130,), (1338161155,), (1338161178,), (1338161181,), (1338161183,), (1338161451,)) 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 (1338159500,1338160800) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20608356 , 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=20608349 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 (20608356) result : ((1338160764,), (1338160765,), (1338160766,), (1338160842,), (1338161049,), (1338161124,), (1338161216,), (1338166843,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20608349) result : ((1338159500,), (1338159527,), (1338159532,), (1338160715,), (1338160718,), (1338160748,), (1338160752,), (1338160756,), (1338160760,), (1338160785,), (1338160788,), (1338160792,), (1338160796,), (1338160800,), (1338160820,), (1338160822,), (1338160826,), (1338160935,), (1338160938,), (1338160941,), (1338161130,), (1338161155,), (1338161178,), (1338161181,), (1338161183,), (1338161451,)) 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 (1338159500,1338160800) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20608357 , 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=20608349 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 (20608357) result : ((1338160843,), (1338160856,), (1338161125,), (1338166879,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20608349) result : ((1338159500,), (1338159527,), (1338159532,), (1338160715,), (1338160718,), (1338160748,), (1338160752,), (1338160756,), (1338160760,), (1338160785,), (1338160788,), (1338160792,), (1338160796,), (1338160800,), (1338160820,), (1338160822,), (1338160826,), (1338160935,), (1338160938,), (1338160941,), (1338161130,), (1338161155,), (1338161178,), (1338161181,), (1338161183,), (1338161451,)) 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 (1338159500,1338160800) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20608358 , 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=20608349 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 (20608358) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20608349) result : ((1338159500,), (1338159527,), (1338159532,), (1338160715,), (1338160718,), (1338160748,), (1338160752,), (1338160756,), (1338160760,), (1338160785,), (1338160788,), (1338160792,), (1338160796,), (1338160800,), (1338160820,), (1338160822,), (1338160826,), (1338160935,), (1338160938,), (1338160941,), (1338161130,), (1338161155,), (1338161178,), (1338161181,), (1338161183,), (1338161451,)) 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 (1338159500,1338160800) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20608359 , 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=20608349 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 (20608359) result : ((1338161126,), (1338161127,), (1338166884,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20608349) result : ((1338159500,), (1338159527,), (1338159532,), (1338160715,), (1338160718,), (1338160748,), (1338160752,), (1338160756,), (1338160760,), (1338160785,), (1338160788,), (1338160792,), (1338160796,), (1338160800,), (1338160820,), (1338160822,), (1338160826,), (1338160935,), (1338160938,), (1338160941,), (1338161130,), (1338161155,), (1338161178,), (1338161181,), (1338161183,), (1338161451,)) 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 (1338159500,1338160800) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20608360 , 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=20608349 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 (20608360) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20608349) result : ((1338159500,), (1338159527,), (1338159532,), (1338160715,), (1338160718,), (1338160748,), (1338160752,), (1338160756,), (1338160760,), (1338160785,), (1338160788,), (1338160792,), (1338160796,), (1338160800,), (1338160820,), (1338160822,), (1338160826,), (1338160935,), (1338160938,), (1338160941,), (1338161130,), (1338161155,), (1338161178,), (1338161181,), (1338161183,), (1338161451,)) 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 (1338159500,1338160800) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20608361 , 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=20608349 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 (20608361) result : ((1338161035,), (1338161117,), (1338161118,), (1338161119,), (1338161120,), (1338161121,), (1338166836,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20608349) result : ((1338159500,), (1338159527,), (1338159532,), (1338160715,), (1338160718,), (1338160748,), (1338160752,), (1338160756,), (1338160760,), (1338160785,), (1338160788,), (1338160792,), (1338160796,), (1338160800,), (1338160820,), (1338160822,), (1338160826,), (1338160935,), (1338160938,), (1338160941,), (1338161130,), (1338161155,), (1338161178,), (1338161181,), (1338161183,), (1338161451,)) 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 (1338159500,1338160800) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20608362 , 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=20608349 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 (20608362) result : ((1338161122,), (1338161123,), (1338161218,), (1338166838,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20608349) result : ((1338159500,), (1338159527,), (1338159532,), (1338160715,), (1338160718,), (1338160748,), (1338160752,), (1338160756,), (1338160760,), (1338160785,), (1338160788,), (1338160792,), (1338160796,), (1338160800,), (1338160820,), (1338160822,), (1338160826,), (1338160935,), (1338160938,), (1338160941,), (1338161130,), (1338161155,), (1338161178,), (1338161181,), (1338161183,), (1338161451,)) 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 (1338159500,1338160800) and cspi.crop_hashtag_id = chi.id; 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`=20608349 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','plastique','Carton_brun','mal_croppe','autre_refus','Teint_Dans_La_Masse','flou','papier','metal','kraft','environnement','Carton_gris')) 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`=20608349 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','plastique','Carton_brun','mal_croppe','autre_refus','Teint_Dans_La_Masse','flou','papier','metal','kraft','environnement','Carton_gris')) AND mptpi.`min_score`=0.5 To do returned map {'metal': {'main_port_id': 20608349, 'sub_port_id': 20608363, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13265444, 'last_updated_at': datetime.datetime(2025, 2, 17, 13, 54, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 17, 13, 54, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 17, 13, 54, 58)}, 'Carton_brun': {'main_port_id': 20608349, 'sub_port_id': 20608364, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13265445, 'last_updated_at': datetime.datetime(2025, 2, 17, 13, 54, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 17, 13, 54, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 17, 13, 54, 58)}, 'mal_croppe': {'main_port_id': 20608349, 'sub_port_id': 20608365, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13265446, 'last_updated_at': datetime.datetime(2025, 2, 17, 13, 54, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 17, 13, 54, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 17, 13, 54, 58)}, 'flou': {'main_port_id': 20608349, 'sub_port_id': 20608366, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13265447, 'last_updated_at': datetime.datetime(2025, 2, 17, 13, 54, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 17, 13, 54, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 17, 13, 54, 58)}, 'kraft': {'main_port_id': 20608349, 'sub_port_id': 20608367, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13265448, 'last_updated_at': datetime.datetime(2025, 2, 17, 13, 54, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 17, 13, 54, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 17, 13, 54, 58)}, 'Carton_gris': {'main_port_id': 20608349, 'sub_port_id': 20608368, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13265449, 'last_updated_at': datetime.datetime(2025, 2, 17, 13, 54, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 17, 13, 54, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 17, 13, 54, 58)}, 'cartonnette': {'main_port_id': 20608349, 'sub_port_id': 20608369, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13265450, 'last_updated_at': datetime.datetime(2025, 2, 17, 13, 54, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 17, 13, 54, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 17, 13, 54, 58)}, 'environnement': {'main_port_id': 20608349, 'sub_port_id': 20608370, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13265451, 'last_updated_at': datetime.datetime(2025, 2, 17, 13, 54, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 17, 13, 54, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 17, 13, 54, 58)}, 'plastique': {'main_port_id': 20608349, 'sub_port_id': 20608371, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13265452, 'last_updated_at': datetime.datetime(2025, 2, 17, 13, 54, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 17, 13, 54, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 17, 13, 54, 58)}, 'papier': {'main_port_id': 20608349, 'sub_port_id': 20608372, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13265453, 'last_updated_at': datetime.datetime(2025, 2, 17, 13, 54, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 17, 13, 54, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 17, 13, 54, 58)}, 'Teint_Dans_La_Masse': {'main_port_id': 20608349, 'sub_port_id': 20608373, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13265454, 'last_updated_at': datetime.datetime(2025, 2, 17, 13, 54, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 17, 13, 54, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 17, 13, 54, 58)}, 'autre_refus': {'main_port_id': 20608349, 'sub_port_id': 20608374, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13265455, 'last_updated_at': datetime.datetime(2025, 2, 17, 14, 2, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 17, 14, 2, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 17, 13, 54, 58)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20608363,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20608351 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20608364,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20608352 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20608365,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20608353 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20608366,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20608354 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20608367,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20608355 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20608368,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20608356 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20608369,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20608357 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20608370,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20608358 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20608371,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20608359 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20608372,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20608360 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20608373,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20608361 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20608374,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20608362 lien utilise dans velours : https://www.fotonower.com/velours/20608363,20608364,20608365,20608366,20608367,20608368,20608369,20608370,20608371,20608372,20608373,20608374?tags=metal,Carton_brun,mal_croppe,flou,kraft,Carton_gris,cartonnette,environnement,plastique,papier,Teint_Dans_La_Masse,autre_refus After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20608349]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1338161451, 1338161183, 1338161181, 1338161178, 1338161155, 1338161130, 1338160941, 1338160938, 1338160935, 1338160826, 1338160822, 1338160820, 1338160800, 1338160796, 1338160792, 1338160788, 1338160785, 1338160760, 1338160756, 1338160752, 1338160748, 1338160718, 1338160715, 1338159532, 1338159527, 1338159500] map_info['map_portfolio_photo'] : {20608349: [1338161451, 1338161183, 1338161181, 1338161178, 1338161155, 1338161130, 1338160941, 1338160938, 1338160935, 1338160826, 1338160822, 1338160820, 1338160800, 1338160796, 1338160792, 1338160788, 1338160785, 1338160760, 1338160756, 1338160752, 1338160748, 1338160718, 1338160715, 1338159532, 1338159527, 1338159500]} final : False mtd_id 4302 list_pids : [1338161451, 1338161183, 1338161181, 1338161178, 1338161155, 1338161130, 1338160941, 1338160938, 1338160935, 1338160826, 1338160822, 1338160820, 1338160800, 1338160796, 1338160792, 1338160788, 1338160785, 1338160760, 1338160756, 1338160752, 1338160748, 1338160718, 1338160715, 1338159532, 1338159527, 1338159500] Looping around the photos to save general results len do output : 1 /20608349. 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, '2595265') ('4302', '20608349', '1338161451', None, None, None, None, None, '2595265') ('4302', None, None, None, None, None, None, None, '2595265') ('4302', '20608349', '1338161183', None, None, None, None, None, '2595265') ('4302', None, None, None, None, None, None, None, '2595265') ('4302', '20608349', '1338161181', None, None, None, None, None, '2595265') ('4302', None, None, None, None, None, None, None, '2595265') ('4302', '20608349', '1338161178', None, None, None, None, None, '2595265') ('4302', None, None, None, None, None, None, None, '2595265') ('4302', '20608349', '1338161155', None, None, None, None, None, '2595265') ('4302', None, None, None, None, None, None, None, '2595265') ('4302', '20608349', '1338161130', None, None, None, None, None, '2595265') ('4302', None, None, None, None, None, None, None, '2595265') ('4302', '20608349', '1338160941', None, None, None, None, None, '2595265') ('4302', None, None, None, None, None, None, None, '2595265') ('4302', '20608349', '1338160938', None, None, None, None, None, '2595265') ('4302', None, None, None, None, None, None, None, '2595265') ('4302', '20608349', '1338160935', None, None, None, None, None, '2595265') ('4302', None, None, None, None, None, None, None, '2595265') ('4302', '20608349', '1338160826', None, None, None, None, None, '2595265') ('4302', None, None, None, None, None, None, None, '2595265') ('4302', '20608349', '1338160822', None, None, None, None, None, '2595265') ('4302', None, None, None, None, None, None, None, '2595265') ('4302', '20608349', '1338160820', None, None, None, None, None, '2595265') ('4302', None, None, None, None, None, None, None, '2595265') ('4302', '20608349', '1338160800', None, None, None, None, None, '2595265') ('4302', None, None, None, None, None, None, None, '2595265') ('4302', '20608349', '1338160796', None, None, None, None, None, '2595265') ('4302', None, None, None, None, None, None, None, '2595265') ('4302', '20608349', '1338160792', None, None, None, None, None, '2595265') ('4302', None, None, None, None, None, None, None, '2595265') ('4302', '20608349', '1338160788', None, None, None, None, None, '2595265') ('4302', None, None, None, None, None, None, None, '2595265') ('4302', '20608349', '1338160785', None, None, None, None, None, '2595265') ('4302', None, None, None, None, None, None, None, '2595265') ('4302', '20608349', '1338160760', None, None, None, None, None, '2595265') ('4302', None, None, None, None, None, None, None, '2595265') ('4302', '20608349', '1338160756', None, None, None, None, None, '2595265') ('4302', None, None, None, None, None, None, None, '2595265') ('4302', '20608349', '1338160752', None, None, None, None, None, '2595265') ('4302', None, None, None, None, None, None, None, '2595265') ('4302', '20608349', '1338160748', None, None, None, None, None, '2595265') ('4302', None, None, None, None, None, None, None, '2595265') ('4302', '20608349', '1338160718', None, None, None, None, None, '2595265') ('4302', None, None, None, None, None, None, None, '2595265') ('4302', '20608349', '1338160715', None, None, None, None, None, '2595265') ('4302', None, None, None, None, None, None, None, '2595265') ('4302', '20608349', '1338159532', None, None, None, None, None, '2595265') ('4302', None, None, None, None, None, None, None, '2595265') ('4302', '20608349', '1338159527', None, None, None, None, None, '2595265') ('4302', None, None, None, None, None, None, None, '2595265') ('4302', '20608349', '1338159500', None, None, None, None, None, '2595265') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 27 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '20608349', "{'metal': 20608351, 'Carton_brun': 20608352, 'mal_croppe': 20608353, 'flou': 20608354, 'kraft': 20608355, 'Carton_gris': 20608356, 'cartonnette': 20608357, 'environnement': 20608358, 'plastique': 20608359, 'papier': 20608360, 'Teint_Dans_La_Masse': 20608361, 'autre_refus': 20608362}", None, None, None, None, '2595265'), ('4302', '20608349', '1338161451', None, None, None, None, None, '2595265'), ('4302', '20608349', '1338161183', None, None, None, None, None, '2595265'), ('4302', '20608349', '1338161181', None, None, None, None, None, '2595265'), ('4302', '20608349', '1338161178', None, None, None, None, None, '2595265'), ('4302', '20608349', '1338161155', None, None, None, None, None, '2595265'), ('4302', '20608349', '1338161130', None, None, None, None, None, '2595265'), ('4302', '20608349', '1338160941', None, None, None, None, None, '2595265'), ('4302', '20608349', '1338160938', None, None, None, None, None, '2595265'), ('4302', '20608349', '1338160935', None, None, None, None, None, '2595265'), ('4302', '20608349', '1338160826', None, None, None, None, None, '2595265'), ('4302', '20608349', '1338160822', None, None, None, None, None, '2595265'), ('4302', '20608349', '1338160820', None, None, None, None, None, '2595265'), ('4302', '20608349', '1338160800', None, None, None, None, None, '2595265'), ('4302', '20608349', '1338160796', None, None, None, None, None, '2595265'), ('4302', '20608349', '1338160792', None, None, None, None, None, '2595265'), ('4302', '20608349', '1338160788', None, None, None, None, None, '2595265'), ('4302', '20608349', '1338160785', None, None, None, None, None, '2595265'), ('4302', '20608349', '1338160760', None, None, None, None, None, '2595265'), ('4302', '20608349', '1338160756', None, None, None, None, None, '2595265'), ('4302', '20608349', '1338160752', None, None, None, None, None, '2595265'), ('4302', '20608349', '1338160748', None, None, None, None, None, '2595265'), ('4302', '20608349', '1338160718', None, None, None, None, None, '2595265'), ('4302', '20608349', '1338160715', None, None, None, None, None, '2595265'), ('4302', '20608349', '1338159532', None, None, None, None, None, '2595265'), ('4302', '20608349', '1338159527', None, None, None, None, None, '2595265'), ('4302', '20608349', '1338159500', None, None, None, None, None, '2595265')] time used for this insertion : 0.7847495079040527 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.4945952892303467 time spend to save output : 0.7851970195770264 total time spend for step 1 : 1.279792308807373 step2:final Tue Feb 18 05:52:28 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 (20608349) 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 20608349 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1338159500,1338159532,1338159527,1338160718,1338160715,1338160760,1338160756,1338160752,1338160748,1338160800,1338160796,1338160792,1338160788,1338160785,1338160826,1338160822,1338160820,1338160941,1338160938,1338160935,1338161183,1338161181,1338161178,1338161155,1338161130,1338161451); 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([20608349]) Inside saveOutput : final : False verbose : True original output for save of step final : {1338161451: ('0.038107950629785184',), 1338161183: ('0.038107950629785184',), 1338161181: ('0.038107950629785184',), 1338161178: ('0.038107950629785184',), 1338161155: ('0.038107950629785184',), 1338161130: ('0.038107950629785184',), 1338160941: ('0.038107950629785184',), 1338160938: ('0.038107950629785184',), 1338160935: ('0.038107950629785184',), 1338160826: ('0.038107950629785184',), 1338160822: ('0.038107950629785184',), 1338160820: ('0.038107950629785184',), 1338160800: ('0.038107950629785184',), 1338160796: ('0.038107950629785184',), 1338160792: ('0.038107950629785184',), 1338160788: ('0.038107950629785184',), 1338160785: ('0.038107950629785184',), 1338160760: ('0.038107950629785184',), 1338160756: ('0.038107950629785184',), 1338160752: ('0.038107950629785184',), 1338160748: ('0.038107950629785184',), 1338160718: ('0.038107950629785184',), 1338160715: ('0.038107950629785184',), 1338159532: ('0.038107950629785184',), 1338159527: ('0.038107950629785184',), 1338159500: ('0.038107950629785184',)} new output for save of step final : {1338161451: ('0.038107950629785184',), 1338161183: ('0.038107950629785184',), 1338161181: ('0.038107950629785184',), 1338161178: ('0.038107950629785184',), 1338161155: ('0.038107950629785184',), 1338161130: ('0.038107950629785184',), 1338160941: ('0.038107950629785184',), 1338160938: ('0.038107950629785184',), 1338160935: ('0.038107950629785184',), 1338160826: ('0.038107950629785184',), 1338160822: ('0.038107950629785184',), 1338160820: ('0.038107950629785184',), 1338160800: ('0.038107950629785184',), 1338160796: ('0.038107950629785184',), 1338160792: ('0.038107950629785184',), 1338160788: ('0.038107950629785184',), 1338160785: ('0.038107950629785184',), 1338160760: ('0.038107950629785184',), 1338160756: ('0.038107950629785184',), 1338160752: ('0.038107950629785184',), 1338160748: ('0.038107950629785184',), 1338160718: ('0.038107950629785184',), 1338160715: ('0.038107950629785184',), 1338159532: ('0.038107950629785184',), 1338159527: ('0.038107950629785184',), 1338159500: ('0.038107950629785184',)} [1338161451, 1338161183, 1338161181, 1338161178, 1338161155, 1338161130, 1338160941, 1338160938, 1338160935, 1338160826, 1338160822, 1338160820, 1338160800, 1338160796, 1338160792, 1338160788, 1338160785, 1338160760, 1338160756, 1338160752, 1338160748, 1338160718, 1338160715, 1338159532, 1338159527, 1338159500] map_info['map_portfolio_photo'] : {20608349: [1338161451, 1338161183, 1338161181, 1338161178, 1338161155, 1338161130, 1338160941, 1338160938, 1338160935, 1338160826, 1338160822, 1338160820, 1338160800, 1338160796, 1338160792, 1338160788, 1338160785, 1338160760, 1338160756, 1338160752, 1338160748, 1338160718, 1338160715, 1338159532, 1338159527, 1338159500]} final : False mtd_id 4302 list_pids : [1338161451, 1338161183, 1338161181, 1338161178, 1338161155, 1338161130, 1338160941, 1338160938, 1338160935, 1338160826, 1338160822, 1338160820, 1338160800, 1338160796, 1338160792, 1338160788, 1338160785, 1338160760, 1338160756, 1338160752, 1338160748, 1338160718, 1338160715, 1338159532, 1338159527, 1338159500] Looping around the photos to save general results len do output : 26 /1338161451.Didn't retrieve data . /1338161183.Didn't retrieve data . /1338161181.Didn't retrieve data . /1338161178.Didn't retrieve data . /1338161155.Didn't retrieve data . /1338161130.Didn't retrieve data . /1338160941.Didn't retrieve data . /1338160938.Didn't retrieve data . /1338160935.Didn't retrieve data . /1338160826.Didn't retrieve data . /1338160822.Didn't retrieve data . /1338160820.Didn't retrieve data . /1338160800.Didn't retrieve data . /1338160796.Didn't retrieve data . /1338160792.Didn't retrieve data . /1338160788.Didn't retrieve data . /1338160785.Didn't retrieve data . /1338160760.Didn't retrieve data . /1338160756.Didn't retrieve data . /1338160752.Didn't retrieve data . /1338160748.Didn't retrieve data . /1338160718.Didn't retrieve data . /1338160715.Didn't retrieve data . /1338159532.Didn't retrieve data . /1338159527.Didn't retrieve data . /1338159500.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, '2595265') ('4302', '20608349', '1338161451', None, None, None, None, None, '2595265') ('4302', None, None, None, None, None, None, None, '2595265') ('4302', '20608349', '1338161183', None, None, None, None, None, '2595265') ('4302', None, None, None, None, None, None, None, '2595265') ('4302', '20608349', '1338161181', None, None, None, None, None, '2595265') ('4302', None, None, None, None, None, None, None, '2595265') ('4302', '20608349', '1338161178', None, None, None, None, None, '2595265') ('4302', None, None, None, None, None, None, None, '2595265') ('4302', '20608349', '1338161155', None, None, None, None, None, '2595265') ('4302', None, None, None, None, None, None, None, '2595265') ('4302', '20608349', '1338161130', None, None, None, None, None, '2595265') ('4302', None, None, None, None, None, None, None, '2595265') ('4302', '20608349', '1338160941', None, None, None, None, None, '2595265') ('4302', None, None, None, None, None, None, None, '2595265') ('4302', '20608349', '1338160938', None, None, None, None, None, '2595265') ('4302', None, None, None, None, None, None, None, '2595265') ('4302', '20608349', '1338160935', None, None, None, None, None, '2595265') ('4302', None, None, None, None, None, None, None, '2595265') ('4302', '20608349', '1338160826', None, None, None, None, None, '2595265') ('4302', None, None, None, None, None, None, None, '2595265') ('4302', '20608349', '1338160822', None, None, None, None, None, '2595265') ('4302', None, None, None, None, None, None, None, '2595265') ('4302', '20608349', '1338160820', None, None, None, None, None, '2595265') ('4302', None, None, None, None, None, None, None, '2595265') ('4302', '20608349', '1338160800', None, None, None, None, None, '2595265') ('4302', None, None, None, None, None, None, None, '2595265') ('4302', '20608349', '1338160796', None, None, None, None, None, '2595265') ('4302', None, None, None, None, None, None, None, '2595265') ('4302', '20608349', '1338160792', None, None, None, None, None, '2595265') ('4302', None, None, None, None, None, None, None, '2595265') ('4302', '20608349', '1338160788', None, None, None, None, None, '2595265') ('4302', None, None, None, None, None, None, None, '2595265') ('4302', '20608349', '1338160785', None, None, None, None, None, '2595265') ('4302', None, None, None, None, None, None, None, '2595265') ('4302', '20608349', '1338160760', None, None, None, None, None, '2595265') ('4302', None, None, None, None, None, None, None, '2595265') ('4302', '20608349', '1338160756', None, None, None, None, None, '2595265') ('4302', None, None, None, None, None, None, None, '2595265') ('4302', '20608349', '1338160752', None, None, None, None, None, '2595265') ('4302', None, None, None, None, None, None, None, '2595265') ('4302', '20608349', '1338160748', None, None, None, None, None, '2595265') ('4302', None, None, None, None, None, None, None, '2595265') ('4302', '20608349', '1338160718', None, None, None, None, None, '2595265') ('4302', None, None, None, None, None, None, None, '2595265') ('4302', '20608349', '1338160715', None, None, None, None, None, '2595265') ('4302', None, None, None, None, None, None, None, '2595265') ('4302', '20608349', '1338159532', None, None, None, None, None, '2595265') ('4302', None, None, None, None, None, None, None, '2595265') ('4302', '20608349', '1338159527', None, None, None, None, None, '2595265') ('4302', None, None, None, None, None, None, None, '2595265') ('4302', '20608349', '1338159500', None, None, None, None, None, '2595265') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 78 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '20608349', '1338161451', '0.038107950629785184', None, None, None, None, '2595265'), ('4302', '20608349', '1338161183', '0.038107950629785184', None, None, None, None, '2595265'), ('4302', '20608349', '1338161181', '0.038107950629785184', None, None, None, None, '2595265'), ('4302', '20608349', '1338161178', '0.038107950629785184', None, None, None, None, '2595265'), ('4302', '20608349', '1338161155', '0.038107950629785184', None, None, None, None, '2595265'), ('4302', '20608349', '1338161130', '0.038107950629785184', None, None, None, None, '2595265'), ('4302', '20608349', '1338160941', '0.038107950629785184', None, None, None, None, '2595265'), ('4302', '20608349', '1338160938', '0.038107950629785184', None, None, None, None, '2595265'), ('4302', '20608349', '1338160935', '0.038107950629785184', None, None, None, None, '2595265'), ('4302', '20608349', '1338160826', '0.038107950629785184', None, None, None, None, '2595265'), ('4302', '20608349', '1338160822', '0.038107950629785184', None, None, None, None, '2595265'), ('4302', '20608349', '1338160820', '0.038107950629785184', None, None, None, None, '2595265'), ('4302', '20608349', '1338160800', '0.038107950629785184', None, None, None, None, '2595265'), ('4302', '20608349', '1338160796', '0.038107950629785184', None, None, None, None, '2595265'), ('4302', '20608349', '1338160792', '0.038107950629785184', None, None, None, None, '2595265'), ('4302', '20608349', '1338160788', '0.038107950629785184', None, None, None, None, '2595265'), ('4302', '20608349', '1338160785', '0.038107950629785184', None, None, None, None, '2595265'), ('4302', '20608349', '1338160760', '0.038107950629785184', None, None, None, None, '2595265'), ('4302', '20608349', '1338160756', '0.038107950629785184', None, None, None, None, '2595265'), ('4302', '20608349', '1338160752', '0.038107950629785184', None, None, None, None, '2595265'), ('4302', '20608349', '1338160748', '0.038107950629785184', None, None, None, None, '2595265'), ('4302', '20608349', '1338160718', '0.038107950629785184', None, None, None, None, '2595265'), ('4302', '20608349', '1338160715', '0.038107950629785184', None, None, None, None, '2595265'), ('4302', '20608349', '1338159532', '0.038107950629785184', None, None, None, None, '2595265'), ('4302', '20608349', '1338159527', '0.038107950629785184', None, None, None, None, '2595265'), ('4302', '20608349', '1338159500', '0.038107950629785184', None, None, None, None, '2595265')] time used for this insertion : 0.022472858428955078 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06917119026184082 time spend to save output : 0.02362203598022461 total time spend for step 2 : 0.09279322624206543 step3:velours_tree Tue Feb 18 05:52:28 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 : {20608349: [{'metal': 20608351, 'Carton_brun': 20608352, 'mal_croppe': 20608353, 'flou': 20608354, 'kraft': 20608355, 'Carton_gris': 20608356, 'cartonnette': 20608357, 'environnement': 20608358, 'plastique': 20608359, 'papier': 20608360, 'Teint_Dans_La_Masse': 20608361, 'autre_refus': 20608362}]} input_args_next_step : {20608349: ()} output_args : {20608349: [{'metal': 20608351, 'Carton_brun': 20608352, 'mal_croppe': 20608353, 'flou': 20608354, 'kraft': 20608355, 'Carton_gris': 20608356, 'cartonnette': 20608357, 'environnement': 20608358, 'plastique': 20608359, 'papier': 20608360, 'Teint_Dans_La_Masse': 20608361, 'autre_refus': 20608362}]} args : 20608349 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'metal': 20608351, 'Carton_brun': 20608352, 'mal_croppe': 20608353, 'flou': 20608354, 'kraft': 20608355, 'Carton_gris': 20608356, 'cartonnette': 20608357, 'environnement': 20608358, 'plastique': 20608359, 'papier': 20608360, 'Teint_Dans_La_Masse': 20608361, 'autre_refus': 20608362},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20608349) 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([20608349]) 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.29955601692199707 time spend to save output : 5.5789947509765625e-05 total time spend for step 3 : 0.29961180686950684 step4:send_mail_cod Tue Feb 18 05:52:28 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 : {1338161451: ('0.038107950629785184',), 1338161183: ('0.038107950629785184',), 1338161181: ('0.038107950629785184',), 1338161178: ('0.038107950629785184',), 1338161155: ('0.038107950629785184',), 1338161130: ('0.038107950629785184',), 1338160941: ('0.038107950629785184',), 1338160938: ('0.038107950629785184',), 1338160935: ('0.038107950629785184',), 1338160826: ('0.038107950629785184',), 1338160822: ('0.038107950629785184',), 1338160820: ('0.038107950629785184',), 1338160800: ('0.038107950629785184',), 1338160796: ('0.038107950629785184',), 1338160792: ('0.038107950629785184',), 1338160788: ('0.038107950629785184',), 1338160785: ('0.038107950629785184',), 1338160760: ('0.038107950629785184',), 1338160756: ('0.038107950629785184',), 1338160752: ('0.038107950629785184',), 1338160748: ('0.038107950629785184',), 1338160718: ('0.038107950629785184',), 1338160715: ('0.038107950629785184',), 1338159532: ('0.038107950629785184',), 1338159527: ('0.038107950629785184',), 1338159500: ('0.038107950629785184',)} input_args_next_step : {1338161451: ()} output_args : {1338161451: ('0.038107950629785184',), 1338161183: ('0.038107950629785184',), 1338161181: ('0.038107950629785184',), 1338161178: ('0.038107950629785184',), 1338161155: ('0.038107950629785184',), 1338161130: ('0.038107950629785184',), 1338160941: ('0.038107950629785184',), 1338160938: ('0.038107950629785184',), 1338160935: ('0.038107950629785184',), 1338160826: ('0.038107950629785184',), 1338160822: ('0.038107950629785184',), 1338160820: ('0.038107950629785184',), 1338160800: ('0.038107950629785184',), 1338160796: ('0.038107950629785184',), 1338160792: ('0.038107950629785184',), 1338160788: ('0.038107950629785184',), 1338160785: ('0.038107950629785184',), 1338160760: ('0.038107950629785184',), 1338160756: ('0.038107950629785184',), 1338160752: ('0.038107950629785184',), 1338160748: ('0.038107950629785184',), 1338160718: ('0.038107950629785184',), 1338160715: ('0.038107950629785184',), 1338159532: ('0.038107950629785184',), 1338159527: ('0.038107950629785184',), 1338159500: ('0.038107950629785184',)} args : 1338161451 depend.output_id : 0 input_args_next_step : {1338161451: ('0.038107950629785184',), 1338161183: ()} output_args : {1338161451: ('0.038107950629785184',), 1338161183: ('0.038107950629785184',), 1338161181: ('0.038107950629785184',), 1338161178: ('0.038107950629785184',), 1338161155: ('0.038107950629785184',), 1338161130: ('0.038107950629785184',), 1338160941: ('0.038107950629785184',), 1338160938: ('0.038107950629785184',), 1338160935: ('0.038107950629785184',), 1338160826: ('0.038107950629785184',), 1338160822: ('0.038107950629785184',), 1338160820: ('0.038107950629785184',), 1338160800: ('0.038107950629785184',), 1338160796: ('0.038107950629785184',), 1338160792: ('0.038107950629785184',), 1338160788: ('0.038107950629785184',), 1338160785: ('0.038107950629785184',), 1338160760: ('0.038107950629785184',), 1338160756: ('0.038107950629785184',), 1338160752: ('0.038107950629785184',), 1338160748: ('0.038107950629785184',), 1338160718: ('0.038107950629785184',), 1338160715: ('0.038107950629785184',), 1338159532: ('0.038107950629785184',), 1338159527: ('0.038107950629785184',), 1338159500: ('0.038107950629785184',)} args : 1338161183 depend.output_id : 0 input_args_next_step : {1338161451: ('0.038107950629785184',), 1338161183: ('0.038107950629785184',), 1338161181: ()} output_args : {1338161451: ('0.038107950629785184',), 1338161183: ('0.038107950629785184',), 1338161181: ('0.038107950629785184',), 1338161178: ('0.038107950629785184',), 1338161155: ('0.038107950629785184',), 1338161130: ('0.038107950629785184',), 1338160941: ('0.038107950629785184',), 1338160938: ('0.038107950629785184',), 1338160935: ('0.038107950629785184',), 1338160826: ('0.038107950629785184',), 1338160822: ('0.038107950629785184',), 1338160820: ('0.038107950629785184',), 1338160800: ('0.038107950629785184',), 1338160796: ('0.038107950629785184',), 1338160792: ('0.038107950629785184',), 1338160788: ('0.038107950629785184',), 1338160785: ('0.038107950629785184',), 1338160760: ('0.038107950629785184',), 1338160756: ('0.038107950629785184',), 1338160752: ('0.038107950629785184',), 1338160748: ('0.038107950629785184',), 1338160718: ('0.038107950629785184',), 1338160715: ('0.038107950629785184',), 1338159532: ('0.038107950629785184',), 1338159527: ('0.038107950629785184',), 1338159500: ('0.038107950629785184',)} args : 1338161181 depend.output_id : 0 input_args_next_step : {1338161451: ('0.038107950629785184',), 1338161183: ('0.038107950629785184',), 1338161181: ('0.038107950629785184',), 1338161178: ()} output_args : {1338161451: ('0.038107950629785184',), 1338161183: ('0.038107950629785184',), 1338161181: ('0.038107950629785184',), 1338161178: ('0.038107950629785184',), 1338161155: ('0.038107950629785184',), 1338161130: ('0.038107950629785184',), 1338160941: ('0.038107950629785184',), 1338160938: ('0.038107950629785184',), 1338160935: ('0.038107950629785184',), 1338160826: ('0.038107950629785184',), 1338160822: ('0.038107950629785184',), 1338160820: ('0.038107950629785184',), 1338160800: ('0.038107950629785184',), 1338160796: ('0.038107950629785184',), 1338160792: ('0.038107950629785184',), 1338160788: ('0.038107950629785184',), 1338160785: ('0.038107950629785184',), 1338160760: ('0.038107950629785184',), 1338160756: ('0.038107950629785184',), 1338160752: ('0.038107950629785184',), 1338160748: ('0.038107950629785184',), 1338160718: ('0.038107950629785184',), 1338160715: ('0.038107950629785184',), 1338159532: ('0.038107950629785184',), 1338159527: ('0.038107950629785184',), 1338159500: ('0.038107950629785184',)} args : 1338161178 depend.output_id : 0 input_args_next_step : {1338161451: ('0.038107950629785184',), 1338161183: ('0.038107950629785184',), 1338161181: ('0.038107950629785184',), 1338161178: ('0.038107950629785184',), 1338161155: ()} output_args : {1338161451: ('0.038107950629785184',), 1338161183: ('0.038107950629785184',), 1338161181: ('0.038107950629785184',), 1338161178: ('0.038107950629785184',), 1338161155: ('0.038107950629785184',), 1338161130: ('0.038107950629785184',), 1338160941: ('0.038107950629785184',), 1338160938: ('0.038107950629785184',), 1338160935: ('0.038107950629785184',), 1338160826: ('0.038107950629785184',), 1338160822: ('0.038107950629785184',), 1338160820: ('0.038107950629785184',), 1338160800: ('0.038107950629785184',), 1338160796: ('0.038107950629785184',), 1338160792: ('0.038107950629785184',), 1338160788: ('0.038107950629785184',), 1338160785: ('0.038107950629785184',), 1338160760: ('0.038107950629785184',), 1338160756: ('0.038107950629785184',), 1338160752: ('0.038107950629785184',), 1338160748: ('0.038107950629785184',), 1338160718: ('0.038107950629785184',), 1338160715: ('0.038107950629785184',), 1338159532: ('0.038107950629785184',), 1338159527: ('0.038107950629785184',), 1338159500: ('0.038107950629785184',)} args : 1338161155 depend.output_id : 0 input_args_next_step : {1338161451: ('0.038107950629785184',), 1338161183: ('0.038107950629785184',), 1338161181: ('0.038107950629785184',), 1338161178: ('0.038107950629785184',), 1338161155: ('0.038107950629785184',), 1338161130: ()} output_args : {1338161451: ('0.038107950629785184',), 1338161183: ('0.038107950629785184',), 1338161181: ('0.038107950629785184',), 1338161178: ('0.038107950629785184',), 1338161155: ('0.038107950629785184',), 1338161130: ('0.038107950629785184',), 1338160941: ('0.038107950629785184',), 1338160938: ('0.038107950629785184',), 1338160935: ('0.038107950629785184',), 1338160826: ('0.038107950629785184',), 1338160822: ('0.038107950629785184',), 1338160820: ('0.038107950629785184',), 1338160800: ('0.038107950629785184',), 1338160796: ('0.038107950629785184',), 1338160792: ('0.038107950629785184',), 1338160788: ('0.038107950629785184',), 1338160785: ('0.038107950629785184',), 1338160760: ('0.038107950629785184',), 1338160756: ('0.038107950629785184',), 1338160752: ('0.038107950629785184',), 1338160748: ('0.038107950629785184',), 1338160718: ('0.038107950629785184',), 1338160715: ('0.038107950629785184',), 1338159532: ('0.038107950629785184',), 1338159527: ('0.038107950629785184',), 1338159500: ('0.038107950629785184',)} args : 1338161130 depend.output_id : 0 input_args_next_step : {1338161451: ('0.038107950629785184',), 1338161183: ('0.038107950629785184',), 1338161181: ('0.038107950629785184',), 1338161178: ('0.038107950629785184',), 1338161155: ('0.038107950629785184',), 1338161130: ('0.038107950629785184',), 1338160941: ()} output_args : {1338161451: ('0.038107950629785184',), 1338161183: ('0.038107950629785184',), 1338161181: ('0.038107950629785184',), 1338161178: ('0.038107950629785184',), 1338161155: ('0.038107950629785184',), 1338161130: ('0.038107950629785184',), 1338160941: ('0.038107950629785184',), 1338160938: ('0.038107950629785184',), 1338160935: ('0.038107950629785184',), 1338160826: ('0.038107950629785184',), 1338160822: ('0.038107950629785184',), 1338160820: ('0.038107950629785184',), 1338160800: ('0.038107950629785184',), 1338160796: ('0.038107950629785184',), 1338160792: ('0.038107950629785184',), 1338160788: ('0.038107950629785184',), 1338160785: ('0.038107950629785184',), 1338160760: ('0.038107950629785184',), 1338160756: ('0.038107950629785184',), 1338160752: ('0.038107950629785184',), 1338160748: ('0.038107950629785184',), 1338160718: ('0.038107950629785184',), 1338160715: ('0.038107950629785184',), 1338159532: ('0.038107950629785184',), 1338159527: ('0.038107950629785184',), 1338159500: ('0.038107950629785184',)} args : 1338160941 depend.output_id : 0 input_args_next_step : {1338161451: ('0.038107950629785184',), 1338161183: ('0.038107950629785184',), 1338161181: ('0.038107950629785184',), 1338161178: ('0.038107950629785184',), 1338161155: ('0.038107950629785184',), 1338161130: ('0.038107950629785184',), 1338160941: ('0.038107950629785184',), 1338160938: ()} output_args : {1338161451: ('0.038107950629785184',), 1338161183: ('0.038107950629785184',), 1338161181: ('0.038107950629785184',), 1338161178: ('0.038107950629785184',), 1338161155: ('0.038107950629785184',), 1338161130: ('0.038107950629785184',), 1338160941: ('0.038107950629785184',), 1338160938: ('0.038107950629785184',), 1338160935: ('0.038107950629785184',), 1338160826: ('0.038107950629785184',), 1338160822: ('0.038107950629785184',), 1338160820: ('0.038107950629785184',), 1338160800: ('0.038107950629785184',), 1338160796: ('0.038107950629785184',), 1338160792: ('0.038107950629785184',), 1338160788: ('0.038107950629785184',), 1338160785: ('0.038107950629785184',), 1338160760: ('0.038107950629785184',), 1338160756: ('0.038107950629785184',), 1338160752: ('0.038107950629785184',), 1338160748: ('0.038107950629785184',), 1338160718: ('0.038107950629785184',), 1338160715: ('0.038107950629785184',), 1338159532: ('0.038107950629785184',), 1338159527: ('0.038107950629785184',), 1338159500: ('0.038107950629785184',)} args : 1338160938 depend.output_id : 0 input_args_next_step : {1338161451: ('0.038107950629785184',), 1338161183: ('0.038107950629785184',), 1338161181: ('0.038107950629785184',), 1338161178: ('0.038107950629785184',), 1338161155: ('0.038107950629785184',), 1338161130: ('0.038107950629785184',), 1338160941: ('0.038107950629785184',), 1338160938: ('0.038107950629785184',), 1338160935: ()} output_args : {1338161451: ('0.038107950629785184',), 1338161183: ('0.038107950629785184',), 1338161181: ('0.038107950629785184',), 1338161178: ('0.038107950629785184',), 1338161155: ('0.038107950629785184',), 1338161130: ('0.038107950629785184',), 1338160941: ('0.038107950629785184',), 1338160938: ('0.038107950629785184',), 1338160935: ('0.038107950629785184',), 1338160826: ('0.038107950629785184',), 1338160822: ('0.038107950629785184',), 1338160820: ('0.038107950629785184',), 1338160800: ('0.038107950629785184',), 1338160796: ('0.038107950629785184',), 1338160792: ('0.038107950629785184',), 1338160788: ('0.038107950629785184',), 1338160785: ('0.038107950629785184',), 1338160760: ('0.038107950629785184',), 1338160756: ('0.038107950629785184',), 1338160752: ('0.038107950629785184',), 1338160748: ('0.038107950629785184',), 1338160718: ('0.038107950629785184',), 1338160715: ('0.038107950629785184',), 1338159532: ('0.038107950629785184',), 1338159527: ('0.038107950629785184',), 1338159500: ('0.038107950629785184',)} args : 1338160935 depend.output_id : 0 input_args_next_step : {1338161451: ('0.038107950629785184',), 1338161183: ('0.038107950629785184',), 1338161181: ('0.038107950629785184',), 1338161178: ('0.038107950629785184',), 1338161155: ('0.038107950629785184',), 1338161130: ('0.038107950629785184',), 1338160941: ('0.038107950629785184',), 1338160938: ('0.038107950629785184',), 1338160935: ('0.038107950629785184',), 1338160826: ()} output_args : {1338161451: ('0.038107950629785184',), 1338161183: ('0.038107950629785184',), 1338161181: ('0.038107950629785184',), 1338161178: ('0.038107950629785184',), 1338161155: ('0.038107950629785184',), 1338161130: ('0.038107950629785184',), 1338160941: ('0.038107950629785184',), 1338160938: ('0.038107950629785184',), 1338160935: ('0.038107950629785184',), 1338160826: ('0.038107950629785184',), 1338160822: ('0.038107950629785184',), 1338160820: ('0.038107950629785184',), 1338160800: ('0.038107950629785184',), 1338160796: ('0.038107950629785184',), 1338160792: ('0.038107950629785184',), 1338160788: ('0.038107950629785184',), 1338160785: ('0.038107950629785184',), 1338160760: ('0.038107950629785184',), 1338160756: ('0.038107950629785184',), 1338160752: ('0.038107950629785184',), 1338160748: ('0.038107950629785184',), 1338160718: ('0.038107950629785184',), 1338160715: ('0.038107950629785184',), 1338159532: ('0.038107950629785184',), 1338159527: ('0.038107950629785184',), 1338159500: ('0.038107950629785184',)} args : 1338160826 depend.output_id : 0 input_args_next_step : {1338161451: ('0.038107950629785184',), 1338161183: ('0.038107950629785184',), 1338161181: ('0.038107950629785184',), 1338161178: ('0.038107950629785184',), 1338161155: ('0.038107950629785184',), 1338161130: ('0.038107950629785184',), 1338160941: ('0.038107950629785184',), 1338160938: ('0.038107950629785184',), 1338160935: ('0.038107950629785184',), 1338160826: ('0.038107950629785184',), 1338160822: ()} output_args : {1338161451: ('0.038107950629785184',), 1338161183: ('0.038107950629785184',), 1338161181: ('0.038107950629785184',), 1338161178: ('0.038107950629785184',), 1338161155: ('0.038107950629785184',), 1338161130: ('0.038107950629785184',), 1338160941: ('0.038107950629785184',), 1338160938: ('0.038107950629785184',), 1338160935: ('0.038107950629785184',), 1338160826: ('0.038107950629785184',), 1338160822: ('0.038107950629785184',), 1338160820: ('0.038107950629785184',), 1338160800: ('0.038107950629785184',), 1338160796: ('0.038107950629785184',), 1338160792: ('0.038107950629785184',), 1338160788: ('0.038107950629785184',), 1338160785: ('0.038107950629785184',), 1338160760: ('0.038107950629785184',), 1338160756: ('0.038107950629785184',), 1338160752: ('0.038107950629785184',), 1338160748: ('0.038107950629785184',), 1338160718: ('0.038107950629785184',), 1338160715: ('0.038107950629785184',), 1338159532: ('0.038107950629785184',), 1338159527: ('0.038107950629785184',), 1338159500: ('0.038107950629785184',)} args : 1338160822 depend.output_id : 0 input_args_next_step : {1338161451: ('0.038107950629785184',), 1338161183: ('0.038107950629785184',), 1338161181: ('0.038107950629785184',), 1338161178: ('0.038107950629785184',), 1338161155: ('0.038107950629785184',), 1338161130: ('0.038107950629785184',), 1338160941: ('0.038107950629785184',), 1338160938: ('0.038107950629785184',), 1338160935: ('0.038107950629785184',), 1338160826: ('0.038107950629785184',), 1338160822: ('0.038107950629785184',), 1338160820: ()} output_args : {1338161451: ('0.038107950629785184',), 1338161183: ('0.038107950629785184',), 1338161181: ('0.038107950629785184',), 1338161178: ('0.038107950629785184',), 1338161155: ('0.038107950629785184',), 1338161130: ('0.038107950629785184',), 1338160941: ('0.038107950629785184',), 1338160938: ('0.038107950629785184',), 1338160935: ('0.038107950629785184',), 1338160826: ('0.038107950629785184',), 1338160822: ('0.038107950629785184',), 1338160820: ('0.038107950629785184',), 1338160800: ('0.038107950629785184',), 1338160796: ('0.038107950629785184',), 1338160792: ('0.038107950629785184',), 1338160788: ('0.038107950629785184',), 1338160785: ('0.038107950629785184',), 1338160760: ('0.038107950629785184',), 1338160756: ('0.038107950629785184',), 1338160752: ('0.038107950629785184',), 1338160748: ('0.038107950629785184',), 1338160718: ('0.038107950629785184',), 1338160715: ('0.038107950629785184',), 1338159532: ('0.038107950629785184',), 1338159527: ('0.038107950629785184',), 1338159500: ('0.038107950629785184',)} args : 1338160820 depend.output_id : 0 input_args_next_step : {1338161451: ('0.038107950629785184',), 1338161183: ('0.038107950629785184',), 1338161181: ('0.038107950629785184',), 1338161178: ('0.038107950629785184',), 1338161155: ('0.038107950629785184',), 1338161130: ('0.038107950629785184',), 1338160941: ('0.038107950629785184',), 1338160938: ('0.038107950629785184',), 1338160935: ('0.038107950629785184',), 1338160826: ('0.038107950629785184',), 1338160822: ('0.038107950629785184',), 1338160820: ('0.038107950629785184',), 1338160800: ()} output_args : {1338161451: ('0.038107950629785184',), 1338161183: ('0.038107950629785184',), 1338161181: ('0.038107950629785184',), 1338161178: ('0.038107950629785184',), 1338161155: ('0.038107950629785184',), 1338161130: ('0.038107950629785184',), 1338160941: ('0.038107950629785184',), 1338160938: ('0.038107950629785184',), 1338160935: ('0.038107950629785184',), 1338160826: ('0.038107950629785184',), 1338160822: ('0.038107950629785184',), 1338160820: ('0.038107950629785184',), 1338160800: ('0.038107950629785184',), 1338160796: ('0.038107950629785184',), 1338160792: ('0.038107950629785184',), 1338160788: ('0.038107950629785184',), 1338160785: ('0.038107950629785184',), 1338160760: ('0.038107950629785184',), 1338160756: ('0.038107950629785184',), 1338160752: ('0.038107950629785184',), 1338160748: ('0.038107950629785184',), 1338160718: ('0.038107950629785184',), 1338160715: ('0.038107950629785184',), 1338159532: ('0.038107950629785184',), 1338159527: ('0.038107950629785184',), 1338159500: ('0.038107950629785184',)} args : 1338160800 depend.output_id : 0 input_args_next_step : {1338161451: ('0.038107950629785184',), 1338161183: ('0.038107950629785184',), 1338161181: ('0.038107950629785184',), 1338161178: ('0.038107950629785184',), 1338161155: ('0.038107950629785184',), 1338161130: ('0.038107950629785184',), 1338160941: ('0.038107950629785184',), 1338160938: ('0.038107950629785184',), 1338160935: ('0.038107950629785184',), 1338160826: ('0.038107950629785184',), 1338160822: ('0.038107950629785184',), 1338160820: ('0.038107950629785184',), 1338160800: ('0.038107950629785184',), 1338160796: ()} output_args : {1338161451: ('0.038107950629785184',), 1338161183: ('0.038107950629785184',), 1338161181: ('0.038107950629785184',), 1338161178: ('0.038107950629785184',), 1338161155: ('0.038107950629785184',), 1338161130: ('0.038107950629785184',), 1338160941: ('0.038107950629785184',), 1338160938: ('0.038107950629785184',), 1338160935: ('0.038107950629785184',), 1338160826: ('0.038107950629785184',), 1338160822: ('0.038107950629785184',), 1338160820: ('0.038107950629785184',), 1338160800: ('0.038107950629785184',), 1338160796: ('0.038107950629785184',), 1338160792: ('0.038107950629785184',), 1338160788: ('0.038107950629785184',), 1338160785: ('0.038107950629785184',), 1338160760: ('0.038107950629785184',), 1338160756: ('0.038107950629785184',), 1338160752: ('0.038107950629785184',), 1338160748: ('0.038107950629785184',), 1338160718: ('0.038107950629785184',), 1338160715: ('0.038107950629785184',), 1338159532: ('0.038107950629785184',), 1338159527: ('0.038107950629785184',), 1338159500: ('0.038107950629785184',)} args : 1338160796 depend.output_id : 0 input_args_next_step : {1338161451: ('0.038107950629785184',), 1338161183: ('0.038107950629785184',), 1338161181: ('0.038107950629785184',), 1338161178: ('0.038107950629785184',), 1338161155: ('0.038107950629785184',), 1338161130: ('0.038107950629785184',), 1338160941: ('0.038107950629785184',), 1338160938: ('0.038107950629785184',), 1338160935: ('0.038107950629785184',), 1338160826: ('0.038107950629785184',), 1338160822: ('0.038107950629785184',), 1338160820: ('0.038107950629785184',), 1338160800: ('0.038107950629785184',), 1338160796: ('0.038107950629785184',), 1338160792: ()} output_args : {1338161451: ('0.038107950629785184',), 1338161183: ('0.038107950629785184',), 1338161181: ('0.038107950629785184',), 1338161178: ('0.038107950629785184',), 1338161155: ('0.038107950629785184',), 1338161130: ('0.038107950629785184',), 1338160941: ('0.038107950629785184',), 1338160938: ('0.038107950629785184',), 1338160935: ('0.038107950629785184',), 1338160826: ('0.038107950629785184',), 1338160822: ('0.038107950629785184',), 1338160820: ('0.038107950629785184',), 1338160800: ('0.038107950629785184',), 1338160796: ('0.038107950629785184',), 1338160792: ('0.038107950629785184',), 1338160788: ('0.038107950629785184',), 1338160785: ('0.038107950629785184',), 1338160760: ('0.038107950629785184',), 1338160756: ('0.038107950629785184',), 1338160752: ('0.038107950629785184',), 1338160748: ('0.038107950629785184',), 1338160718: ('0.038107950629785184',), 1338160715: ('0.038107950629785184',), 1338159532: ('0.038107950629785184',), 1338159527: ('0.038107950629785184',), 1338159500: ('0.038107950629785184',)} args : 1338160792 depend.output_id : 0 input_args_next_step : {1338161451: ('0.038107950629785184',), 1338161183: ('0.038107950629785184',), 1338161181: ('0.038107950629785184',), 1338161178: ('0.038107950629785184',), 1338161155: ('0.038107950629785184',), 1338161130: ('0.038107950629785184',), 1338160941: ('0.038107950629785184',), 1338160938: ('0.038107950629785184',), 1338160935: ('0.038107950629785184',), 1338160826: ('0.038107950629785184',), 1338160822: ('0.038107950629785184',), 1338160820: ('0.038107950629785184',), 1338160800: ('0.038107950629785184',), 1338160796: ('0.038107950629785184',), 1338160792: ('0.038107950629785184',), 1338160788: ()} output_args : {1338161451: ('0.038107950629785184',), 1338161183: ('0.038107950629785184',), 1338161181: ('0.038107950629785184',), 1338161178: ('0.038107950629785184',), 1338161155: ('0.038107950629785184',), 1338161130: ('0.038107950629785184',), 1338160941: ('0.038107950629785184',), 1338160938: ('0.038107950629785184',), 1338160935: ('0.038107950629785184',), 1338160826: ('0.038107950629785184',), 1338160822: ('0.038107950629785184',), 1338160820: ('0.038107950629785184',), 1338160800: ('0.038107950629785184',), 1338160796: ('0.038107950629785184',), 1338160792: ('0.038107950629785184',), 1338160788: ('0.038107950629785184',), 1338160785: ('0.038107950629785184',), 1338160760: ('0.038107950629785184',), 1338160756: ('0.038107950629785184',), 1338160752: ('0.038107950629785184',), 1338160748: ('0.038107950629785184',), 1338160718: ('0.038107950629785184',), 1338160715: ('0.038107950629785184',), 1338159532: ('0.038107950629785184',), 1338159527: ('0.038107950629785184',), 1338159500: ('0.038107950629785184',)} args : 1338160788 depend.output_id : 0 input_args_next_step : {1338161451: ('0.038107950629785184',), 1338161183: ('0.038107950629785184',), 1338161181: ('0.038107950629785184',), 1338161178: ('0.038107950629785184',), 1338161155: ('0.038107950629785184',), 1338161130: ('0.038107950629785184',), 1338160941: ('0.038107950629785184',), 1338160938: ('0.038107950629785184',), 1338160935: ('0.038107950629785184',), 1338160826: ('0.038107950629785184',), 1338160822: ('0.038107950629785184',), 1338160820: ('0.038107950629785184',), 1338160800: ('0.038107950629785184',), 1338160796: ('0.038107950629785184',), 1338160792: ('0.038107950629785184',), 1338160788: ('0.038107950629785184',), 1338160785: ()} output_args : {1338161451: ('0.038107950629785184',), 1338161183: ('0.038107950629785184',), 1338161181: ('0.038107950629785184',), 1338161178: ('0.038107950629785184',), 1338161155: ('0.038107950629785184',), 1338161130: ('0.038107950629785184',), 1338160941: ('0.038107950629785184',), 1338160938: ('0.038107950629785184',), 1338160935: ('0.038107950629785184',), 1338160826: ('0.038107950629785184',), 1338160822: ('0.038107950629785184',), 1338160820: ('0.038107950629785184',), 1338160800: ('0.038107950629785184',), 1338160796: ('0.038107950629785184',), 1338160792: ('0.038107950629785184',), 1338160788: ('0.038107950629785184',), 1338160785: ('0.038107950629785184',), 1338160760: ('0.038107950629785184',), 1338160756: ('0.038107950629785184',), 1338160752: ('0.038107950629785184',), 1338160748: ('0.038107950629785184',), 1338160718: ('0.038107950629785184',), 1338160715: ('0.038107950629785184',), 1338159532: ('0.038107950629785184',), 1338159527: ('0.038107950629785184',), 1338159500: ('0.038107950629785184',)} args : 1338160785 depend.output_id : 0 input_args_next_step : {1338161451: ('0.038107950629785184',), 1338161183: ('0.038107950629785184',), 1338161181: ('0.038107950629785184',), 1338161178: ('0.038107950629785184',), 1338161155: ('0.038107950629785184',), 1338161130: ('0.038107950629785184',), 1338160941: ('0.038107950629785184',), 1338160938: ('0.038107950629785184',), 1338160935: ('0.038107950629785184',), 1338160826: ('0.038107950629785184',), 1338160822: ('0.038107950629785184',), 1338160820: ('0.038107950629785184',), 1338160800: ('0.038107950629785184',), 1338160796: ('0.038107950629785184',), 1338160792: ('0.038107950629785184',), 1338160788: ('0.038107950629785184',), 1338160785: ('0.038107950629785184',), 1338160760: ()} output_args : {1338161451: ('0.038107950629785184',), 1338161183: ('0.038107950629785184',), 1338161181: ('0.038107950629785184',), 1338161178: ('0.038107950629785184',), 1338161155: ('0.038107950629785184',), 1338161130: ('0.038107950629785184',), 1338160941: ('0.038107950629785184',), 1338160938: ('0.038107950629785184',), 1338160935: ('0.038107950629785184',), 1338160826: ('0.038107950629785184',), 1338160822: ('0.038107950629785184',), 1338160820: ('0.038107950629785184',), 1338160800: ('0.038107950629785184',), 1338160796: ('0.038107950629785184',), 1338160792: ('0.038107950629785184',), 1338160788: ('0.038107950629785184',), 1338160785: ('0.038107950629785184',), 1338160760: ('0.038107950629785184',), 1338160756: ('0.038107950629785184',), 1338160752: ('0.038107950629785184',), 1338160748: ('0.038107950629785184',), 1338160718: ('0.038107950629785184',), 1338160715: ('0.038107950629785184',), 1338159532: ('0.038107950629785184',), 1338159527: ('0.038107950629785184',), 1338159500: ('0.038107950629785184',)} args : 1338160760 depend.output_id : 0 input_args_next_step : {1338161451: ('0.038107950629785184',), 1338161183: ('0.038107950629785184',), 1338161181: ('0.038107950629785184',), 1338161178: ('0.038107950629785184',), 1338161155: ('0.038107950629785184',), 1338161130: ('0.038107950629785184',), 1338160941: ('0.038107950629785184',), 1338160938: ('0.038107950629785184',), 1338160935: ('0.038107950629785184',), 1338160826: ('0.038107950629785184',), 1338160822: ('0.038107950629785184',), 1338160820: ('0.038107950629785184',), 1338160800: ('0.038107950629785184',), 1338160796: ('0.038107950629785184',), 1338160792: ('0.038107950629785184',), 1338160788: ('0.038107950629785184',), 1338160785: ('0.038107950629785184',), 1338160760: ('0.038107950629785184',), 1338160756: ()} output_args : {1338161451: ('0.038107950629785184',), 1338161183: ('0.038107950629785184',), 1338161181: ('0.038107950629785184',), 1338161178: ('0.038107950629785184',), 1338161155: ('0.038107950629785184',), 1338161130: ('0.038107950629785184',), 1338160941: ('0.038107950629785184',), 1338160938: ('0.038107950629785184',), 1338160935: ('0.038107950629785184',), 1338160826: ('0.038107950629785184',), 1338160822: ('0.038107950629785184',), 1338160820: ('0.038107950629785184',), 1338160800: ('0.038107950629785184',), 1338160796: ('0.038107950629785184',), 1338160792: ('0.038107950629785184',), 1338160788: ('0.038107950629785184',), 1338160785: ('0.038107950629785184',), 1338160760: ('0.038107950629785184',), 1338160756: ('0.038107950629785184',), 1338160752: ('0.038107950629785184',), 1338160748: ('0.038107950629785184',), 1338160718: ('0.038107950629785184',), 1338160715: ('0.038107950629785184',), 1338159532: ('0.038107950629785184',), 1338159527: ('0.038107950629785184',), 1338159500: ('0.038107950629785184',)} args : 1338160756 depend.output_id : 0 input_args_next_step : {1338161451: ('0.038107950629785184',), 1338161183: ('0.038107950629785184',), 1338161181: ('0.038107950629785184',), 1338161178: ('0.038107950629785184',), 1338161155: ('0.038107950629785184',), 1338161130: ('0.038107950629785184',), 1338160941: ('0.038107950629785184',), 1338160938: ('0.038107950629785184',), 1338160935: ('0.038107950629785184',), 1338160826: ('0.038107950629785184',), 1338160822: ('0.038107950629785184',), 1338160820: ('0.038107950629785184',), 1338160800: ('0.038107950629785184',), 1338160796: ('0.038107950629785184',), 1338160792: ('0.038107950629785184',), 1338160788: ('0.038107950629785184',), 1338160785: ('0.038107950629785184',), 1338160760: ('0.038107950629785184',), 1338160756: ('0.038107950629785184',), 1338160752: ()} output_args : {1338161451: ('0.038107950629785184',), 1338161183: ('0.038107950629785184',), 1338161181: ('0.038107950629785184',), 1338161178: ('0.038107950629785184',), 1338161155: ('0.038107950629785184',), 1338161130: ('0.038107950629785184',), 1338160941: ('0.038107950629785184',), 1338160938: ('0.038107950629785184',), 1338160935: ('0.038107950629785184',), 1338160826: ('0.038107950629785184',), 1338160822: ('0.038107950629785184',), 1338160820: ('0.038107950629785184',), 1338160800: ('0.038107950629785184',), 1338160796: ('0.038107950629785184',), 1338160792: ('0.038107950629785184',), 1338160788: ('0.038107950629785184',), 1338160785: ('0.038107950629785184',), 1338160760: ('0.038107950629785184',), 1338160756: ('0.038107950629785184',), 1338160752: ('0.038107950629785184',), 1338160748: ('0.038107950629785184',), 1338160718: ('0.038107950629785184',), 1338160715: ('0.038107950629785184',), 1338159532: ('0.038107950629785184',), 1338159527: ('0.038107950629785184',), 1338159500: ('0.038107950629785184',)} args : 1338160752 depend.output_id : 0 input_args_next_step : {1338161451: ('0.038107950629785184',), 1338161183: ('0.038107950629785184',), 1338161181: ('0.038107950629785184',), 1338161178: ('0.038107950629785184',), 1338161155: ('0.038107950629785184',), 1338161130: ('0.038107950629785184',), 1338160941: ('0.038107950629785184',), 1338160938: ('0.038107950629785184',), 1338160935: ('0.038107950629785184',), 1338160826: ('0.038107950629785184',), 1338160822: ('0.038107950629785184',), 1338160820: ('0.038107950629785184',), 1338160800: ('0.038107950629785184',), 1338160796: ('0.038107950629785184',), 1338160792: ('0.038107950629785184',), 1338160788: ('0.038107950629785184',), 1338160785: ('0.038107950629785184',), 1338160760: ('0.038107950629785184',), 1338160756: ('0.038107950629785184',), 1338160752: ('0.038107950629785184',), 1338160748: ()} output_args : {1338161451: ('0.038107950629785184',), 1338161183: ('0.038107950629785184',), 1338161181: ('0.038107950629785184',), 1338161178: ('0.038107950629785184',), 1338161155: ('0.038107950629785184',), 1338161130: ('0.038107950629785184',), 1338160941: ('0.038107950629785184',), 1338160938: ('0.038107950629785184',), 1338160935: ('0.038107950629785184',), 1338160826: ('0.038107950629785184',), 1338160822: ('0.038107950629785184',), 1338160820: ('0.038107950629785184',), 1338160800: ('0.038107950629785184',), 1338160796: ('0.038107950629785184',), 1338160792: ('0.038107950629785184',), 1338160788: ('0.038107950629785184',), 1338160785: ('0.038107950629785184',), 1338160760: ('0.038107950629785184',), 1338160756: ('0.038107950629785184',), 1338160752: ('0.038107950629785184',), 1338160748: ('0.038107950629785184',), 1338160718: ('0.038107950629785184',), 1338160715: ('0.038107950629785184',), 1338159532: ('0.038107950629785184',), 1338159527: ('0.038107950629785184',), 1338159500: ('0.038107950629785184',)} args : 1338160748 depend.output_id : 0 input_args_next_step : {1338161451: ('0.038107950629785184',), 1338161183: ('0.038107950629785184',), 1338161181: ('0.038107950629785184',), 1338161178: ('0.038107950629785184',), 1338161155: ('0.038107950629785184',), 1338161130: ('0.038107950629785184',), 1338160941: ('0.038107950629785184',), 1338160938: ('0.038107950629785184',), 1338160935: ('0.038107950629785184',), 1338160826: ('0.038107950629785184',), 1338160822: ('0.038107950629785184',), 1338160820: ('0.038107950629785184',), 1338160800: ('0.038107950629785184',), 1338160796: ('0.038107950629785184',), 1338160792: ('0.038107950629785184',), 1338160788: ('0.038107950629785184',), 1338160785: ('0.038107950629785184',), 1338160760: ('0.038107950629785184',), 1338160756: ('0.038107950629785184',), 1338160752: ('0.038107950629785184',), 1338160748: ('0.038107950629785184',), 1338160718: ()} output_args : {1338161451: ('0.038107950629785184',), 1338161183: ('0.038107950629785184',), 1338161181: ('0.038107950629785184',), 1338161178: ('0.038107950629785184',), 1338161155: ('0.038107950629785184',), 1338161130: ('0.038107950629785184',), 1338160941: ('0.038107950629785184',), 1338160938: ('0.038107950629785184',), 1338160935: ('0.038107950629785184',), 1338160826: ('0.038107950629785184',), 1338160822: ('0.038107950629785184',), 1338160820: ('0.038107950629785184',), 1338160800: ('0.038107950629785184',), 1338160796: ('0.038107950629785184',), 1338160792: ('0.038107950629785184',), 1338160788: ('0.038107950629785184',), 1338160785: ('0.038107950629785184',), 1338160760: ('0.038107950629785184',), 1338160756: ('0.038107950629785184',), 1338160752: ('0.038107950629785184',), 1338160748: ('0.038107950629785184',), 1338160718: ('0.038107950629785184',), 1338160715: ('0.038107950629785184',), 1338159532: ('0.038107950629785184',), 1338159527: ('0.038107950629785184',), 1338159500: ('0.038107950629785184',)} args : 1338160718 depend.output_id : 0 input_args_next_step : {1338161451: ('0.038107950629785184',), 1338161183: ('0.038107950629785184',), 1338161181: ('0.038107950629785184',), 1338161178: ('0.038107950629785184',), 1338161155: ('0.038107950629785184',), 1338161130: ('0.038107950629785184',), 1338160941: ('0.038107950629785184',), 1338160938: ('0.038107950629785184',), 1338160935: ('0.038107950629785184',), 1338160826: ('0.038107950629785184',), 1338160822: ('0.038107950629785184',), 1338160820: ('0.038107950629785184',), 1338160800: ('0.038107950629785184',), 1338160796: ('0.038107950629785184',), 1338160792: ('0.038107950629785184',), 1338160788: ('0.038107950629785184',), 1338160785: ('0.038107950629785184',), 1338160760: ('0.038107950629785184',), 1338160756: ('0.038107950629785184',), 1338160752: ('0.038107950629785184',), 1338160748: ('0.038107950629785184',), 1338160718: ('0.038107950629785184',), 1338160715: ()} output_args : {1338161451: ('0.038107950629785184',), 1338161183: ('0.038107950629785184',), 1338161181: ('0.038107950629785184',), 1338161178: ('0.038107950629785184',), 1338161155: ('0.038107950629785184',), 1338161130: ('0.038107950629785184',), 1338160941: ('0.038107950629785184',), 1338160938: ('0.038107950629785184',), 1338160935: ('0.038107950629785184',), 1338160826: ('0.038107950629785184',), 1338160822: ('0.038107950629785184',), 1338160820: ('0.038107950629785184',), 1338160800: ('0.038107950629785184',), 1338160796: ('0.038107950629785184',), 1338160792: ('0.038107950629785184',), 1338160788: ('0.038107950629785184',), 1338160785: ('0.038107950629785184',), 1338160760: ('0.038107950629785184',), 1338160756: ('0.038107950629785184',), 1338160752: ('0.038107950629785184',), 1338160748: ('0.038107950629785184',), 1338160718: ('0.038107950629785184',), 1338160715: ('0.038107950629785184',), 1338159532: ('0.038107950629785184',), 1338159527: ('0.038107950629785184',), 1338159500: ('0.038107950629785184',)} args : 1338160715 depend.output_id : 0 input_args_next_step : {1338161451: ('0.038107950629785184',), 1338161183: ('0.038107950629785184',), 1338161181: ('0.038107950629785184',), 1338161178: ('0.038107950629785184',), 1338161155: ('0.038107950629785184',), 1338161130: ('0.038107950629785184',), 1338160941: ('0.038107950629785184',), 1338160938: ('0.038107950629785184',), 1338160935: ('0.038107950629785184',), 1338160826: ('0.038107950629785184',), 1338160822: ('0.038107950629785184',), 1338160820: ('0.038107950629785184',), 1338160800: ('0.038107950629785184',), 1338160796: ('0.038107950629785184',), 1338160792: ('0.038107950629785184',), 1338160788: ('0.038107950629785184',), 1338160785: ('0.038107950629785184',), 1338160760: ('0.038107950629785184',), 1338160756: ('0.038107950629785184',), 1338160752: ('0.038107950629785184',), 1338160748: ('0.038107950629785184',), 1338160718: ('0.038107950629785184',), 1338160715: ('0.038107950629785184',), 1338159532: ()} output_args : {1338161451: ('0.038107950629785184',), 1338161183: ('0.038107950629785184',), 1338161181: ('0.038107950629785184',), 1338161178: ('0.038107950629785184',), 1338161155: ('0.038107950629785184',), 1338161130: ('0.038107950629785184',), 1338160941: ('0.038107950629785184',), 1338160938: ('0.038107950629785184',), 1338160935: ('0.038107950629785184',), 1338160826: ('0.038107950629785184',), 1338160822: ('0.038107950629785184',), 1338160820: ('0.038107950629785184',), 1338160800: ('0.038107950629785184',), 1338160796: ('0.038107950629785184',), 1338160792: ('0.038107950629785184',), 1338160788: ('0.038107950629785184',), 1338160785: ('0.038107950629785184',), 1338160760: ('0.038107950629785184',), 1338160756: ('0.038107950629785184',), 1338160752: ('0.038107950629785184',), 1338160748: ('0.038107950629785184',), 1338160718: ('0.038107950629785184',), 1338160715: ('0.038107950629785184',), 1338159532: ('0.038107950629785184',), 1338159527: ('0.038107950629785184',), 1338159500: ('0.038107950629785184',)} args : 1338159532 depend.output_id : 0 input_args_next_step : {1338161451: ('0.038107950629785184',), 1338161183: ('0.038107950629785184',), 1338161181: ('0.038107950629785184',), 1338161178: ('0.038107950629785184',), 1338161155: ('0.038107950629785184',), 1338161130: ('0.038107950629785184',), 1338160941: ('0.038107950629785184',), 1338160938: ('0.038107950629785184',), 1338160935: ('0.038107950629785184',), 1338160826: ('0.038107950629785184',), 1338160822: ('0.038107950629785184',), 1338160820: ('0.038107950629785184',), 1338160800: ('0.038107950629785184',), 1338160796: ('0.038107950629785184',), 1338160792: ('0.038107950629785184',), 1338160788: ('0.038107950629785184',), 1338160785: ('0.038107950629785184',), 1338160760: ('0.038107950629785184',), 1338160756: ('0.038107950629785184',), 1338160752: ('0.038107950629785184',), 1338160748: ('0.038107950629785184',), 1338160718: ('0.038107950629785184',), 1338160715: ('0.038107950629785184',), 1338159532: ('0.038107950629785184',), 1338159527: ()} output_args : {1338161451: ('0.038107950629785184',), 1338161183: ('0.038107950629785184',), 1338161181: ('0.038107950629785184',), 1338161178: ('0.038107950629785184',), 1338161155: ('0.038107950629785184',), 1338161130: ('0.038107950629785184',), 1338160941: ('0.038107950629785184',), 1338160938: ('0.038107950629785184',), 1338160935: ('0.038107950629785184',), 1338160826: ('0.038107950629785184',), 1338160822: ('0.038107950629785184',), 1338160820: ('0.038107950629785184',), 1338160800: ('0.038107950629785184',), 1338160796: ('0.038107950629785184',), 1338160792: ('0.038107950629785184',), 1338160788: ('0.038107950629785184',), 1338160785: ('0.038107950629785184',), 1338160760: ('0.038107950629785184',), 1338160756: ('0.038107950629785184',), 1338160752: ('0.038107950629785184',), 1338160748: ('0.038107950629785184',), 1338160718: ('0.038107950629785184',), 1338160715: ('0.038107950629785184',), 1338159532: ('0.038107950629785184',), 1338159527: ('0.038107950629785184',), 1338159500: ('0.038107950629785184',)} args : 1338159527 depend.output_id : 0 input_args_next_step : {1338161451: ('0.038107950629785184',), 1338161183: ('0.038107950629785184',), 1338161181: ('0.038107950629785184',), 1338161178: ('0.038107950629785184',), 1338161155: ('0.038107950629785184',), 1338161130: ('0.038107950629785184',), 1338160941: ('0.038107950629785184',), 1338160938: ('0.038107950629785184',), 1338160935: ('0.038107950629785184',), 1338160826: ('0.038107950629785184',), 1338160822: ('0.038107950629785184',), 1338160820: ('0.038107950629785184',), 1338160800: ('0.038107950629785184',), 1338160796: ('0.038107950629785184',), 1338160792: ('0.038107950629785184',), 1338160788: ('0.038107950629785184',), 1338160785: ('0.038107950629785184',), 1338160760: ('0.038107950629785184',), 1338160756: ('0.038107950629785184',), 1338160752: ('0.038107950629785184',), 1338160748: ('0.038107950629785184',), 1338160718: ('0.038107950629785184',), 1338160715: ('0.038107950629785184',), 1338159532: ('0.038107950629785184',), 1338159527: ('0.038107950629785184',), 1338159500: ()} output_args : {1338161451: ('0.038107950629785184',), 1338161183: ('0.038107950629785184',), 1338161181: ('0.038107950629785184',), 1338161178: ('0.038107950629785184',), 1338161155: ('0.038107950629785184',), 1338161130: ('0.038107950629785184',), 1338160941: ('0.038107950629785184',), 1338160938: ('0.038107950629785184',), 1338160935: ('0.038107950629785184',), 1338160826: ('0.038107950629785184',), 1338160822: ('0.038107950629785184',), 1338160820: ('0.038107950629785184',), 1338160800: ('0.038107950629785184',), 1338160796: ('0.038107950629785184',), 1338160792: ('0.038107950629785184',), 1338160788: ('0.038107950629785184',), 1338160785: ('0.038107950629785184',), 1338160760: ('0.038107950629785184',), 1338160756: ('0.038107950629785184',), 1338160752: ('0.038107950629785184',), 1338160748: ('0.038107950629785184',), 1338160718: ('0.038107950629785184',), 1338160715: ('0.038107950629785184',), 1338159532: ('0.038107950629785184',), 1338159527: ('0.038107950629785184',), 1338159500: ('0.038107950629785184',)} args : 1338159500 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 : {20608349: [{'metal': 20608351, 'Carton_brun': 20608352, 'mal_croppe': 20608353, 'flou': 20608354, 'kraft': 20608355, 'Carton_gris': 20608356, 'cartonnette': 20608357, 'environnement': 20608358, 'plastique': 20608359, 'papier': 20608360, 'Teint_Dans_La_Masse': 20608361, 'autre_refus': 20608362}]} input_args_next_step : {1338161451: ('0.038107950629785184',), 1338161183: ('0.038107950629785184',), 1338161181: ('0.038107950629785184',), 1338161178: ('0.038107950629785184',), 1338161155: ('0.038107950629785184',), 1338161130: ('0.038107950629785184',), 1338160941: ('0.038107950629785184',), 1338160938: ('0.038107950629785184',), 1338160935: ('0.038107950629785184',), 1338160826: ('0.038107950629785184',), 1338160822: ('0.038107950629785184',), 1338160820: ('0.038107950629785184',), 1338160800: ('0.038107950629785184',), 1338160796: ('0.038107950629785184',), 1338160792: ('0.038107950629785184',), 1338160788: ('0.038107950629785184',), 1338160785: ('0.038107950629785184',), 1338160760: ('0.038107950629785184',), 1338160756: ('0.038107950629785184',), 1338160752: ('0.038107950629785184',), 1338160748: ('0.038107950629785184',), 1338160718: ('0.038107950629785184',), 1338160715: ('0.038107950629785184',), 1338159532: ('0.038107950629785184',), 1338159527: ('0.038107950629785184',), 1338159500: ('0.038107950629785184',), 20608349: ()} output_args : {20608349: [{'metal': 20608351, 'Carton_brun': 20608352, 'mal_croppe': 20608353, 'flou': 20608354, 'kraft': 20608355, 'Carton_gris': 20608356, 'cartonnette': 20608357, 'environnement': 20608358, 'plastique': 20608359, 'papier': 20608360, 'Teint_Dans_La_Masse': 20608361, 'autre_refus': 20608362}]} args : 20608349 depend.output_id : 0 We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :27, first value : ('0.038107950629785184',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20608349) 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 (1338161451,1338161183,1338161181,1338161178,1338161155,1338161130,1338160941,1338160938,1338160935,1338160826,1338160822,1338160820,1338160800,1338160796,1338160792,1338160788,1338160785,1338160760,1338160756,1338160752,1338160748,1338160718,1338160715,1338159532,1338159527,1338159500) Found this number of photos: 26 ##### Call download_photos : nb_thread : 5 begin to download photo : 1338159500 begin to download photo : 1338160752 begin to download photo : 1338160796 begin to download photo : 1338160938 begin to download photo : 1338161183 download finish for photo 1338159500 begin to download photo : 1338159527 download finish for photo 1338160938 begin to download photo : 1338160941 download finish for photo 1338161183 begin to download photo : 1338161451 download finish for photo 1338160796 begin to download photo : 1338160800 download finish for photo 1338160752 begin to download photo : 1338160756 download finish for photo 1338159527 begin to download photo : 1338159532 download finish for photo 1338160941 begin to download photo : 1338161130 download finish for photo 1338161451 download finish for photo 1338160756 begin to download photo : 1338160760 download finish for photo 1338160800 begin to download photo : 1338160820 download finish for photo 1338159532 begin to download photo : 1338160715 download finish for photo 1338161130 begin to download photo : 1338161155 download finish for photo 1338160820 begin to download photo : 1338160822 download finish for photo 1338160760 begin to download photo : 1338160785 download finish for photo 1338160715 begin to download photo : 1338160718 download finish for photo 1338161155 begin to download photo : 1338161178 download finish for photo 1338160718 begin to download photo : 1338160748 download finish for photo 1338161178 begin to download photo : 1338161181 download finish for photo 1338160785 begin to download photo : 1338160788 download finish for photo 1338160822 begin to download photo : 1338160826 download finish for photo 1338160826 begin to download photo : 1338160935 download finish for photo 1338161181 download finish for photo 1338160788 begin to download photo : 1338160792 download finish for photo 1338160748 download finish for photo 1338160935 download finish for photo 1338160792 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette206083511739854349/ imagette206083531739854349/ imagette206083541739854349/ length of list_filenames : 26 ; length of list_pids : 26 ; length of list_args : 26 results_Auto_P20608349_18-02-2025_05_52_29.pdf 20608351 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=20608351 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette206083511739854349 20608353 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=20608353 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette206083531739854349 20608354 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=20608354 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette206083541739854349 20608355 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=20608355 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1338161217: '1739797133_2641125_1338161130_4d42e4d7937d57b378b51c3382441695_rle_crop_3678008908_0.png'} change filename to text .imagette206083551739854349/ imagette206083551739854349/1739797133_2641125_1338161130_4d42e4d7937d57b378b51c3382441695_rle_crop_3678008908_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/b8131ab849ed77d43e152678f22e89de_87504533.png imagette206083551739854349 20608357 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=20608357 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1338160843: '1739796892_2638581_1338160760_a15c37a8b5bbfc6646487187948db7f5_rle_crop_3678006644_0.png', 1338160856: '1739796914_2638784_1338160756_b82a10e069085afa0a7d74baba4979b3_rle_crop_3678006820_0.png', 1338161125: '1739797012_2639750_1338160792_225718b97d85dc76cf17c6562b3128a7_rle_crop_3678007985_0.png', 1338166879: '1739799174_2720128_1338160756_b82a10e069085afa0a7d74baba4979b3_rle_crop_3678006820_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/996eb79880aa33bb25022e0e9053d4aa_64913867.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/c76c17ddfcdbbd892ec7beff3dd33b96_14540068.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/1865bc1d196ada84cfb9a55d151afea4_47947054.png change filename to text .imagette206083571739854350/ imagette206083571739854350/1739797012_2639750_1338160792_225718b97d85dc76cf17c6562b3128a7_rle_crop_3678007985_0.png.png imagette206083571739854350/1739796914_2638784_1338160756_b82a10e069085afa0a7d74baba4979b3_rle_crop_3678006820_0.png.png imagette206083571739854350/1739796892_2638581_1338160760_a15c37a8b5bbfc6646487187948db7f5_rle_crop_3678006644_0.png.png imagette206083571739854350/1739799174_2720128_1338160756_b82a10e069085afa0a7d74baba4979b3_rle_crop_3678006820_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/c76c17ddfcdbbd892ec7beff3dd33b96_61386893.png imagette206083571739854350 20608359 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=20608359 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1338161126: '1739797012_2639750_1338160796_ab6f2ed7ccb84f83548e012ba88089e3_rle_crop_3678007978_0.png', 1338161127: '1739797012_2639750_1338160792_225718b97d85dc76cf17c6562b3128a7_rle_crop_3678007996_0.png', 1338166884: '1739799174_2720128_1338160800_ff70bddefa2b560aad097f0405fd2d8c_rle_crop_3678040551_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/c82d5fc856369c36550d39e728b16550_93789316.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/f29198a5d23b1423168445c3fa82efc8_53749784.png change filename to text .imagette206083591739854350/ imagette206083591739854350/1739799174_2720128_1338160800_ff70bddefa2b560aad097f0405fd2d8c_rle_crop_3678040551_0.png.png imagette206083591739854350/1739797012_2639750_1338160796_ab6f2ed7ccb84f83548e012ba88089e3_rle_crop_3678007978_0.png.png imagette206083591739854350/1739797012_2639750_1338160792_225718b97d85dc76cf17c6562b3128a7_rle_crop_3678007996_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/b1d361628440fbe38f20b6c178b7e501_8435433.png imagette206083591739854350 20608362 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=20608362 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1338161122: '1739797012_2639750_1338160796_ab6f2ed7ccb84f83548e012ba88089e3_rle_crop_3678007971_0.png', 1338161123: '1739797012_2639750_1338160792_225718b97d85dc76cf17c6562b3128a7_rle_crop_3678007989_0.png', 1338161218: '1739797154_2641353_1338160935_1a678feb843afdc2507769881f8c18ee_rle_crop_3678009642_0.png', 1338166838: '1739799092_2718716_1338160941_e833fd57004f0b44b631c896a2088ae9_rle_crop_3678040459_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/fd83d9245912f69efb6a9a41105fe6a5_8084132.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/38cfcbc5bfa53dd11a724cee0d49a38f_81481454.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/eb2b78f205352a8fc8331e3c5b814531_99545765.png change filename to text .imagette206083621739854350/ imagette206083621739854350/1739797012_2639750_1338160796_ab6f2ed7ccb84f83548e012ba88089e3_rle_crop_3678007971_0.png.png imagette206083621739854350/1739799092_2718716_1338160941_e833fd57004f0b44b631c896a2088ae9_rle_crop_3678040459_0.png.png imagette206083621739854350/1739797012_2639750_1338160792_225718b97d85dc76cf17c6562b3128a7_rle_crop_3678007989_0.png.png imagette206083621739854350/1739797154_2641353_1338160935_1a678feb843afdc2507769881f8c18ee_rle_crop_3678009642_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/fca6fdb84d60ae11bbd7b92126848010_97827853.png imagette206083621739854350 20608352 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=20608352 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1338160304: '1739796532_2635371_1338159500_747db54a0fb7406e8f6d0aae6bb7cf7f_rle_crop_3678003910_0.png', 1338161050: '1739797023_2639892_1338160820_a635a0c0825e6ef68ee99574591ac57b_rle_crop_3678007954_0.png', 1338166845: '1739799092_2718716_1338160820_a635a0c0825e6ef68ee99574591ac57b_rle_crop_3678007954_0.png', 1338166882: '1739799174_2720128_1338160800_ff70bddefa2b560aad097f0405fd2d8c_rle_crop_3678040546_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/ca6155968fe4c1f6a7db219eb472326a_66793999.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/0befdbc0383a483ca6ce45e4aa38ba36_30010836.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/0befdbc0383a483ca6ce45e4aa38ba36_61879481.png change filename to text .imagette206083521739854351/ imagette206083521739854351/1739799092_2718716_1338160820_a635a0c0825e6ef68ee99574591ac57b_rle_crop_3678007954_0.png.png imagette206083521739854351/1739796532_2635371_1338159500_747db54a0fb7406e8f6d0aae6bb7cf7f_rle_crop_3678003910_0.png.png imagette206083521739854351/1739799174_2720128_1338160800_ff70bddefa2b560aad097f0405fd2d8c_rle_crop_3678040546_0.png.png imagette206083521739854351/1739797023_2639892_1338160820_a635a0c0825e6ef68ee99574591ac57b_rle_crop_3678007954_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/6e70019719197b4431ce51548aff9f29_48920987.png imagette206083521739854351 20608356 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=20608356 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1338160764: '1739796773_2637386_1338160718_e30c97a485473c133b81032a1b46eaf2_rle_crop_3678006363_0.png', 1338160765: '1739796773_2637386_1338160718_e30c97a485473c133b81032a1b46eaf2_rle_crop_3678006369_0.png', 1338160766: '1739796773_2637386_1338160718_e30c97a485473c133b81032a1b46eaf2_rle_crop_3678006361_0.png', 1338160842: '1739796892_2638581_1338160715_ca6cc9bf4bce390fedd03b12aa5e554c_rle_crop_3678006666_0.png', 1338161049: '1739797023_2639892_1338160820_a635a0c0825e6ef68ee99574591ac57b_rle_crop_3678007952_0.png', 1338161124: '1739797012_2639750_1338160785_1938fd0237c1832d3855e983224d253f_rle_crop_3678008017_0.png', 1338161216: '1739797133_2641125_1338161155_34bc48b747cb62fb30711e261502cd95_rle_crop_3678008897_0.png', 1338166843: '1739799092_2718716_1338160820_a635a0c0825e6ef68ee99574591ac57b_rle_crop_3678007952_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/236aa41d9efdf901430a92b8e395c668_14234986.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/b90d8ff78dc5435d0917bd1ea0de1615_61097116.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/ae9e74149be126d7efa9b8edb12a4366_63007493.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/8ae0199a93c1b70d8434fa21a091f041_65575485.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/5cb8d2360ae2acf251167caf13241208_15456396.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/df1cd63b6e458134f821e106f326cdc3_26128566.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/8205d407f245bf8d3c660a15631947a2_17883690.png change filename to text .imagette206083561739854351/ imagette206083561739854351/1739796773_2637386_1338160718_e30c97a485473c133b81032a1b46eaf2_rle_crop_3678006369_0.png.png imagette206083561739854351/1739796773_2637386_1338160718_e30c97a485473c133b81032a1b46eaf2_rle_crop_3678006363_0.png.png imagette206083561739854351/1739797012_2639750_1338160785_1938fd0237c1832d3855e983224d253f_rle_crop_3678008017_0.png.png imagette206083561739854351/1739796773_2637386_1338160718_e30c97a485473c133b81032a1b46eaf2_rle_crop_3678006361_0.png.png imagette206083561739854351/1739797133_2641125_1338161155_34bc48b747cb62fb30711e261502cd95_rle_crop_3678008897_0.png.png imagette206083561739854351/1739796892_2638581_1338160715_ca6cc9bf4bce390fedd03b12aa5e554c_rle_crop_3678006666_0.png.png imagette206083561739854351/1739799092_2718716_1338160820_a635a0c0825e6ef68ee99574591ac57b_rle_crop_3678007952_0.png.png imagette206083561739854351/1739797023_2639892_1338160820_a635a0c0825e6ef68ee99574591ac57b_rle_crop_3678007952_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/5cb8d2360ae2acf251167caf13241208_45705087.png imagette206083561739854351 20608361 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=20608361 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1338161035: '1739797023_2639892_1338160820_a635a0c0825e6ef68ee99574591ac57b_rle_crop_3678007950_0.png', 1338161117: '1739797012_2639750_1338160826_cb99f8d4ddfbb3d2a6d3192c94ed0ee6_rle_crop_3678007960_0.png', 1338161118: '1739797012_2639750_1338160792_225718b97d85dc76cf17c6562b3128a7_rle_crop_3678007993_0.png', 1338161119: '1739797012_2639750_1338160792_225718b97d85dc76cf17c6562b3128a7_rle_crop_3678007998_0.png', 1338161120: '1739797012_2639750_1338160788_b59373492e23b7923e3441c3b3247861_rle_crop_3678008008_0.png', 1338161121: '1739797012_2639750_1338160785_1938fd0237c1832d3855e983224d253f_rle_crop_3678008019_0.png', 1338166836: '1739799092_2718716_1338160820_a635a0c0825e6ef68ee99574591ac57b_rle_crop_3678007950_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/b95852ce6d17f44c51c4f927e2602ead_21034686.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/066e32efdb1122468e4448b8d933cedd_55242131.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/93e439457a5fd8e79ac737c70311bae6_17151283.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/e6fa0a4d6c593b66059417ded0ba32c5_88972869.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/7c1d84edb12b5e42d401a8a02e23f243_37074745.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/3fbf402f86111db47dc13619d12b710f_10130305.png change filename to text .imagette206083611739854352/ imagette206083611739854352/1739797012_2639750_1338160826_cb99f8d4ddfbb3d2a6d3192c94ed0ee6_rle_crop_3678007960_0.png.png imagette206083611739854352/1739799092_2718716_1338160820_a635a0c0825e6ef68ee99574591ac57b_rle_crop_3678007950_0.png.png imagette206083611739854352/1739797012_2639750_1338160788_b59373492e23b7923e3441c3b3247861_rle_crop_3678008008_0.png.png imagette206083611739854352/1739797023_2639892_1338160820_a635a0c0825e6ef68ee99574591ac57b_rle_crop_3678007950_0.png.png imagette206083611739854352/1739797012_2639750_1338160792_225718b97d85dc76cf17c6562b3128a7_rle_crop_3678007998_0.png.png imagette206083611739854352/1739797012_2639750_1338160785_1938fd0237c1832d3855e983224d253f_rle_crop_3678008019_0.png.png imagette206083611739854352/1739797012_2639750_1338160792_225718b97d85dc76cf17c6562b3128a7_rle_crop_3678007993_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/b95852ce6d17f44c51c4f927e2602ead_9839181.png imagette206083611739854352 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=20608349 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/20608363,20608364,20608365,20608366,20608367,20608368,20608369,20608370,20608371,20608372,20608373,20608374?tags=metal,Carton_brun,mal_croppe,flou,kraft,Carton_gris,cartonnette,environnement,plastique,papier,Teint_Dans_La_Masse,autre_refus your option no_mail is active, we will not send the real mail to your client args[1338161451] : ('0.038107950629785184',) no score found for photo 1338161451 apple ('0.038107950629785184',) We are sending mail with results at report@fotonower.com args[1338161183] : ('0.038107950629785184',) no score found for photo 1338161183 apple ('0.038107950629785184',) We are sending mail with results at report@fotonower.com args[1338161181] : ('0.038107950629785184',) no score found for photo 1338161181 apple ('0.038107950629785184',) We are sending mail with results at report@fotonower.com args[1338161178] : ('0.038107950629785184',) no score found for photo 1338161178 apple ('0.038107950629785184',) We are sending mail with results at report@fotonower.com args[1338161155] : ('0.038107950629785184',) no score found for photo 1338161155 apple ('0.038107950629785184',) We are sending mail with results at report@fotonower.com args[1338161130] : ('0.038107950629785184',) no score found for photo 1338161130 apple ('0.038107950629785184',) We are sending mail with results at report@fotonower.com args[1338160941] : ('0.038107950629785184',) no score found for photo 1338160941 apple ('0.038107950629785184',) We are sending mail with results at report@fotonower.com args[1338160938] : ('0.038107950629785184',) no score found for photo 1338160938 apple ('0.038107950629785184',) We are sending mail with results at report@fotonower.com args[1338160935] : ('0.038107950629785184',) no score found for photo 1338160935 apple ('0.038107950629785184',) We are sending mail with results at report@fotonower.com args[1338160826] : ('0.038107950629785184',) no score found for photo 1338160826 apple ('0.038107950629785184',) We are sending mail with results at report@fotonower.com args[1338160822] : ('0.038107950629785184',) no score found for photo 1338160822 apple ('0.038107950629785184',) We are sending mail with results at report@fotonower.com args[1338160820] : ('0.038107950629785184',) no score found for photo 1338160820 apple ('0.038107950629785184',) We are sending mail with results at report@fotonower.com args[1338160800] : ('0.038107950629785184',) no score found for photo 1338160800 apple ('0.038107950629785184',) We are sending mail with results at report@fotonower.com args[1338160796] : ('0.038107950629785184',) no score found for photo 1338160796 apple ('0.038107950629785184',) We are sending mail with results at report@fotonower.com args[1338160792] : ('0.038107950629785184',) no score found for photo 1338160792 apple ('0.038107950629785184',) We are sending mail with results at report@fotonower.com args[1338160788] : ('0.038107950629785184',) no score found for photo 1338160788 apple ('0.038107950629785184',) We are sending mail with results at report@fotonower.com args[1338160785] : ('0.038107950629785184',) no score found for photo 1338160785 apple ('0.038107950629785184',) We are sending mail with results at report@fotonower.com args[1338160760] : ('0.038107950629785184',) no score found for photo 1338160760 apple ('0.038107950629785184',) We are sending mail with results at report@fotonower.com args[1338160756] : ('0.038107950629785184',) no score found for photo 1338160756 apple ('0.038107950629785184',) We are sending mail with results at report@fotonower.com args[1338160752] : ('0.038107950629785184',) no score found for photo 1338160752 apple ('0.038107950629785184',) We are sending mail with results at report@fotonower.com args[1338160748] : ('0.038107950629785184',) no score found for photo 1338160748 apple ('0.038107950629785184',) We are sending mail with results at report@fotonower.com args[1338160718] : ('0.038107950629785184',) no score found for photo 1338160718 apple ('0.038107950629785184',) We are sending mail with results at report@fotonower.com args[1338160715] : ('0.038107950629785184',) no score found for photo 1338160715 apple ('0.038107950629785184',) We are sending mail with results at report@fotonower.com args[1338159532] : ('0.038107950629785184',) no score found for photo 1338159532 apple ('0.038107950629785184',) We are sending mail with results at report@fotonower.com args[1338159527] : ('0.038107950629785184',) no score found for photo 1338159527 apple ('0.038107950629785184',) We are sending mail with results at report@fotonower.com args[1338159500] : ('0.038107950629785184',) no score found for photo 1338159500 apple ('0.038107950629785184',) We are sending mail with results at report@fotonower.com refus_total : 0.038107950629785184 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=20608349 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_P20608349_18-02-2025_05_52_29.pdf results_Auto_P20608349_18-02-2025_05_52_29.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20608349_18-02-2025_05_52_29.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','20608349','results_Auto_P20608349_18-02-2025_05_52_29.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20608349_18-02-2025_05_52_29.pdf','pdf','','0.3','0.038107950629785184') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20608349]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1338161451, 1338161183, 1338161181, 1338161178, 1338161155, 1338161130, 1338160941, 1338160938, 1338160935, 1338160826, 1338160822, 1338160820, 1338160800, 1338160796, 1338160792, 1338160788, 1338160785, 1338160760, 1338160756, 1338160752, 1338160748, 1338160718, 1338160715, 1338159532, 1338159527, 1338159500] map_info['map_portfolio_photo'] : {20608349: [1338161451, 1338161183, 1338161181, 1338161178, 1338161155, 1338161130, 1338160941, 1338160938, 1338160935, 1338160826, 1338160822, 1338160820, 1338160800, 1338160796, 1338160792, 1338160788, 1338160785, 1338160760, 1338160756, 1338160752, 1338160748, 1338160718, 1338160715, 1338159532, 1338159527, 1338159500]} final : False mtd_id 4302 list_pids : [1338161451, 1338161183, 1338161181, 1338161178, 1338161155, 1338161130, 1338160941, 1338160938, 1338160935, 1338160826, 1338160822, 1338160820, 1338160800, 1338160796, 1338160792, 1338160788, 1338160785, 1338160760, 1338160756, 1338160752, 1338160748, 1338160718, 1338160715, 1338159532, 1338159527, 1338159500] 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, '2595265') ('4302', '20608349', '1338161451', None, None, None, None, None, '2595265') ('4302', None, None, None, None, None, None, None, '2595265') ('4302', '20608349', '1338161183', None, None, None, None, None, '2595265') ('4302', None, None, None, None, None, None, None, '2595265') ('4302', '20608349', '1338161181', None, None, None, None, None, '2595265') ('4302', None, None, None, None, None, None, None, '2595265') ('4302', '20608349', '1338161178', None, None, None, None, None, '2595265') ('4302', None, None, None, None, None, None, None, '2595265') ('4302', '20608349', '1338161155', None, None, None, None, None, '2595265') ('4302', None, None, None, None, None, None, None, '2595265') ('4302', '20608349', '1338161130', None, None, None, None, None, '2595265') ('4302', None, None, None, None, None, None, None, '2595265') ('4302', '20608349', '1338160941', None, None, None, None, None, '2595265') ('4302', None, None, None, None, None, None, None, '2595265') ('4302', '20608349', '1338160938', None, None, None, None, None, '2595265') ('4302', None, None, None, None, None, None, None, '2595265') ('4302', '20608349', '1338160935', None, None, None, None, None, '2595265') ('4302', None, None, None, None, None, None, None, '2595265') ('4302', '20608349', '1338160826', None, None, None, None, None, '2595265') ('4302', None, None, None, None, None, None, None, '2595265') ('4302', '20608349', '1338160822', None, None, None, None, None, '2595265') ('4302', None, None, None, None, None, None, None, '2595265') ('4302', '20608349', '1338160820', None, None, None, None, None, '2595265') ('4302', None, None, None, None, None, None, None, '2595265') ('4302', '20608349', '1338160800', None, None, None, None, None, '2595265') ('4302', None, None, None, None, None, None, None, '2595265') ('4302', '20608349', '1338160796', None, None, None, None, None, '2595265') ('4302', None, None, None, None, None, None, None, '2595265') ('4302', '20608349', '1338160792', None, None, None, None, None, '2595265') ('4302', None, None, None, None, None, None, None, '2595265') ('4302', '20608349', '1338160788', None, None, None, None, None, '2595265') ('4302', None, None, None, None, None, None, None, '2595265') ('4302', '20608349', '1338160785', None, None, None, None, None, '2595265') ('4302', None, None, None, None, None, None, None, '2595265') ('4302', '20608349', '1338160760', None, None, None, None, None, '2595265') ('4302', None, None, None, None, None, None, None, '2595265') ('4302', '20608349', '1338160756', None, None, None, None, None, '2595265') ('4302', None, None, None, None, None, None, None, '2595265') ('4302', '20608349', '1338160752', None, None, None, None, None, '2595265') ('4302', None, None, None, None, None, None, None, '2595265') ('4302', '20608349', '1338160748', None, None, None, None, None, '2595265') ('4302', None, None, None, None, None, None, None, '2595265') ('4302', '20608349', '1338160718', None, None, None, None, None, '2595265') ('4302', None, None, None, None, None, None, None, '2595265') ('4302', '20608349', '1338160715', None, None, None, None, None, '2595265') ('4302', None, None, None, None, None, None, None, '2595265') ('4302', '20608349', '1338159532', None, None, None, None, None, '2595265') ('4302', None, None, None, None, None, None, None, '2595265') ('4302', '20608349', '1338159527', None, None, None, None, None, '2595265') ('4302', None, None, None, None, None, None, None, '2595265') ('4302', '20608349', '1338159500', None, None, None, None, None, '2595265') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 26 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '20608349', '1338161451', None, None, None, None, None, '2595265'), ('4302', '20608349', '1338161183', None, None, None, None, None, '2595265'), ('4302', '20608349', '1338161181', None, None, None, None, None, '2595265'), ('4302', '20608349', '1338161178', None, None, None, None, None, '2595265'), ('4302', '20608349', '1338161155', None, None, None, None, None, '2595265'), ('4302', '20608349', '1338161130', None, None, None, None, None, '2595265'), ('4302', '20608349', '1338160941', None, None, None, None, None, '2595265'), ('4302', '20608349', '1338160938', None, None, None, None, None, '2595265'), ('4302', '20608349', '1338160935', None, None, None, None, None, '2595265'), ('4302', '20608349', '1338160826', None, None, None, None, None, '2595265'), ('4302', '20608349', '1338160822', None, None, None, None, None, '2595265'), ('4302', '20608349', '1338160820', None, None, None, None, None, '2595265'), ('4302', '20608349', '1338160800', None, None, None, None, None, '2595265'), ('4302', '20608349', '1338160796', None, None, None, None, None, '2595265'), ('4302', '20608349', '1338160792', None, None, None, None, None, '2595265'), ('4302', '20608349', '1338160788', None, None, None, None, None, '2595265'), ('4302', '20608349', '1338160785', None, None, None, None, None, '2595265'), ('4302', '20608349', '1338160760', None, None, None, None, None, '2595265'), ('4302', '20608349', '1338160756', None, None, None, None, None, '2595265'), ('4302', '20608349', '1338160752', None, None, None, None, None, '2595265'), ('4302', '20608349', '1338160748', None, None, None, None, None, '2595265'), ('4302', '20608349', '1338160718', None, None, None, None, None, '2595265'), ('4302', '20608349', '1338160715', None, None, None, None, None, '2595265'), ('4302', '20608349', '1338159532', None, None, None, None, None, '2595265'), ('4302', '20608349', '1338159527', None, None, None, None, None, '2595265'), ('4302', '20608349', '1338159500', None, None, None, None, None, '2595265')] time used for this insertion : 0.018854141235351562 save_final save missing photos in datou_result : time spend for datou_step_exec : 6.0580620765686035 time spend to save output : 0.01909351348876953 total time spend for step 4 : 6.077155590057373 step5:split_time_score Tue Feb 18 05:52:34 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 : ['20608349'] 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 : [('20608349',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20608349) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1338161183: {'path': 'temp/1739854348_2380011_1338161183_2ca1e5c8964cd9efd9776ea2b3dcdb48.jpg', 'extension': 'jpg'}, 1338161451: {'path': 'temp/1739854348_2380011_1338161451_2bee5198039176cd7755d904408ec587.jpg', 'extension': 'jpg'}, 1338160938: {'path': 'temp/1739854348_2380011_1338160938_dd51411f4ff7777939396844be7ebc32.jpg', 'extension': 'jpg'}, 1338160941: {'path': 'temp/1739854348_2380011_1338160941_e833fd57004f0b44b631c896a2088ae9.jpg', 'extension': 'jpg'}, 1338161130: {'path': 'temp/1739854348_2380011_1338161130_4d42e4d7937d57b378b51c3382441695.jpg', 'extension': 'jpg'}, 1338161155: {'path': 'temp/1739854348_2380011_1338161155_34bc48b747cb62fb30711e261502cd95.jpg', 'extension': 'jpg'}, 1338161178: {'path': 'temp/1739854348_2380011_1338161178_88c6f12d99899f7068b244967da3d65e.jpg', 'extension': 'jpg'}, 1338161181: {'path': 'temp/1739854348_2380011_1338161181_b878c6592fe08cf374814397f6df1864.jpg', 'extension': 'jpg'}, 1338159500: {'path': 'temp/1739854348_2380011_1338159500_747db54a0fb7406e8f6d0aae6bb7cf7f.jpg', 'extension': 'jpg'}, 1338159527: {'path': 'temp/1739854348_2380011_1338159527_75b354af491613cf3f06cac2edeae367.jpg', 'extension': 'jpg'}, 1338159532: {'path': 'temp/1739854348_2380011_1338159532_1446344128a5aed189a4e8d555de0501.jpg', 'extension': 'jpg'}, 1338160715: {'path': 'temp/1739854348_2380011_1338160715_ca6cc9bf4bce390fedd03b12aa5e554c.jpg', 'extension': 'jpg'}, 1338160718: {'path': 'temp/1739854348_2380011_1338160718_e30c97a485473c133b81032a1b46eaf2.jpg', 'extension': 'jpg'}, 1338160748: {'path': 'temp/1739854348_2380011_1338160748_29c50b5b9d56ad70daf0254faa111326.jpg', 'extension': 'jpg'}, 1338160796: {'path': 'temp/1739854348_2380011_1338160796_ab6f2ed7ccb84f83548e012ba88089e3.jpg', 'extension': 'jpg'}, 1338160800: {'path': 'temp/1739854348_2380011_1338160800_ff70bddefa2b560aad097f0405fd2d8c.jpg', 'extension': 'jpg'}, 1338160820: {'path': 'temp/1739854348_2380011_1338160820_a635a0c0825e6ef68ee99574591ac57b.jpg', 'extension': 'jpg'}, 1338160822: {'path': 'temp/1739854348_2380011_1338160822_92af99389ac6524faf402c122584ee42.jpg', 'extension': 'jpg'}, 1338160826: {'path': 'temp/1739854348_2380011_1338160826_cb99f8d4ddfbb3d2a6d3192c94ed0ee6.jpg', 'extension': 'jpg'}, 1338160935: {'path': 'temp/1739854348_2380011_1338160935_1a678feb843afdc2507769881f8c18ee.jpg', 'extension': 'jpg'}, 1338160752: {'path': 'temp/1739854348_2380011_1338160752_48163774bec43c77f62efa751626d4b7.jpg', 'extension': 'jpg'}, 1338160756: {'path': 'temp/1739854348_2380011_1338160756_b82a10e069085afa0a7d74baba4979b3.jpg', 'extension': 'jpg'}, 1338160760: {'path': 'temp/1739854348_2380011_1338160760_a15c37a8b5bbfc6646487187948db7f5.jpg', 'extension': 'jpg'}, 1338160785: {'path': 'temp/1739854348_2380011_1338160785_1938fd0237c1832d3855e983224d253f.jpg', 'extension': 'jpg'}, 1338160788: {'path': 'temp/1739854348_2380011_1338160788_b59373492e23b7923e3441c3b3247861.jpg', 'extension': 'jpg'}, 1338160792: {'path': 'temp/1739854348_2380011_1338160792_225718b97d85dc76cf17c6562b3128a7.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 = 20608349; (('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 = 20608349 group by h (('13', 26),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=20608349 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 (20608349) 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 (20608349) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 17022025 20608349 Nombre de photos uploadées : 26 / 23040 (0%) 17022025 20608349 Nombre de photos taguées (types de déchets): 0 / 26 (0%) 17022025 20608349 Nombre de photos taguées (volume) : 0 / 26 (0%) [{'photo_id': 1338159500, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/747db54a0fb7406e8f6d0aae6bb7cf7f.jpg', 'username': None, 'uploaded_at': 1739796427, 'text': 'image_17022025_13_46_45_010136m0.jpg 1e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1338159532, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/1446344128a5aed189a4e8d555de0501.jpg', 'username': None, 'uploaded_at': 1739796487, 'text': 'image_17022025_13_46_55_010137m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1338159527, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/75b354af491613cf3f06cac2edeae367.jpg', 'username': None, 'uploaded_at': 1739796487, 'text': 'image_17022025_13_47_34_010149m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1338160718, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/e30c97a485473c133b81032a1b46eaf2.jpg', 'username': None, 'uploaded_at': 1739796727, 'text': 'image_17022025_13_47_45_010135m0.jpg 4e-05 for time 1, id_amount 1 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 1.1920928955078125e-06 elapsed_time : order_list_meta_photo_and_scores 3.337860107421875e-06 ?????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.000766754150390625 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 20608349, '2025-02-17' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1607134,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.022187232971191406 We will return after consolidate but for now we need the day, how to get it, for now depending on the previous heavy steps SELECT dri.dashboard_entry_day, dr.dashboard_run_id, dr.mtr_portfolio_id, dr.id, dr.hashtag, dr.completion_json FROM MTRPhoto.dashboard_results dr, MTRPhoto.dashboard_run_ids dri, MTRPhoto.dashboard_entry_day ded WHERE ded.id= 1607134 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1607134, 'dashboard_run_id': 1617283, 'mtr_portfolio_id': 20594280, 'dashboard_result_id': 8943577, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20594280_18-02-2025_05_34_29.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20594282, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20594283, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20594284, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20594285, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20594286, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20594287, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20594288, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20594289, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20594290, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20594291, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20594292, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20594293, 'pht': 3726}}"}, {'dashboat_entry_day': 1607134, 'dashboard_run_id': 1617283, 'mtr_portfolio_id': 20594332, 'dashboard_result_id': 8943578, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20594332_18-02-2025_05_35_34.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20594334, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20594335, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20594336, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20594337, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20594338, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20594339, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20594340, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20594341, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20594342, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20594343, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20594344, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20594345, 'pht': 3726}}"}, {'dashboat_entry_day': 1607134, 'dashboard_run_id': 1617283, 'mtr_portfolio_id': 20594486, 'dashboard_result_id': 8943579, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20594486_18-02-2025_05_35_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20594488, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20594489, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20594490, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20594491, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20594492, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20594493, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20594494, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20594495, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20594496, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20594497, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20594498, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20594499, 'pht': 3726}}"}, {'dashboat_entry_day': 1607134, 'dashboard_run_id': 1617283, 'mtr_portfolio_id': 20594872, 'dashboard_result_id': 8943580, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20594872_18-02-2025_05_36_35.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20594922, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20594923, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20594924, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20594925, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20594926, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20594927, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20594928, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20594929, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20594930, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20594931, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20594932, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20594933, 'pht': 3726}}"}, {'dashboat_entry_day': 1607134, 'dashboard_run_id': 1617283, 'mtr_portfolio_id': 20595236, 'dashboard_result_id': 8943581, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20595236_18-02-2025_05_37_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20595239, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20595240, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20595241, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20595242, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20595243, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20595244, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20595245, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20595246, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20595247, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20595248, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20595249, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20595250, 'pht': 3726}}"}, {'dashboat_entry_day': 1607134, 'dashboard_run_id': 1617283, 'mtr_portfolio_id': 20595343, 'dashboard_result_id': 8943582, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20595343_18-02-2025_05_38_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20595344, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20595345, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20595346, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20595347, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20595348, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20595349, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20595350, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20595351, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20595352, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20595353, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20595354, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20595355, 'pht': 3726}}"}, {'dashboat_entry_day': 1607134, 'dashboard_run_id': 1617283, 'mtr_portfolio_id': 20595598, 'dashboard_result_id': 8943583, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20595598_18-02-2025_05_38_33.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20595600, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20595601, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20595602, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20595603, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20595604, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20595605, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20595606, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20595607, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20595608, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20595609, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20595610, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20595611, 'pht': 3726}}"}, {'dashboat_entry_day': 1607134, 'dashboard_run_id': 1617283, 'mtr_portfolio_id': 20595820, 'dashboard_result_id': 8943584, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20595820_18-02-2025_05_39_34.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20595849, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20595850, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20595851, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20595852, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20595853, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20595854, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20595855, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20595856, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20595857, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20595858, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20595859, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20595860, 'pht': 3726}}"}, {'dashboat_entry_day': 1607134, 'dashboard_run_id': 1617283, 'mtr_portfolio_id': 20596067, 'dashboard_result_id': 8943585, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20596067_18-02-2025_05_40_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20596135, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20596136, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20596137, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20596138, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20596139, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20596140, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20596141, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20596142, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20596143, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20596144, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20596145, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20596146, 'pht': 3726}}"}, {'dashboat_entry_day': 1607134, 'dashboard_run_id': 1617283, 'mtr_portfolio_id': 20596959, 'dashboard_result_id': 8943586, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20596959_18-02-2025_05_40_30.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20596961, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20596962, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20596963, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20596964, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20596965, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20596966, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20596967, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20596968, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20596969, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20596970, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20596971, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20596972, 'pht': 3726}}"}, {'dashboat_entry_day': 1607134, 'dashboard_run_id': 1617283, 'mtr_portfolio_id': 20597365, 'dashboard_result_id': 8943587, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20597365_18-02-2025_05_41_36.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20597370, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20597371, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20597372, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20597373, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20597374, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20597375, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20597376, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20597377, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20597378, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20597379, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20597380, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20597381, 'pht': 3726}}"}, {'dashboat_entry_day': 1607134, 'dashboard_run_id': 1617283, 'mtr_portfolio_id': 20597866, 'dashboard_result_id': 8943588, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20597866_18-02-2025_05_42_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20597871, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20597872, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20597873, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20597874, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20597875, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20597876, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20597877, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20597878, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20597879, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20597880, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20597881, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20597882, 'pht': 3726}}"}, {'dashboat_entry_day': 1607134, 'dashboard_run_id': 1617283, 'mtr_portfolio_id': 20598303, 'dashboard_result_id': 8943589, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20598303_18-02-2025_05_43_03.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20598306, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20598307, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20598308, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20598309, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20598310, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20598311, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20598312, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20598313, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20598314, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20598315, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20598316, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20598317, 'pht': 3726}}"}, {'dashboat_entry_day': 1607134, 'dashboard_run_id': 1617283, 'mtr_portfolio_id': 20598844, 'dashboard_result_id': 8943590, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20598844_18-02-2025_05_43_32.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20598883, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20598884, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20598885, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20598886, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20598887, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20598888, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20598889, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20598890, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20598891, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20598892, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20598893, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20598894, 'pht': 3726}}"}, {'dashboat_entry_day': 1607134, 'dashboard_run_id': 1617283, 'mtr_portfolio_id': 20599330, 'dashboard_result_id': 8943591, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20599330_18-02-2025_05_44_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20599334, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20599335, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20599336, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20599337, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20599338, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20599339, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20599340, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20599341, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20599342, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20599343, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20599344, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20599345, 'pht': 3726}}"}, {'dashboat_entry_day': 1607134, 'dashboard_run_id': 1617283, 'mtr_portfolio_id': 20600382, 'dashboard_result_id': 8943592, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20600382_18-02-2025_05_44_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20600384, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20600385, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20600386, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20600387, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20600388, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20600389, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20600390, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20600391, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20600392, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20600393, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20600394, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20600395, 'pht': 3726}}"}, {'dashboat_entry_day': 1607134, 'dashboard_run_id': 1617283, 'mtr_portfolio_id': 20600895, 'dashboard_result_id': 8943593, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20600895_18-02-2025_05_45_33.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20600898, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20600899, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20600900, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20600901, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20600902, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20600903, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20600904, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20600905, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20600906, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20600907, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20600908, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20600909, 'pht': 3726}}"}, {'dashboat_entry_day': 1607134, 'dashboard_run_id': 1617283, 'mtr_portfolio_id': 20601335, 'dashboard_result_id': 8943594, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20601335_18-02-2025_05_46_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20601363, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20601364, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20601365, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20601366, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20601367, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20601368, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20601369, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20601370, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20601371, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20601372, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20601373, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20601374, 'pht': 3726}}"}, {'dashboat_entry_day': 1607134, 'dashboard_run_id': 1617283, 'mtr_portfolio_id': 20601878, 'dashboard_result_id': 8943595, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20601878_18-02-2025_05_47_06.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20601906, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20601907, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20601908, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20601909, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20601910, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20601911, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20601912, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20601913, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20601914, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20601915, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20601916, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20601917, 'pht': 3726}}"}, {'dashboat_entry_day': 1607134, 'dashboard_run_id': 1617283, 'mtr_portfolio_id': 20602408, 'dashboard_result_id': 8943596, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20602408_18-02-2025_05_47_34.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20602437, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20602438, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20602439, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20602440, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20602441, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20602442, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20602443, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20602444, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20602445, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20602446, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20602447, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20602448, 'pht': 3726}}"}, {'dashboat_entry_day': 1607134, 'dashboard_run_id': 1617283, 'mtr_portfolio_id': 20602902, 'dashboard_result_id': 8943597, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20602902_18-02-2025_05_48_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20602954, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20602955, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20602956, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20602957, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20602958, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20602959, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20602960, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20602961, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20602962, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20602963, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20602964, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20602965, 'pht': 3726}}"}, {'dashboat_entry_day': 1607134, 'dashboard_run_id': 1617283, 'mtr_portfolio_id': 20603399, 'dashboard_result_id': 8943598, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20603399_18-02-2025_05_48_33.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20603419, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20603420, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20603421, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20603422, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20603424, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20603425, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20603426, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20603427, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20603428, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20603429, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20603430, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20603431, 'pht': 3726}}"}, {'dashboat_entry_day': 1607134, 'dashboard_run_id': 1617283, 'mtr_portfolio_id': 20604235, 'dashboard_result_id': 8943599, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20604235_18-02-2025_05_50_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20604266, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20604267, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20604268, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20604269, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20604270, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20604271, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20604272, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20604273, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20604274, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20604275, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20604276, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20604277, 'pht': 3726}}"}, {'dashboat_entry_day': 1607134, 'dashboard_run_id': 1617283, 'mtr_portfolio_id': 20605068, 'dashboard_result_id': 8943600, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20605068_18-02-2025_05_50_36.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20605077, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20605078, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20605079, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20605080, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20605081, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20605082, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20605083, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20605084, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20605085, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20605086, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20605087, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20605088, 'pht': 3726}}"}, {'dashboat_entry_day': 1607134, 'dashboard_run_id': 1617283, 'mtr_portfolio_id': 20605919, 'dashboard_result_id': 8943601, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20605919_18-02-2025_05_51_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20605924, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20605925, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20605926, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20605927, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20605928, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20605929, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20605930, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20605931, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20605932, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20605933, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20605934, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20605935, 'pht': 3726}}"}, {'dashboat_entry_day': 1607134, 'dashboard_run_id': 1617283, 'mtr_portfolio_id': 20606546, 'dashboard_result_id': 8943602, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20606546_18-02-2025_05_51_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20606575, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20606576, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20606577, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20606578, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20606579, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20606580, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20606581, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20606582, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20606583, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20606584, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20606585, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20606586, 'pht': 3726}}"}, {'dashboat_entry_day': 1607134, 'dashboard_run_id': 1617283, 'mtr_portfolio_id': 20608349, 'dashboard_result_id': 8943603, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20608349_17-02-2025_14_02_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20608351, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20608352, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20608353, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20608354, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20608355, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20608356, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20608357, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20608358, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20608359, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20608360, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20608361, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20608362, 'pht': 3726}}"}, {'dashboat_entry_day': 1607134, 'dashboard_run_id': 1617283, 'mtr_portfolio_id': 20608630, 'dashboard_result_id': 8943604, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20608630_17-02-2025_14_18_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20608634, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20608635, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20608636, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20608637, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20608638, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20608639, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20608640, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20608641, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20608642, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20608643, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20608644, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20608645, 'pht': 3726}}"}, {'dashboat_entry_day': 1607134, 'dashboard_run_id': 1617283, 'mtr_portfolio_id': 20608978, 'dashboard_result_id': 8943605, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20608978_18-02-2025_00_02_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20608982, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20608983, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20608984, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20608985, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20608986, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20608987, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20608988, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20608989, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20608990, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20608991, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20608992, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20608993, 'pht': 3726}}"}, {'dashboat_entry_day': 1607134, 'dashboard_run_id': 1617283, 'mtr_portfolio_id': 20610400, 'dashboard_result_id': 8943606, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20610400_17-02-2025_15_47_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20610402, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20610403, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20610404, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20610405, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20610406, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20610407, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20610408, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20610409, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20610410, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20610411, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20610412, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20610413, 'pht': 3726}}"}, {'dashboat_entry_day': 1607134, 'dashboard_run_id': 1617283, 'mtr_portfolio_id': 20610537, 'dashboard_result_id': 8943607, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20610537_17-02-2025_16_02_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20610540, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20610541, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20610542, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20610543, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20610544, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20610545, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20610546, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20610547, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20610548, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20610549, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20610550, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20610551, 'pht': 3726}}"}, {'dashboat_entry_day': 1607134, 'dashboard_run_id': 1617283, 'mtr_portfolio_id': 20610930, 'dashboard_result_id': 8943608, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20610930_17-02-2025_16_17_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20610958, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20610959, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20610960, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20610961, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20610962, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20610963, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20610964, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20610965, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20610966, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20610967, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20610968, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20610969, 'pht': 3726}}"}, {'dashboat_entry_day': 1607134, 'dashboard_run_id': 1617283, 'mtr_portfolio_id': 20611466, 'dashboard_result_id': 8943609, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20611466_17-02-2025_16_33_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20611494, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20611495, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20611496, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20611497, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20611498, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20611499, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20611500, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20611501, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20611502, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20611503, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20611504, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20611505, 'pht': 3726}}"}, {'dashboat_entry_day': 1607134, 'dashboard_run_id': 1617283, 'mtr_portfolio_id': 20612080, 'dashboard_result_id': 8943610, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20612080_17-02-2025_16_48_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20612141, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20612142, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20612143, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20612144, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20612145, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20612146, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20612147, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20612148, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20612149, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20612150, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20612151, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20612152, 'pht': 3726}}"}, {'dashboat_entry_day': 1607134, 'dashboard_run_id': 1617283, 'mtr_portfolio_id': 20612767, 'dashboard_result_id': 8943611, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20612767_17-02-2025_17_02_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20612821, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20612822, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20612823, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20612824, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20612825, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20612826, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20612827, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20612828, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20612829, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20612830, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20612831, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20612832, 'pht': 3726}}"}, {'dashboat_entry_day': 1607134, 'dashboard_run_id': 1617283, 'mtr_portfolio_id': 20613570, 'dashboard_result_id': 8943612, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20613570_17-02-2025_17_19_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20613598, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20613599, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20613600, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20613601, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20613602, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20613603, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20613604, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20613605, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20613606, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20613607, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20613608, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20613609, 'pht': 3726}}"}, {'dashboat_entry_day': 1607134, 'dashboard_run_id': 1617283, 'mtr_portfolio_id': 20614317, 'dashboard_result_id': 8943613, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20614317_17-02-2025_17_32_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20614324, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20614325, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20614326, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20614327, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20614328, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20614329, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20614330, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20614331, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20614332, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20614333, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20614334, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20614335, 'pht': 3726}}"}, {'dashboat_entry_day': 1607134, 'dashboard_run_id': 1617283, 'mtr_portfolio_id': 20615941, 'dashboard_result_id': 8943614, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20615941_17-02-2025_18_19_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20615944, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20615945, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20615946, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20615947, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20615948, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20615949, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20615950, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20615951, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20615952, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20615953, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20615954, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20615955, 'pht': 3726}}"}, {'dashboat_entry_day': 1607134, 'dashboard_run_id': 1617283, 'mtr_portfolio_id': 20616392, 'dashboard_result_id': 8943615, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20616392_17-02-2025_18_32_57.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20616395, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20616396, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20616397, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20616398, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20616399, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20616400, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20616401, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20616402, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20616403, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20616404, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20616405, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20616406, 'pht': 3726}}"}, {'dashboat_entry_day': 1607134, 'dashboard_run_id': 1617283, 'mtr_portfolio_id': 20616912, 'dashboard_result_id': 8943616, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20616912_17-02-2025_18_46_30.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20616961, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20616962, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20616963, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20616964, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20616965, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20616966, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20616967, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20616968, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20616969, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20616970, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20616971, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20616972, 'pht': 3726}}"}, {'dashboat_entry_day': 1607134, 'dashboard_run_id': 1617283, 'mtr_portfolio_id': 20617382, 'dashboard_result_id': 8943617, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20617382_17-02-2025_19_03_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20617408, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20617409, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20617410, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20617411, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20617412, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20617413, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20617414, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20617415, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20617416, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20617417, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20617418, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20617419, 'pht': 3726}}"}, {'dashboat_entry_day': 1607134, 'dashboard_run_id': 1617283, 'mtr_portfolio_id': 20617949, 'dashboard_result_id': 8943618, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20617949_17-02-2025_19_16_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20617953, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20617954, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20617955, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20617956, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20617957, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20617958, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20617959, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20617960, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20617961, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20617962, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20617963, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20617964, 'pht': 3726}}"}, {'dashboat_entry_day': 1607134, 'dashboard_run_id': 1617283, 'mtr_portfolio_id': 20618403, 'dashboard_result_id': 8943619, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20618403_17-02-2025_19_33_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20618410, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20618411, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20618412, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20618413, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20618414, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20618415, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20618416, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20618417, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20618418, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20618419, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20618420, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20618421, 'pht': 3726}}"}, {'dashboat_entry_day': 1607134, 'dashboard_run_id': 1617283, 'mtr_portfolio_id': 20619056, 'dashboard_result_id': 8943620, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20619056_17-02-2025_19_46_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20619085, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20619086, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20619087, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20619088, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20619089, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20619090, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20619091, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20619092, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20619093, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20619094, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20619095, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20619096, 'pht': 3726}}"}, {'dashboat_entry_day': 1607134, 'dashboard_run_id': 1617283, 'mtr_portfolio_id': 20619597, 'dashboard_result_id': 8943621, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20619597_17-02-2025_20_03_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20619629, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20619630, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20619631, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20619632, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20619633, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20619634, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20619635, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20619636, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20619637, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20619638, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20619639, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20619640, 'pht': 3726}}"}, {'dashboat_entry_day': 1607134, 'dashboard_run_id': 1617283, 'mtr_portfolio_id': 20620365, 'dashboard_result_id': 8943622, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20620365_17-02-2025_20_16_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20620368, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20620369, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20620370, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20620371, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20620372, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20620373, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20620374, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20620375, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20620376, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20620377, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20620378, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20620379, 'pht': 3726}}"}, {'dashboat_entry_day': 1607134, 'dashboard_run_id': 1617283, 'mtr_portfolio_id': 20620922, 'dashboard_result_id': 8943623, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20620922_17-02-2025_20_32_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20620954, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20620955, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20620956, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20620957, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20620958, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20620959, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20620960, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20620961, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20620962, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20620963, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20620964, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20620965, 'pht': 3726}}"}, {'dashboat_entry_day': 1607134, 'dashboard_run_id': 1617283, 'mtr_portfolio_id': 20621658, 'dashboard_result_id': 8943624, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20621658_17-02-2025_21_08_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20621731, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20621737, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20621738, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20621739, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20621740, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20621741, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20621742, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20621743, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20621744, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20621745, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20621746, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20621747, 'pht': 3726}}"}, {'dashboat_entry_day': 1607134, 'dashboard_run_id': 1617283, 'mtr_portfolio_id': 20623013, 'dashboard_result_id': 8943625, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20623013_17-02-2025_21_36_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20623015, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20623016, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20623017, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20623018, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20623019, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20623020, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20623021, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20623022, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20623023, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20623024, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20623025, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20623026, 'pht': 3726}}"}] SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20594280 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2595239, 'mtr_portfolio_id': 20594280, 'created_at': datetime.datetime(2025, 2, 18, 5, 34, 28), 'result': '0.031063193329435315', 'result_long': None, 'result_double': None}] Qualite : 0.031063193329435315 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20594280 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20594280_18-02-2025_05_34_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20594280 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20594280_18-02-2025_05_34_29.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20594282, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20594283, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20594284, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20594285, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20594286, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20594287, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20594288, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20594289, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20594290, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20594291, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20594292, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20594293, 'pht': 3726}}" where mtr_portfolio_id = 20594280 and dashboard_run_id = 1617283 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20594280 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8943577, 0.031063193329435315, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20594280_18-02-2025_05_34_29.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20594282, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20594283, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20594284, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20594285, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20594286, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20594287, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20594288, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20594289, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20594290, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20594291, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20594292, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20594293, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20594332 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2595240, 'mtr_portfolio_id': 20594332, 'created_at': datetime.datetime(2025, 2, 18, 5, 35, 33), 'result': '0.017859220760834744', 'result_long': None, 'result_double': None}] Qualite : 0.017859220760834744 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20594332 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20594332_18-02-2025_05_35_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20594332 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20594332_18-02-2025_05_35_34.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20594334, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20594335, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20594336, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20594337, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20594338, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20594339, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20594340, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20594341, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20594342, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20594343, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20594344, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20594345, 'pht': 3726}}" where mtr_portfolio_id = 20594332 and dashboard_run_id = 1617283 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20594332 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8943578, 0.017859220760834744, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20594332_18-02-2025_05_35_34.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20594334, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20594335, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20594336, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20594337, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20594338, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20594339, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20594340, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20594341, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20594342, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20594343, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20594344, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20594345, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20594486 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2595241, 'mtr_portfolio_id': 20594486, 'created_at': datetime.datetime(2025, 2, 18, 5, 35, 57), 'result': '0.043166612285531536', 'result_long': None, 'result_double': None}] Qualite : 0.043166612285531536 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20594486 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20594486_18-02-2025_05_35_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20594486 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20594486_18-02-2025_05_35_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20594488, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20594489, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20594490, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20594491, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20594492, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20594493, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20594494, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20594495, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20594496, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20594497, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20594498, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20594499, 'pht': 3726}}" where mtr_portfolio_id = 20594486 and dashboard_run_id = 1617283 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20594486 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8943579, 0.043166612285531536, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20594486_18-02-2025_05_35_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20594488, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20594489, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20594490, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20594491, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20594492, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20594493, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20594494, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20594495, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20594496, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20594497, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20594498, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20594499, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20594872 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2595242, 'mtr_portfolio_id': 20594872, 'created_at': datetime.datetime(2025, 2, 18, 5, 36, 33), 'result': '0.041389908026938274', 'result_long': None, 'result_double': None}] Qualite : 0.041389908026938274 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20594872 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20594872_18-02-2025_05_36_35.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20594872 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20594872_18-02-2025_05_36_35.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20594922, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20594923, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20594924, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20594925, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20594926, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20594927, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20594928, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20594929, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20594930, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20594931, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20594932, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20594933, 'pht': 3726}}" where mtr_portfolio_id = 20594872 and dashboard_run_id = 1617283 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20594872 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8943580, 0.041389908026938274, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20594872_18-02-2025_05_36_35.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20594922, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20594923, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20594924, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20594925, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20594926, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20594927, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20594928, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20594929, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20594930, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20594931, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20594932, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20594933, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20595236 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2595243, 'mtr_portfolio_id': 20595236, 'created_at': datetime.datetime(2025, 2, 18, 5, 37, 31), 'result': '0.03426884123908907', 'result_long': None, 'result_double': None}] Qualite : 0.03426884123908907 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20595236 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20595236_18-02-2025_05_37_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20595236 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20595236_18-02-2025_05_37_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20595239, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20595240, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20595241, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20595242, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20595243, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20595244, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20595245, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20595246, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20595247, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20595248, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20595249, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20595250, 'pht': 3726}}" where mtr_portfolio_id = 20595236 and dashboard_run_id = 1617283 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20595236 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8943581, 0.03426884123908907, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20595236_18-02-2025_05_37_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20595239, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20595240, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20595241, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20595242, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20595243, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20595244, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20595245, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20595246, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20595247, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20595248, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20595249, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20595250, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20595343 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2595244, 'mtr_portfolio_id': 20595343, 'created_at': datetime.datetime(2025, 2, 18, 5, 38, 1), 'result': '0.05130504646756856', 'result_long': None, 'result_double': None}] Qualite : 0.05130504646756856 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20595343 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20595343_18-02-2025_05_38_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20595343 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20595343_18-02-2025_05_38_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20595344, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20595345, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20595346, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20595347, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20595348, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20595349, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20595350, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20595351, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20595352, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20595353, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20595354, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20595355, 'pht': 3726}}" where mtr_portfolio_id = 20595343 and dashboard_run_id = 1617283 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20595343 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8943582, 0.05130504646756856, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20595343_18-02-2025_05_38_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20595344, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20595345, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20595346, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20595347, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20595348, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20595349, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20595350, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20595351, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20595352, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20595353, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20595354, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20595355, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20595598 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2595245, 'mtr_portfolio_id': 20595598, 'created_at': datetime.datetime(2025, 2, 18, 5, 38, 32), 'result': '0.045798816004807036', 'result_long': None, 'result_double': None}] Qualite : 0.045798816004807036 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20595598 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20595598_18-02-2025_05_38_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20595598 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20595598_18-02-2025_05_38_33.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20595600, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20595601, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20595602, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20595603, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20595604, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20595605, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20595606, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20595607, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20595608, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20595609, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20595610, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20595611, 'pht': 3726}}" where mtr_portfolio_id = 20595598 and dashboard_run_id = 1617283 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20595598 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8943583, 0.045798816004807036, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20595598_18-02-2025_05_38_33.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20595600, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20595601, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20595602, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20595603, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20595604, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20595605, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20595606, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20595607, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20595608, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20595609, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20595610, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20595611, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20595820 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2595246, 'mtr_portfolio_id': 20595820, 'created_at': datetime.datetime(2025, 2, 18, 5, 39, 29), 'result': '0.05063497672589863', 'result_long': None, 'result_double': None}] Qualite : 0.05063497672589863 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20595820 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20595820_18-02-2025_05_39_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20595820 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20595820_18-02-2025_05_39_34.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20595849, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20595850, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20595851, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20595852, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20595853, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20595854, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20595855, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20595856, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20595857, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20595858, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20595859, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20595860, 'pht': 3726}}" where mtr_portfolio_id = 20595820 and dashboard_run_id = 1617283 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20595820 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8943584, 0.05063497672589863, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20595820_18-02-2025_05_39_34.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20595849, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20595850, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20595851, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20595852, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20595853, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20595854, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20595855, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20595856, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20595857, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20595858, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20595859, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20595860, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20596067 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2595247, 'mtr_portfolio_id': 20596067, 'created_at': datetime.datetime(2025, 2, 18, 5, 39, 59), 'result': '0.04278884657464817', 'result_long': None, 'result_double': None}] Qualite : 0.04278884657464817 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20596067 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20596067_18-02-2025_05_40_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20596067 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20596067_18-02-2025_05_40_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20596135, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20596136, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20596137, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20596138, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20596139, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20596140, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20596141, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20596142, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20596143, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20596144, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20596145, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20596146, 'pht': 3726}}" where mtr_portfolio_id = 20596067 and dashboard_run_id = 1617283 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20596067 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8943585, 0.04278884657464817, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20596067_18-02-2025_05_40_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20596135, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20596136, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20596137, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20596138, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20596139, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20596140, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20596141, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20596142, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20596143, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20596144, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20596145, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20596146, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20596959 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2595248, 'mtr_portfolio_id': 20596959, 'created_at': datetime.datetime(2025, 2, 18, 5, 40, 27), 'result': '0.06365823375523438', 'result_long': None, 'result_double': None}] Qualite : 0.06365823375523438 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20596959 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20596959_18-02-2025_05_40_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20596959 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20596959_18-02-2025_05_40_30.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20596961, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20596962, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20596963, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20596964, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20596965, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20596966, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20596967, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20596968, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20596969, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20596970, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20596971, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20596972, 'pht': 3726}}" where mtr_portfolio_id = 20596959 and dashboard_run_id = 1617283 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20596959 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8943586, 0.06365823375523438, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20596959_18-02-2025_05_40_30.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20596961, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20596962, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20596963, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20596964, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20596965, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20596966, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20596967, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20596968, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20596969, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20596970, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20596971, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20596972, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20597365 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2595249, 'mtr_portfolio_id': 20597365, 'created_at': datetime.datetime(2025, 2, 18, 5, 41, 33), 'result': '0.04739588051523087', 'result_long': None, 'result_double': None}] Qualite : 0.04739588051523087 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20597365 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20597365_18-02-2025_05_41_36.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20597365 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20597365_18-02-2025_05_41_36.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20597370, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20597371, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20597372, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20597373, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20597374, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20597375, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20597376, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20597377, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20597378, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20597379, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20597380, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20597381, 'pht': 3726}}" where mtr_portfolio_id = 20597365 and dashboard_run_id = 1617283 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20597365 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8943587, 0.04739588051523087, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20597365_18-02-2025_05_41_36.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20597370, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20597371, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20597372, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20597373, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20597374, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20597375, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20597376, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20597377, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20597378, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20597379, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20597380, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20597381, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20597866 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2595250, 'mtr_portfolio_id': 20597866, 'created_at': datetime.datetime(2025, 2, 18, 5, 41, 59), 'result': '0.0507863640909435', 'result_long': None, 'result_double': None}] Qualite : 0.0507863640909435 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20597866 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20597866_18-02-2025_05_42_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20597866 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20597866_18-02-2025_05_42_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20597871, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20597872, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20597873, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20597874, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20597875, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20597876, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20597877, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20597878, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20597879, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20597880, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20597881, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20597882, 'pht': 3726}}" where mtr_portfolio_id = 20597866 and dashboard_run_id = 1617283 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20597866 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8943588, 0.0507863640909435, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20597866_18-02-2025_05_42_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20597871, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20597872, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20597873, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20597874, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20597875, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20597876, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20597877, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20597878, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20597879, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20597880, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20597881, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20597882, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20598303 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2595251, 'mtr_portfolio_id': 20598303, 'created_at': datetime.datetime(2025, 2, 18, 5, 43, 1), 'result': '0.04057803057992565', 'result_long': None, 'result_double': None}] Qualite : 0.04057803057992565 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20598303 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20598303_18-02-2025_05_43_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20598303 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20598303_18-02-2025_05_43_03.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20598306, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20598307, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20598308, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20598309, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20598310, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20598311, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20598312, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20598313, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20598314, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20598315, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20598316, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20598317, 'pht': 3726}}" where mtr_portfolio_id = 20598303 and dashboard_run_id = 1617283 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20598303 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8943589, 0.04057803057992565, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20598303_18-02-2025_05_43_03.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20598306, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20598307, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20598308, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20598309, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20598310, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20598311, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20598312, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20598313, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20598314, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20598315, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20598316, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20598317, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20598844 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2595252, 'mtr_portfolio_id': 20598844, 'created_at': datetime.datetime(2025, 2, 18, 5, 43, 29), 'result': '0.03931859027618542', 'result_long': None, 'result_double': None}] Qualite : 0.03931859027618542 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20598844 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20598844_18-02-2025_05_43_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20598844 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20598844_18-02-2025_05_43_32.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20598883, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20598884, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20598885, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20598886, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20598887, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20598888, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20598889, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20598890, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20598891, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20598892, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20598893, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20598894, 'pht': 3726}}" where mtr_portfolio_id = 20598844 and dashboard_run_id = 1617283 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20598844 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8943590, 0.03931859027618542, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20598844_18-02-2025_05_43_32.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20598883, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20598884, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20598885, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20598886, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20598887, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20598888, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20598889, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20598890, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20598891, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20598892, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20598893, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20598894, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20599330 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2595253, 'mtr_portfolio_id': 20599330, 'created_at': datetime.datetime(2025, 2, 18, 5, 43, 59), 'result': '0.04143800630951649', 'result_long': None, 'result_double': None}] Qualite : 0.04143800630951649 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20599330 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20599330_18-02-2025_05_44_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20599330 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20599330_18-02-2025_05_44_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20599334, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20599335, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20599336, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20599337, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20599338, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20599339, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20599340, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20599341, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20599342, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20599343, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20599344, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20599345, 'pht': 3726}}" where mtr_portfolio_id = 20599330 and dashboard_run_id = 1617283 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20599330 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8943591, 0.04143800630951649, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20599330_18-02-2025_05_44_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20599334, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20599335, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20599336, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20599337, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20599338, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20599339, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20599340, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20599341, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20599342, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20599343, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20599344, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20599345, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20600382 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2595254, 'mtr_portfolio_id': 20600382, 'created_at': datetime.datetime(2025, 2, 18, 5, 44, 29), 'result': '0.046303092472893076', 'result_long': None, 'result_double': None}] Qualite : 0.046303092472893076 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20600382 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20600382_18-02-2025_05_44_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20600382 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20600382_18-02-2025_05_44_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20600384, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20600385, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20600386, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20600387, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20600388, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20600389, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20600390, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20600391, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20600392, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20600393, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20600394, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20600395, 'pht': 3726}}" where mtr_portfolio_id = 20600382 and dashboard_run_id = 1617283 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20600382 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8943592, 0.046303092472893076, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20600382_18-02-2025_05_44_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20600384, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20600385, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20600386, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20600387, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20600388, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20600389, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20600390, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20600391, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20600392, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20600393, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20600394, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20600395, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20600895 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2595255, 'mtr_portfolio_id': 20600895, 'created_at': datetime.datetime(2025, 2, 18, 5, 45, 31), 'result': '0.042865652131649', 'result_long': None, 'result_double': None}] Qualite : 0.042865652131649 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20600895 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20600895_18-02-2025_05_45_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20600895 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20600895_18-02-2025_05_45_33.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20600898, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20600899, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20600900, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20600901, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20600902, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20600903, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20600904, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20600905, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20600906, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20600907, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20600908, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20600909, 'pht': 3726}}" where mtr_portfolio_id = 20600895 and dashboard_run_id = 1617283 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20600895 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8943593, 0.042865652131649, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20600895_18-02-2025_05_45_33.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20600898, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20600899, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20600900, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20600901, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20600902, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20600903, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20600904, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20600905, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20600906, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20600907, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20600908, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20600909, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20601335 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2595256, 'mtr_portfolio_id': 20601335, 'created_at': datetime.datetime(2025, 2, 18, 5, 45, 58), 'result': '0.04169821282805755', 'result_long': None, 'result_double': None}] Qualite : 0.04169821282805755 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20601335 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20601335_18-02-2025_05_46_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20601335 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20601335_18-02-2025_05_46_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20601363, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20601364, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20601365, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20601366, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20601367, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20601368, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20601369, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20601370, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20601371, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20601372, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20601373, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20601374, 'pht': 3726}}" where mtr_portfolio_id = 20601335 and dashboard_run_id = 1617283 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20601335 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8943594, 0.04169821282805755, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20601335_18-02-2025_05_46_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20601363, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20601364, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20601365, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20601366, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20601367, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20601368, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20601369, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20601370, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20601371, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20601372, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20601373, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20601374, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20601878 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2595257, 'mtr_portfolio_id': 20601878, 'created_at': datetime.datetime(2025, 2, 18, 5, 47, 2), 'result': '0.04268416275530352', 'result_long': None, 'result_double': None}] Qualite : 0.04268416275530352 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20601878 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20601878_18-02-2025_05_47_06.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20601878 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20601878_18-02-2025_05_47_06.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20601906, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20601907, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20601908, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20601909, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20601910, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20601911, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20601912, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20601913, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20601914, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20601915, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20601916, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20601917, 'pht': 3726}}" where mtr_portfolio_id = 20601878 and dashboard_run_id = 1617283 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20601878 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8943595, 0.04268416275530352, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20601878_18-02-2025_05_47_06.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20601906, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20601907, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20601908, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20601909, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20601910, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20601911, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20601912, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20601913, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20601914, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20601915, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20601916, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20601917, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20602408 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2595258, 'mtr_portfolio_id': 20602408, 'created_at': datetime.datetime(2025, 2, 18, 5, 47, 29), 'result': '0.040911869918705226', 'result_long': None, 'result_double': None}] Qualite : 0.040911869918705226 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20602408 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20602408_18-02-2025_05_47_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20602408 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20602408_18-02-2025_05_47_34.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20602437, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20602438, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20602439, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20602440, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20602441, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20602442, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20602443, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20602444, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20602445, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20602446, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20602447, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20602448, 'pht': 3726}}" where mtr_portfolio_id = 20602408 and dashboard_run_id = 1617283 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20602408 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8943596, 0.040911869918705226, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20602408_18-02-2025_05_47_34.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20602437, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20602438, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20602439, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20602440, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20602441, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20602442, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20602443, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20602444, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20602445, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20602446, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20602447, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20602448, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20602902 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2595259, 'mtr_portfolio_id': 20602902, 'created_at': datetime.datetime(2025, 2, 18, 5, 47, 58), 'result': '0.040040156495877804', 'result_long': None, 'result_double': None}] Qualite : 0.040040156495877804 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20602902 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20602902_18-02-2025_05_48_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20602902 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20602902_18-02-2025_05_48_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20602954, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20602955, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20602956, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20602957, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20602958, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20602959, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20602960, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20602961, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20602962, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20602963, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20602964, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20602965, 'pht': 3726}}" where mtr_portfolio_id = 20602902 and dashboard_run_id = 1617283 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20602902 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8943597, 0.040040156495877804, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20602902_18-02-2025_05_48_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20602954, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20602955, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20602956, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20602957, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20602958, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20602959, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20602960, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20602961, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20602962, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20602963, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20602964, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20602965, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20603399 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2595260, 'mtr_portfolio_id': 20603399, 'created_at': datetime.datetime(2025, 2, 18, 5, 48, 30), 'result': '0.04325324285966165', 'result_long': None, 'result_double': None}] Qualite : 0.04325324285966165 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20603399 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20603399_18-02-2025_05_48_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20603399 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20603399_18-02-2025_05_48_33.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20603419, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20603420, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20603421, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20603422, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20603424, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20603425, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20603426, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20603427, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20603428, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20603429, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20603430, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20603431, 'pht': 3726}}" where mtr_portfolio_id = 20603399 and dashboard_run_id = 1617283 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20603399 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8943598, 0.04325324285966165, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20603399_18-02-2025_05_48_33.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20603419, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20603420, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20603421, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20603422, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20603424, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20603425, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20603426, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20603427, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20603428, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20603429, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20603430, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20603431, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20604235 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2595261, 'mtr_portfolio_id': 20604235, 'created_at': datetime.datetime(2025, 2, 18, 5, 49, 56), 'result': '0.04599580135235511', 'result_long': None, 'result_double': None}] Qualite : 0.04599580135235511 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20604235 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20604235_18-02-2025_05_50_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20604235 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20604235_18-02-2025_05_50_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20604266, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20604267, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20604268, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20604269, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20604270, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20604271, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20604272, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20604273, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20604274, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20604275, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20604276, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20604277, 'pht': 3726}}" where mtr_portfolio_id = 20604235 and dashboard_run_id = 1617283 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20604235 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8943599, 0.04599580135235511, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20604235_18-02-2025_05_50_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20604266, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20604267, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20604268, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20604269, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20604270, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20604271, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20604272, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20604273, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20604274, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20604275, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20604276, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20604277, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20605068 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2595262, 'mtr_portfolio_id': 20605068, 'created_at': datetime.datetime(2025, 2, 18, 5, 50, 32), 'result': '0.03954835758593325', 'result_long': None, 'result_double': None}] Qualite : 0.03954835758593325 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20605068 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20605068_18-02-2025_05_50_36.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20605068 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20605068_18-02-2025_05_50_36.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20605077, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20605078, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20605079, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20605080, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20605081, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20605082, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20605083, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20605084, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20605085, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20605086, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20605087, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20605088, 'pht': 3726}}" where mtr_portfolio_id = 20605068 and dashboard_run_id = 1617283 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20605068 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8943600, 0.03954835758593325, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20605068_18-02-2025_05_50_36.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20605077, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20605078, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20605079, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20605080, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20605081, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20605082, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20605083, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20605084, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20605085, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20605086, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20605087, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20605088, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20605919 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2595263, 'mtr_portfolio_id': 20605919, 'created_at': datetime.datetime(2025, 2, 18, 5, 51, 30), 'result': '0.04702874559763831', 'result_long': None, 'result_double': None}] Qualite : 0.04702874559763831 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20605919 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20605919_18-02-2025_05_51_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20605919 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20605919_18-02-2025_05_51_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20605924, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20605925, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20605926, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20605927, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20605928, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20605929, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20605930, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20605931, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20605932, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20605933, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20605934, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20605935, 'pht': 3726}}" where mtr_portfolio_id = 20605919 and dashboard_run_id = 1617283 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20605919 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8943601, 0.04702874559763831, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20605919_18-02-2025_05_51_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20605924, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20605925, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20605926, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20605927, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20605928, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20605929, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20605930, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20605931, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20605932, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20605933, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20605934, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20605935, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20606546 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2595264, 'mtr_portfolio_id': 20606546, 'created_at': datetime.datetime(2025, 2, 18, 5, 51, 57), 'result': '0.04338361734014823', 'result_long': None, 'result_double': None}] Qualite : 0.04338361734014823 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20606546 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20606546_18-02-2025_05_51_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20606546 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20606546_18-02-2025_05_51_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20606575, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20606576, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20606577, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20606578, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20606579, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20606580, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20606581, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20606582, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20606583, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20606584, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20606585, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20606586, 'pht': 3726}}" where mtr_portfolio_id = 20606546 and dashboard_run_id = 1617283 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20606546 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8943602, 0.04338361734014823, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20606546_18-02-2025_05_51_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20606575, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20606576, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20606577, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20606578, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20606579, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20606580, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20606581, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20606582, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20606583, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20606584, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20606585, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20606586, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20608349 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2595265, 'mtr_portfolio_id': 20608349, 'created_at': datetime.datetime(2025, 2, 18, 5, 52, 28), 'result': '0.038107950629785184', 'result_long': None, 'result_double': None}] Qualite : 0.038107950629785184 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20608349 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20608349_18-02-2025_05_52_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20608349 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20608349_18-02-2025_05_52_29.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20608351, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20608352, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20608353, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20608354, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20608355, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20608356, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20608357, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20608358, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20608359, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20608360, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20608361, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20608362, 'pht': 3726}}" where mtr_portfolio_id = 20608349 and dashboard_run_id = 1617283 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20608349 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8943603, 0.038107950629785184, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20608349_18-02-2025_05_52_29.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20608351, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20608352, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20608353, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20608354, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20608355, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20608356, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20608357, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20608358, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20608359, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20608360, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20608361, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20608362, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20608630 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2593357, 'mtr_portfolio_id': 20608630, 'created_at': datetime.datetime(2025, 2, 17, 14, 18, 58), 'result': '0.047647527627244037', 'result_long': None, 'result_double': None}] Qualite : 0.047647527627244037 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20608630 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20608630_17-02-2025_14_18_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20608630 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20608630_17-02-2025_14_18_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20608634, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20608635, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20608636, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20608637, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20608638, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20608639, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20608640, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20608641, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20608642, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20608643, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20608644, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20608645, 'pht': 3726}}" where mtr_portfolio_id = 20608630 and dashboard_run_id = 1617283 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20608630 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8943604, 0.047647527627244037, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20608630_17-02-2025_14_18_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20608634, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20608635, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20608636, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20608637, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20608638, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20608639, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20608640, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20608641, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20608642, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20608643, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20608644, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20608645, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20608978 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2593386, 'mtr_portfolio_id': 20608978, 'created_at': datetime.datetime(2025, 2, 18, 0, 2), 'result': '0.03701796209053796', 'result_long': None, 'result_double': None}] Qualite : 0.03701796209053796 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20608978 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20608978_18-02-2025_00_02_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20608978 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20608978_18-02-2025_00_02_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20608982, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20608983, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20608984, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20608985, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20608986, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20608987, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20608988, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20608989, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20608990, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20608991, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20608992, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20608993, 'pht': 3726}}" where mtr_portfolio_id = 20608978 and dashboard_run_id = 1617283 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20608978 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8943605, 0.03701796209053796, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20608978_18-02-2025_00_02_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20608982, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20608983, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20608984, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20608985, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20608986, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20608987, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20608988, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20608989, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20608990, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20608991, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20608992, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20608993, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20610400 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2593593, 'mtr_portfolio_id': 20610400, 'created_at': datetime.datetime(2025, 2, 17, 15, 47, 1), 'result': '0.05991890464611853', 'result_long': None, 'result_double': None}] Qualite : 0.05991890464611853 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20610400 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20610400_17-02-2025_15_47_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20610400 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20610400_17-02-2025_15_47_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20610402, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20610403, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20610404, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20610405, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20610406, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20610407, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20610408, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20610409, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20610410, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20610411, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20610412, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20610413, 'pht': 3726}}" where mtr_portfolio_id = 20610400 and dashboard_run_id = 1617283 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20610400 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8943606, 0.05991890464611853, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20610400_17-02-2025_15_47_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20610402, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20610403, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20610404, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20610405, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20610406, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20610407, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20610408, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20610409, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20610410, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20610411, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20610412, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20610413, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20610537 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2593603, 'mtr_portfolio_id': 20610537, 'created_at': datetime.datetime(2025, 2, 17, 16, 2, 57), 'result': '0.03986921501239806', 'result_long': None, 'result_double': None}] Qualite : 0.03986921501239806 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20610537 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20610537_17-02-2025_16_02_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20610537 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20610537_17-02-2025_16_02_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20610540, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20610541, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20610542, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20610543, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20610544, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20610545, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20610546, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20610547, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20610548, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20610549, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20610550, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20610551, 'pht': 3726}}" where mtr_portfolio_id = 20610537 and dashboard_run_id = 1617283 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20610537 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8943607, 0.03986921501239806, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20610537_17-02-2025_16_02_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20610540, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20610541, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20610542, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20610543, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20610544, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20610545, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20610546, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20610547, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20610548, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20610549, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20610550, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20610551, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20610930 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2593646, 'mtr_portfolio_id': 20610930, 'created_at': datetime.datetime(2025, 2, 17, 16, 17), 'result': '0.03280718177372909', 'result_long': None, 'result_double': None}] Qualite : 0.03280718177372909 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20610930 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20610930_17-02-2025_16_17_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20610930 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20610930_17-02-2025_16_17_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20610958, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20610959, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20610960, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20610961, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20610962, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20610963, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20610964, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20610965, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20610966, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20610967, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20610968, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20610969, 'pht': 3726}}" where mtr_portfolio_id = 20610930 and dashboard_run_id = 1617283 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20610930 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8943608, 0.03280718177372909, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20610930_17-02-2025_16_17_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20610958, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20610959, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20610960, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20610961, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20610962, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20610963, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20610964, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20610965, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20610966, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20610967, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20610968, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20610969, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20611466 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2593686, 'mtr_portfolio_id': 20611466, 'created_at': datetime.datetime(2025, 2, 17, 16, 32, 59), 'result': '0.06433049405998875', 'result_long': None, 'result_double': None}] Qualite : 0.06433049405998875 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20611466 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20611466_17-02-2025_16_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20611466 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20611466_17-02-2025_16_33_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20611494, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20611495, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20611496, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20611497, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20611498, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20611499, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20611500, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20611501, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20611502, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20611503, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20611504, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20611505, 'pht': 3726}}" where mtr_portfolio_id = 20611466 and dashboard_run_id = 1617283 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20611466 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8943609, 0.06433049405998875, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20611466_17-02-2025_16_33_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20611494, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20611495, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20611496, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20611497, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20611498, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20611499, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20611500, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20611501, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20611502, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20611503, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20611504, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20611505, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20612080 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2593721, 'mtr_portfolio_id': 20612080, 'created_at': datetime.datetime(2025, 2, 17, 16, 48, 58), 'result': '0.06081060962300819', 'result_long': None, 'result_double': None}] Qualite : 0.06081060962300819 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20612080 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20612080_17-02-2025_16_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20612080 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20612080_17-02-2025_16_48_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20612141, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20612142, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20612143, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20612144, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20612145, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20612146, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20612147, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20612148, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20612149, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20612150, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20612151, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20612152, 'pht': 3726}}" where mtr_portfolio_id = 20612080 and dashboard_run_id = 1617283 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20612080 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8943610, 0.06081060962300819, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20612080_17-02-2025_16_48_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20612141, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20612142, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20612143, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20612144, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20612145, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20612146, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20612147, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20612148, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20612149, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20612150, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20612151, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20612152, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20612767 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2593817, 'mtr_portfolio_id': 20612767, 'created_at': datetime.datetime(2025, 2, 17, 17, 2, 58), 'result': '0.03981537673826631', 'result_long': None, 'result_double': None}] Qualite : 0.03981537673826631 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20612767 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20612767_17-02-2025_17_02_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20612767 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20612767_17-02-2025_17_02_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20612821, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20612822, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20612823, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20612824, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20612825, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20612826, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20612827, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20612828, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20612829, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20612830, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20612831, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20612832, 'pht': 3726}}" where mtr_portfolio_id = 20612767 and dashboard_run_id = 1617283 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20612767 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8943611, 0.03981537673826631, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20612767_17-02-2025_17_02_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20612821, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20612822, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20612823, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20612824, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20612825, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20612826, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20612827, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20612828, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20612829, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20612830, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20612831, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20612832, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20613570 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2593877, 'mtr_portfolio_id': 20613570, 'created_at': datetime.datetime(2025, 2, 17, 17, 19), 'result': '0.037063087370716605', 'result_long': None, 'result_double': None}] Qualite : 0.037063087370716605 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20613570 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20613570_17-02-2025_17_19_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20613570 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20613570_17-02-2025_17_19_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20613598, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20613599, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20613600, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20613601, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20613602, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20613603, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20613604, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20613605, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20613606, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20613607, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20613608, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20613609, 'pht': 3726}}" where mtr_portfolio_id = 20613570 and dashboard_run_id = 1617283 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20613570 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8943612, 0.037063087370716605, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20613570_17-02-2025_17_19_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20613598, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20613599, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20613600, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20613601, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20613602, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20613603, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20613604, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20613605, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20613606, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20613607, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20613608, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20613609, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20614317 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2593921, 'mtr_portfolio_id': 20614317, 'created_at': datetime.datetime(2025, 2, 17, 17, 32, 31), 'result': '0.05028977903634978', 'result_long': None, 'result_double': None}] Qualite : 0.05028977903634978 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20614317 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20614317_17-02-2025_17_32_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20614317 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20614317_17-02-2025_17_32_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20614324, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20614325, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20614326, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20614327, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20614328, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20614329, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20614330, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20614331, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20614332, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20614333, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20614334, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20614335, 'pht': 3726}}" where mtr_portfolio_id = 20614317 and dashboard_run_id = 1617283 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20614317 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8943613, 0.05028977903634978, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20614317_17-02-2025_17_32_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20614324, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20614325, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20614326, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20614327, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20614328, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20614329, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20614330, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20614331, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20614332, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20614333, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20614334, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20614335, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20615941 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2594055, 'mtr_portfolio_id': 20615941, 'created_at': datetime.datetime(2025, 2, 17, 18, 19, 1), 'result': '0.04804183858376754', 'result_long': None, 'result_double': None}] Qualite : 0.04804183858376754 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20615941 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20615941_17-02-2025_18_19_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20615941 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20615941_17-02-2025_18_19_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20615944, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20615945, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20615946, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20615947, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20615948, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20615949, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20615950, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20615951, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20615952, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20615953, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20615954, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20615955, 'pht': 3726}}" where mtr_portfolio_id = 20615941 and dashboard_run_id = 1617283 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20615941 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8943614, 0.04804183858376754, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20615941_17-02-2025_18_19_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20615944, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20615945, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20615946, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20615947, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20615948, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20615949, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20615950, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20615951, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20615952, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20615953, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20615954, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20615955, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20616392 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2594082, 'mtr_portfolio_id': 20616392, 'created_at': datetime.datetime(2025, 2, 17, 18, 32, 57), 'result': '0.044569883535429025', 'result_long': None, 'result_double': None}] Qualite : 0.044569883535429025 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20616392 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20616392_17-02-2025_18_32_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20616392 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20616392_17-02-2025_18_32_57.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20616395, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20616396, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20616397, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20616398, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20616399, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20616400, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20616401, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20616402, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20616403, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20616404, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20616405, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20616406, 'pht': 3726}}" where mtr_portfolio_id = 20616392 and dashboard_run_id = 1617283 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20616392 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8943615, 0.044569883535429025, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20616392_17-02-2025_18_32_57.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20616395, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20616396, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20616397, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20616398, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20616399, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20616400, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20616401, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20616402, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20616403, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20616404, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20616405, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20616406, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20616912 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2594114, 'mtr_portfolio_id': 20616912, 'created_at': datetime.datetime(2025, 2, 17, 18, 46, 30), 'result': '0.052944677734900324', 'result_long': None, 'result_double': None}] Qualite : 0.052944677734900324 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20616912 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20616912_17-02-2025_18_46_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20616912 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20616912_17-02-2025_18_46_30.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20616961, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20616962, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20616963, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20616964, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20616965, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20616966, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20616967, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20616968, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20616969, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20616970, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20616971, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20616972, 'pht': 3726}}" where mtr_portfolio_id = 20616912 and dashboard_run_id = 1617283 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20616912 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8943616, 0.052944677734900324, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20616912_17-02-2025_18_46_30.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20616961, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20616962, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20616963, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20616964, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20616965, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20616966, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20616967, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20616968, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20616969, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20616970, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20616971, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20616972, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20617382 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2594155, 'mtr_portfolio_id': 20617382, 'created_at': datetime.datetime(2025, 2, 17, 19, 3), 'result': '0.03944870531546893', 'result_long': None, 'result_double': None}] Qualite : 0.03944870531546893 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20617382 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20617382_17-02-2025_19_03_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20617382 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20617382_17-02-2025_19_03_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20617408, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20617409, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20617410, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20617411, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20617412, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20617413, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20617414, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20617415, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20617416, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20617417, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20617418, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20617419, 'pht': 3726}}" where mtr_portfolio_id = 20617382 and dashboard_run_id = 1617283 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20617382 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8943617, 0.03944870531546893, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20617382_17-02-2025_19_03_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20617408, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20617409, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20617410, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20617411, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20617412, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20617413, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20617414, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20617415, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20617416, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20617417, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20617418, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20617419, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20617949 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2594202, 'mtr_portfolio_id': 20617949, 'created_at': datetime.datetime(2025, 2, 17, 19, 16, 30), 'result': '0.05647628484828016', 'result_long': None, 'result_double': None}] Qualite : 0.05647628484828016 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20617949 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20617949_17-02-2025_19_16_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20617949 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20617949_17-02-2025_19_16_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20617953, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20617954, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20617955, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20617956, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20617957, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20617958, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20617959, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20617960, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20617961, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20617962, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20617963, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20617964, 'pht': 3726}}" where mtr_portfolio_id = 20617949 and dashboard_run_id = 1617283 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20617949 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8943618, 0.05647628484828016, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20617949_17-02-2025_19_16_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20617953, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20617954, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20617955, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20617956, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20617957, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20617958, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20617959, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20617960, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20617961, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20617962, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20617963, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20617964, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20618403 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2594234, 'mtr_portfolio_id': 20618403, 'created_at': datetime.datetime(2025, 2, 17, 19, 32, 59), 'result': '0.024385629310053863', 'result_long': None, 'result_double': None}] Qualite : 0.024385629310053863 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20618403 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20618403_17-02-2025_19_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20618403 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20618403_17-02-2025_19_33_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20618410, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20618411, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20618412, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20618413, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20618414, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20618415, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20618416, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20618417, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20618418, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20618419, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20618420, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20618421, 'pht': 3726}}" where mtr_portfolio_id = 20618403 and dashboard_run_id = 1617283 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20618403 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8943619, 0.024385629310053863, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20618403_17-02-2025_19_33_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20618410, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20618411, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20618412, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20618413, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20618414, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20618415, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20618416, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20618417, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20618418, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20618419, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20618420, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20618421, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20619056 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2594278, 'mtr_portfolio_id': 20619056, 'created_at': datetime.datetime(2025, 2, 17, 19, 46, 58), 'result': '0.03570127362771072', 'result_long': None, 'result_double': None}] Qualite : 0.03570127362771072 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20619056 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20619056_17-02-2025_19_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20619056 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20619056_17-02-2025_19_46_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20619085, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20619086, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20619087, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20619088, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20619089, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20619090, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20619091, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20619092, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20619093, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20619094, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20619095, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20619096, 'pht': 3726}}" where mtr_portfolio_id = 20619056 and dashboard_run_id = 1617283 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20619056 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8943620, 0.03570127362771072, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20619056_17-02-2025_19_46_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20619085, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20619086, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20619087, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20619088, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20619089, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20619090, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20619091, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20619092, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20619093, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20619094, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20619095, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20619096, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20619597 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2594321, 'mtr_portfolio_id': 20619597, 'created_at': datetime.datetime(2025, 2, 17, 20, 2, 59), 'result': '0.0387327150760845', 'result_long': None, 'result_double': None}] Qualite : 0.0387327150760845 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20619597 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20619597_17-02-2025_20_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20619597 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20619597_17-02-2025_20_03_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20619629, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20619630, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20619631, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20619632, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20619633, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20619634, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20619635, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20619636, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20619637, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20619638, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20619639, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20619640, 'pht': 3726}}" where mtr_portfolio_id = 20619597 and dashboard_run_id = 1617283 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20619597 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8943621, 0.0387327150760845, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20619597_17-02-2025_20_03_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20619629, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20619630, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20619631, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20619632, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20619633, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20619634, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20619635, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20619636, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20619637, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20619638, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20619639, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20619640, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20620365 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2594380, 'mtr_portfolio_id': 20620365, 'created_at': datetime.datetime(2025, 2, 17, 20, 16, 57), 'result': '0.043460360425658574', 'result_long': None, 'result_double': None}] Qualite : 0.043460360425658574 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20620365 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20620365_17-02-2025_20_16_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20620365 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20620365_17-02-2025_20_16_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20620368, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20620369, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20620370, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20620371, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20620372, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20620373, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20620374, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20620375, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20620376, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20620377, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20620378, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20620379, 'pht': 3726}}" where mtr_portfolio_id = 20620365 and dashboard_run_id = 1617283 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20620365 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8943622, 0.043460360425658574, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20620365_17-02-2025_20_16_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20620368, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20620369, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20620370, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20620371, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20620372, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20620373, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20620374, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20620375, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20620376, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20620377, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20620378, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20620379, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20620922 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2594423, 'mtr_portfolio_id': 20620922, 'created_at': datetime.datetime(2025, 2, 17, 20, 32, 59), 'result': '0.04028064145147253', 'result_long': None, 'result_double': None}] Qualite : 0.04028064145147253 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20620922 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20620922_17-02-2025_20_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20620922 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20620922_17-02-2025_20_32_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20620954, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20620955, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20620956, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20620957, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20620958, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20620959, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20620960, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20620961, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20620962, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20620963, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20620964, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20620965, 'pht': 3726}}" where mtr_portfolio_id = 20620922 and dashboard_run_id = 1617283 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20620922 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8943623, 0.04028064145147253, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20620922_17-02-2025_20_32_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20620954, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20620955, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20620956, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20620957, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20620958, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20620959, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20620960, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20620961, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20620962, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20620963, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20620964, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20620965, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20621658 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2594481, 'mtr_portfolio_id': 20621658, 'created_at': datetime.datetime(2025, 2, 17, 21, 8, 31), 'result': '0.05838019219771053', 'result_long': None, 'result_double': None}] Qualite : 0.05838019219771053 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20621658 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20621658_17-02-2025_21_08_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20621658 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20621658_17-02-2025_21_08_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20621731, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20621737, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20621738, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20621739, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20621740, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20621741, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20621742, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20621743, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20621744, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20621745, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20621746, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20621747, 'pht': 3726}}" where mtr_portfolio_id = 20621658 and dashboard_run_id = 1617283 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20621658 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8943624, 0.05838019219771053, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20621658_17-02-2025_21_08_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20621731, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20621737, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20621738, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20621739, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20621740, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20621741, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20621742, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20621743, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20621744, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20621745, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20621746, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20621747, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20623013 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2594617, 'mtr_portfolio_id': 20623013, 'created_at': datetime.datetime(2025, 2, 17, 21, 36, 58), 'result': '0.03573001730286341', 'result_long': None, 'result_double': None}] Qualite : 0.03573001730286341 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20623013 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20623013_17-02-2025_21_36_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20623013 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20623013_17-02-2025_21_36_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20623015, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20623016, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20623017, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20623018, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20623019, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20623020, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20623021, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20623022, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20623023, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20623024, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20623025, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20623026, 'pht': 3726}}" where mtr_portfolio_id = 20623013 and dashboard_run_id = 1617283 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20623013 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8943625, 0.03573001730286341, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20623013_17-02-2025_21_36_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20623015, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20623016, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20623017, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20623018, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20623019, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20623020, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20623021, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20623022, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20623023, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20623024, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20623025, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20623026, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20594280,20594332,20594486,20594872,20595236,20595343,20595598,20595820,20596067,20596959,20597365,20597866,20598303,20598844,20599330,20600382,20600895,20601335,20601878,20602408,20602902,20603399,20604235,20605068,20605919,20606546,20608349,20608630,20608978,20610400,20610537,20610930,20611466,20612080,20612767,20613570,20614317,20615941,20616392,20616912,20617382,20617949,20618403,20619056,20619597,20620365,20620922,20621658,20623013) result : ((1338111973,), (1338112020,), (1338112066,), (1338112067,), (1338112099,), (1338112100,), (1338112101,), (1338112118,), (1338112143,), (1338112156,), (1338112158,), (1338112160,), (1338112166,), (1338112175,), (1338112177,), (1338112179,), (1338112181,), (1338112183,), (1338112185,), (1338112193,), (1338112197,), (1338112208,), (1338112210,), (1338112213,), (1338112226,), (1338112228,), (1338112240,), (1338112262,), (1338112268,), (1338112273,), (1338112309,), (1338112311,), (1338112328,), (1338112395,), (1338112410,), (1338112412,), (1338112414,), (1338112431,), (1338112433,), (1338112435,), (1338112439,), (1338112441,), (1338112442,), (1338112455,), (1338112456,), (1338112457,), (1338112458,), (1338112459,), (1338112460,), (1338112473,), (1338112474,), (1338112475,), (1338112497,), (1338112498,), (1338112499,), (1338112500,), (1338112501,), (1338112502,), (1338112515,), (1338112516,), (1338112517,), (1338112518,), (1338112519,), (1338112547,), (1338112548,), (1338112561,), (1338112562,), (1338112597,), (1338112608,), (1338112612,), (1338112613,), (1338112614,), (1338112615,), (1338112628,), (1338112629,), (1338112630,), (1338112631,), (1338112632,), (1338112633,), (1338112654,), (1338112656,), (1338112658,), (1338112686,), (1338112697,), (1338112700,), (1338112706,), (1338112856,), (1338112999,), (1338113316,), (1338113319,), (1338113326,), (1338113331,), (1338113333,), (1338113493,), (1338113338,), (1338113480,), (1338113486,), (1338113709,), (1338113712,), (1338113715,), (1338113722,), (1338113729,), (1338113730,), (1338114367,), (1338114491,), (1338114493,), (1338114495,), (1338114510,), (1338114512,), (1338114514,), (1338114531,), (1338114533,), (1338114535,), (1338114538,), (1338114540,), (1338114543,), (1338114553,), (1338114555,), (1338114557,), (1338114559,), (1338114562,), (1338114575,), (1338114577,), (1338114579,), (1338114581,), (1338114595,), (1338114598,), (1338114601,), (1338114604,), (1338114607,), (1338114623,), (1338114625,), (1338114628,), (1338114629,), (1338114669,), (1338114672,), (1338114674,), (1338114720,), (1338114699,), (1338114702,), (1338114708,), (1338114734,), (1338114736,), (1338114738,), (1338114740,), (1338114742,), (1338114750,), (1338114772,), (1338114774,), (1338114776,), (1338114778,), (1338114780,), (1338114979,), (1338115064,), (1338115061,), (1338115062,), (1338115063,), (1338115081,), (1338115082,), (1338115083,), (1338115084,), (1338115086,), (1338115088,), (1338115105,), (1338115106,), (1338115121,), (1338115124,), (1338115125,), (1338115155,), (1338115163,), (1338115166,), (1338115182,), (1338115183,), (1338115184,), (1338115186,), (1338115189,), (1338115193,), (1338115220,), (1338115222,), (1338115503,), (1338115384,), (1338115502,), (1338115523,), (1338115525,), (1338115527,), (1338115529,), (1338115554,), (1338115556,), (1338115558,), (1338115559,), (1338115560,), (1338115586,), (1338115587,), (1338115607,), (1338115608,), (1338115609,), (1338115610,), (1338115643,), (1338115644,), (1338115645,), (1338115664,), (1338115665,), (1338115666,), (1338115667,), (1338115669,), (1338115699,), (1338115700,), (1338115701,), (1338115734,), (1338115738,), (1338115777,), (1338115768,), (1338115771,), (1338115773,), (1338115775,), (1338115793,), (1338115796,), (1338115799,), (1338115815,), (1338115818,), (1338115821,), (1338115824,), (1338115826,), (1338115839,), (1338115991,), (1338115994,), (1338115997,), (1338115999,), (1338116001,), (1338116021,), (1338116026,), (1338116029,), (1338116044,), (1338116047,), (1338116207,), (1338116284,), (1338116343,), (1338116351,), (1338116360,), (1338116364,), (1338116500,), (1338116503,), (1338116506,), (1338116540,), (1338116542,), (1338116545,), (1338116549,), (1338116553,), (1338116572,), (1338116574,), (1338116577,), (1338116607,), (1338116612,), (1338116616,), (1338116622,), (1338116628,), (1338116636,), (1338116646,), (1338116649,), (1338116651,), (1338116656,), (1338116661,), (1338116666,), (1338116698,), (1338116699,), (1338116719,), (1338116724,), (1338116726,), (1338116736,), (1338116739,), (1338116741,), (1338116743,), (1338116747,), (1338116750,), (1338116796,), (1338116799,), (1338116801,), (1338116804,), (1338116806,), (1338116812,), (1338116842,), (1338116871,), (1338116875,), (1338116904,), (1338116907,), (1338116909,), (1338116911,), (1338116915,), (1338116677,), (1338116678,), (1338116680,), (1338116682,), (1338116684,), (1338116685,), (1338116689,), (1338116690,), (1338116694,), (1338116695,), (1338116707,), (1338116711,), (1338116715,), (1338116760,), (1338116770,), (1338116774,), (1338116778,), (1338116782,), (1338116786,), (1338116826,), (1338116831,), (1338116835,), (1338116838,), (1338116840,), (1338116852,), (1338116858,), (1338116862,), (1338116867,), (1338116933,), (1338116943,), (1338116946,), (1338116949,), (1338116952,), (1338116956,), (1338116989,), (1338116992,), (1338117002,), (1338117006,), (1338117008,), (1338117015,), (1338117048,), (1338117055,), (1338117058,), (1338117061,), (1338117106,), (1338117118,), (1338117124,), (1338117132,), (1338117140,), (1338117148,), (1338117176,), (1338117180,), (1338117188,), (1338117217,), (1338117222,), (1338117231,), (1338117235,), (1338117241,), (1338117274,), (1338117283,), (1338117335,), (1338117346,), (1338117350,), (1338117354,), (1338117358,), (1338117378,), (1338117380,), (1338117384,), (1338117387,), (1338117418,), (1338117425,), (1338117430,), (1338117434,), (1338117480,), (1338117463,), (1338117467,), (1338117472,), (1338117476,), (1338117500,), (1338117513,), (1338117516,), (1338117520,), (1338117523,), (1338117529,), (1338117555,), (1338117558,), (1338117610,), (1338117614,), (1338117617,), (1338117619,), (1338117621,), (1338117625,), (1338117644,), (1338117647,), (1338117656,), (1338117666,), (1338117672,), (1338117699,), (1338117702,), (1338117704,), (1338117707,), (1338117743,), (1338117746,), (1338117750,), (1338117753,), (1338117759,), (1338117765,), (1338117811,), (1338117814,), (1338117818,), (1338117822,), (1338117881,), (1338117884,), (1338117887,), (1338117924,), (1338117968,), (1338118098,), (1338118100,), (1338118253,), (1338118242,), (1338118245,), (1338118248,), (1338118250,), (1338118283,), (1338118303,), (1338118318,), (1338118321,), (1338118328,), (1338118354,), (1338118398,), (1338118401,), (1338118431,), (1338118434,), (1338118437,), (1338118439,), (1338118473,), (1338118484,), (1338118495,), (1338118502,), (1338118512,), (1338118562,), (1338118564,), (1338118567,), (1338118641,), (1338118643,), (1338118646,), (1338118649,), (1338118651,), (1338118654,), (1338118687,), (1338118689,), (1338118692,), (1338118695,), (1338118698,), (1338118702,), (1338118726,), (1338118728,), (1338118731,), (1338118734,), (1338118737,), (1338118767,), (1338118778,), (1338118780,), (1338118820,), (1338118822,), (1338118825,), (1338118828,), (1338118831,), (1338118956,), (1338118959,), (1338118962,), (1338118965,), (1338118969,), (1338118972,), (1338119003,), (1338119006,), (1338119009,), (1338119011,), (1338119013,), (1338119088,), (1338119103,), (1338119115,), (1338119120,), (1338119127,), (1338119138,), (1338119149,), (1338119154,), (1338119180,), (1338119161,), (1338119166,), (1338119172,), (1338119177,), (1338119205,), (1338119206,), (1338119213,), (1338119268,), (1338119278,), (1338119284,), (1338119288,), (1338119294,), (1338119298,), (1338119398,), (1338119574,), (1338119792,), (1338119923,), (1338119926,), (1338120093,), (1338120179,), (1338120246,), (1338120248,), (1338120251,), (1338120254,), (1338120824,), (1338120826,), (1338120829,), (1338120833,), (1338120839,), (1338121337,), (1338121427,), (1338121435,), (1338121438,), (1338121441,), (1338121543,), (1338121545,), (1338121547,), (1338121549,), (1338121576,), (1338121577,), (1338121579,), (1338121621,), (1338121666,), (1338121670,), (1338121673,), (1338121719,), (1338121722,), (1338121724,), (1338121725,), (1338121726,), (1338121729,), (1338121752,), (1338121754,), (1338121791,), (1338121793,), (1338121796,), (1338121799,), (1338121823,), (1338121824,), (1338121828,), (1338121832,), (1338121836,), (1338121866,), (1338121868,), (1338121871,), (1338121911,), (1338121913,), (1338121943,), (1338121944,), (1338121970,), (1338121971,), (1338121972,), (1338122004,), (1338122006,), (1338122008,), (1338122010,), (1338122013,), (1338122016,), (1338122047,), (1338122041,), (1338122042,), (1338122103,), (1338122105,), (1338122107,), (1338122108,), (1338122109,), (1338122158,), (1338122162,), (1338122165,), (1338122168,), (1338122171,), (1338122176,), (1338122195,), (1338122196,), (1338122198,), (1338122247,), (1338122248,), (1338122250,), (1338122252,), (1338122255,), (1338122290,), (1338122299,), (1338122302,), (1338122305,), (1338122308,), (1338122311,), (1338122329,), (1338122331,), (1338122334,), (1338122366,), (1338122369,), (1338122373,), (1338122375,), (1338122377,), (1338122380,), (1338122405,), (1338122406,), (1338122409,), (1338122412,), (1338122415,), (1338122418,), (1338122444,), (1338122446,), (1338122447,), (1338122482,), (1338122487,), (1338122496,), (1338122499,), (1338122532,), (1338122533,), (1338122536,), (1338122539,), (1338122542,), (1338122551,), (1338122587,), (1338122595,), (1338122599,), (1338122636,), (1338122637,), (1338122640,), (1338122643,), (1338122646,), (1338122649,), (1338122669,), (1338122672,), (1338122674,), (1338122676,), (1338122744,), (1338122733,), (1338122736,), (1338122739,), (1338122742,), (1338122839,), (1338122842,), (1338122848,), (1338122853,), (1338122884,), (1338122888,), (1338122891,), (1338122894,), (1338122930,), (1338122935,), (1338122981,), (1338122983,), (1338122986,), (1338123048,), (1338123050,), (1338123052,), (1338123146,), (1338123148,), (1338123182,), (1338123183,), (1338123239,), (1338123240,), (1338123243,), (1338123265,), (1338123352,), (1338123358,), (1338123361,), (1338123414,), (1338123416,), (1338123419,), (1338123422,), (1338123423,), (1338123456,), (1338123459,), (1338123462,), (1338123464,), (1338123500,), (1338123505,), (1338123510,), (1338123517,), (1338123524,), (1338123530,), (1338123568,), (1338129881,), (1338129952,), (1338129956,), (1338130081,), (1338130085,), (1338130089,), (1338130108,), (1338130112,), (1338130168,), (1338130173,), (1338130177,), (1338130199,), (1338130201,), (1338130269,), (1338130280,), (1338130290,), (1338130477,), (1338130478,), (1338130481,), (1338130485,), (1338130488,), (1338130519,), (1338130521,), (1338130524,), (1338130526,), (1338130527,), (1338130530,), (1338130570,), (1338130572,), (1338130575,), (1338130578,), (1338130648,), (1338130659,), (1338130662,), (1338130664,), (1338130668,), (1338130674,), (1338130733,), (1338130736,), (1338130739,), (1338130743,), (1338130746,), (1338130752,), (1338130775,), (1338130782,), (1338130785,), (1338130790,), (1338130829,), (1338130830,), (1338130833,), (1338130835,), (1338130839,), (1338130843,), (1338130867,), (1338130871,), (1338130874,), (1338130876,), (1338130915,), (1338130925,), (1338130933,), (1338130938,), (1338131012,), (1338130997,), (1338130999,), (1338131004,), (1338131007,), (1338131009,), (1338131205,), (1338131206,), (1338131209,), (1338131211,), (1338131244,), (1338131246,), (1338131249,), (1338131254,), (1338131257,), (1338131278,), (1338131280,), (1338131283,), (1338131286,), (1338131309,), (1338131310,), (1338131432,), (1338131437,), (1338131504,), (1338131556,), (1338131559,), (1338131562,), (1338131608,), (1338131611,), (1338131655,), (1338131657,), (1338131659,), (1338131662,), (1338131683,), (1338131685,), (1338131688,), (1338131702,), (1338131706,), (1338131781,), (1338131783,), (1338131796,), (1338131798,), (1338131891,), (1338131893,), (1338131896,), (1338131899,), (1338131902,), (1338131941,), (1338131944,), (1338131948,), (1338131952,), (1338131992,), (1338132000,), (1338132013,), (1338132023,), (1338132027,), (1338132032,), (1338132095,), (1338132067,), (1338132070,), (1338132074,), (1338132092,), (1338132166,), (1338132169,), (1338132172,), (1338132175,), (1338132187,), (1338132190,), (1338132406,), (1338132568,), (1338132598,), (1338132601,), (1338132604,), (1338132608,), (1338132956,), (1338132958,), (1338132961,), (1338132999,), (1338133001,), (1338133004,), (1338133007,), (1338133009,), (1338133012,), (1338133040,), (1338133043,), (1338133046,), (1338133049,), (1338133052,), (1338133054,), (1338133092,), (1338133094,), (1338133097,), (1338133100,), (1338133330,), (1338133342,), (1338133347,), (1338133350,), (1338133352,), (1338133361,), (1338133386,), (1338133389,), (1338133392,), (1338133430,), (1338133432,), (1338133435,), (1338133438,), (1338133463,), (1338133465,), (1338133468,), (1338133470,), (1338133474,), (1338133479,), (1338133516,), (1338133518,), (1338133521,), (1338133541,), (1338133628,), (1338133630,), (1338133633,), (1338133636,), (1338134140,), (1338134142,), (1338134145,), (1338134148,), (1338134155,), (1338134251,), (1338134347,), (1338134349,), (1338134353,), (1338134356,), (1338134393,), (1338134386,), (1338134388,), (1338134390,), (1338134434,), (1338134446,), (1338134449,), (1338134452,), (1338134456,), (1338134463,), (1338134485,), (1338134490,), (1338134501,), (1338134505,), (1338134800,), (1338134878,), (1338134945,), (1338135153,), (1338135265,), (1338135406,), (1338135608,), (1338135610,), (1338135794,), (1338135836,), (1338135838,), (1338135850,), (1338135993,), (1338135996,), (1338135999,), (1338136002,), (1338136004,), (1338136029,), (1338136031,), (1338136034,), (1338136037,), (1338136041,), (1338136053,), (1338136076,), (1338136078,), (1338136082,), (1338136085,), (1338136087,), (1338136194,), (1338136197,), (1338136200,), (1338136203,), (1338136211,), (1338136218,), (1338136238,), (1338136261,), (1338136264,), (1338136267,), (1338136292,), (1338136294,), (1338136301,), (1338136310,), (1338136313,), (1338136318,), (1338136353,), (1338136356,), (1338136359,), (1338136442,), (1338136448,), (1338136451,), (1338136453,), (1338136456,), (1338136459,), (1338136493,), (1338136536,), (1338136625,), (1338136710,), (1338136817,), (1338136826,), (1338136830,), (1338136842,), (1338136851,), (1338136855,), (1338136897,), (1338136884,), (1338136886,), (1338136889,), (1338136892,), (1338136895,), (1338136932,), (1338136935,), (1338136938,), (1338136941,), (1338136976,), (1338136979,), (1338136982,), (1338136985,), (1338136987,), (1338136990,), (1338137028,), (1338137030,), (1338137042,), (1338137146,), (1338137148,), (1338137151,), (1338137181,), (1338137183,), (1338137186,), (1338137240,), (1338137242,), (1338137245,), (1338137248,), (1338137290,), (1338137293,), (1338137297,), (1338137301,), (1338137305,), (1338137311,), (1338137503,), (1338137505,), (1338137508,), (1338137511,), (1338137513,), (1338137550,), (1338137552,), (1338137555,), (1338137558,), (1338137594,), (1338137597,), (1338137610,), (1338137613,), (1338137615,), (1338137702,), (1338137745,), (1338137748,), (1338137751,), (1338137790,), (1338137794,), (1338137797,), (1338137800,), (1338137802,), (1338137804,), (1338137864,), (1338137866,), (1338137869,), (1338137872,), (1338137874,), (1338137914,), (1338137917,), (1338137924,), (1338137927,), (1338137930,), (1338137955,), (1338137960,), (1338137964,), (1338137969,), (1338137972,), (1338137978,), (1338138003,), (1338137996,), (1338137999,), (1338138214,), (1338138220,), (1338138225,), (1338138229,), (1338138233,), (1338138242,), (1338138290,), (1338138293,), (1338138297,), (1338138301,), (1338138336,), (1338138339,), (1338138354,), (1338138358,), (1338138362,), (1338138364,), (1338138387,), (1338138390,), (1338138400,), (1338138404,), (1338138406,), (1338138423,), (1338138456,), (1338138463,), (1338138468,), (1338138472,), (1338138682,), (1338138686,), (1338138691,), (1338138695,), (1338138697,), (1338138703,), (1338138766,), (1338138769,), (1338138772,), (1338138776,), (1338138779,), (1338138807,), (1338138810,), (1338138814,), (1338138818,), (1338138861,), (1338138893,), (1338138900,), (1338138904,), (1338138909,), (1338138914,), (1338138959,), (1338138962,), (1338138968,), (1338138973,), (1338138998,), (1338139048,), (1338139051,), (1338139057,), (1338139068,), (1338139124,), (1338139126,), (1338139147,), (1338139151,), (1338139154,), (1338139157,), (1338139161,), (1338139189,), (1338139195,), (1338139203,), (1338139210,), (1338139218,), (1338139267,), (1338139252,), (1338139255,), (1338139260,), (1338139264,), (1338139320,), (1338139345,), (1338139353,), (1338139356,), (1338139531,), (1338139537,), (1338139543,), (1338139555,), (1338139560,), (1338139611,), (1338139649,), (1338140528,), (1338140532,), (1338140535,), (1338140537,), (1338140598,), (1338140600,), (1338140602,), (1338140605,), (1338140608,), (1338140663,), (1338140664,), (1338140666,), (1338140670,), (1338140760,), (1338140761,), (1338140765,), (1338140772,), (1338140814,), (1338140817,), (1338140832,), (1338140931,), (1338140933,), (1338140936,), (1338140940,), (1338140949,), (1338140993,), (1338140998,), (1338141003,), (1338141006,), (1338141011,), (1338141083,), (1338141086,), (1338141093,), (1338141097,), (1338141434,), (1338141515,), (1338141612,), (1338141679,), (1338141681,), (1338141748,), (1338142010,), (1338142020,), (1338142026,), (1338142031,), (1338142035,), (1338142037,), (1338142143,), (1338142241,), (1338142135,), (1338142140,), (1338142159,), (1338142162,), (1338142164,), (1338142167,), (1338142169,), (1338142177,), (1338142219,), (1338142250,), (1338142254,), (1338142256,), (1338142308,), (1338142533,), (1338142878,), (1338142926,), (1338142977,), (1338143226,), (1338143228,), (1338143230,), (1338143232,), (1338143233,), (1338143235,), (1338143278,), (1338143279,), (1338143281,), (1338143283,), (1338143284,), (1338143355,), (1338143361,), (1338143374,), (1338143489,), (1338143495,), (1338143502,), (1338143508,), (1338143511,), (1338143517,), (1338143571,), (1338143573,), (1338143579,), (1338143596,), (1338143603,), (1338143636,), (1338143640,), (1338143651,), (1338143652,), (1338143655,), (1338143695,), (1338143696,), (1338143698,), (1338143700,), (1338143701,), (1338143754,), (1338143760,), (1338143764,), (1338143768,), (1338143862,), (1338143866,), (1338143870,), (1338143874,), (1338143878,), (1338143880,), (1338143899,), (1338143900,), (1338143901,), (1338143954,), (1338143978,), (1338143985,), (1338144003,), (1338144042,), (1338144044,), (1338144053,), (1338144068,), (1338144082,), (1338144091,), (1338144094,), (1338144096,), (1338144100,), (1338144131,), (1338144126,), (1338144127,), (1338144129,), (1338144157,), (1338144162,), (1338144166,), (1338144169,), (1338144172,), (1338144186,), (1338144262,), (1338144282,), (1338144301,), (1338144307,), (1338144317,), (1338144361,), (1338144366,), (1338144371,), (1338144373,), (1338144398,), (1338144400,), (1338144403,), (1338144406,), (1338144408,), (1338144415,), (1338144495,), (1338144498,), (1338144501,), (1338144510,), (1338144514,), (1338144708,), (1338144710,), (1338144713,), (1338144716,), (1338144726,), (1338144767,), (1338144769,), (1338144772,), (1338144775,), (1338144822,), (1338144828,), (1338144831,), (1338144834,), (1338144840,), (1338144868,), (1338144870,), (1338144873,), (1338144876,), (1338144878,), (1338144913,), (1338144915,), (1338144918,), (1338144921,), (1338145206,), (1338145209,), (1338145212,), (1338145217,), (1338145219,), (1338145223,), (1338145249,), (1338145253,), (1338145256,), (1338145267,), (1338145303,), (1338145306,), (1338145309,), (1338145313,), (1338145315,), (1338145318,), (1338145333,), (1338145340,), (1338145351,), (1338145359,), (1338145361,), (1338145381,), (1338145376,), (1338145378,), (1338145683,), (1338145687,), (1338145694,), (1338145696,), (1338145700,), (1338145735,), (1338145737,), (1338145740,), (1338145743,), (1338145745,), (1338145749,), (1338145769,), (1338145771,), (1338145774,), (1338145777,), (1338145822,), (1338145825,), (1338145828,), (1338145831,), (1338145833,), (1338145856,), (1338145858,), (1338145871,), (1338146154,), (1338146213,), (1338146216,), (1338146219,), (1338146277,), (1338146280,), (1338146330,), (1338146332,), (1338146335,), (1338146383,), (1338146386,), (1338146390,), (1338146394,), (1338146397,), (1338146401,), (1338146437,), (1338146440,), (1338146444,), (1338146448,), (1338146450,), (1338146691,), (1338146693,), (1338146696,), (1338146699,), (1338146702,), (1338146756,), (1338146759,), (1338146762,), (1338146811,), (1338146826,), (1338146829,), (1338146983,), (1338146991,), (1338147006,), (1338147057,), (1338147066,), (1338147077,), (1338147081,), (1338147202,), (1338147177,), (1338147180,), (1338147183,), (1338147186,), (1338147192,), (1338147230,), (1338147233,), (1338147236,), (1338147239,), (1338147241,), (1338147244,), (1338147284,), (1338147286,), (1338147289,), (1338147548,), (1338147787,), (1338147789,), (1338147792,), (1338147795,), (1338147798,), (1338147800,), (1338147835,), (1338147838,), (1338147841,), (1338148050,), (1338148053,), (1338148056,), (1338148059,), (1338148061,), (1338148064,), (1338148095,), (1338148097,), (1338148100,), (1338148103,), (1338148105,), (1338148135,), (1338148137,), (1338148140,), (1338148143,), (1338148145,), (1338148200,), (1338148288,), (1338148291,), (1338148294,), (1338148296,), (1338148299,), (1338148349,), (1338148355,), (1338148358,), (1338148360,), (1338148436,), (1338148437,), (1338148439,), (1338148441,), (1338159502,), (1338159500,), (1338159527,), (1338159532,), (1338160715,), (1338160718,), (1338160748,), (1338160752,), (1338160756,), (1338160760,), (1338160785,), (1338160788,), (1338160792,), (1338160796,), (1338160800,), (1338160820,), (1338160822,), (1338160826,), (1338160935,), (1338160938,), (1338160941,), (1338161130,), (1338161155,), (1338161178,), (1338161181,), (1338161183,), (1338161451,), (1338161285,), (1338161289,), (1338161291,), (1338161381,), (1338161515,), (1338161518,), (1338161521,), (1338161524,), (1338161529,), (1338161757,), (1338161764,), (1338161771,), (1338161774,), (1338161798,), (1338161800,), (1338161803,), (1338163539,), (1338163552,), (1338163791,), (1338163792,), (1338163794,), (1338163796,), (1338163832,), (1338163834,), (1338163836,), (1338163837,), (1338163869,), (1338163872,), (1338163874,), (1338163876,), (1338163879,), (1338163906,), (1338163907,), (1338163909,), (1338163912,), (1338163949,), (1338163951,), (1338163953,), (1338163955,), (1338163958,), (1338164017,), (1338164009,), (1338164010,), (1338164013,), (1338164015,), (1338164110,), (1338164151,), (1338164157,), (1338164158,), (1338164183,), (1338164184,), (1338164749,), (1338164751,), (1338164764,), (1338164828,), (1338164829,), (1338164835,), (1338165143,), (1338165211,), (1338165290,), (1338165368,), (1338165463,), (1338165805,), (1338165806,), (1338165810,), (1338166136,), (1338166173,), (1338166197,), (1338166371,), (1338166431,), (1338166443,), (1338166479,), (1338166485,), (1338166490,), (1338166492,), (1338166493,), (1338166496,), (1338166530,), (1338166532,), (1338166538,), (1338166541,), (1338166622,), (1338166623,), (1338166626,), (1338166631,), (1338166677,), (1338166685,), (1338166687,), (1338166689,), (1338166713,), (1338166715,), (1338166717,), (1338166718,), (1338166720,), (1338166744,), (1338166748,), (1338166750,), (1338174079,), (1338173907,), (1338174076,), (1338174077,), (1338174105,), (1338174106,), (1338174108,), (1338174111,), (1338174114,), (1338174141,), (1338174142,), (1338174144,), (1338174146,), (1338174176,), (1338174178,), (1338174181,), (1338174183,), (1338174412,), (1338174416,), (1338174418,), (1338174524,), (1338174487,), (1338174498,), (1338174500,), (1338174508,), (1338174569,), (1338174570,), (1338174572,), (1338174574,), (1338174575,), (1338174696,), (1338174697,), (1338174711,), (1338174712,), (1338174738,), (1338174745,), (1338174749,), (1338174789,), (1338174793,), (1338174799,), (1338174803,), (1338174805,), (1338174848,), (1338174854,), (1338174858,), (1338174864,), (1338174868,), (1338175107,), (1338175111,), (1338175116,), (1338175121,), (1338175142,), (1338175145,), (1338175148,), (1338175152,), (1338175178,), (1338175180,), (1338175183,), (1338175186,), (1338175191,), (1338175231,), (1338175234,), (1338175240,), (1338175246,), (1338175250,), (1338175280,), (1338175288,), (1338175290,), (1338175297,), (1338175734,), (1338175738,), (1338175743,), (1338175746,), (1338175750,), (1338175756,), (1338175785,), (1338175787,), (1338175790,), (1338176032,), (1338176038,), (1338176042,), (1338176063,), (1338176069,), (1338176074,), (1338176095,), (1338176097,), (1338176137,), (1338176124,), (1338176128,), (1338176132,), (1338176135,), (1338176463,), (1338176466,), (1338176470,), (1338176477,), (1338176483,), (1338176507,), (1338176510,), (1338176514,), (1338176527,), (1338176533,), (1338176589,), (1338176592,), (1338176596,), (1338176602,), (1338176922,), (1338177006,), (1338177130,), (1338177194,), (1338177198,), (1338177640,), (1338177750,), (1338177840,), (1338177936,), (1338178076,), (1338178520,), (1338178585,), (1338178592,), (1338178717,), (1338178719,), (1338178723,), (1338178727,), (1338178729,), (1338178750,), (1338178752,), (1338178755,), (1338178758,), (1338178761,), (1338178765,), (1338178782,), (1338178784,), (1338178794,), (1338178834,), (1338178837,), (1338178840,), (1338178843,), (1338179117,), (1338179159,), (1338179206,), (1338179208,), (1338179212,), (1338179216,), (1338179220,), (1338179223,), (1338179267,), (1338179270,), (1338179274,), (1338179302,), (1338179305,), (1338179310,), (1338179313,), (1338179315,), (1338179320,), (1338179352,), (1338179338,), (1338179341,), (1338179345,), (1338179349,), (1338179670,), (1338179674,), (1338179678,), (1338179689,), (1338179736,), (1338179740,), (1338179744,), (1338179749,), (1338179751,), (1338179908,), (1338179918,), (1338180031,), (1338180199,), (1338180399,), (1338180622,), (1338180624,), (1338180665,), (1338180746,), (1338180748,), (1338180751,), (1338180754,), (1338180756,), (1338180777,), (1338180780,), (1338180784,), (1338180793,), (1338180796,), (1338180842,), (1338180844,), (1338180847,), (1338180940,), (1338180941,), (1338180959,), (1338180961,), (1338180964,), (1338180967,), (1338180971,), (1338180973,), (1338181098,), (1338181101,), (1338181105,), (1338181109,), (1338181114,), (1338181161,), (1338181163,), (1338181167,), (1338181171,), (1338181228,), (1338181230,), (1338181233,), (1338181236,), (1338181239,), (1338181242,), (1338181261,), (1338181263,), (1338181266,), (1338181331,), (1338181334,), (1338181390,), (1338181396,), (1338181399,), (1338181402,), (1338181404,), (1338181428,), (1338181431,), (1338181434,), (1338181438,), (1338181442,), (1338181446,), (1338181713,), (1338181675,), (1338181694,), (1338181702,), (1338181744,), (1338181747,), (1338181751,), (1338181753,), (1338181755,), (1338181927,), (1338181981,), (1338181987,), (1338181990,), (1338181992,), (1338182015,), (1338182114,), (1338182115,), (1338182119,), (1338182122,), (1338182145,), (1338182148,), (1338182151,), (1338182155,), (1338182200,), (1338182202,), (1338182207,), (1338182214,), (1338182218,), (1338182221,), (1338182481,), (1338182486,), (1338182488,), (1338182491,), (1338182552,), (1338182556,), (1338182572,), (1338182601,), (1338182603,), (1338182606,), (1338182608,), (1338182614,), (1338182618,), (1338182633,), (1338182635,), (1338182638,), (1338182643,), (1338182672,), (1338182674,), (1338182677,), (1338182680,), (1338182708,), (1338182715,), (1338182718,), (1338182721,), (1338182724,), (1338182727,), (1338182743,), (1338182745,), (1338182748,), (1338182751,), (1338182762,), (1338182768,), (1338182803,), (1338182805,), (1338182808,), (1338182811,), (1338182847,), (1338182849,), (1338182852,), (1338182896,), (1338182876,), (1338182878,), (1338182881,), (1338182889,), (1338182893,), (1338182911,), (1338182967,), (1338183069,), (1338183171,), (1338183199,), (1338183205,), (1338183224,), (1338183226,), (1338183233,), (1338183307,), (1338183310,), (1338183315,), (1338183372,), (1338183375,), (1338183488,), (1338183504,), (1338183510,), (1338183515,), (1338183531,), (1338183618,), (1338183621,), (1338183625,), (1338183633,), (1338183662,), (1338183666,), (1338183673,), (1338183677,), (1338183681,), (1338183684,), (1338183719,), (1338183725,), (1338183730,), (1338183736,), (1338183745,), (1338183753,), (1338183783,), (1338183788,), (1338183792,), (1338183853,), (1338183857,), (1338183866,), (1338183884,), (1338183888,), (1338183909,), (1338183911,), (1338183913,), (1338183915,), (1338183918,), (1338183922,), (1338183982,), (1338183993,), (1338183996,), (1338183998,), (1338184001,), (1338184058,), (1338184061,), (1338184064,), (1338184067,), (1338184074,), (1338184141,), (1338184146,), (1338184240,), (1338184339,), (1338184433,), (1338184536,), (1338184840,), (1338184944,), (1338185040,), (1338185129,), (1338185196,), (1338185177,), (1338185181,), (1338185186,), (1338185189,), (1338185193,), (1338185221,), (1338185227,), (1338185230,), (1338185233,), (1338185235,), (1338185271,), (1338185273,), (1338185275,), (1338185278,), (1338185312,), (1338185316,), (1338185318,), (1338185320,), (1338185330,), (1338185340,), (1338185427,), (1338185428,), (1338185429,), (1338185431,), (1338185439,), (1338186144,), (1338186148,), (1338186253,), (1338186612,), (1338186613,), (1338186614,), (1338186616,), (1338186619,), (1338186621,), (1338186656,), (1338186661,), (1338186664,), (1338186665,), (1338186667,), (1338186671,), (1338186706,), (1338186707,), (1338186708,), (1338186710,), (1338186752,), (1338186753,), (1338186754,), (1338186756,), (1338186759,), (1338186811,), (1338186820,), (1338186836,), (1338186843,), (1338186856,), (1338186858,), (1338186983,), (1338187067,), (1338187170,), (1338187250,), (1338187256,), (1338187282,), (1338187284,), (1338187287,), (1338187290,), (1338187293,), (1338187354,), (1338187369,), (1338187375,), (1338187402,), (1338187409,), (1338187619,), (1338187621,), (1338187624,), (1338187627,), (1338187629,), (1338187682,), (1338187672,), (1338187675,), (1338187678,), (1338187680,), (1338187812,), (1338187896,), (1338187981,), (1338188051,), (1338188089,), (1338188091,), (1338188094,), (1338188097,), (1338188099,), (1338188102,), (1338188183,), (1338188193,), (1338188196,), (1338188199,), (1338188202,), (1338188391,), (1338188431,), (1338188484,), (1338188497,), (1338188501,), (1338188506,), (1338188508,), (1338188546,), (1338188552,), (1338188612,), (1338188614,), (1338188617,), (1338188684,), (1338188686,), (1338188689,), (1338188777,), (1338188779,), (1338188798,), (1338188901,), (1338189004,), (1338189084,), (1338189568,), (1338189570,), (1338189573,), (1338189580,), (1338189870,), (1338189879,), (1338189939,), (1338189960,), (1338189962,), (1338189966,), (1338189983,), (1338189985,), (1338189991,), (1338189995,), (1338190003,), (1338190007,), (1338190026,), (1338190030,), (1338190033,), (1338190054,), (1338196234,), (1338196347,), (1338196467,), (1338196469,), (1338196472,), (1338196474,), (1338196480,), (1338196484,), (1338196503,), (1338196504,), (1338196506,), (1338197156,), (1338197157,), (1338197168,), (1338197338,), (1338197352,), (1338197433,), (1338197434,), (1338197610,), (1338197612,), (1338197613,), (1338197647,), (1338197650,), (1338197653,), (1338197655,), (1338197840,), (1338197842,), (1338197843,), (1338197844,), (1338197845,), (1338197903,), (1338197922,), (1338197923,), (1338197931,), (1338197933,), (1338197935,), (1338197982,), (1338197983,), (1338197985,), (1338198028,), (1338198029,), (1338198031,), (1338198033,), (1338198034,), (1338198036,), (1338198255,), (1338198256,), (1338198261,), (1338198265,), (1338198267,), (1338198285,), (1338198287,), (1338198289,), (1338198331,), (1338198316,), (1338198321,), (1338198327,), (1338198329,), (1338198415,), (1338198416,), (1338198418,), (1338198487,), (1338198488,), (1338198490,), (1338198492,), (1338198946,), (1338198947,), (1338198949,), (1338198951,), (1338199157,), (1338199184,), (1338199276,), (1338199278,), (1338199280,), (1338199301,), (1338199302,), (1338199304,), (1338199306,), (1338199528,), (1338199549,), (1338199551,), (1338199553,), (1338199623,), (1338199625,), (1338199628,), (1338199631,), (1338199634,), (1338199653,), (1338199655,), (1338199658,), (1338199661,), (1338199665,), (1338199689,), (1338199695,), (1338199699,), (1338199702,), (1338199704,), (1338199707,), (1338199751,), (1338199754,), (1338199757,), (1338199760,), (1338199778,), (1338199780,), (1338199783,), (1338199790,), (1338199796,), (1338199824,), (1338199830,), (1338199841,), (1338199982,), (1338200003,), (1338200283,), (1338200287,), (1338200290,), (1338200337,), (1338200339,), (1338200342,), (1338200345,), (1338200347,), (1338200352,), (1338200495,), (1338200367,), (1338200369,), (1338200372,), (1338200488,), (1338200576,), (1338200578,), (1338200581,), (1338200584,), (1338200607,), (1338200609,), (1338200612,), (1338200615,), (1338200617,), (1338200621,), (1338200646,), (1338200650,), (1338200653,), (1338200655,), (1338200707,), (1338200710,), (1338200713,), (1338200717,), (1338200765,), (1338200769,), (1338200808,), (1338200815,), (1338200819,), (1338200823,), (1338200826,), (1338200830,), (1338200856,), (1338200859,), (1338200863,), (1338200867,), (1338200917,), (1338200920,), (1338200922,), (1338200924,), (1338200927,), (1338200932,), (1338200956,), (1338200959,), (1338200963,), (1338200967,), (1338200969,), (1338200972,), (1338201004,), (1338201006,), (1338201008,), (1338201055,), (1338201061,), (1338201064,), (1338201067,), (1338201070,), (1338201073,), (1338201103,), (1338201105,), (1338201112,), (1338201114,), (1338201116,), (1338201192,), (1338201194,), (1338201197,), (1338201200,), (1338201203,), (1338201299,), (1338201302,), (1338201306,), (1338201334,), (1338202509,), (1338202336,), (1338202418,), (1338202501,), (1338202508,), (1338202755,), (1338202811,), (1338202814,), (1338202821,), (1338202825,), (1338202874,), (1338202875,), (1338202877,), (1338202879,), (1338202882,), (1338202886,), (1338202920,), (1338202922,), (1338202925,), (1338202928,), (1338202962,), (1338202967,), (1338202968,), (1338202971,), (1338203008,), (1338203011,), (1338203014,), (1338203016,), (1338203019,), (1338203021,), (1338203050,), (1338203052,), (1338203055,), (1338203058,), (1338203060,), (1338203554,), (1338203557,), (1338203561,), (1338203565,), (1338203585,), (1338203590,), (1338203870,), (1338203873,), (1338203876,), (1338203879,), (1338203934,), (1338203943,), (1338203947,), (1338203951,), (1338203953,), (1338203958,), (1338203982,), (1338203985,), (1338203990,), (1338203994,), (1338203998,), (1338204241,), (1338204251,), (1338204258,), (1338204261,), (1338204342,), (1338204343,), (1338204374,), (1338204408,), (1338204414,), (1338204524,), (1338204533,), (1338204537,), (1338204542,), (1338204555,), (1338204612,), (1338204613,), (1338204616,), (1338204617,), (1338204621,), (1338204624,), (1338204660,), (1338204649,), (1338204652,), (1338204655,), (1338204658,), (1338204702,), (1338204710,), (1338204716,), (1338204726,), (1338204728,), (1338204731,), (1338204755,), (1338204757,), (1338204760,), (1338204789,), (1338204803,), (1338204806,), (1338204809,), (1338204818,), (1338205500,), (1338205502,), (1338205506,), (1338205509,), (1338205511,), (1338205814,), (1338205820,), (1338205824,), (1338205858,), (1338205860,), (1338205863,), (1338205866,), (1338205868,), (1338205873,), (1338205887,), (1338205890,), (1338205893,), (1338205901,), (1338205908,), (1338205923,), (1338205925,), (1338205928,), (1338205956,), (1338205959,), (1338205965,), (1338205968,), (1338205969,), (1338205972,), (1338205984,), (1338205986,), (1338205989,), (1338205992,), (1338205995,), (1338206019,), (1338206021,), (1338206024,), (1338206049,), (1338206051,), (1338206054,), (1338206057,), (1338206059,), (1338206083,), (1338206085,), (1338206089,), (1338206092,), (1338206094,), (1338206098,), (1338206116,), (1338206119,), (1338206122,), (1338206125,), (1338206166,), (1338206161,), (1338206163,), (1338206210,), (1338206214,), (1338206216,), (1338206222,), (1338206228,), (1338206237,), (1338206268,), (1338206270,), (1338206272,), (1338206273,), (1338206274,), (1338206290,), (1338206294,), (1338206297,), (1338206299,), (1338206321,), (1338206325,), (1338206385,), (1338207084,), (1338207085,), (1338207277,), (1338207642,), (1338207649,), (1338207652,), (1338207655,), (1338207658,), (1338207678,), (1338207680,), (1338207683,), (1338207686,), (1338207714,), (1338207716,), (1338207719,), (1338207722,), (1338207724,), (1338207747,), (1338207751,), (1338207755,), (1338207760,), (1338207763,), (1338207767,), (1338207795,), (1338207811,), (1338207815,), (1338207818,), (1338207842,), (1338207998,), (1338207990,), (1338207992,), (1338207995,), (1338208096,), (1338208133,), (1338208142,), (1338208146,), (1338208147,), (1338208149,), (1338208186,), (1338208188,), (1338208191,), (1338208194,), (1338208204,), (1338208463,), (1338208888,), (1338208890,), (1338208893,), (1338208896,), (1338208946,), (1338208953,), (1338208956,), (1338208990,), (1338209012,), (1338209026,), (1338209097,), (1338209099,), (1338209102,), (1338209105,), (1338209134,), (1338209136,), (1338209139,), (1338209187,), (1338209195,), (1338209198,), (1338209201,), (1338209203,), (1338209206,), (1338209228,), (1338209231,), (1338209235,), (1338209239,), (1338209242,), (1338209246,), (1338209265,), (1338209268,), (1338209272,), (1338209275,), (1338209292,), (1338209294,), (1338209297,), (1338209300,), (1338209328,), (1338209357,), (1338209358,), (1338209404,), (1338209407,), (1338209410,), (1338209413,), (1338209440,), (1338209451,), (1338209454,), (1338209542,), (1338209584,), (1338209587,), (1338209590,), (1338209594,), (1338209599,), (1338209627,), (1338209629,), (1338209688,), (1338209731,), (1338209733,), (1338209736,), (1338209765,), (1338209756,), (1338209760,), (1338209763,), (1338209802,), (1338209806,), (1338209808,), (1338209810,), (1338209813,), (1338209816,), (1338209832,), (1338209836,), (1338209885,), (1338209887,), (1338209896,), (1338209907,), (1338209924,), (1338210714,), (1338210718,), (1338210721,), (1338210723,), (1338211007,), (1338211009,), (1338211012,), (1338211015,), (1338211018,), (1338211128,), (1338211139,), (1338211142,), (1338211145,), (1338211187,), (1338211190,), (1338211193,), (1338211196,), (1338211197,), (1338211213,), (1338211215,), (1338211218,), (1338211221,), (1338211223,), (1338211230,), (1338211349,), (1338211354,), (1338211357,), (1338211360,), (1338211363,), (1338211369,), (1338211397,), (1338211399,), (1338211402,), (1338211405,), (1338211423,), (1338211425,), (1338211429,), (1338211448,), (1338211454,), (1338211626,), (1338211630,), (1338211654,), (1338211693,), (1338211684,), (1338211687,), (1338211690,), (1338211798,), (1338211809,), (1338211817,), (1338211818,), (1338211866,), (1338211868,), (1338211871,), (1338211874,), (1338211876,), (1338211895,), (1338211897,), (1338211900,), (1338211958,), (1338212067,), (1338212874,), (1338212878,), (1338212880,), (1338212976,), (1338213018,), (1338213131,), (1338213133,), (1338213158,), (1338213161,), (1338213163,), (1338213166,), (1338213169,), (1338213172,), (1338213216,), (1338213218,), (1338213221,), (1338213224,), (1338213227,), (1338213241,), (1338213243,), (1338213246,), (1338213249,), (1338213304,), (1338213306,), (1338213309,), (1338213311,), (1338213313,), (1338213328,), (1338213330,), (1338213333,), (1338213336,), (1338213339,), (1338213346,), (1338213523,), (1338213525,), (1338213528,), (1338213542,), (1338213547,), (1338213551,), (1338213580,), (1338213582,), (1338213585,), (1338213588,), (1338213590,), (1338213623,), (1338213626,), (1338213635,), (1338213643,), (1338213644,), (1338213646,), (1338213662,), (1338213663,), (1338213665,), (1338213699,), (1338213690,), (1338213691,), (1338213693,), (1338213695,), (1338213968,), (1338213970,), (1338213972,), (1338213973,), (1338213975,), (1338214002,), (1338214004,), (1338214006,), (1338214008,), (1338214031,), (1338214032,), (1338214037,), (1338214039,), (1338214042,), (1338214044,), (1338214074,), (1338214076,), (1338214079,), (1338214082,), (1338214084,), (1338214087,), (1338214118,), (1338214121,), (1338214125,), (1338214129,), (1338214166,), (1338214169,), (1338214173,), (1338214177,), (1338214180,), (1338214201,), (1338214204,), (1338214208,), (1338214213,), (1338214217,), (1338214229,), (1338214269,), (1338214275,), (1338214283,), (1338214310,), (1338214313,), (1338214317,), (1338214321,), (1338214323,), (1338214372,), (1338214374,), (1338214377,), (1338214380,), (1338214382,), (1338214555,), (1338214557,), (1338214560,), (1338214563,), (1338214565,), (1338214589,), (1338214590,), (1338214623,), (1338214627,), (1338214629,), (1338214631,), (1338214654,), (1338214656,), (1338214658,), (1338214660,), (1338214663,), (1338214690,), (1338214683,), (1338214684,), (1338214686,), (1338214688,), (1338214740,), (1338214742,), (1338214744,), (1338215209,), (1338215210,), (1338215212,), (1338215214,), (1338215253,), (1338215255,), (1338215358,), (1338215404,), (1338215438,), (1338215445,), (1338215453,), (1338215455,), (1338215457,), (1338215485,), (1338215487,), (1338215490,), (1338215494,), (1338215525,), (1338215569,), (1338215570,), (1338215572,), (1338215574,), (1338215575,), (1338215591,), (1338215592,), (1338215594,), (1338215596,), (1338215621,), (1338215624,), (1338215626,), (1338215628,), (1338215633,), (1338215638,), (1338215653,), (1338215654,), (1338215656,), (1338218878,), (1338219898,), (1338221075,), (1338221107,), (1338221123,), (1338221160,), (1338221173,), (1338221175,), (1338222535,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'17022025': {'nb_upload': 26, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20608349]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1338161451, 1338161183, 1338161181, 1338161178, 1338161155, 1338161130, 1338160941, 1338160938, 1338160935, 1338160826, 1338160822, 1338160820, 1338160800, 1338160796, 1338160792, 1338160788, 1338160785, 1338160760, 1338160756, 1338160752, 1338160748, 1338160718, 1338160715, 1338159532, 1338159527, 1338159500] map_info['map_portfolio_photo'] : {20608349: [1338161451, 1338161183, 1338161181, 1338161178, 1338161155, 1338161130, 1338160941, 1338160938, 1338160935, 1338160826, 1338160822, 1338160820, 1338160800, 1338160796, 1338160792, 1338160788, 1338160785, 1338160760, 1338160756, 1338160752, 1338160748, 1338160718, 1338160715, 1338159532, 1338159527, 1338159500]} final : True mtd_id 4302 list_pids : [1338161451, 1338161183, 1338161181, 1338161178, 1338161155, 1338161130, 1338160941, 1338160938, 1338160935, 1338160826, 1338160822, 1338160820, 1338160800, 1338160796, 1338160792, 1338160788, 1338160785, 1338160760, 1338160756, 1338160752, 1338160748, 1338160718, 1338160715, 1338159532, 1338159527, 1338159500] Looping around the photos to save general results len do output : 1 /20608349Didn'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, '2595265') ('4302', '20608349', '1338161451', None, None, None, None, None, '2595265') ('4302', None, None, None, None, None, None, None, '2595265') ('4302', '20608349', '1338161183', None, None, None, None, None, '2595265') ('4302', None, None, None, None, None, None, None, '2595265') ('4302', '20608349', '1338161181', None, None, None, None, None, '2595265') ('4302', None, None, None, None, None, None, None, '2595265') ('4302', '20608349', '1338161178', None, None, None, None, None, '2595265') ('4302', None, None, None, None, None, None, None, '2595265') ('4302', '20608349', '1338161155', None, None, None, None, None, '2595265') ('4302', None, None, None, None, None, None, None, '2595265') ('4302', '20608349', '1338161130', None, None, None, None, None, '2595265') ('4302', None, None, None, None, None, None, None, '2595265') ('4302', '20608349', '1338160941', None, None, None, None, None, '2595265') ('4302', None, None, None, None, None, None, None, '2595265') ('4302', '20608349', '1338160938', None, None, None, None, None, '2595265') ('4302', None, None, None, None, None, None, None, '2595265') ('4302', '20608349', '1338160935', None, None, None, None, None, '2595265') ('4302', None, None, None, None, None, None, None, '2595265') ('4302', '20608349', '1338160826', None, None, None, None, None, '2595265') ('4302', None, None, None, None, None, None, None, '2595265') ('4302', '20608349', '1338160822', None, None, None, None, None, '2595265') ('4302', None, None, None, None, None, None, None, '2595265') ('4302', '20608349', '1338160820', None, None, None, None, None, '2595265') ('4302', None, None, None, None, None, None, None, '2595265') ('4302', '20608349', '1338160800', None, None, None, None, None, '2595265') ('4302', None, None, None, None, None, None, None, '2595265') ('4302', '20608349', '1338160796', None, None, None, None, None, '2595265') ('4302', None, None, None, None, None, None, None, '2595265') ('4302', '20608349', '1338160792', None, None, None, None, None, '2595265') ('4302', None, None, None, None, None, None, None, '2595265') ('4302', '20608349', '1338160788', None, None, None, None, None, '2595265') ('4302', None, None, None, None, None, None, None, '2595265') ('4302', '20608349', '1338160785', None, None, None, None, None, '2595265') ('4302', None, None, None, None, None, None, None, '2595265') ('4302', '20608349', '1338160760', None, None, None, None, None, '2595265') ('4302', None, None, None, None, None, None, None, '2595265') ('4302', '20608349', '1338160756', None, None, None, None, None, '2595265') ('4302', None, None, None, None, None, None, None, '2595265') ('4302', '20608349', '1338160752', None, None, None, None, None, '2595265') ('4302', None, None, None, None, None, None, None, '2595265') ('4302', '20608349', '1338160748', None, None, None, None, None, '2595265') ('4302', None, None, None, None, None, None, None, '2595265') ('4302', '20608349', '1338160718', None, None, None, None, None, '2595265') ('4302', None, None, None, None, None, None, None, '2595265') ('4302', '20608349', '1338160715', None, None, None, None, None, '2595265') ('4302', None, None, None, None, None, None, None, '2595265') ('4302', '20608349', '1338159532', None, None, None, None, None, '2595265') ('4302', None, None, None, None, None, None, None, '2595265') ('4302', '20608349', '1338159527', None, None, None, None, None, '2595265') ('4302', None, None, None, None, None, None, None, '2595265') ('4302', '20608349', '1338159500', None, None, None, None, None, '2595265') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 27 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '20608349', 'None', None, None, None, None, '2595265'), ('4302', '20608349', '1338161451', None, None, None, None, None, '2595265'), ('4302', '20608349', '1338161183', None, None, None, None, None, '2595265'), ('4302', '20608349', '1338161181', None, None, None, None, None, '2595265'), ('4302', '20608349', '1338161178', None, None, None, None, None, '2595265'), ('4302', '20608349', '1338161155', None, None, None, None, None, '2595265'), ('4302', '20608349', '1338161130', None, None, None, None, None, '2595265'), ('4302', '20608349', '1338160941', None, None, None, None, None, '2595265'), ('4302', '20608349', '1338160938', None, None, None, None, None, '2595265'), ('4302', '20608349', '1338160935', None, None, None, None, None, '2595265'), ('4302', '20608349', '1338160826', None, None, None, None, None, '2595265'), ('4302', '20608349', '1338160822', None, None, None, None, None, '2595265'), ('4302', '20608349', '1338160820', None, None, None, None, None, '2595265'), ('4302', '20608349', '1338160800', None, None, None, None, None, '2595265'), ('4302', '20608349', '1338160796', None, None, None, None, None, '2595265'), ('4302', '20608349', '1338160792', None, None, None, None, None, '2595265'), ('4302', '20608349', '1338160788', None, None, None, None, None, '2595265'), ('4302', '20608349', '1338160785', None, None, None, None, None, '2595265'), ('4302', '20608349', '1338160760', None, None, None, None, None, '2595265'), ('4302', '20608349', '1338160756', None, None, None, None, None, '2595265'), ('4302', '20608349', '1338160752', None, None, None, None, None, '2595265'), ('4302', '20608349', '1338160748', None, None, None, None, None, '2595265'), ('4302', '20608349', '1338160718', None, None, None, None, None, '2595265'), ('4302', '20608349', '1338160715', None, None, None, None, None, '2595265'), ('4302', '20608349', '1338159532', None, None, None, None, None, '2595265'), ('4302', '20608349', '1338159527', None, None, None, None, None, '2595265'), ('4302', '20608349', '1338159500', None, None, None, None, None, '2595265')] time used for this insertion : 0.023763418197631836 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.358168840408325 time spend to save output : 0.024070024490356445 total time spend for step 5 : 3.3822388648986816 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 (2595265) 2.83user 2.24system 0:13.26elapsed 38%CPU (0avgtext+0avgdata 168720maxresident)k 176inputs+20944outputs (0major+79252minor)pagefaults 0swaps