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 : 6332 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 (2690121) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2690121) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21701715 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2690121'] with mtr_portfolio_ids : ['21701715'] and first list_photo_ids : [] new path : /proc/6332/ Name: python3 Umask: 0002 State: R (running) Tgid: 6332 Ngid: 0 Pid: 6332 PPid: 6331 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 6332 NSpid: 6332 NSpgid: 3934 NSsid: 3934 VmPeak: 1106844 kB VmSize: 1106844 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 97644 kB VmRSS: 97644 kB RssAnon: 59760 kB RssFile: 37884 kB RssShmem: 0 kB VmData: 865592 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 584 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63054 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 88 nonvoluntary_ctxt_switches: 162 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '6332', 'Ngid': '0', 'Pid': '6332', 'PPid': '6331', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '6332', 'NSpid': '6332', 'NSpgid': '3934', 'NSsid': '3934', 'VmPeak': '1106844 kB', 'VmSize': '1106844 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '97644 kB', 'VmRSS': '97644 kB', 'RssAnon': '59760 kB', 'RssFile': '37884 kB', 'RssShmem': '0 kB', 'VmData': '865592 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '584 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63054', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '88', 'nonvoluntary_ctxt_switches': '162'} ('datou_batch_current', '6332', '1106844', '0', '1106844', '865592', '97644', b'', 'marlene', '2690121') 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 (21701715) 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 (2690121 ) ) 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 (21701715) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1347264070, 'portfolio_id': 21701715}, {'photo_id': 1347246319, 'portfolio_id': 21701715}, {'photo_id': 1347246257, 'portfolio_id': 21701715}, {'photo_id': 1347246256, 'portfolio_id': 21701715}, {'photo_id': 1347246253, 'portfolio_id': 21701715}, {'photo_id': 1347246222, 'portfolio_id': 21701715}, {'photo_id': 1347246218, 'portfolio_id': 21701715}, {'photo_id': 1347246215, 'portfolio_id': 21701715}, {'photo_id': 1347246211, 'portfolio_id': 21701715}, {'photo_id': 1347246209, 'portfolio_id': 21701715}, {'photo_id': 1347246199, 'portfolio_id': 21701715}, {'photo_id': 1347246163, 'portfolio_id': 21701715}, {'photo_id': 1347246159, 'portfolio_id': 21701715}, {'photo_id': 1347246154, 'portfolio_id': 21701715}, {'photo_id': 1347246151, 'portfolio_id': 21701715}, {'photo_id': 1347246148, 'portfolio_id': 21701715}, {'photo_id': 1347246093, 'portfolio_id': 21701715}, {'photo_id': 1347246091, 'portfolio_id': 21701715}, {'photo_id': 1347246084, 'portfolio_id': 21701715}, {'photo_id': 1347246073, 'portfolio_id': 21701715}, {'photo_id': 1347246069, 'portfolio_id': 21701715}, {'photo_id': 1347246030, 'portfolio_id': 21701715}, {'photo_id': 1347246027, 'portfolio_id': 21701715}, {'photo_id': 1347246025, 'portfolio_id': 21701715}, {'photo_id': 1347245964, 'portfolio_id': 21701715}, {'photo_id': 1347245958, 'portfolio_id': 21701715}, {'photo_id': 1347245938, 'portfolio_id': 21701715}, {'photo_id': 1347245933, 'portfolio_id': 21701715}, {'photo_id': 1347245913, 'portfolio_id': 21701715}, {'photo_id': 1347245713, 'portfolio_id': 21701715}, {'photo_id': 1347245706, 'portfolio_id': 21701715}, {'photo_id': 1347245676, 'portfolio_id': 21701715}, {'photo_id': 1347245667, 'portfolio_id': 21701715}, {'photo_id': 1347245656, 'portfolio_id': 21701715}, {'photo_id': 1347245610, 'portfolio_id': 21701715}, {'photo_id': 1347245606, 'portfolio_id': 21701715}, {'photo_id': 1347245598, 'portfolio_id': 21701715}, {'photo_id': 1347245595, 'portfolio_id': 21701715}, {'photo_id': 1347245590, 'portfolio_id': 21701715}, {'photo_id': 1347245554, 'portfolio_id': 21701715}, {'photo_id': 1347245549, 'portfolio_id': 21701715}, {'photo_id': 1347245545, 'portfolio_id': 21701715}, {'photo_id': 1347245541, 'portfolio_id': 21701715}, {'photo_id': 1347245531, 'portfolio_id': 21701715}, {'photo_id': 1347245526, 'portfolio_id': 21701715}, {'photo_id': 1347245484, 'portfolio_id': 21701715}, {'photo_id': 1347245479, 'portfolio_id': 21701715}, {'photo_id': 1347245475, 'portfolio_id': 21701715}, {'photo_id': 1347245471, 'portfolio_id': 21701715}, {'photo_id': 1347245363, 'portfolio_id': 21701715}, {'photo_id': 1347245357, 'portfolio_id': 21701715}, {'photo_id': 1347245350, 'portfolio_id': 21701715}, {'photo_id': 1347245345, 'portfolio_id': 21701715}, {'photo_id': 1347245340, 'portfolio_id': 21701715}, {'photo_id': 1347245303, 'portfolio_id': 21701715}, {'photo_id': 1347245299, 'portfolio_id': 21701715}, {'photo_id': 1347245273, 'portfolio_id': 21701715}, {'photo_id': 1347245251, 'portfolio_id': 21701715}, {'photo_id': 1347245222, 'portfolio_id': 21701715}, {'photo_id': 1347245193, 'portfolio_id': 21701715}, {'photo_id': 1347244793, 'portfolio_id': 21701715}, {'photo_id': 1347244765, 'portfolio_id': 21701715}, {'photo_id': 1347244748, 'portfolio_id': 21701715}, {'photo_id': 1347244744, 'portfolio_id': 21701715}, {'photo_id': 1347244708, 'portfolio_id': 21701715}, {'photo_id': 1347244704, 'portfolio_id': 21701715}, {'photo_id': 1347244700, 'portfolio_id': 21701715}, {'photo_id': 1347244693, 'portfolio_id': 21701715}, {'photo_id': 1347244689, 'portfolio_id': 21701715}] map_portfolio_id_photo_id: {21701715: [1347264070, 1347246319, 1347246257, 1347246256, 1347246253, 1347246222, 1347246218, 1347246215, 1347246211, 1347246209, 1347246199, 1347246163, 1347246159, 1347246154, 1347246151, 1347246148, 1347246093, 1347246091, 1347246084, 1347246073, 1347246069, 1347246030, 1347246027, 1347246025, 1347245964, 1347245958, 1347245938, 1347245933, 1347245913, 1347245713, 1347245706, 1347245676, 1347245667, 1347245656, 1347245610, 1347245606, 1347245598, 1347245595, 1347245590, 1347245554, 1347245549, 1347245545, 1347245541, 1347245531, 1347245526, 1347245484, 1347245479, 1347245475, 1347245471, 1347245363, 1347245357, 1347245350, 1347245345, 1347245340, 1347245303, 1347245299, 1347245273, 1347245251, 1347245222, 1347245193, 1347244793, 1347244765, 1347244748, 1347244744, 1347244708, 1347244704, 1347244700, 1347244693, 1347244689]} ##### 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.01584911346435547 #### 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 Wed Mar 26 00:02:30 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21701715) 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 : 21701715 get user id for portfolio 21701715 get sub ptf for main ptf 21701715, type 3726 and hashtags ['papier', 'plastique', 'mal_croppe', 'kraft', 'Carton_gris', 'Carton_brun', 'flou', 'metal', 'cartonnette', 'Teint_Dans_La_Masse', 'environnement', 'autre_refus'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21701715 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','plastique','mal_croppe','kraft','Carton_gris','Carton_brun','flou','metal','cartonnette','Teint_Dans_La_Masse','environnement','autre_refus')) 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`=21701715 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','plastique','mal_croppe','kraft','Carton_gris','Carton_brun','flou','metal','cartonnette','Teint_Dans_La_Masse','environnement','autre_refus')) AND mptpi.`min_score`=0.5 To do returned map {'environnement': {'main_port_id': 21701715, 'sub_port_id': 21701735, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14231693, 'last_updated_at': datetime.datetime(2025, 3, 25, 17, 32, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 25, 17, 32, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 25, 17, 19, 58)}, 'flou': {'main_port_id': 21701715, 'sub_port_id': 21701736, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14231694, 'last_updated_at': datetime.datetime(2025, 3, 25, 17, 32, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 25, 17, 32, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 25, 17, 19, 58)}, 'cartonnette': {'main_port_id': 21701715, 'sub_port_id': 21701737, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14231695, 'last_updated_at': datetime.datetime(2025, 3, 25, 17, 32, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 25, 17, 32, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 25, 17, 19, 58)}, 'Carton_brun': {'main_port_id': 21701715, 'sub_port_id': 21701738, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14231696, 'last_updated_at': datetime.datetime(2025, 3, 25, 17, 32, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 25, 17, 32, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 25, 17, 19, 58)}, 'mal_croppe': {'main_port_id': 21701715, 'sub_port_id': 21701739, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14231697, 'last_updated_at': datetime.datetime(2025, 3, 25, 17, 32, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 25, 17, 32, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 25, 17, 19, 58)}, 'Carton_gris': {'main_port_id': 21701715, 'sub_port_id': 21701740, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14231698, 'last_updated_at': datetime.datetime(2025, 3, 25, 17, 32, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 25, 17, 32, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 25, 17, 19, 58)}, 'metal': {'main_port_id': 21701715, 'sub_port_id': 21701741, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14231699, 'last_updated_at': datetime.datetime(2025, 3, 25, 17, 32, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 25, 17, 32, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 25, 17, 19, 58)}, 'plastique': {'main_port_id': 21701715, 'sub_port_id': 21701742, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14231700, 'last_updated_at': datetime.datetime(2025, 3, 25, 17, 32, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 25, 17, 32, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 25, 17, 19, 58)}, 'kraft': {'main_port_id': 21701715, 'sub_port_id': 21701743, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14231701, 'last_updated_at': datetime.datetime(2025, 3, 25, 17, 32, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 25, 17, 32, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 25, 17, 19, 58)}, 'papier': {'main_port_id': 21701715, 'sub_port_id': 21701744, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14231702, 'last_updated_at': datetime.datetime(2025, 3, 25, 17, 32, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 25, 17, 32, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 25, 17, 19, 58)}, 'Teint_Dans_La_Masse': {'main_port_id': 21701715, 'sub_port_id': 21701745, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14231703, 'last_updated_at': datetime.datetime(2025, 3, 25, 17, 32, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 25, 17, 32, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 25, 17, 19, 58)}, 'autre_refus': {'main_port_id': 21701715, 'sub_port_id': 21701746, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14231704, 'last_updated_at': datetime.datetime(2025, 3, 25, 17, 32, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 25, 17, 32, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 25, 17, 19, 58)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21701735 , 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=21701715 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 (21701735) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21701715) result : ((1347244689,), (1347244693,), (1347244700,), (1347244704,), (1347244708,), (1347244744,), (1347244748,), (1347244765,), (1347244793,), (1347245193,), (1347245222,), (1347245251,), (1347245273,), (1347245299,), (1347245303,), (1347245340,), (1347245345,), (1347245350,), (1347245357,), (1347245363,), (1347245471,), (1347245475,), (1347245479,), (1347245484,), (1347245526,), (1347245531,), (1347245541,), (1347245545,), (1347245549,), (1347245554,), (1347245590,), (1347245595,), (1347245598,), (1347245606,), (1347245610,), (1347245656,), (1347245667,), (1347245676,), (1347245706,), (1347245713,), (1347245913,), (1347245933,), (1347245938,), (1347245958,), (1347245964,), (1347246025,), (1347246027,), (1347246030,), (1347246069,), (1347246073,), (1347246084,), (1347246091,), (1347246093,), (1347246148,), (1347246151,), (1347246154,), (1347246159,), (1347246163,), (1347246199,), (1347246209,), (1347246211,), (1347246215,), (1347246218,), (1347246222,), (1347246253,), (1347246256,), (1347246257,), (1347246319,), (1347264070,)) 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 (1347244700) 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 21701736 , 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=21701715 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 (21701736) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21701715) result : ((1347244689,), (1347244693,), (1347244700,), (1347244704,), (1347244708,), (1347244744,), (1347244748,), (1347244765,), (1347244793,), (1347245193,), (1347245222,), (1347245251,), (1347245273,), (1347245299,), (1347245303,), (1347245340,), (1347245345,), (1347245350,), (1347245357,), (1347245363,), (1347245471,), (1347245475,), (1347245479,), (1347245484,), (1347245526,), (1347245531,), (1347245541,), (1347245545,), (1347245549,), (1347245554,), (1347245590,), (1347245595,), (1347245598,), (1347245606,), (1347245610,), (1347245656,), (1347245667,), (1347245676,), (1347245706,), (1347245713,), (1347245913,), (1347245933,), (1347245938,), (1347245958,), (1347245964,), (1347246025,), (1347246027,), (1347246030,), (1347246069,), (1347246073,), (1347246084,), (1347246091,), (1347246093,), (1347246148,), (1347246151,), (1347246154,), (1347246159,), (1347246163,), (1347246199,), (1347246209,), (1347246211,), (1347246215,), (1347246218,), (1347246222,), (1347246253,), (1347246256,), (1347246257,), (1347246319,), (1347264070,)) 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 (1347244700) 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 21701737 , 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=21701715 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 (21701737) result : ((1347245729,), (1347245730,), (1347245921,), (1347246017,), (1347246018,), (1347246065,), (1347246066,), (1347246078,), (1347246079,), (1347246170,), (1347246196,), (1347246197,), (1347246198,), (1347246342,), (1347246343,), (1347247026,), (1347250814,), (1347250815,), (1347250909,), (1347250910,), (1347255159,), (1347255165,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21701715) result : ((1347244689,), (1347244693,), (1347244700,), (1347244704,), (1347244708,), (1347244744,), (1347244748,), (1347244765,), (1347244793,), (1347245193,), (1347245222,), (1347245251,), (1347245273,), (1347245299,), (1347245303,), (1347245340,), (1347245345,), (1347245350,), (1347245357,), (1347245363,), (1347245471,), (1347245475,), (1347245479,), (1347245484,), (1347245526,), (1347245531,), (1347245541,), (1347245545,), (1347245549,), (1347245554,), (1347245590,), (1347245595,), (1347245598,), (1347245606,), (1347245610,), (1347245656,), (1347245667,), (1347245676,), (1347245706,), (1347245713,), (1347245913,), (1347245933,), (1347245938,), (1347245958,), (1347245964,), (1347246025,), (1347246027,), (1347246030,), (1347246069,), (1347246073,), (1347246084,), (1347246091,), (1347246093,), (1347246148,), (1347246151,), (1347246154,), (1347246159,), (1347246163,), (1347246199,), (1347246209,), (1347246211,), (1347246215,), (1347246218,), (1347246222,), (1347246253,), (1347246256,), (1347246257,), (1347246319,), (1347264070,)) 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 (1347244700) 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 21701738 , 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=21701715 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 (21701738) result : ((1347245493,), (1347245734,), (1347245908,), (1347246020,), (1347246080,), (1347246172,), (1347246202,), (1347246203,), (1347246327,), (1347246328,), (1347246344,), (1347247038,), (1347247039,), (1347247041,), (1347250816,), (1347250878,), (1347250880,), (1347250921,), (1347250925,), (1347250926,), (1347251183,), (1347251576,), (1347255170,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21701715) result : ((1347244689,), (1347244693,), (1347244700,), (1347244704,), (1347244708,), (1347244744,), (1347244748,), (1347244765,), (1347244793,), (1347245193,), (1347245222,), (1347245251,), (1347245273,), (1347245299,), (1347245303,), (1347245340,), (1347245345,), (1347245350,), (1347245357,), (1347245363,), (1347245471,), (1347245475,), (1347245479,), (1347245484,), (1347245526,), (1347245531,), (1347245541,), (1347245545,), (1347245549,), (1347245554,), (1347245590,), (1347245595,), (1347245598,), (1347245606,), (1347245610,), (1347245656,), (1347245667,), (1347245676,), (1347245706,), (1347245713,), (1347245913,), (1347245933,), (1347245938,), (1347245958,), (1347245964,), (1347246025,), (1347246027,), (1347246030,), (1347246069,), (1347246073,), (1347246084,), (1347246091,), (1347246093,), (1347246148,), (1347246151,), (1347246154,), (1347246159,), (1347246163,), (1347246199,), (1347246209,), (1347246211,), (1347246215,), (1347246218,), (1347246222,), (1347246253,), (1347246256,), (1347246257,), (1347246319,), (1347264070,)) 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 (1347244700) 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 21701739 , 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=21701715 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 (21701739) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21701715) result : ((1347244689,), (1347244693,), (1347244700,), (1347244704,), (1347244708,), (1347244744,), (1347244748,), (1347244765,), (1347244793,), (1347245193,), (1347245222,), (1347245251,), (1347245273,), (1347245299,), (1347245303,), (1347245340,), (1347245345,), (1347245350,), (1347245357,), (1347245363,), (1347245471,), (1347245475,), (1347245479,), (1347245484,), (1347245526,), (1347245531,), (1347245541,), (1347245545,), (1347245549,), (1347245554,), (1347245590,), (1347245595,), (1347245598,), (1347245606,), (1347245610,), (1347245656,), (1347245667,), (1347245676,), (1347245706,), (1347245713,), (1347245913,), (1347245933,), (1347245938,), (1347245958,), (1347245964,), (1347246025,), (1347246027,), (1347246030,), (1347246069,), (1347246073,), (1347246084,), (1347246091,), (1347246093,), (1347246148,), (1347246151,), (1347246154,), (1347246159,), (1347246163,), (1347246199,), (1347246209,), (1347246211,), (1347246215,), (1347246218,), (1347246222,), (1347246253,), (1347246256,), (1347246257,), (1347246319,), (1347264070,)) 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 (1347244700) 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 21701740 , 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=21701715 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 (21701740) result : ((1347245490,), (1347245724,), (1347245725,), (1347245919,), (1347246014,), (1347246015,), (1347246064,), (1347246076,), (1347246077,), (1347246194,), (1347246337,), (1347246339,), (1347246340,), (1347247020,), (1347247021,), (1347250808,), (1347250809,), (1347250811,), (1347250867,), (1347250868,), (1347250869,), (1347250902,), (1347250903,), (1347251558,), (1347251560,), (1347255151,), (1347255153,), (1347255154,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21701715) result : ((1347244689,), (1347244693,), (1347244700,), (1347244704,), (1347244708,), (1347244744,), (1347244748,), (1347244765,), (1347244793,), (1347245193,), (1347245222,), (1347245251,), (1347245273,), (1347245299,), (1347245303,), (1347245340,), (1347245345,), (1347245350,), (1347245357,), (1347245363,), (1347245471,), (1347245475,), (1347245479,), (1347245484,), (1347245526,), (1347245531,), (1347245541,), (1347245545,), (1347245549,), (1347245554,), (1347245590,), (1347245595,), (1347245598,), (1347245606,), (1347245610,), (1347245656,), (1347245667,), (1347245676,), (1347245706,), (1347245713,), (1347245913,), (1347245933,), (1347245938,), (1347245958,), (1347245964,), (1347246025,), (1347246027,), (1347246030,), (1347246069,), (1347246073,), (1347246084,), (1347246091,), (1347246093,), (1347246148,), (1347246151,), (1347246154,), (1347246159,), (1347246163,), (1347246199,), (1347246209,), (1347246211,), (1347246215,), (1347246218,), (1347246222,), (1347246253,), (1347246256,), (1347246257,), (1347246319,), (1347264070,)) 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 (1347244700) 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 21701741 , 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=21701715 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 (21701741) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21701715) result : ((1347244689,), (1347244693,), (1347244700,), (1347244704,), (1347244708,), (1347244744,), (1347244748,), (1347244765,), (1347244793,), (1347245193,), (1347245222,), (1347245251,), (1347245273,), (1347245299,), (1347245303,), (1347245340,), (1347245345,), (1347245350,), (1347245357,), (1347245363,), (1347245471,), (1347245475,), (1347245479,), (1347245484,), (1347245526,), (1347245531,), (1347245541,), (1347245545,), (1347245549,), (1347245554,), (1347245590,), (1347245595,), (1347245598,), (1347245606,), (1347245610,), (1347245656,), (1347245667,), (1347245676,), (1347245706,), (1347245713,), (1347245913,), (1347245933,), (1347245938,), (1347245958,), (1347245964,), (1347246025,), (1347246027,), (1347246030,), (1347246069,), (1347246073,), (1347246084,), (1347246091,), (1347246093,), (1347246148,), (1347246151,), (1347246154,), (1347246159,), (1347246163,), (1347246199,), (1347246209,), (1347246211,), (1347246215,), (1347246218,), (1347246222,), (1347246253,), (1347246256,), (1347246257,), (1347246319,), (1347264070,)) 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 (1347244700) 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 21701742 , 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=21701715 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 (21701742) result : ((1347245566,), (1347245567,), (1347245735,), (1347245917,), (1347245918,), (1347245923,), (1347246021,), (1347246067,), (1347246081,), (1347247049,), (1347247051,), (1347247052,), (1347250821,), (1347250931,), (1347251583,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21701715) result : ((1347244689,), (1347244693,), (1347244700,), (1347244704,), (1347244708,), (1347244744,), (1347244748,), (1347244765,), (1347244793,), (1347245193,), (1347245222,), (1347245251,), (1347245273,), (1347245299,), (1347245303,), (1347245340,), (1347245345,), (1347245350,), (1347245357,), (1347245363,), (1347245471,), (1347245475,), (1347245479,), (1347245484,), (1347245526,), (1347245531,), (1347245541,), (1347245545,), (1347245549,), (1347245554,), (1347245590,), (1347245595,), (1347245598,), (1347245606,), (1347245610,), (1347245656,), (1347245667,), (1347245676,), (1347245706,), (1347245713,), (1347245913,), (1347245933,), (1347245938,), (1347245958,), (1347245964,), (1347246025,), (1347246027,), (1347246030,), (1347246069,), (1347246073,), (1347246084,), (1347246091,), (1347246093,), (1347246148,), (1347246151,), (1347246154,), (1347246159,), (1347246163,), (1347246199,), (1347246209,), (1347246211,), (1347246215,), (1347246218,), (1347246222,), (1347246253,), (1347246256,), (1347246257,), (1347246319,), (1347264070,)) 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 (1347244700) 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 21701743 , 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=21701715 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 (21701743) result : ((1347250885,), (1347250959,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21701715) result : ((1347244689,), (1347244693,), (1347244700,), (1347244704,), (1347244708,), (1347244744,), (1347244748,), (1347244765,), (1347244793,), (1347245193,), (1347245222,), (1347245251,), (1347245273,), (1347245299,), (1347245303,), (1347245340,), (1347245345,), (1347245350,), (1347245357,), (1347245363,), (1347245471,), (1347245475,), (1347245479,), (1347245484,), (1347245526,), (1347245531,), (1347245541,), (1347245545,), (1347245549,), (1347245554,), (1347245590,), (1347245595,), (1347245598,), (1347245606,), (1347245610,), (1347245656,), (1347245667,), (1347245676,), (1347245706,), (1347245713,), (1347245913,), (1347245933,), (1347245938,), (1347245958,), (1347245964,), (1347246025,), (1347246027,), (1347246030,), (1347246069,), (1347246073,), (1347246084,), (1347246091,), (1347246093,), (1347246148,), (1347246151,), (1347246154,), (1347246159,), (1347246163,), (1347246199,), (1347246209,), (1347246211,), (1347246215,), (1347246218,), (1347246222,), (1347246253,), (1347246256,), (1347246257,), (1347246319,), (1347264070,)) 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 (1347244700) 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 21701744 , 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=21701715 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 (21701744) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21701715) result : ((1347244689,), (1347244693,), (1347244700,), (1347244704,), (1347244708,), (1347244744,), (1347244748,), (1347244765,), (1347244793,), (1347245193,), (1347245222,), (1347245251,), (1347245273,), (1347245299,), (1347245303,), (1347245340,), (1347245345,), (1347245350,), (1347245357,), (1347245363,), (1347245471,), (1347245475,), (1347245479,), (1347245484,), (1347245526,), (1347245531,), (1347245541,), (1347245545,), (1347245549,), (1347245554,), (1347245590,), (1347245595,), (1347245598,), (1347245606,), (1347245610,), (1347245656,), (1347245667,), (1347245676,), (1347245706,), (1347245713,), (1347245913,), (1347245933,), (1347245938,), (1347245958,), (1347245964,), (1347246025,), (1347246027,), (1347246030,), (1347246069,), (1347246073,), (1347246084,), (1347246091,), (1347246093,), (1347246148,), (1347246151,), (1347246154,), (1347246159,), (1347246163,), (1347246199,), (1347246209,), (1347246211,), (1347246215,), (1347246218,), (1347246222,), (1347246253,), (1347246256,), (1347246257,), (1347246319,), (1347264070,)) 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 (1347244700) 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 21701745 , 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=21701715 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 (21701745) result : ((1347245555,), (1347245556,), (1347245557,), (1347245719,), (1347245720,), (1347245897,), (1347245898,), (1347245899,), (1347245909,), (1347245911,), (1347245912,), (1347246011,), (1347246012,), (1347246061,), (1347246062,), (1347246332,), (1347246333,), (1347246334,), (1347246335,), (1347246632,), (1347246633,), (1347246634,), (1347247018,), (1347250837,), (1347251529,), (1347255144,), (1347255145,), (1347255147,), (1347255148,), (1347255149,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21701715) result : ((1347244689,), (1347244693,), (1347244700,), (1347244704,), (1347244708,), (1347244744,), (1347244748,), (1347244765,), (1347244793,), (1347245193,), (1347245222,), (1347245251,), (1347245273,), (1347245299,), (1347245303,), (1347245340,), (1347245345,), (1347245350,), (1347245357,), (1347245363,), (1347245471,), (1347245475,), (1347245479,), (1347245484,), (1347245526,), (1347245531,), (1347245541,), (1347245545,), (1347245549,), (1347245554,), (1347245590,), (1347245595,), (1347245598,), (1347245606,), (1347245610,), (1347245656,), (1347245667,), (1347245676,), (1347245706,), (1347245713,), (1347245913,), (1347245933,), (1347245938,), (1347245958,), (1347245964,), (1347246025,), (1347246027,), (1347246030,), (1347246069,), (1347246073,), (1347246084,), (1347246091,), (1347246093,), (1347246148,), (1347246151,), (1347246154,), (1347246159,), (1347246163,), (1347246199,), (1347246209,), (1347246211,), (1347246215,), (1347246218,), (1347246222,), (1347246253,), (1347246256,), (1347246257,), (1347246319,), (1347264070,)) 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 (1347244700) 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 21701746 , 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=21701715 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 (21701746) result : ((1347245488,), (1347245561,), (1347245562,), (1347245563,), (1347245564,), (1347245565,), (1347245722,), (1347245903,), (1347245904,), (1347245905,), (1347245906,), (1347245907,), (1347246013,), (1347247019,), (1347251539,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21701715) result : ((1347244689,), (1347244693,), (1347244700,), (1347244704,), (1347244708,), (1347244744,), (1347244748,), (1347244765,), (1347244793,), (1347245193,), (1347245222,), (1347245251,), (1347245273,), (1347245299,), (1347245303,), (1347245340,), (1347245345,), (1347245350,), (1347245357,), (1347245363,), (1347245471,), (1347245475,), (1347245479,), (1347245484,), (1347245526,), (1347245531,), (1347245541,), (1347245545,), (1347245549,), (1347245554,), (1347245590,), (1347245595,), (1347245598,), (1347245606,), (1347245610,), (1347245656,), (1347245667,), (1347245676,), (1347245706,), (1347245713,), (1347245913,), (1347245933,), (1347245938,), (1347245958,), (1347245964,), (1347246025,), (1347246027,), (1347246030,), (1347246069,), (1347246073,), (1347246084,), (1347246091,), (1347246093,), (1347246148,), (1347246151,), (1347246154,), (1347246159,), (1347246163,), (1347246199,), (1347246209,), (1347246211,), (1347246215,), (1347246218,), (1347246222,), (1347246253,), (1347246256,), (1347246257,), (1347246319,), (1347264070,)) 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 (1347244700) 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`=21701715 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','plastique','mal_croppe','kraft','Carton_gris','Carton_brun','flou','metal','cartonnette','Teint_Dans_La_Masse','environnement','autre_refus')) 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`=21701715 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','plastique','mal_croppe','kraft','Carton_gris','Carton_brun','flou','metal','cartonnette','Teint_Dans_La_Masse','environnement','autre_refus')) AND mptpi.`min_score`=0.5 To do returned map {'environnement': {'main_port_id': 21701715, 'sub_port_id': 21701747, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14231705, 'last_updated_at': datetime.datetime(2025, 3, 25, 17, 19, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 25, 17, 19, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 25, 17, 19, 59)}, 'flou': {'main_port_id': 21701715, 'sub_port_id': 21701748, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14231706, 'last_updated_at': datetime.datetime(2025, 3, 25, 17, 19, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 25, 17, 19, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 25, 17, 19, 59)}, 'cartonnette': {'main_port_id': 21701715, 'sub_port_id': 21701749, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14231707, 'last_updated_at': datetime.datetime(2025, 3, 25, 17, 19, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 25, 17, 19, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 25, 17, 19, 59)}, 'Carton_brun': {'main_port_id': 21701715, 'sub_port_id': 21701750, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14231708, 'last_updated_at': datetime.datetime(2025, 3, 25, 17, 19, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 25, 17, 19, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 25, 17, 19, 59)}, 'mal_croppe': {'main_port_id': 21701715, 'sub_port_id': 21701751, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14231709, 'last_updated_at': datetime.datetime(2025, 3, 25, 17, 19, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 25, 17, 19, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 25, 17, 19, 59)}, 'Carton_gris': {'main_port_id': 21701715, 'sub_port_id': 21701752, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14231710, 'last_updated_at': datetime.datetime(2025, 3, 25, 17, 19, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 25, 17, 19, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 25, 17, 19, 59)}, 'metal': {'main_port_id': 21701715, 'sub_port_id': 21701753, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14231711, 'last_updated_at': datetime.datetime(2025, 3, 25, 17, 19, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 25, 17, 19, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 25, 17, 19, 59)}, 'plastique': {'main_port_id': 21701715, 'sub_port_id': 21701754, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14231712, 'last_updated_at': datetime.datetime(2025, 3, 25, 17, 19, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 25, 17, 19, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 25, 17, 19, 59)}, 'kraft': {'main_port_id': 21701715, 'sub_port_id': 21701755, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14231713, 'last_updated_at': datetime.datetime(2025, 3, 25, 17, 19, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 25, 17, 19, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 25, 17, 19, 59)}, 'papier': {'main_port_id': 21701715, 'sub_port_id': 21701756, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14231714, 'last_updated_at': datetime.datetime(2025, 3, 25, 17, 19, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 25, 17, 19, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 25, 17, 19, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 21701715, 'sub_port_id': 21701757, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14231715, 'last_updated_at': datetime.datetime(2025, 3, 25, 17, 19, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 25, 17, 19, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 25, 17, 19, 59)}, 'autre_refus': {'main_port_id': 21701715, 'sub_port_id': 21701758, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14231716, 'last_updated_at': datetime.datetime(2025, 3, 25, 17, 32, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 25, 17, 32, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 25, 17, 19, 59)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21701747,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21701735 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21701748,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21701736 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21701749,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21701737 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21701750,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21701738 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21701751,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21701739 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21701752,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21701740 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21701753,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21701741 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21701754,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21701742 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21701755,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21701743 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21701756,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21701744 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21701757,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21701745 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21701758,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21701746 lien utilise dans velours : https://www.fotonower.com/velours/21701747,21701748,21701749,21701750,21701751,21701752,21701753,21701754,21701755,21701756,21701757,21701758?tags=environnement,flou,cartonnette,Carton_brun,mal_croppe,Carton_gris,metal,plastique,kraft,papier,Teint_Dans_La_Masse,autre_refus After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21701715]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1347264070] map_info['map_portfolio_photo'] : {21701715: [1347264070, 1347246319, 1347246257, 1347246256, 1347246253, 1347246222, 1347246218, 1347246215, 1347246211, 1347246209, 1347246199, 1347246163, 1347246159, 1347246154, 1347246151, 1347246148, 1347246093, 1347246091, 1347246084, 1347246073, 1347246069, 1347246030, 1347246027, 1347246025, 1347245964, 1347245958, 1347245938, 1347245933, 1347245913, 1347245713, 1347245706, 1347245676, 1347245667, 1347245656, 1347245610, 1347245606, 1347245598, 1347245595, 1347245590, 1347245554, 1347245549, 1347245545, 1347245541, 1347245531, 1347245526, 1347245484, 1347245479, 1347245475, 1347245471, 1347245363, 1347245357, 1347245350, 1347245345, 1347245340, 1347245303, 1347245299, 1347245273, 1347245251, 1347245222, 1347245193, 1347244793, 1347244765, 1347244748, 1347244744, 1347244708, 1347244704, 1347244700, 1347244693, 1347244689]} final : False mtd_id 4302 list_pids : [1347264070] Looping around the photos to save general results len do output : 1 /21701715. 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, '2690121') ('4302', '21701715', '1347264070', None, None, None, None, None, '2690121') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 2 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, '21701715', "{'environnement': 21701735, 'flou': 21701736, 'cartonnette': 21701737, 'Carton_brun': 21701738, 'mal_croppe': 21701739, 'Carton_gris': 21701740, 'metal': 21701741, 'plastique': 21701742, 'kraft': 21701743, 'papier': 21701744, 'Teint_Dans_La_Masse': 21701745, 'autre_refus': 21701746}", None, None, None, None, '2690121'), ('4302', '21701715', '1347264070', None, None, None, None, None, '2690121')] time used for this insertion : 0.013092279434204102 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.5163395404815674 time spend to save output : 0.0134124755859375 total time spend for step 1 : 0.5297520160675049 step2:final Wed Mar 26 00:02:31 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21701715) 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 21701715 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1347244708,1347244704,1347244700,1347244693,1347244689,1347244793,1347244765,1347244748,1347244744,1347245303,1347245299,1347245273,1347245251,1347245222,1347245193,1347245363,1347245357,1347245350,1347245345,1347245340,1347245484,1347245479,1347245475,1347245471,1347245554,1347245549,1347245545,1347245541,1347245531,1347245526,1347245610,1347245606,1347245598,1347245595,1347245590,1347245713,1347245706,1347245676,1347245667,1347245656,1347245964,1347245958,1347245938,1347245933,1347245913,1347246030,1347246027,1347246025,1347246093,1347246091,1347246084,1347246073,1347246069,1347246163,1347246159,1347246154,1347246151,1347246148,1347246222,1347246218,1347246215,1347246211,1347246209,1347246199,1347246257,1347246256,1347246253,1347246319,1347264070); 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([21701715]) Inside saveOutput : final : False verbose : True original output for save of step final : {1347264070: ('0.038716811417085086',)} new output for save of step final : {1347264070: ('0.038716811417085086',)} [1347264070] map_info['map_portfolio_photo'] : {21701715: [1347264070, 1347246319, 1347246257, 1347246256, 1347246253, 1347246222, 1347246218, 1347246215, 1347246211, 1347246209, 1347246199, 1347246163, 1347246159, 1347246154, 1347246151, 1347246148, 1347246093, 1347246091, 1347246084, 1347246073, 1347246069, 1347246030, 1347246027, 1347246025, 1347245964, 1347245958, 1347245938, 1347245933, 1347245913, 1347245713, 1347245706, 1347245676, 1347245667, 1347245656, 1347245610, 1347245606, 1347245598, 1347245595, 1347245590, 1347245554, 1347245549, 1347245545, 1347245541, 1347245531, 1347245526, 1347245484, 1347245479, 1347245475, 1347245471, 1347245363, 1347245357, 1347245350, 1347245345, 1347245340, 1347245303, 1347245299, 1347245273, 1347245251, 1347245222, 1347245193, 1347244793, 1347244765, 1347244748, 1347244744, 1347244708, 1347244704, 1347244700, 1347244693, 1347244689]} final : False mtd_id 4302 list_pids : [1347264070] Looping around the photos to save general results len do output : 1 /1347264070.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, '2690121') ('4302', '21701715', '1347264070', None, None, None, None, None, '2690121') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 3 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', '21701715', '1347264070', '0.038716811417085086', None, None, None, None, '2690121')] time used for this insertion : 0.010805368423461914 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07454276084899902 time spend to save output : 0.01096653938293457 total time spend for step 2 : 0.0855093002319336 step3:velours_tree Wed Mar 26 00:02:31 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {21701715: [{'environnement': 21701735, 'flou': 21701736, 'cartonnette': 21701737, 'Carton_brun': 21701738, 'mal_croppe': 21701739, 'Carton_gris': 21701740, 'metal': 21701741, 'plastique': 21701742, 'kraft': 21701743, 'papier': 21701744, 'Teint_Dans_La_Masse': 21701745, 'autre_refus': 21701746}]} input_args_next_step : {21701715: ()} output_args : {21701715: [{'environnement': 21701735, 'flou': 21701736, 'cartonnette': 21701737, 'Carton_brun': 21701738, 'mal_croppe': 21701739, 'Carton_gris': 21701740, 'metal': 21701741, 'plastique': 21701742, 'kraft': 21701743, 'papier': 21701744, 'Teint_Dans_La_Masse': 21701745, 'autre_refus': 21701746}]} args : 21701715 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 : ({'environnement': 21701735, 'flou': 21701736, 'cartonnette': 21701737, 'Carton_brun': 21701738, 'mal_croppe': 21701739, 'Carton_gris': 21701740, 'metal': 21701741, 'plastique': 21701742, 'kraft': 21701743, 'papier': 21701744, 'Teint_Dans_La_Masse': 21701745, 'autre_refus': 21701746},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21701715) 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([21701715]) 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.5409929752349854 time spend to save output : 4.649162292480469e-05 total time spend for step 3 : 0.5410394668579102 step4:send_mail_cod Wed Mar 26 00:02:31 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1347264070: ('0.038716811417085086',)} input_args_next_step : {1347264070: ()} output_args : {1347264070: ('0.038716811417085086',)} args : 1347264070 depend.output_id : 0 complete output_args for input 3 : {21701715: [{'environnement': 21701735, 'flou': 21701736, 'cartonnette': 21701737, 'Carton_brun': 21701738, 'mal_croppe': 21701739, 'Carton_gris': 21701740, 'metal': 21701741, 'plastique': 21701742, 'kraft': 21701743, 'papier': 21701744, 'Teint_Dans_La_Masse': 21701745, 'autre_refus': 21701746}]} input_args_next_step : {1347264070: ('0.038716811417085086',), 21701715: ()} output_args : {21701715: [{'environnement': 21701735, 'flou': 21701736, 'cartonnette': 21701737, 'Carton_brun': 21701738, 'mal_croppe': 21701739, 'Carton_gris': 21701740, 'metal': 21701741, 'plastique': 21701742, 'kraft': 21701743, 'papier': 21701744, 'Teint_Dans_La_Masse': 21701745, 'autre_refus': 21701746}]} args : 21701715 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 :2, first value : ('0.038716811417085086',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21701715) 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 (1347264070) Found this number of photos: 1 ##### Call download_photos : nb_thread : 5 begin to download photo : 1347264070 download finish for photo 1347264070 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette217017361742943751/ length of list_filenames : 1 ; length of list_pids : 1 ; length of list_args : 1 results_Auto_P21701715_26-03-2025_00_02_31.pdf 21701736 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=21701736 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette217017361742943751 21701737 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=21701737 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1347246197: '1742920122_2508930_1347245933_783b9045c4bae563123999ec558d957f_rle_crop_3729478011_0.png', 1347255165: '1742922973_872028_1347246148_816e3e48a5ef3a49c3c5959d1671e04d_rle_crop_3729478625_0.png', 1347255159: '1742922973_872028_1347246159_1c5ad0db84323cca9a790f1575183360_rle_crop_3729478561_0.png', 1347250910: '1742922092_854523_1347245471_5e17aec174226693a38b5c10ca7cd380_rle_crop_3729520822_0.png', 1347250909: '1742922092_854523_1347245479_a8a75a8bfa89ffd47806233715bc5f13_rle_crop_3729520731_0.png', 1347250815: '1742922052_853697_1347245656_90a83fb3cbf9f80fc5f52c89ced2bc08_rle_crop_3729476726_0.png', 1347250814: '1742922052_853697_1347245667_e966eb9b927bd38eeaaa7c237ecf67a1_rle_crop_3729476691_0.png', 1347247026: '1742920512_804511_1347246257_43b0fc8e4b1518ab49bba2a6eabecfec_rle_crop_3729483750_0.png', 1347246343: '1742920215_796159_1347246148_816e3e48a5ef3a49c3c5959d1671e04d_rle_crop_3729478625_0.png', 1347246342: '1742920215_796159_1347246159_1c5ad0db84323cca9a790f1575183360_rle_crop_3729478561_0.png', 1347246198: '1742920122_2508930_1347245913_32a656ade7af46c4d868862a2e29c6ec_rle_crop_3729478019_0.png', 1347245729: '1742919812_790680_1347245273_2398d8179550eb4437b5c220534fca6d_rle_crop_3729474341_0.png', 1347246196: '1742920122_2508930_1347245938_948152dce2efbca427e0a1839bb9fa7a_rle_crop_3729477999_0.png', 1347246170: '1742920091_795299_1347246027_37594700189d64ce1c33ea4f5b0870e0_rle_crop_3729477146_0.png', 1347246079: '1742919993_794480_1347245656_90a83fb3cbf9f80fc5f52c89ced2bc08_rle_crop_3729476726_0.png', 1347246078: '1742919993_794480_1347245667_e966eb9b927bd38eeaaa7c237ecf67a1_rle_crop_3729476691_0.png', 1347246066: '1742920001_2506233_1347245595_06317d7aa2ff938b587e4b090a3f87ae_rle_crop_3729476653_0.png', 1347246065: '1742920001_2506233_1347245606_e639e38be83a911716d2585884cd1b15_rle_crop_3729476638_0.png', 1347246018: '1742919873_791635_1347245193_91e6f1eb64bf7840a60620a8a9f670b7_rle_crop_3729475069_0.png', 1347246017: '1742919873_791635_1347245273_2398d8179550eb4437b5c220534fca6d_rle_crop_3729474341_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/914ddb2c551cfd68e5db1971ee2c65aa_25472192.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/bbb4916f882a87d6a79a6772556f2cd6_18463950.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/1f93769f8f583bd3d6cc6285c44eeca6_371020.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/b4e662a9cfb8bb8d36b6a8e144140969_71385028.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/4affc3c4f88249d86fc199ebfafdce43_50942095.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/be0d17794d3db1fc2bfca48492d16d43_65807592.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/80d436f2198ad64a8a3f06ae2b8ef761_80447819.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/eb64abcf34819f2b62cde25e85036217_40288405.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/bbb4916f882a87d6a79a6772556f2cd6_50341689.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/1f93769f8f583bd3d6cc6285c44eeca6_27328474.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/a245ef5b35e518aac1b83dea3898bc9a_97906554.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/d049b10f34378150d8df36dd57327fbd_61970909.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/4308391b79a63dea0edb337964f3691b_25999923.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/02c7a386faf64a298611d7a593cd739b_82047207.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/be0d17794d3db1fc2bfca48492d16d43_95041914.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/80d436f2198ad64a8a3f06ae2b8ef761_93240157.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/460cb3cf5b90e0a788b90887bf3f37a5_95321918.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/6d61ef288e8b9b967adbc2112fee72ef_55853636.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/8304ed7fd1ceaa12939dbdffee8cc2b4_16141711.png change filename to text .imagette217017371742943751/ imagette217017371742943751/1742920122_2508930_1347245933_783b9045c4bae563123999ec558d957f_rle_crop_3729478011_0.png.png imagette217017371742943751/1742919812_790680_1347245273_2398d8179550eb4437b5c220534fca6d_rle_crop_3729474341_0.png.png imagette217017371742943751/1742922973_872028_1347246159_1c5ad0db84323cca9a790f1575183360_rle_crop_3729478561_0.png.png imagette217017371742943751/1742920122_2508930_1347245938_948152dce2efbca427e0a1839bb9fa7a_rle_crop_3729477999_0.png.png imagette217017371742943751/1742920122_2508930_1347245913_32a656ade7af46c4d868862a2e29c6ec_rle_crop_3729478019_0.png.png imagette217017371742943751/1742922092_854523_1347245471_5e17aec174226693a38b5c10ca7cd380_rle_crop_3729520822_0.png.png imagette217017371742943751/1742920001_2506233_1347245606_e639e38be83a911716d2585884cd1b15_rle_crop_3729476638_0.png.png imagette217017371742943751/1742920215_796159_1347246159_1c5ad0db84323cca9a790f1575183360_rle_crop_3729478561_0.png.png imagette217017371742943751/1742920091_795299_1347246027_37594700189d64ce1c33ea4f5b0870e0_rle_crop_3729477146_0.png.png imagette217017371742943751/1742922973_872028_1347246148_816e3e48a5ef3a49c3c5959d1671e04d_rle_crop_3729478625_0.png.png imagette217017371742943751/1742922052_853697_1347245667_e966eb9b927bd38eeaaa7c237ecf67a1_rle_crop_3729476691_0.png.png imagette217017371742943751/1742920215_796159_1347246148_816e3e48a5ef3a49c3c5959d1671e04d_rle_crop_3729478625_0.png.png imagette217017371742943751/1742922092_854523_1347245479_a8a75a8bfa89ffd47806233715bc5f13_rle_crop_3729520731_0.png.png imagette217017371742943751/1742919993_794480_1347245667_e966eb9b927bd38eeaaa7c237ecf67a1_rle_crop_3729476691_0.png.png imagette217017371742943751/1742920512_804511_1347246257_43b0fc8e4b1518ab49bba2a6eabecfec_rle_crop_3729483750_0.png.png imagette217017371742943751/1742920001_2506233_1347245595_06317d7aa2ff938b587e4b090a3f87ae_rle_crop_3729476653_0.png.png imagette217017371742943751/1742919873_791635_1347245193_91e6f1eb64bf7840a60620a8a9f670b7_rle_crop_3729475069_0.png.png imagette217017371742943751/1742919993_794480_1347245656_90a83fb3cbf9f80fc5f52c89ced2bc08_rle_crop_3729476726_0.png.png imagette217017371742943751/1742919873_791635_1347245273_2398d8179550eb4437b5c220534fca6d_rle_crop_3729474341_0.png.png imagette217017371742943751/1742922052_853697_1347245656_90a83fb3cbf9f80fc5f52c89ced2bc08_rle_crop_3729476726_0.png.png imagette217017391742943754/ imagette217017411742943754/ wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/d049b10f34378150d8df36dd57327fbd_79706134.png imagette217017371742943751 21701739 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=21701739 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette217017391742943754 21701741 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=21701741 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette217017411742943754 21701742 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=21701742 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1347245566: '1742919692_789349_1347244708_86636a89d2489fcbccb7f06dd7d72202_rle_crop_3729473585_0.png', 1347245567: '1742919692_789349_1347244704_e08c8b051619676a41fab318a7602a61_rle_crop_3729473594_0.png', 1347245735: '1742919812_790680_1347245299_3dc977773fadf58a83f68ed1f38f4adf_rle_crop_3729474332_0.png', 1347245917: '1742919831_790880_1347244708_86636a89d2489fcbccb7f06dd7d72202_rle_crop_3729473585_0.png', 1347245918: '1742919831_790880_1347244704_e08c8b051619676a41fab318a7602a61_rle_crop_3729473594_0.png', 1347245923: '1742919882_2503510_1347245345_b423d8841fe99ab64095a67b11edace8_rle_crop_3729474137_0.png', 1347246021: '1742919873_791635_1347245299_3dc977773fadf58a83f68ed1f38f4adf_rle_crop_3729474332_0.png', 1347246067: '1742920001_2506233_1347245606_e639e38be83a911716d2585884cd1b15_rle_crop_3729476634_0.png', 1347246081: '1742919993_794480_1347245706_9df4e7831686877c896eda33c641a4d3_rle_crop_3729476679_0.png', 1347247049: '1742920512_804511_1347246257_43b0fc8e4b1518ab49bba2a6eabecfec_rle_crop_3729483755_0.png', 1347247051: '1742920512_804511_1347246211_d5ac2faeb9d4a4c54a6d2587b6cb1ac7_rle_crop_3729483781_0.png', 1347247052: '1742920512_804511_1347246199_45ba576376ade21b19d377583ad380b2_rle_crop_3729483822_0.png', 1347250821: '1742922052_853697_1347245706_9df4e7831686877c896eda33c641a4d3_rle_crop_3729476679_0.png', 1347250931: '1742922092_854523_1347245479_a8a75a8bfa89ffd47806233715bc5f13_rle_crop_3729520730_0.png', 1347251583: '1742922152_855856_1347245303_91f8339301af35aeff28cb4c41ac26bd_rle_crop_3729520910_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/1c6eb0c6605d458bb3eb47a615d8fa55_32633501.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/fc4d37ceff0536f0c712b8c15ee53ff1_6141853.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/77a31e71299f3d0aa02639e445aabb64_29602060.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/1c6eb0c6605d458bb3eb47a615d8fa55_64664994.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/fc4d37ceff0536f0c712b8c15ee53ff1_65401189.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/c4b4daecfc52a65b244641442b9c7b04_43747560.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/77a31e71299f3d0aa02639e445aabb64_53039902.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/a7b0980694088dcc9621d97c8372deed_99267994.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/34c19f60d6f6cbc59bbd2ec52b06fa03_44937420.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/28c08f6aa8636156aedfec636c53ce5b_56079280.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/5c36ce25e867db071075f65cd8938427_7676716.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/d2ebcf7e74e528ebe312da9d9b390540_27682836.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/34c19f60d6f6cbc59bbd2ec52b06fa03_19987202.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/2bca7bbf9f68cfa873b827b3fcae4c9a_58519162.png change filename to text .imagette217017421742943754/ imagette217017421742943754/1742919873_791635_1347245299_3dc977773fadf58a83f68ed1f38f4adf_rle_crop_3729474332_0.png.png imagette217017421742943754/1742919692_789349_1347244708_86636a89d2489fcbccb7f06dd7d72202_rle_crop_3729473585_0.png.png imagette217017421742943754/1742919882_2503510_1347245345_b423d8841fe99ab64095a67b11edace8_rle_crop_3729474137_0.png.png imagette217017421742943754/1742920001_2506233_1347245606_e639e38be83a911716d2585884cd1b15_rle_crop_3729476634_0.png.png imagette217017421742943754/1742920512_804511_1347246257_43b0fc8e4b1518ab49bba2a6eabecfec_rle_crop_3729483755_0.png.png imagette217017421742943754/1742919692_789349_1347244704_e08c8b051619676a41fab318a7602a61_rle_crop_3729473594_0.png.png imagette217017421742943754/1742920512_804511_1347246199_45ba576376ade21b19d377583ad380b2_rle_crop_3729483822_0.png.png imagette217017421742943754/1742922092_854523_1347245479_a8a75a8bfa89ffd47806233715bc5f13_rle_crop_3729520730_0.png.png imagette217017421742943754/1742919812_790680_1347245299_3dc977773fadf58a83f68ed1f38f4adf_rle_crop_3729474332_0.png.png imagette217017421742943754/1742922152_855856_1347245303_91f8339301af35aeff28cb4c41ac26bd_rle_crop_3729520910_0.png.png imagette217017421742943754/1742919831_790880_1347244704_e08c8b051619676a41fab318a7602a61_rle_crop_3729473594_0.png.png imagette217017421742943754/1742922052_853697_1347245706_9df4e7831686877c896eda33c641a4d3_rle_crop_3729476679_0.png.png imagette217017421742943754/1742919831_790880_1347244708_86636a89d2489fcbccb7f06dd7d72202_rle_crop_3729473585_0.png.png imagette217017421742943754/1742919993_794480_1347245706_9df4e7831686877c896eda33c641a4d3_rle_crop_3729476679_0.png.png imagette217017421742943754/1742920512_804511_1347246211_d5ac2faeb9d4a4c54a6d2587b6cb1ac7_rle_crop_3729483781_0.png.png wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/dde489bcc8405fbe3056ec729f6f5e14_31356817.png imagette217017421742943754 21701743 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=21701743 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1347250885: '1742922073_854119_1347245545_e9852ea3ccec41e77e6cac40a6f54edf_rle_crop_3729475583_0.png', 1347250959: '1742922092_854523_1347245479_a8a75a8bfa89ffd47806233715bc5f13_rle_crop_3729520732_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/c044bc4cd77156ae7d72f37c6f293159_54907311.png change filename to text .imagette217017431742943755/ imagette217017431742943755/1742922092_854523_1347245479_a8a75a8bfa89ffd47806233715bc5f13_rle_crop_3729520732_0.png.png imagette217017431742943755/1742922073_854119_1347245545_e9852ea3ccec41e77e6cac40a6f54edf_rle_crop_3729475583_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/4512f6f33e479872e09602b704fb60eb_14931942.png imagette217017431742943755 21701746 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=21701746 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1347245488: '1742919652_788738_1347244744_8598edeab991edab6e175cfad349dea3_rle_crop_3729472991_0.png', 1347245561: '1742919692_789349_1347244700_938f5852ea94ec8965bc49d4fc41808b_rle_crop_3729473621_0.png', 1347245562: '1742919692_789349_1347244700_938f5852ea94ec8965bc49d4fc41808b_rle_crop_3729473619_0.png', 1347245563: '1742919692_789349_1347244693_2901398bf79ea66f5494210c46258c97_rle_crop_3729473630_0.png', 1347245564: '1742919692_789349_1347244689_37997359661b32c92a5032bd9fba9a65_rle_crop_3729473647_0.png', 1347245565: '1742919692_789349_1347244689_37997359661b32c92a5032bd9fba9a65_rle_crop_3729473646_0.png', 1347245722: '1742919812_790680_1347245299_3dc977773fadf58a83f68ed1f38f4adf_rle_crop_3729474329_0.png', 1347245903: '1742919831_790880_1347244700_938f5852ea94ec8965bc49d4fc41808b_rle_crop_3729473621_0.png', 1347245904: '1742919831_790880_1347244700_938f5852ea94ec8965bc49d4fc41808b_rle_crop_3729473619_0.png', 1347245905: '1742919831_790880_1347244693_2901398bf79ea66f5494210c46258c97_rle_crop_3729473630_0.png', 1347245906: '1742919831_790880_1347244689_37997359661b32c92a5032bd9fba9a65_rle_crop_3729473647_0.png', 1347245907: '1742919831_790880_1347244689_37997359661b32c92a5032bd9fba9a65_rle_crop_3729473646_0.png', 1347246013: '1742919873_791635_1347245299_3dc977773fadf58a83f68ed1f38f4adf_bib_crop_3729474329_0.jpg', 1347247019: '1742920512_804511_1347246211_d5ac2faeb9d4a4c54a6d2587b6cb1ac7_rle_crop_3729483775_0.png', 1347251539: '1742922152_855856_1347244744_8598edeab991edab6e175cfad349dea3_rle_crop_3729472991_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/3463349213f72aa7821df62bf6ccdaf6_5065863.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/1ffd301148ed176602550285d6e52fc1_24804520.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/a6a2eec37d1fd7223a8773e601b867e7_33885958.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/2a55a043ab2c321bccd644b10db35966_80716868.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/87f86534f60eed485dc46d6d58a15efc_65212351.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/c7fe8e1edc9b07e7e2cbde02dd28a2f3_33807404.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/cdfa30d5f3dfa40f4d77fe2828c9959e_41554463.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/1ffd301148ed176602550285d6e52fc1_24249618.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/a6a2eec37d1fd7223a8773e601b867e7_9592206.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/2a55a043ab2c321bccd644b10db35966_49171796.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/87f86534f60eed485dc46d6d58a15efc_70503022.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/c7fe8e1edc9b07e7e2cbde02dd28a2f3_23628862.png change filename to text .wget -O 13.jpg http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/9aae04e8ad315064bc2dd8b67cc5e534_16265801.jpg change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/4a37b8f27c989e8f48919af52b6e6cdf_35976986.png change filename to text .imagette217017461742943755/ imagette217017461742943755/1742919831_790880_1347244693_2901398bf79ea66f5494210c46258c97_rle_crop_3729473630_0.png.png imagette217017461742943755/1742919831_790880_1347244689_37997359661b32c92a5032bd9fba9a65_rle_crop_3729473646_0.png.png imagette217017461742943755/1742919873_791635_1347245299_3dc977773fadf58a83f68ed1f38f4adf_bib_crop_3729474329_0.jpg.jpg imagette217017461742943755/1742919692_789349_1347244700_938f5852ea94ec8965bc49d4fc41808b_rle_crop_3729473621_0.png.png imagette217017461742943755/1742919812_790680_1347245299_3dc977773fadf58a83f68ed1f38f4adf_rle_crop_3729474329_0.png.png imagette217017461742943755/1742919692_789349_1347244693_2901398bf79ea66f5494210c46258c97_rle_crop_3729473630_0.png.png imagette217017461742943755/1742919831_790880_1347244700_938f5852ea94ec8965bc49d4fc41808b_rle_crop_3729473619_0.png.png imagette217017461742943755/1742919831_790880_1347244689_37997359661b32c92a5032bd9fba9a65_rle_crop_3729473647_0.png.png imagette217017461742943755/1742919692_789349_1347244689_37997359661b32c92a5032bd9fba9a65_rle_crop_3729473647_0.png.png imagette217017461742943755/1742920512_804511_1347246211_d5ac2faeb9d4a4c54a6d2587b6cb1ac7_rle_crop_3729483775_0.png.png imagette217017461742943755/1742922152_855856_1347244744_8598edeab991edab6e175cfad349dea3_rle_crop_3729472991_0.png.png imagette217017461742943755/1742919652_788738_1347244744_8598edeab991edab6e175cfad349dea3_rle_crop_3729472991_0.png.png imagette217017461742943755/1742919692_789349_1347244700_938f5852ea94ec8965bc49d4fc41808b_rle_crop_3729473619_0.png.png imagette217017461742943755/1742919831_790880_1347244700_938f5852ea94ec8965bc49d4fc41808b_rle_crop_3729473621_0.png.png imagette217017461742943755/1742919692_789349_1347244689_37997359661b32c92a5032bd9fba9a65_rle_crop_3729473646_0.png.png wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/3463349213f72aa7821df62bf6ccdaf6_65018687.png imagette217017461742943755 21701738 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=21701738 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1347247038: '1742920512_804511_1347246257_43b0fc8e4b1518ab49bba2a6eabecfec_rle_crop_3729483751_0.png', 1347255170: '1742922973_872028_1347246154_79921a30fa82aa6d97e45c1234304242_rle_crop_3729478599_0.png', 1347251576: '1742922152_855856_1347244744_8598edeab991edab6e175cfad349dea3_rle_crop_3729521011_0.png', 1347251183: '1742922115_855033_1347244744_8598edeab991edab6e175cfad349dea3_bib_crop_3729472994_0.jpg', 1347250926: '1742922092_854523_1347245471_5e17aec174226693a38b5c10ca7cd380_rle_crop_3729520827_0.png', 1347250925: '1742922092_854523_1347245475_034bad2cb2383bdd58eab8ce36d01330_rle_crop_3729520752_0.png', 1347250921: '1742922092_854523_1347245479_a8a75a8bfa89ffd47806233715bc5f13_rle_crop_3729520737_0.png', 1347250880: '1742922073_854119_1347245531_920cb7990f5810cb355842b13db95650_rle_crop_3729475598_0.png', 1347250878: '1742922073_854119_1347245610_bb365582d6981aa4c8177b8345642a88_rle_crop_3729520130_0.png', 1347250816: '1742922052_853697_1347245656_90a83fb3cbf9f80fc5f52c89ced2bc08_rle_crop_3729476728_0.png', 1347247041: '1742920512_804511_1347246199_45ba576376ade21b19d377583ad380b2_rle_crop_3729483824_0.png', 1347247039: '1742920512_804511_1347246215_12a5ae6b1d0689ec955e3c036f0b9c04_rle_crop_3729483764_0.png', 1347245493: '1742919652_788738_1347244744_8598edeab991edab6e175cfad349dea3_rle_crop_3729472994_0.png', 1347246344: '1742920215_796159_1347246154_79921a30fa82aa6d97e45c1234304242_rle_crop_3729478599_0.png', 1347246328: '1742920243_2511550_1347246084_317a5352976f357c8bcadf1b63b757e5_rle_crop_3729478551_0.png', 1347246327: '1742920243_2511550_1347246163_001f4a3b9f5e8b0027a237ef5c171244_rle_crop_3729478536_0.png', 1347246203: '1742920122_2508930_1347245933_783b9045c4bae563123999ec558d957f_rle_crop_3729478014_0.png', 1347246202: '1742920122_2508930_1347246030_b3294e00c5c2de8bf35dd39de3276cb9_rle_crop_3729477981_0.png', 1347246172: '1742920091_795299_1347246027_37594700189d64ce1c33ea4f5b0870e0_rle_crop_3729477144_0.png', 1347246080: '1742919993_794480_1347245656_90a83fb3cbf9f80fc5f52c89ced2bc08_rle_crop_3729476728_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/ea0539461f70c5506c6a1c243b392ea9_46432640.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/19c0c78d29213b716fe7e60528376243_24504189.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/5e4c44f702062d7420c4572f8d861a2b_5081079.png change filename to text .wget -O 4.jpg http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/b6b376fa578129c7e160bc4753a0b059_53014608.jpg change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/75f5be687c825aeccef341d6fe7c4396_12216578.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/a3b86855cb1232e342a0548c6364eaac_48417606.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/11e9b6ca0a74ee5a22a3194ac3d59e6b_49481661.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/015e5741df5645b6e2e77f92e806d0d5_72584842.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/abf323e7111e5b3705185948a048a44d_26750348.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/ebb979ce4bf7c520319227d00c115b47_20509294.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/9d8a42cde193df17dd2d3ad384cbf315_73183718.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/0d3c3fd383e5b006c8d335e71404512f_30504462.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/1ac4877d73e9c2bcfc23accacf01d21c_20740228.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/19c0c78d29213b716fe7e60528376243_7302370.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/c7eec2bd3057f87a62fadbb68e485914_73777087.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/2cc16fdfa8904775e9db0508b3aa4b6c_59223913.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/f5fee260453eb2c2f26f18dde3d654ff_886326.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/bc92009a2b463a912750f1bef24427d3_41749263.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/accce345486a00d71798824e8c375fc5_86092574.png change filename to text .imagette217017381742943757/ imagette217017381742943757/1742920215_796159_1347246154_79921a30fa82aa6d97e45c1234304242_rle_crop_3729478599_0.png.png imagette217017381742943757/1742920122_2508930_1347245933_783b9045c4bae563123999ec558d957f_rle_crop_3729478014_0.png.png imagette217017381742943757/1742920243_2511550_1347246084_317a5352976f357c8bcadf1b63b757e5_rle_crop_3729478551_0.png.png imagette217017381742943757/1742922052_853697_1347245656_90a83fb3cbf9f80fc5f52c89ced2bc08_rle_crop_3729476728_0.png.png imagette217017381742943757/1742922092_854523_1347245471_5e17aec174226693a38b5c10ca7cd380_rle_crop_3729520827_0.png.png imagette217017381742943757/1742922073_854119_1347245531_920cb7990f5810cb355842b13db95650_rle_crop_3729475598_0.png.png imagette217017381742943757/1742919993_794480_1347245656_90a83fb3cbf9f80fc5f52c89ced2bc08_rle_crop_3729476728_0.png.png imagette217017381742943757/1742922092_854523_1347245479_a8a75a8bfa89ffd47806233715bc5f13_rle_crop_3729520737_0.png.png imagette217017381742943757/1742920122_2508930_1347246030_b3294e00c5c2de8bf35dd39de3276cb9_rle_crop_3729477981_0.png.png imagette217017381742943757/1742920512_804511_1347246215_12a5ae6b1d0689ec955e3c036f0b9c04_rle_crop_3729483764_0.png.png imagette217017381742943757/1742919652_788738_1347244744_8598edeab991edab6e175cfad349dea3_rle_crop_3729472994_0.png.png imagette217017381742943757/1742920512_804511_1347246199_45ba576376ade21b19d377583ad380b2_rle_crop_3729483824_0.png.png imagette217017381742943757/1742922973_872028_1347246154_79921a30fa82aa6d97e45c1234304242_rle_crop_3729478599_0.png.png imagette217017381742943757/1742922152_855856_1347244744_8598edeab991edab6e175cfad349dea3_rle_crop_3729521011_0.png.png imagette217017381742943757/1742920512_804511_1347246257_43b0fc8e4b1518ab49bba2a6eabecfec_rle_crop_3729483751_0.png.png imagette217017381742943757/1742920243_2511550_1347246163_001f4a3b9f5e8b0027a237ef5c171244_rle_crop_3729478536_0.png.png imagette217017381742943757/1742922092_854523_1347245475_034bad2cb2383bdd58eab8ce36d01330_rle_crop_3729520752_0.png.png imagette217017381742943757/1742920091_795299_1347246027_37594700189d64ce1c33ea4f5b0870e0_rle_crop_3729477144_0.png.png imagette217017381742943757/1742922115_855033_1347244744_8598edeab991edab6e175cfad349dea3_bib_crop_3729472994_0.jpg.jpg imagette217017381742943757/1742922073_854119_1347245610_bb365582d6981aa4c8177b8345642a88_rle_crop_3729520130_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/ebb979ce4bf7c520319227d00c115b47_53766810.png imagette217017381742943757 21701740 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=21701740 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1347247021: '1742920512_804511_1347246199_45ba576376ade21b19d377583ad380b2_rle_crop_3729483820_0.png', 1347255154: '1742922973_872028_1347246148_816e3e48a5ef3a49c3c5959d1671e04d_rle_crop_3729478626_0.png', 1347255153: '1742922973_872028_1347246151_6504e19a37e755c86e44b41a6244c2ad_rle_crop_3729478610_0.png', 1347255151: '1742922973_872028_1347246159_1c5ad0db84323cca9a790f1575183360_rle_crop_3729478565_0.png', 1347251560: '1742922152_855856_1347244765_240e6f37f036045d4aeb30e025fdaef5_rle_crop_3729472965_0.png', 1347251558: '1742922152_855856_1347245303_91f8339301af35aeff28cb4c41ac26bd_rle_crop_3729520906_0.png', 1347250903: '1742922092_854523_1347245471_5e17aec174226693a38b5c10ca7cd380_rle_crop_3729520819_0.png', 1347250902: '1742922092_854523_1347245471_5e17aec174226693a38b5c10ca7cd380_rle_crop_3729520821_0.png', 1347250869: '1742922073_854119_1347245526_2340c35f0262d8d9e9d49edbb319a3ca_rle_crop_3729475606_0.png', 1347250868: '1742922073_854119_1347245541_2543d13d6486883a8c4b39611b0c1df8_rle_crop_3729475588_0.png', 1347250867: '1742922073_854119_1347245545_e9852ea3ccec41e77e6cac40a6f54edf_rle_crop_3729475580_0.png', 1347250811: '1742922052_853697_1347245656_90a83fb3cbf9f80fc5f52c89ced2bc08_rle_crop_3729476730_0.png', 1347250809: '1742922052_853697_1347245667_e966eb9b927bd38eeaaa7c237ecf67a1_rle_crop_3729476693_0.png', 1347250808: '1742922052_853697_1347245964_c0832cf2d638efb4ccc9be6367cec7a0_rle_crop_3729519667_0.png', 1347245490: '1742919652_788738_1347244765_240e6f37f036045d4aeb30e025fdaef5_rle_crop_3729472965_0.png', 1347247020: '1742920512_804511_1347246199_45ba576376ade21b19d377583ad380b2_rle_crop_3729483819_0.png', 1347246340: '1742920215_796159_1347246148_816e3e48a5ef3a49c3c5959d1671e04d_rle_crop_3729478626_0.png', 1347246339: '1742920215_796159_1347246151_6504e19a37e755c86e44b41a6244c2ad_rle_crop_3729478610_0.png', 1347246337: '1742920215_796159_1347246159_1c5ad0db84323cca9a790f1575183360_rle_crop_3729478565_0.png', 1347246194: '1742920122_2508930_1347246030_b3294e00c5c2de8bf35dd39de3276cb9_rle_crop_3729477977_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/ac68ae53b3aaca1c547c181cd8d3535a_65570284.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/054d568ddd71975510b04283684f8126_83542974.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/5553eab48a54c3c6f03baeb527f75ada_2994136.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/49b604b1fab0a98c3955bbdacdfafba3_89514940.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/c3ebc68c5a679c2836257d56882b5545_18281669.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/077c64e37eb2193c3099a2fc4c38ac1d_8848690.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/6c6da8dad68c5cb648fc63b7d6a17f94_72280233.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/7eb7e57efa751740c5eab4ef3f509ef9_57011816.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/40bd144a5b7c63e4d33104b0cb41298f_85106427.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/0ad9717dc31c181db50ef0a9da69b1d3_25012640.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/b84c4bcea59d88fae518f4176690671b_72254719.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/5bd1660160428142ec374d8e64561f4a_71997501.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/ded2bc3ed117942b63dd749807c0a5b3_94754689.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/dcc0756e02c13db6813b72de924a30cf_54225871.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/c3ebc68c5a679c2836257d56882b5545_29468968.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/04402ec14088710906593e0128e0ab39_79086538.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/054d568ddd71975510b04283684f8126_96490850.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/5553eab48a54c3c6f03baeb527f75ada_57431621.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/49b604b1fab0a98c3955bbdacdfafba3_96721930.png change filename to text .imagette217017401742943759/ imagette217017401742943759/1742922152_855856_1347245303_91f8339301af35aeff28cb4c41ac26bd_rle_crop_3729520906_0.png.png imagette217017401742943759/1742920215_796159_1347246151_6504e19a37e755c86e44b41a6244c2ad_rle_crop_3729478610_0.png.png imagette217017401742943759/1742922052_853697_1347245656_90a83fb3cbf9f80fc5f52c89ced2bc08_rle_crop_3729476730_0.png.png imagette217017401742943759/1742922152_855856_1347244765_240e6f37f036045d4aeb30e025fdaef5_rle_crop_3729472965_0.png.png imagette217017401742943759/1742920512_804511_1347246199_45ba576376ade21b19d377583ad380b2_rle_crop_3729483820_0.png.png imagette217017401742943759/1742922052_853697_1347245964_c0832cf2d638efb4ccc9be6367cec7a0_rle_crop_3729519667_0.png.png imagette217017401742943759/1742922073_854119_1347245541_2543d13d6486883a8c4b39611b0c1df8_rle_crop_3729475588_0.png.png imagette217017401742943759/1742920215_796159_1347246159_1c5ad0db84323cca9a790f1575183360_rle_crop_3729478565_0.png.png imagette217017401742943759/1742920122_2508930_1347246030_b3294e00c5c2de8bf35dd39de3276cb9_rle_crop_3729477977_0.png.png imagette217017401742943759/1742922973_872028_1347246159_1c5ad0db84323cca9a790f1575183360_rle_crop_3729478565_0.png.png imagette217017401742943759/1742922092_854523_1347245471_5e17aec174226693a38b5c10ca7cd380_rle_crop_3729520819_0.png.png imagette217017401742943759/1742922073_854119_1347245526_2340c35f0262d8d9e9d49edbb319a3ca_rle_crop_3729475606_0.png.png imagette217017401742943759/1742922092_854523_1347245471_5e17aec174226693a38b5c10ca7cd380_rle_crop_3729520821_0.png.png imagette217017401742943759/1742922973_872028_1347246151_6504e19a37e755c86e44b41a6244c2ad_rle_crop_3729478610_0.png.png imagette217017401742943759/1742919652_788738_1347244765_240e6f37f036045d4aeb30e025fdaef5_rle_crop_3729472965_0.png.png imagette217017401742943759/1742922052_853697_1347245667_e966eb9b927bd38eeaaa7c237ecf67a1_rle_crop_3729476693_0.png.png imagette217017401742943759/1742920215_796159_1347246148_816e3e48a5ef3a49c3c5959d1671e04d_rle_crop_3729478626_0.png.png imagette217017401742943759/1742922973_872028_1347246148_816e3e48a5ef3a49c3c5959d1671e04d_rle_crop_3729478626_0.png.png imagette217017401742943759/1742920512_804511_1347246199_45ba576376ade21b19d377583ad380b2_rle_crop_3729483819_0.png.png imagette217017401742943759/1742922073_854119_1347245545_e9852ea3ccec41e77e6cac40a6f54edf_rle_crop_3729475580_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/2a4f65dc14e910be631c48e0916103a0_88725.png imagette217017401742943759 21701745 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=21701745 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1347246332: '1742920215_796159_1347246154_79921a30fa82aa6d97e45c1234304242_rle_crop_3729478602_0.png', 1347255149: '1742922973_872028_1347246148_816e3e48a5ef3a49c3c5959d1671e04d_rle_crop_3729478630_0.png', 1347255148: '1742922973_872028_1347246154_79921a30fa82aa6d97e45c1234304242_rle_crop_3729478603_0.png', 1347255147: '1742922973_872028_1347246154_79921a30fa82aa6d97e45c1234304242_rle_crop_3729478605_0.png', 1347255145: '1742922973_872028_1347246154_79921a30fa82aa6d97e45c1234304242_bib_crop_3729535755_0.jpg', 1347255144: '1742922973_872028_1347246154_79921a30fa82aa6d97e45c1234304242_rle_crop_3729478602_0.png', 1347251529: '1742922152_855856_1347245303_91f8339301af35aeff28cb4c41ac26bd_rle_crop_3729520904_0.png', 1347250837: '1742922073_854119_1347245541_2543d13d6486883a8c4b39611b0c1df8_rle_crop_3729475591_0.png', 1347247018: '1742920512_804511_1347246211_d5ac2faeb9d4a4c54a6d2587b6cb1ac7_rle_crop_3729483778_0.png', 1347246634: '1742920454_803818_1347246253_3fe121bb13ccdedb15fdf730cab47a12_rle_crop_3729483082_0.png', 1347246633: '1742920454_803818_1347246253_3fe121bb13ccdedb15fdf730cab47a12_rle_crop_3729483080_0.png', 1347246632: '1742920454_803818_1347246256_2feb0e6cc4ea649e4986fcfc47da73bb_rle_crop_3729483070_0.png', 1347246335: '1742920215_796159_1347246148_816e3e48a5ef3a49c3c5959d1671e04d_rle_crop_3729478630_0.png', 1347246334: '1742920215_796159_1347246154_79921a30fa82aa6d97e45c1234304242_rle_crop_3729478603_0.png', 1347246333: '1742920215_796159_1347246154_79921a30fa82aa6d97e45c1234304242_rle_crop_3729478605_0.png', 1347245555: '1742919692_789349_1347244693_2901398bf79ea66f5494210c46258c97_rle_crop_3729473636_0.png', 1347246062: '1742920001_2506233_1347245590_1aac68720753fc05d0cae922f7ea4aa5_rle_crop_3729476665_0.png', 1347246061: '1742920001_2506233_1347245595_06317d7aa2ff938b587e4b090a3f87ae_rle_crop_3729476657_0.png', 1347246012: '1742919873_791635_1347245251_0e7e670711def18c41ddbc86c1205097_rle_crop_3729475034_0.png', 1347246011: '1742919873_791635_1347245251_0e7e670711def18c41ddbc86c1205097_rle_crop_3729475035_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/5f555d0e3a637f3b6872b714cc017933_21144064.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/70eadc2b41a1f72585ae689af0560494_6003624.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/814780c370eaa963c205e440abd9fb9f_24523451.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/db330aa9e3fd8b1fc3e02a82cde1fce5_98101624.png change filename to text .wget -O 5.jpg http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/f5790c2d0ea72dac6196a1daa5f48739_46719892.jpg change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/5f555d0e3a637f3b6872b714cc017933_78945304.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/cec481575b67e8d4ae8cf25b18e26336_45892951.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/e2b56757b4b151edbd8fd86537c36153_36188501.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/dd0e1181b8677014c02de206134b015d_74503119.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/ebf9795f428686776a5975f645c5b2af_50517116.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/73e3af795c4de7d93b15ed406ff3c0d9_78194224.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/e9ff3fb4137cf672bad0d92877b42dbe_89799917.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/70eadc2b41a1f72585ae689af0560494_23325712.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/814780c370eaa963c205e440abd9fb9f_70946204.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/db330aa9e3fd8b1fc3e02a82cde1fce5_54351196.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/e2c81e747470423549adb0fbb4245d99_86777384.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/7db4c968be760a9f18eea972761c80b4_2239196.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/f3f91e531b739af23f59d4c8b953b3f3_64898927.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/f54bf8f4074f6838ea8201998dd7ab0b_41375800.png change filename to text .imagette217017451742943761/ imagette217017451742943761/1742920001_2506233_1347245595_06317d7aa2ff938b587e4b090a3f87ae_rle_crop_3729476657_0.png.png imagette217017451742943761/1742922973_872028_1347246148_816e3e48a5ef3a49c3c5959d1671e04d_rle_crop_3729478630_0.png.png imagette217017451742943761/1742920215_796159_1347246154_79921a30fa82aa6d97e45c1234304242_rle_crop_3729478602_0.png.png imagette217017451742943761/1742920454_803818_1347246253_3fe121bb13ccdedb15fdf730cab47a12_rle_crop_3729483080_0.png.png imagette217017451742943761/1742920215_796159_1347246148_816e3e48a5ef3a49c3c5959d1671e04d_rle_crop_3729478630_0.png.png imagette217017451742943761/1742919873_791635_1347245251_0e7e670711def18c41ddbc86c1205097_rle_crop_3729475034_0.png.png imagette217017451742943761/1742920454_803818_1347246253_3fe121bb13ccdedb15fdf730cab47a12_rle_crop_3729483082_0.png.png imagette217017451742943761/1742920215_796159_1347246154_79921a30fa82aa6d97e45c1234304242_rle_crop_3729478603_0.png.png imagette217017451742943761/1742920215_796159_1347246154_79921a30fa82aa6d97e45c1234304242_rle_crop_3729478605_0.png.png imagette217017451742943761/1742922973_872028_1347246154_79921a30fa82aa6d97e45c1234304242_rle_crop_3729478602_0.png.png imagette217017451742943761/1742920512_804511_1347246211_d5ac2faeb9d4a4c54a6d2587b6cb1ac7_rle_crop_3729483778_0.png.png imagette217017451742943761/1742922152_855856_1347245303_91f8339301af35aeff28cb4c41ac26bd_rle_crop_3729520904_0.png.png imagette217017451742943761/1742922973_872028_1347246154_79921a30fa82aa6d97e45c1234304242_rle_crop_3729478603_0.png.png imagette217017451742943761/1742920001_2506233_1347245590_1aac68720753fc05d0cae922f7ea4aa5_rle_crop_3729476665_0.png.png imagette217017451742943761/1742919873_791635_1347245251_0e7e670711def18c41ddbc86c1205097_rle_crop_3729475035_0.png.png imagette217017451742943761/1742920454_803818_1347246256_2feb0e6cc4ea649e4986fcfc47da73bb_rle_crop_3729483070_0.png.png imagette217017451742943761/1742922973_872028_1347246154_79921a30fa82aa6d97e45c1234304242_rle_crop_3729478605_0.png.png imagette217017451742943761/1742922073_854119_1347245541_2543d13d6486883a8c4b39611b0c1df8_rle_crop_3729475591_0.png.png imagette217017451742943761/1742919692_789349_1347244693_2901398bf79ea66f5494210c46258c97_rle_crop_3729473636_0.png.png imagette217017451742943761/1742922973_872028_1347246154_79921a30fa82aa6d97e45c1234304242_bib_crop_3729535755_0.jpg.jpg wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/22ff605bef26c3527a92835d42f3426e_93219869.png imagette217017451742943761 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=21701715 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/21701747,21701748,21701749,21701750,21701751,21701752,21701753,21701754,21701755,21701756,21701757,21701758?tags=environnement,flou,cartonnette,Carton_brun,mal_croppe,Carton_gris,metal,plastique,kraft,papier,Teint_Dans_La_Masse,autre_refus your option no_mail is active, we will not send the real mail to your client args[1347264070] : ('0.038716811417085086',) no score found for photo 1347264070 We are sending mail with results at report@fotonower.com refus_total : 0.038716811417085086 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=21701715 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_P21701715_26-03-2025_00_02_31.pdf results_Auto_P21701715_26-03-2025_00_02_31.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21701715_26-03-2025_00_02_31.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','21701715','results_Auto_P21701715_26-03-2025_00_02_31.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21701715_26-03-2025_00_02_31.pdf','pdf','','0.29','0.038716811417085086') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21701715]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1347264070] map_info['map_portfolio_photo'] : {21701715: [1347264070, 1347246319, 1347246257, 1347246256, 1347246253, 1347246222, 1347246218, 1347246215, 1347246211, 1347246209, 1347246199, 1347246163, 1347246159, 1347246154, 1347246151, 1347246148, 1347246093, 1347246091, 1347246084, 1347246073, 1347246069, 1347246030, 1347246027, 1347246025, 1347245964, 1347245958, 1347245938, 1347245933, 1347245913, 1347245713, 1347245706, 1347245676, 1347245667, 1347245656, 1347245610, 1347245606, 1347245598, 1347245595, 1347245590, 1347245554, 1347245549, 1347245545, 1347245541, 1347245531, 1347245526, 1347245484, 1347245479, 1347245475, 1347245471, 1347245363, 1347245357, 1347245350, 1347245345, 1347245340, 1347245303, 1347245299, 1347245273, 1347245251, 1347245222, 1347245193, 1347244793, 1347244765, 1347244748, 1347244744, 1347244708, 1347244704, 1347244700, 1347244693, 1347244689]} final : False mtd_id 4302 list_pids : [1347264070] 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, '2690121') ('4302', '21701715', '1347264070', None, None, None, None, None, '2690121') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 1 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', '21701715', '1347264070', None, None, None, None, None, '2690121')] time used for this insertion : 0.013679265975952148 save_final save missing photos in datou_result : time spend for datou_step_exec : 13.010128259658813 time spend to save output : 0.013891935348510742 total time spend for step 4 : 13.024020195007324 step5:split_time_score Wed Mar 26 00:02:44 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 : ['21701715'] 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 : [('21701715',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21701715) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1347264070: {'path': 'temp/1742943751_6332_1347264070_4b1befba6675018917cbc07688ca7b9c.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 = 21701715; (('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 = 21701715 group by h (('17', 69),) 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=21701715 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 (21701715) 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 (21701715) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 25032025 21701715 Nombre de photos uploadées : 69 / 23040 (0%) 25032025 21701715 Nombre de photos taguées (types de déchets): 0 / 69 (0%) 25032025 21701715 Nombre de photos taguées (volume) : 0 / 69 (0%) [{'photo_id': 1347244708, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/86636a89d2489fcbccb7f06dd7d72202.jpg', 'username': None, 'uploaded_at': 1742919437, 'text': 'image_25032025_17_15_03_009142m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1347244704, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/e08c8b051619676a41fab318a7602a61.jpg', 'username': None, 'uploaded_at': 1742919437, 'text': 'image_25032025_17_15_13_010139m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1347244700, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/938f5852ea94ec8965bc49d4fc41808b.jpg', 'username': None, 'uploaded_at': 1742919437, 'text': 'image_25032025_17_15_23_010142m0.jpg 3.0000000000000004e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1347244693, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/2901398bf79ea66f5494210c46258c97.jpg', 'username': None, 'uploaded_at': 1742919437, 'text': 'image_25032025_17_15_34_010136m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 1.6689300537109375e-06 elapsed_time : order_list_meta_photo_and_scores 4.76837158203125e-06 ????????????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0019118785858154297 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 21701715, '2025-03-25' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1685799,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.02213120460510254 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= 1685799 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1685799, 'dashboard_run_id': 1696718, 'mtr_portfolio_id': 21677868, 'dashboard_result_id': 9626546, '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_P21677868_25-03-2025_05_19_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21677881, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21677882, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21677883, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21677884, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21677885, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21677886, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21677887, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21677888, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21677889, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21677890, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21677891, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21677892, 'pht': 3726}}"}, {'dashboat_entry_day': 1685799, 'dashboard_run_id': 1696718, 'mtr_portfolio_id': 21677990, 'dashboard_result_id': 9626549, '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_P21677990_25-03-2025_06_04_04.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21678027, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21678028, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21678029, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21678030, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21678031, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21678032, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21678033, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21678034, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21678035, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21678036, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21678037, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21678038, 'pht': 3726}}"}, {'dashboat_entry_day': 1685799, 'dashboard_run_id': 1696718, 'mtr_portfolio_id': 21678453, 'dashboard_result_id': 9626552, '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_P21678453_25-03-2025_05_47_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21678478, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21678479, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21678480, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21678481, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21678482, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21678483, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21678484, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21678485, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21678486, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21678487, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21678488, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21678489, 'pht': 3726}}"}, {'dashboat_entry_day': 1685799, 'dashboard_run_id': 1696718, 'mtr_portfolio_id': 21678764, 'dashboard_result_id': 9626554, '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_P21678764_25-03-2025_06_05_32.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21678790, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21678791, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21678792, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21678793, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21678794, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21678795, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21678796, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21678797, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21678798, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21678799, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21678800, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21678801, 'pht': 3726}}"}, {'dashboat_entry_day': 1685799, 'dashboard_run_id': 1696718, 'mtr_portfolio_id': 21679339, 'dashboard_result_id': 9626558, '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_P21679339_25-03-2025_06_20_05.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21679340, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21679341, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21679342, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21679343, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21679344, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21679345, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21679346, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21679347, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21679348, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21679349, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21679350, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21679351, 'pht': 3726}}"}, {'dashboat_entry_day': 1685799, 'dashboard_run_id': 1696718, 'mtr_portfolio_id': 21679980, 'dashboard_result_id': 9626560, '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_P21679980_25-03-2025_06_34_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21679981, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21679982, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21679983, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21679984, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21679985, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21679986, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21679987, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21679988, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21679989, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21679990, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21679991, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21679992, 'pht': 3726}}"}, {'dashboat_entry_day': 1685799, 'dashboard_run_id': 1696718, 'mtr_portfolio_id': 21680463, 'dashboard_result_id': 9626562, '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_P21680463_25-03-2025_06_49_08.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21680464, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21680465, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21680466, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21680467, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21680468, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21680469, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21680470, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21680471, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21680472, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21680473, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21680474, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21680475, 'pht': 3726}}"}, {'dashboat_entry_day': 1685799, 'dashboard_run_id': 1696718, 'mtr_portfolio_id': 21680843, 'dashboard_result_id': 9626567, '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_P21680843_25-03-2025_07_04_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21680858, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21680860, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21680862, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21680864, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21680866, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21680868, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21680870, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21680872, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21680874, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21680876, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21680878, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21680879, 'pht': 3726}}"}, {'dashboat_entry_day': 1685799, 'dashboard_run_id': 1696718, 'mtr_portfolio_id': 21681615, 'dashboard_result_id': 9626569, '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_P21681615_25-03-2025_07_22_29.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21681616, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21681617, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21681618, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21681619, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21681620, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21681621, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21681622, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21681623, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21681624, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21681625, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21681626, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21681627, 'pht': 3726}}"}, {'dashboat_entry_day': 1685799, 'dashboard_run_id': 1696718, 'mtr_portfolio_id': 21681919, 'dashboard_result_id': 9626571, '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_P21681919_25-03-2025_07_33_02.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21681938, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21681939, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21681940, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21681941, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21681942, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21681943, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21681944, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21681945, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21681946, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21681947, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21681948, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21681949, 'pht': 3726}}"}, {'dashboat_entry_day': 1685799, 'dashboard_run_id': 1696718, 'mtr_portfolio_id': 21682484, 'dashboard_result_id': 9626573, '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_P21682484_25-03-2025_07_49_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21682545, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21682546, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21682547, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21682548, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21682549, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21682550, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21682551, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21682552, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21682553, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21682554, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21682555, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21682556, 'pht': 3726}}"}, {'dashboat_entry_day': 1685799, 'dashboard_run_id': 1696718, 'mtr_portfolio_id': 21683084, 'dashboard_result_id': 9626575, '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_P21683084_25-03-2025_08_05_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21683085, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21683086, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21683087, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21683088, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21683089, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21683090, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21683091, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21683092, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21683093, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21683094, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21683095, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21683096, 'pht': 3726}}"}, {'dashboat_entry_day': 1685799, 'dashboard_run_id': 1696718, 'mtr_portfolio_id': 21683744, 'dashboard_result_id': 9626577, '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_P21683744_25-03-2025_08_21_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21683745, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21683746, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21683747, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21683748, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21683749, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21683750, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21683751, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21683752, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21683753, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21683754, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21683755, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21683756, 'pht': 3726}}"}, {'dashboat_entry_day': 1685799, 'dashboard_run_id': 1696718, 'mtr_portfolio_id': 21684719, 'dashboard_result_id': 9626579, '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_P21684719_25-03-2025_08_33_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21684747, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21684748, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21684749, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21684750, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21684751, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21684752, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21684753, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21684754, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21684755, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21684756, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21684757, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21684758, 'pht': 3726}}"}, {'dashboat_entry_day': 1685799, 'dashboard_run_id': 1696718, 'mtr_portfolio_id': 21685604, 'dashboard_result_id': 9626581, '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_P21685604_25-03-2025_08_48_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21685657, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21685658, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21685659, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21685660, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21685661, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21685662, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21685663, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21685664, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21685665, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21685666, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21685667, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21685668, 'pht': 3726}}"}, {'dashboat_entry_day': 1685799, 'dashboard_run_id': 1696718, 'mtr_portfolio_id': 21686497, 'dashboard_result_id': 9626583, '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_P21686497_25-03-2025_09_03_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21686535, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21686536, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21686537, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21686538, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21686539, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21686540, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21686541, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21686542, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21686543, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21686544, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21686545, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21686546, 'pht': 3726}}"}, {'dashboat_entry_day': 1685799, 'dashboard_run_id': 1696718, 'mtr_portfolio_id': 21692496, 'dashboard_result_id': 9626585, '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_P21692496_25-03-2025_14_17_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21692497, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21692498, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21692499, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21692500, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21692501, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21692502, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21692503, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21692504, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21692505, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21692506, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21692507, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21692508, 'pht': 3726}}"}, {'dashboat_entry_day': 1685799, 'dashboard_run_id': 1696718, 'mtr_portfolio_id': 21692901, 'dashboard_result_id': 9626592, '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_P21692901_25-03-2025_14_34_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21692902, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21692903, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21692904, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21692905, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21692906, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21692907, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21692908, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21692909, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21692910, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21692911, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21692912, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21692913, 'pht': 3726}}"}, {'dashboat_entry_day': 1685799, 'dashboard_run_id': 1696718, 'mtr_portfolio_id': 21693404, 'dashboard_result_id': 9626594, '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_P21693404_25-03-2025_14_47_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21693461, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21693462, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21693463, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21693465, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21693466, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21693467, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21693469, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21693470, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21693471, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21693473, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21693474, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21693475, 'pht': 3726}}"}, {'dashboat_entry_day': 1685799, 'dashboard_run_id': 1696718, 'mtr_portfolio_id': 21693948, 'dashboard_result_id': 9626596, '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_P21693948_25-03-2025_15_05_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21693953, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21693954, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21693955, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21693956, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21693957, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21693958, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21693959, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21693960, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21693961, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21693962, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21693963, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21693964, 'pht': 3726}}"}, {'dashboat_entry_day': 1685799, 'dashboard_run_id': 1696718, 'mtr_portfolio_id': 21694587, 'dashboard_result_id': 9626598, '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_P21694587_25-03-2025_15_18_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21694588, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21694589, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21694590, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21694591, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21694592, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21694593, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21694594, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21694595, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21694596, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21694597, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21694598, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21694599, 'pht': 3726}}"}, {'dashboat_entry_day': 1685799, 'dashboard_run_id': 1696718, 'mtr_portfolio_id': 21695129, 'dashboard_result_id': 9626600, '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_P21695129_25-03-2025_15_33_48.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21695134, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21695135, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21695136, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21695137, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21695138, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21695139, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21695140, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21695141, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21695142, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21695143, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21695144, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21695145, 'pht': 3726}}"}, {'dashboat_entry_day': 1685799, 'dashboard_run_id': 1696718, 'mtr_portfolio_id': 21696146, 'dashboard_result_id': 9626602, '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_P21696146_25-03-2025_15_48_12.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21696171, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21696172, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21696173, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21696174, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21696175, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21696176, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21696177, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21696178, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21696179, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21696180, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21696181, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21696182, 'pht': 3726}}"}, {'dashboat_entry_day': 1685799, 'dashboard_run_id': 1696718, 'mtr_portfolio_id': 21697166, 'dashboard_result_id': 9626604, '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_P21697166_25-03-2025_16_06_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21697181, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21697182, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21697183, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21697184, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21697185, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21697186, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21697187, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21697188, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21697189, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21697190, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21697191, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21697192, 'pht': 3726}}"}, {'dashboat_entry_day': 1685799, 'dashboard_run_id': 1696718, 'mtr_portfolio_id': 21697624, 'dashboard_result_id': 9626606, '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_P21697624_25-03-2025_16_18_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21697655, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21697656, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21697657, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21697658, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21697659, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21697660, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21697661, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21697662, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21697663, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21697664, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21697665, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21697666, 'pht': 3726}}"}, {'dashboat_entry_day': 1685799, 'dashboard_run_id': 1696718, 'mtr_portfolio_id': 21698231, 'dashboard_result_id': 9626608, '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_P21698231_25-03-2025_16_33_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21698253, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21698254, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21698255, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21698256, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21698257, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21698258, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21698259, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21698260, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21698261, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21698262, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21698263, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21698264, 'pht': 3726}}"}, {'dashboat_entry_day': 1685799, 'dashboard_run_id': 1696718, 'mtr_portfolio_id': 21699089, 'dashboard_result_id': 9626610, '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_P21699089_25-03-2025_16_48_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21699115, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21699116, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21699117, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21699118, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21699119, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21699120, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21699121, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21699122, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21699123, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21699124, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21699125, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21699126, 'pht': 3726}}"}, {'dashboat_entry_day': 1685799, 'dashboard_run_id': 1696718, 'mtr_portfolio_id': 21700039, 'dashboard_result_id': 9626612, '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_P21700039_25-03-2025_17_05_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21700055, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21700056, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21700057, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21700058, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21700059, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21700060, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21700061, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21700062, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21700063, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21700064, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21700065, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21700066, 'pht': 3726}}"}, {'dashboat_entry_day': 1685799, 'dashboard_run_id': 1696718, 'mtr_portfolio_id': 21700672, 'dashboard_result_id': 9626614, '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_P21700672_25-03-2025_17_17_56.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21700686, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21700687, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21700688, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21700689, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21700690, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21700691, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21700692, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21700693, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21700694, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21700695, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21700696, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21700697, 'pht': 3726}}"}, {'dashboat_entry_day': 1685799, 'dashboard_run_id': 1696718, 'mtr_portfolio_id': 21701715, 'dashboard_result_id': 9626616, '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_P21701715_25-03-2025_17_33_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21701735, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21701736, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21701737, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21701738, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21701739, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21701740, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21701741, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21701742, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21701743, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21701744, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21701745, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21701746, 'pht': 3726}}"}, {'dashboat_entry_day': 1685799, 'dashboard_run_id': 1696718, 'mtr_portfolio_id': 21704505, 'dashboard_result_id': 9626618, '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_P21704505_25-03-2025_19_34_27.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21704509, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21704510, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21704511, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21704512, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21704513, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21704514, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21704515, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21704516, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21704517, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21704518, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21704519, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21704520, 'pht': 3726}}"}, {'dashboat_entry_day': 1685799, 'dashboard_run_id': 1696718, 'mtr_portfolio_id': 21704931, 'dashboard_result_id': 9626620, '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_P21704931_25-03-2025_19_50_29.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21704935, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21704936, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21704937, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21704938, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21704939, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21704940, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21704941, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21704942, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21704943, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21704944, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21704945, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21704946, 'pht': 3726}}"}, {'dashboat_entry_day': 1685799, 'dashboard_run_id': 1696718, 'mtr_portfolio_id': 21705744, 'dashboard_result_id': 9626622, '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_P21705744_25-03-2025_20_05_08.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21705745, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21705746, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21705747, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21705748, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21705749, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21705750, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21705751, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21705752, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21705753, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21705754, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21705755, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21705756, 'pht': 3726}}"}, {'dashboat_entry_day': 1685799, 'dashboard_run_id': 1696718, 'mtr_portfolio_id': 21706355, 'dashboard_result_id': 9626624, '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_P21706355_25-03-2025_20_18_33.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21706481, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21706482, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21706483, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21706484, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21706485, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21706486, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21706487, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21706488, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21706489, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21706490, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21706491, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21706492, 'pht': 3726}}"}, {'dashboat_entry_day': 1685799, 'dashboard_run_id': 1696718, 'mtr_portfolio_id': 21707261, 'dashboard_result_id': 9626626, '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_P21707261_25-03-2025_20_35_02.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21707323, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21707324, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21707325, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21707326, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21707327, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21707328, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21707329, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21707330, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21707331, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21707332, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21707333, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21707334, 'pht': 3726}}"}, {'dashboat_entry_day': 1685799, 'dashboard_run_id': 1696718, 'mtr_portfolio_id': 21707953, 'dashboard_result_id': 9626628, '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_P21707953_25-03-2025_20_48_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21708025, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21708026, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21708027, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21708028, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21708029, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21708030, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21708031, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21708032, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21708033, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21708034, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21708035, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21708036, 'pht': 3726}}"}, {'dashboat_entry_day': 1685799, 'dashboard_run_id': 1696718, 'mtr_portfolio_id': 21708597, 'dashboard_result_id': 9626630, '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_P21708597_25-03-2025_21_06_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21708664, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21708665, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21708666, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21708667, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21708668, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21708669, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21708670, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21708671, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21708672, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21708673, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21708674, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21708675, 'pht': 3726}}"}, {'dashboat_entry_day': 1685799, 'dashboard_run_id': 1696718, 'mtr_portfolio_id': 21709627, 'dashboard_result_id': 9626632, '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_P21709627_25-03-2025_21_18_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21709628, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21709629, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21709630, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21709631, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21709632, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21709633, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21709634, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21709635, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21709636, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21709637, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21709638, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21709639, 'pht': 3726}}"}, {'dashboat_entry_day': 1685799, 'dashboard_run_id': 1696718, 'mtr_portfolio_id': 21709947, 'dashboard_result_id': 9626634, '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_P21709947_25-03-2025_21_34_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21709948, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21709949, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21709950, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21709951, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21709952, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21709953, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21709954, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21709955, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21709956, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21709957, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21709958, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21709959, 'pht': 3726}}"}, {'dashboat_entry_day': 1685799, 'dashboard_run_id': 1696718, 'mtr_portfolio_id': 21710365, 'dashboard_result_id': 9626636, '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_P21710365_25-03-2025_21_48_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21710366, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21710367, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21710368, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21710369, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21710370, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21710371, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21710372, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21710373, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21710374, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21710375, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21710376, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21710377, 'pht': 3726}}"}, {'dashboat_entry_day': 1685799, 'dashboard_run_id': 1696718, 'mtr_portfolio_id': 21710866, 'dashboard_result_id': 9626638, '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_P21710866_25-03-2025_22_04_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21710867, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21710868, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21710869, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21710870, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21710871, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21710872, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21710873, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21710874, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21710875, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21710876, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21710877, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21710878, 'pht': 3726}}"}, {'dashboat_entry_day': 1685799, 'dashboard_run_id': 1696718, 'mtr_portfolio_id': 21711534, 'dashboard_result_id': 9626640, '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_P21711534_25-03-2025_22_18_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21711535, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21711536, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21711537, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21711538, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21711539, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21711540, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21711541, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21711542, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21711543, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21711544, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21711545, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21711546, 'pht': 3726}}"}, {'dashboat_entry_day': 1685799, 'dashboard_run_id': 1696718, 'mtr_portfolio_id': 21712415, 'dashboard_result_id': 9626642, '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_P21712415_25-03-2025_22_34_03.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21712450, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21712451, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21712452, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21712453, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21712454, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21712455, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21712456, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21712457, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21712458, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21712460, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21712461, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21712462, 'pht': 3726}}"}, {'dashboat_entry_day': 1685799, 'dashboard_run_id': 1696718, 'mtr_portfolio_id': 21713262, 'dashboard_result_id': 9626644, '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_P21713262_25-03-2025_22_57_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21713283, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21713285, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21713286, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21713287, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21713289, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21713290, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21713291, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21713293, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21713294, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21713295, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21713297, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21713298, '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 = 21677868 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': 2687960, 'mtr_portfolio_id': 21677868, 'created_at': datetime.datetime(2025, 3, 25, 5, 19), 'result': '0.09151978488019046', 'result_long': None, 'result_double': None}] Qualite : 0.09151978488019046 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21677868 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21677868_25-03-2025_05_19_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21677868 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_P21677868_25-03-2025_05_19_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21677881, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21677882, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21677883, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21677884, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21677885, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21677886, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21677887, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21677888, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21677889, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21677890, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21677891, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21677892, 'pht': 3726}}" where mtr_portfolio_id = 21677868 and dashboard_run_id = 1696718 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=21677868 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9626546, 0.09151978488019046, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21677868_25-03-2025_05_19_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21677881, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21677882, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21677883, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21677884, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21677885, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21677886, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21677887, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21677888, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21677889, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21677890, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21677891, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21677892, '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 = 21677990 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': 2688068, 'mtr_portfolio_id': 21677990, 'created_at': datetime.datetime(2025, 3, 25, 6, 4, 1), 'result': '0.08055159397131476', 'result_long': None, 'result_double': None}] Qualite : 0.08055159397131476 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21677990 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21677990_25-03-2025_06_04_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21677990 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_P21677990_25-03-2025_06_04_04.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21678027, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21678028, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21678029, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21678030, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21678031, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21678032, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21678033, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21678034, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21678035, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21678036, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21678037, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21678038, 'pht': 3726}}" where mtr_portfolio_id = 21677990 and dashboard_run_id = 1696718 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=21677990 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9626549, 0.08055159397131476, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21677990_25-03-2025_06_04_04.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21678027, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21678028, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21678029, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21678030, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21678031, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21678032, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21678033, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21678034, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21678035, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21678036, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21678037, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21678038, '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 = 21678453 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': 2688075, 'mtr_portfolio_id': 21678453, 'created_at': datetime.datetime(2025, 3, 25, 5, 47, 59), 'result': '0.06662636414683866', 'result_long': None, 'result_double': None}] Qualite : 0.06662636414683866 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21678453 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21678453_25-03-2025_05_47_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21678453 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_P21678453_25-03-2025_05_47_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21678478, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21678479, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21678480, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21678481, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21678482, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21678483, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21678484, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21678485, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21678486, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21678487, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21678488, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21678489, 'pht': 3726}}" where mtr_portfolio_id = 21678453 and dashboard_run_id = 1696718 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=21678453 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9626552, 0.06662636414683866, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21678453_25-03-2025_05_47_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21678478, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21678479, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21678480, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21678481, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21678482, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21678483, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21678484, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21678485, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21678486, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21678487, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21678488, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21678489, '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 = 21678764 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': 2688104, 'mtr_portfolio_id': 21678764, 'created_at': datetime.datetime(2025, 3, 25, 6, 5, 31), 'result': '0.07133839735761274', 'result_long': None, 'result_double': None}] Qualite : 0.07133839735761274 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21678764 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21678764_25-03-2025_06_05_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21678764 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_P21678764_25-03-2025_06_05_32.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21678790, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21678791, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21678792, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21678793, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21678794, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21678795, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21678796, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21678797, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21678798, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21678799, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21678800, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21678801, 'pht': 3726}}" where mtr_portfolio_id = 21678764 and dashboard_run_id = 1696718 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=21678764 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9626554, 0.07133839735761274, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21678764_25-03-2025_06_05_32.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21678790, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21678791, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21678792, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21678793, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21678794, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21678795, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21678796, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21678797, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21678798, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21678799, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21678800, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21678801, '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 = 21679339 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': 2688153, 'mtr_portfolio_id': 21679339, 'created_at': datetime.datetime(2025, 3, 25, 6, 20, 1), 'result': '0.06832369147736247', 'result_long': None, 'result_double': None}] Qualite : 0.06832369147736247 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21679339 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21679339_25-03-2025_06_20_05.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21679339 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_P21679339_25-03-2025_06_20_05.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21679340, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21679341, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21679342, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21679343, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21679344, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21679345, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21679346, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21679347, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21679348, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21679349, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21679350, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21679351, 'pht': 3726}}" where mtr_portfolio_id = 21679339 and dashboard_run_id = 1696718 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=21679339 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9626558, 0.06832369147736247, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21679339_25-03-2025_06_20_05.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21679340, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21679341, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21679342, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21679343, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21679344, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21679345, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21679346, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21679347, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21679348, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21679349, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21679350, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21679351, '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 = 21679980 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': 2688192, 'mtr_portfolio_id': 21679980, 'created_at': datetime.datetime(2025, 3, 25, 6, 34), 'result': '0.07223093245956738', 'result_long': None, 'result_double': None}] Qualite : 0.07223093245956738 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21679980 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21679980_25-03-2025_06_34_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21679980 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_P21679980_25-03-2025_06_34_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21679981, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21679982, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21679983, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21679984, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21679985, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21679986, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21679987, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21679988, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21679989, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21679990, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21679991, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21679992, 'pht': 3726}}" where mtr_portfolio_id = 21679980 and dashboard_run_id = 1696718 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=21679980 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9626560, 0.07223093245956738, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21679980_25-03-2025_06_34_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21679981, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21679982, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21679983, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21679984, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21679985, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21679986, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21679987, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21679988, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21679989, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21679990, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21679991, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21679992, '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 = 21680463 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': 2688224, 'mtr_portfolio_id': 21680463, 'created_at': datetime.datetime(2025, 3, 25, 6, 49, 6), 'result': '0.08504005568177589', 'result_long': None, 'result_double': None}] Qualite : 0.08504005568177589 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21680463 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21680463_25-03-2025_06_49_08.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21680463 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_P21680463_25-03-2025_06_49_08.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21680464, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21680465, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21680466, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21680467, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21680468, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21680469, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21680470, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21680471, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21680472, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21680473, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21680474, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21680475, 'pht': 3726}}" where mtr_portfolio_id = 21680463 and dashboard_run_id = 1696718 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=21680463 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9626562, 0.08504005568177589, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21680463_25-03-2025_06_49_08.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21680464, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21680465, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21680466, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21680467, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21680468, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21680469, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21680470, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21680471, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21680472, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21680473, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21680474, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21680475, '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 = 21680843 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': 2688253, 'mtr_portfolio_id': 21680843, 'created_at': datetime.datetime(2025, 3, 25, 7, 3, 59), 'result': '0.06753968595361569', 'result_long': None, 'result_double': None}] Qualite : 0.06753968595361569 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21680843 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21680843_25-03-2025_07_04_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21680843 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_P21680843_25-03-2025_07_04_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21680858, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21680860, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21680862, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21680864, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21680866, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21680868, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21680870, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21680872, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21680874, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21680876, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21680878, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21680879, 'pht': 3726}}" where mtr_portfolio_id = 21680843 and dashboard_run_id = 1696718 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=21680843 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9626567, 0.06753968595361569, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21680843_25-03-2025_07_04_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21680858, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21680860, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21680862, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21680864, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21680866, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21680868, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21680870, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21680872, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21680874, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21680876, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21680878, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21680879, '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 = 21681615 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': 2688347, 'mtr_portfolio_id': 21681615, 'created_at': datetime.datetime(2025, 3, 25, 7, 22, 28), 'result': '0.07958611216315638', 'result_long': None, 'result_double': None}] Qualite : 0.07958611216315638 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21681615 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21681615_25-03-2025_07_22_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21681615 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_P21681615_25-03-2025_07_22_29.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21681616, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21681617, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21681618, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21681619, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21681620, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21681621, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21681622, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21681623, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21681624, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21681625, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21681626, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21681627, 'pht': 3726}}" where mtr_portfolio_id = 21681615 and dashboard_run_id = 1696718 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=21681615 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9626569, 0.07958611216315638, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21681615_25-03-2025_07_22_29.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21681616, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21681617, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21681618, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21681619, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21681620, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21681621, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21681622, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21681623, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21681624, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21681625, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21681626, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21681627, '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 = 21681919 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': 2688370, 'mtr_portfolio_id': 21681919, 'created_at': datetime.datetime(2025, 3, 25, 7, 33, 1), 'result': '0.08994021496801277', 'result_long': None, 'result_double': None}] Qualite : 0.08994021496801277 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21681919 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21681919_25-03-2025_07_33_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21681919 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_P21681919_25-03-2025_07_33_02.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21681938, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21681939, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21681940, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21681941, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21681942, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21681943, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21681944, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21681945, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21681946, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21681947, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21681948, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21681949, 'pht': 3726}}" where mtr_portfolio_id = 21681919 and dashboard_run_id = 1696718 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=21681919 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9626571, 0.08994021496801277, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21681919_25-03-2025_07_33_02.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21681938, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21681939, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21681940, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21681941, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21681942, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21681943, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21681944, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21681945, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21681946, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21681947, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21681948, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21681949, '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 = 21682484 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': 2688417, 'mtr_portfolio_id': 21682484, 'created_at': datetime.datetime(2025, 3, 25, 7, 49, 1), 'result': '0.07021499748483895', 'result_long': None, 'result_double': None}] Qualite : 0.07021499748483895 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21682484 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21682484_25-03-2025_07_49_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21682484 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_P21682484_25-03-2025_07_49_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21682545, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21682546, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21682547, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21682548, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21682549, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21682550, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21682551, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21682552, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21682553, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21682554, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21682555, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21682556, 'pht': 3726}}" where mtr_portfolio_id = 21682484 and dashboard_run_id = 1696718 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=21682484 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9626573, 0.07021499748483895, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21682484_25-03-2025_07_49_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21682545, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21682546, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21682547, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21682548, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21682549, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21682550, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21682551, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21682552, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21682553, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21682554, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21682555, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21682556, '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 = 21683084 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': 2688453, 'mtr_portfolio_id': 21683084, 'created_at': datetime.datetime(2025, 3, 25, 8, 5, 31), 'result': '0.08025751073227201', 'result_long': None, 'result_double': None}] Qualite : 0.08025751073227201 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21683084 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21683084_25-03-2025_08_05_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21683084 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_P21683084_25-03-2025_08_05_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21683085, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21683086, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21683087, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21683088, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21683089, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21683090, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21683091, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21683092, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21683093, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21683094, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21683095, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21683096, 'pht': 3726}}" where mtr_portfolio_id = 21683084 and dashboard_run_id = 1696718 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=21683084 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9626575, 0.08025751073227201, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21683084_25-03-2025_08_05_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21683085, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21683086, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21683087, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21683088, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21683089, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21683090, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21683091, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21683092, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21683093, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21683094, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21683095, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21683096, '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 = 21683744 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': 2688544, 'mtr_portfolio_id': 21683744, 'created_at': datetime.datetime(2025, 3, 25, 8, 20, 59), 'result': '0.07941035170903972', 'result_long': None, 'result_double': None}] Qualite : 0.07941035170903972 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21683744 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21683744_25-03-2025_08_21_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21683744 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_P21683744_25-03-2025_08_21_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21683745, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21683746, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21683747, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21683748, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21683749, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21683750, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21683751, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21683752, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21683753, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21683754, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21683755, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21683756, 'pht': 3726}}" where mtr_portfolio_id = 21683744 and dashboard_run_id = 1696718 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=21683744 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9626577, 0.07941035170903972, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21683744_25-03-2025_08_21_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21683745, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21683746, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21683747, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21683748, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21683749, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21683750, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21683751, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21683752, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21683753, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21683754, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21683755, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21683756, '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 = 21684719 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': 2688618, 'mtr_portfolio_id': 21684719, 'created_at': datetime.datetime(2025, 3, 25, 8, 33, 59), 'result': '0.0681636400198088', 'result_long': None, 'result_double': None}] Qualite : 0.0681636400198088 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21684719 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21684719_25-03-2025_08_33_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21684719 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_P21684719_25-03-2025_08_33_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21684747, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21684748, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21684749, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21684750, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21684751, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21684752, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21684753, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21684754, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21684755, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21684756, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21684757, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21684758, 'pht': 3726}}" where mtr_portfolio_id = 21684719 and dashboard_run_id = 1696718 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=21684719 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9626579, 0.0681636400198088, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21684719_25-03-2025_08_33_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21684747, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21684748, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21684749, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21684750, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21684751, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21684752, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21684753, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21684754, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21684755, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21684756, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21684757, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21684758, '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 = 21685604 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': 2688693, 'mtr_portfolio_id': 21685604, 'created_at': datetime.datetime(2025, 3, 25, 8, 48, 58), 'result': '0.08020049086629065', 'result_long': None, 'result_double': None}] Qualite : 0.08020049086629065 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21685604 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21685604_25-03-2025_08_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21685604 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_P21685604_25-03-2025_08_48_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21685657, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21685658, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21685659, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21685660, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21685661, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21685662, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21685663, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21685664, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21685665, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21685666, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21685667, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21685668, 'pht': 3726}}" where mtr_portfolio_id = 21685604 and dashboard_run_id = 1696718 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=21685604 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9626581, 0.08020049086629065, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21685604_25-03-2025_08_48_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21685657, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21685658, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21685659, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21685660, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21685661, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21685662, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21685663, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21685664, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21685665, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21685666, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21685667, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21685668, '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 = 21686497 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': 2688756, 'mtr_portfolio_id': 21686497, 'created_at': datetime.datetime(2025, 3, 25, 9, 3, 58), 'result': '0.07629211370351456', 'result_long': None, 'result_double': None}] Qualite : 0.07629211370351456 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21686497 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21686497_25-03-2025_09_03_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21686497 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_P21686497_25-03-2025_09_03_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21686535, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21686536, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21686537, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21686538, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21686539, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21686540, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21686541, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21686542, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21686543, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21686544, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21686545, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21686546, 'pht': 3726}}" where mtr_portfolio_id = 21686497 and dashboard_run_id = 1696718 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=21686497 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9626583, 0.07629211370351456, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21686497_25-03-2025_09_03_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21686535, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21686536, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21686537, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21686538, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21686539, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21686540, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21686541, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21686542, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21686543, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21686544, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21686545, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21686546, '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 = 21692496 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': 2689411, 'mtr_portfolio_id': 21692496, 'created_at': datetime.datetime(2025, 3, 25, 14, 17, 59), 'result': '0.10241042591815748', 'result_long': None, 'result_double': None}] Qualite : 0.10241042591815748 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21692496 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21692496_25-03-2025_14_17_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21692496 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_P21692496_25-03-2025_14_17_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21692497, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21692498, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21692499, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21692500, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21692501, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21692502, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21692503, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21692504, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21692505, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21692506, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21692507, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21692508, 'pht': 3726}}" where mtr_portfolio_id = 21692496 and dashboard_run_id = 1696718 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=21692496 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9626585, 0.10241042591815748, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21692496_25-03-2025_14_17_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21692497, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21692498, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21692499, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21692500, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21692501, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21692502, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21692503, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21692504, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21692505, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21692506, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21692507, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21692508, '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 = 21692901 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': 2689442, 'mtr_portfolio_id': 21692901, 'created_at': datetime.datetime(2025, 3, 25, 14, 34, 58), 'result': '0.04243008138523738', 'result_long': None, 'result_double': None}] Qualite : 0.04243008138523738 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21692901 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21692901_25-03-2025_14_34_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21692901 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_P21692901_25-03-2025_14_34_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21692902, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21692903, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21692904, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21692905, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21692906, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21692907, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21692908, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21692909, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21692910, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21692911, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21692912, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21692913, 'pht': 3726}}" where mtr_portfolio_id = 21692901 and dashboard_run_id = 1696718 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=21692901 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9626592, 0.04243008138523738, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21692901_25-03-2025_14_34_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21692902, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21692903, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21692904, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21692905, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21692906, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21692907, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21692908, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21692909, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21692910, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21692911, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21692912, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21692913, '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 = 21693404 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': 2689490, 'mtr_portfolio_id': 21693404, 'created_at': datetime.datetime(2025, 3, 25, 14, 47, 59), 'result': '0.038239692288605825', 'result_long': None, 'result_double': None}] Qualite : 0.038239692288605825 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21693404 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21693404_25-03-2025_14_47_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21693404 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_P21693404_25-03-2025_14_47_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21693461, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21693462, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21693463, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21693465, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21693466, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21693467, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21693469, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21693470, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21693471, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21693473, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21693474, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21693475, 'pht': 3726}}" where mtr_portfolio_id = 21693404 and dashboard_run_id = 1696718 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=21693404 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9626594, 0.038239692288605825, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21693404_25-03-2025_14_47_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21693461, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21693462, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21693463, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21693465, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21693466, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21693467, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21693469, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21693470, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21693471, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21693473, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21693474, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21693475, '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 = 21693948 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': 2689520, 'mtr_portfolio_id': 21693948, 'created_at': datetime.datetime(2025, 3, 25, 15, 5, 2), 'result': '0.030763039521575417', 'result_long': None, 'result_double': None}] Qualite : 0.030763039521575417 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21693948 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21693948_25-03-2025_15_05_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21693948 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_P21693948_25-03-2025_15_05_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21693953, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21693954, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21693955, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21693956, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21693957, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21693958, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21693959, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21693960, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21693961, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21693962, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21693963, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21693964, 'pht': 3726}}" where mtr_portfolio_id = 21693948 and dashboard_run_id = 1696718 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=21693948 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9626596, 0.030763039521575417, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21693948_25-03-2025_15_05_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21693953, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21693954, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21693955, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21693956, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21693957, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21693958, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21693959, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21693960, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21693961, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21693962, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21693963, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21693964, '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 = 21694587 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': 2689585, 'mtr_portfolio_id': 21694587, 'created_at': datetime.datetime(2025, 3, 25, 15, 18), 'result': '0.028907160095087463', 'result_long': None, 'result_double': None}] Qualite : 0.028907160095087463 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21694587 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21694587_25-03-2025_15_18_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21694587 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_P21694587_25-03-2025_15_18_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21694588, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21694589, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21694590, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21694591, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21694592, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21694593, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21694594, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21694595, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21694596, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21694597, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21694598, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21694599, 'pht': 3726}}" where mtr_portfolio_id = 21694587 and dashboard_run_id = 1696718 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=21694587 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9626598, 0.028907160095087463, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21694587_25-03-2025_15_18_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21694588, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21694589, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21694590, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21694591, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21694592, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21694593, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21694594, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21694595, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21694596, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21694597, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21694598, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21694599, '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 = 21695129 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': 2689625, 'mtr_portfolio_id': 21695129, 'created_at': datetime.datetime(2025, 3, 25, 15, 33, 48), 'result': '0.02786714646111607', 'result_long': None, 'result_double': None}] Qualite : 0.02786714646111607 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21695129 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21695129_25-03-2025_15_33_48.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21695129 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_P21695129_25-03-2025_15_33_48.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21695134, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21695135, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21695136, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21695137, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21695138, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21695139, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21695140, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21695141, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21695142, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21695143, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21695144, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21695145, 'pht': 3726}}" where mtr_portfolio_id = 21695129 and dashboard_run_id = 1696718 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=21695129 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9626600, 0.02786714646111607, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21695129_25-03-2025_15_33_48.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21695134, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21695135, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21695136, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21695137, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21695138, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21695139, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21695140, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21695141, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21695142, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21695143, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21695144, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21695145, '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 = 21696146 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': 2689712, 'mtr_portfolio_id': 21696146, 'created_at': datetime.datetime(2025, 3, 25, 15, 48, 11), 'result': '0.024122471735302825', 'result_long': None, 'result_double': None}] Qualite : 0.024122471735302825 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21696146 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21696146_25-03-2025_15_48_12.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21696146 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_P21696146_25-03-2025_15_48_12.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21696171, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21696172, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21696173, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21696174, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21696175, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21696176, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21696177, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21696178, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21696179, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21696180, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21696181, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21696182, 'pht': 3726}}" where mtr_portfolio_id = 21696146 and dashboard_run_id = 1696718 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=21696146 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9626602, 0.024122471735302825, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21696146_25-03-2025_15_48_12.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21696171, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21696172, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21696173, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21696174, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21696175, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21696176, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21696177, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21696178, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21696179, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21696180, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21696181, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21696182, '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 = 21697166 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': 2689759, 'mtr_portfolio_id': 21697166, 'created_at': datetime.datetime(2025, 3, 25, 16, 6, 29), 'result': '0.024229411176945187', 'result_long': None, 'result_double': None}] Qualite : 0.024229411176945187 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21697166 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21697166_25-03-2025_16_06_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21697166 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_P21697166_25-03-2025_16_06_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21697181, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21697182, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21697183, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21697184, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21697185, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21697186, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21697187, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21697188, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21697189, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21697190, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21697191, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21697192, 'pht': 3726}}" where mtr_portfolio_id = 21697166 and dashboard_run_id = 1696718 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=21697166 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9626604, 0.024229411176945187, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21697166_25-03-2025_16_06_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21697181, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21697182, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21697183, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21697184, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21697185, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21697186, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21697187, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21697188, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21697189, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21697190, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21697191, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21697192, '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 = 21697624 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': 2689816, 'mtr_portfolio_id': 21697624, 'created_at': datetime.datetime(2025, 3, 25, 16, 18, 58), 'result': '0.023003178792020525', 'result_long': None, 'result_double': None}] Qualite : 0.023003178792020525 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21697624 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21697624_25-03-2025_16_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21697624 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_P21697624_25-03-2025_16_18_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21697655, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21697656, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21697657, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21697658, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21697659, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21697660, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21697661, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21697662, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21697663, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21697664, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21697665, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21697666, 'pht': 3726}}" where mtr_portfolio_id = 21697624 and dashboard_run_id = 1696718 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=21697624 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9626606, 0.023003178792020525, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21697624_25-03-2025_16_18_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21697655, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21697656, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21697657, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21697658, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21697659, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21697660, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21697661, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21697662, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21697663, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21697664, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21697665, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21697666, '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 = 21698231 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': 2689845, 'mtr_portfolio_id': 21698231, 'created_at': datetime.datetime(2025, 3, 25, 16, 33), 'result': '0.03905241123885982', 'result_long': None, 'result_double': None}] Qualite : 0.03905241123885982 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21698231 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21698231_25-03-2025_16_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21698231 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_P21698231_25-03-2025_16_33_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21698253, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21698254, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21698255, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21698256, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21698257, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21698258, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21698259, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21698260, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21698261, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21698262, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21698263, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21698264, 'pht': 3726}}" where mtr_portfolio_id = 21698231 and dashboard_run_id = 1696718 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=21698231 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9626608, 0.03905241123885982, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21698231_25-03-2025_16_33_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21698253, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21698254, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21698255, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21698256, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21698257, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21698258, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21698259, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21698260, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21698261, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21698262, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21698263, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21698264, '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 = 21699089 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': 2689911, 'mtr_portfolio_id': 21699089, 'created_at': datetime.datetime(2025, 3, 25, 16, 48, 59), 'result': '0.04860963579605444', 'result_long': None, 'result_double': None}] Qualite : 0.04860963579605444 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21699089 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21699089_25-03-2025_16_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21699089 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_P21699089_25-03-2025_16_48_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21699115, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21699116, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21699117, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21699118, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21699119, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21699120, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21699121, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21699122, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21699123, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21699124, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21699125, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21699126, 'pht': 3726}}" where mtr_portfolio_id = 21699089 and dashboard_run_id = 1696718 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=21699089 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9626610, 0.04860963579605444, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21699089_25-03-2025_16_48_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21699115, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21699116, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21699117, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21699118, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21699119, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21699120, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21699121, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21699122, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21699123, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21699124, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21699125, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21699126, '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 = 21700039 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': 2690023, 'mtr_portfolio_id': 21700039, 'created_at': datetime.datetime(2025, 3, 25, 17, 4, 59), 'result': '0.04290373396819406', 'result_long': None, 'result_double': None}] Qualite : 0.04290373396819406 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21700039 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21700039_25-03-2025_17_05_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21700039 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_P21700039_25-03-2025_17_05_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21700055, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21700056, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21700057, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21700058, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21700059, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21700060, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21700061, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21700062, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21700063, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21700064, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21700065, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21700066, 'pht': 3726}}" where mtr_portfolio_id = 21700039 and dashboard_run_id = 1696718 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=21700039 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9626612, 0.04290373396819406, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21700039_25-03-2025_17_05_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21700055, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21700056, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21700057, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21700058, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21700059, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21700060, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21700061, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21700062, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21700063, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21700064, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21700065, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21700066, '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 = 21700672 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': 2690068, 'mtr_portfolio_id': 21700672, 'created_at': datetime.datetime(2025, 3, 25, 17, 17, 56), 'result': '0.031433546771438906', 'result_long': None, 'result_double': None}] Qualite : 0.031433546771438906 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21700672 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21700672_25-03-2025_17_17_56.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21700672 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_P21700672_25-03-2025_17_17_56.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21700686, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21700687, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21700688, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21700689, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21700690, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21700691, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21700692, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21700693, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21700694, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21700695, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21700696, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21700697, 'pht': 3726}}" where mtr_portfolio_id = 21700672 and dashboard_run_id = 1696718 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=21700672 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9626614, 0.031433546771438906, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21700672_25-03-2025_17_17_56.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21700686, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21700687, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21700688, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21700689, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21700690, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21700691, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21700692, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21700693, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21700694, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21700695, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21700696, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21700697, '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 = 21701715 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': 2690121, 'mtr_portfolio_id': 21701715, 'created_at': datetime.datetime(2025, 3, 26, 0, 2, 31), 'result': '0.038716811417085086', 'result_long': None, 'result_double': None}] Qualite : 0.038716811417085086 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21701715 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21701715_26-03-2025_00_02_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21701715 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_P21701715_26-03-2025_00_02_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21701735, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21701736, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21701737, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21701738, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21701739, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21701740, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21701741, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21701742, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21701743, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21701744, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21701745, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21701746, 'pht': 3726}}" where mtr_portfolio_id = 21701715 and dashboard_run_id = 1696718 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=21701715 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9626616, 0.038716811417085086, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21701715_26-03-2025_00_02_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21701735, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21701736, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21701737, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21701738, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21701739, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21701740, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21701741, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21701742, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21701743, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21701744, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21701745, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21701746, '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 = 21704505 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': 2690350, 'mtr_portfolio_id': 21704505, 'created_at': datetime.datetime(2025, 3, 25, 19, 34, 27), 'result': '0.05062935631658604', 'result_long': None, 'result_double': None}] Qualite : 0.05062935631658604 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21704505 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21704505_25-03-2025_19_34_27.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21704505 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_P21704505_25-03-2025_19_34_27.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21704509, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21704510, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21704511, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21704512, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21704513, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21704514, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21704515, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21704516, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21704517, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21704518, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21704519, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21704520, 'pht': 3726}}" where mtr_portfolio_id = 21704505 and dashboard_run_id = 1696718 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=21704505 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9626618, 0.05062935631658604, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21704505_25-03-2025_19_34_27.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21704509, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21704510, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21704511, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21704512, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21704513, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21704514, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21704515, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21704516, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21704517, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21704518, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21704519, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21704520, '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 = 21704931 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': 2690392, 'mtr_portfolio_id': 21704931, 'created_at': datetime.datetime(2025, 3, 25, 19, 50, 29), 'result': '0.044781338509724974', 'result_long': None, 'result_double': None}] Qualite : 0.044781338509724974 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21704931 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21704931_25-03-2025_19_50_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21704931 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_P21704931_25-03-2025_19_50_29.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21704935, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21704936, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21704937, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21704938, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21704939, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21704940, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21704941, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21704942, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21704943, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21704944, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21704945, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21704946, 'pht': 3726}}" where mtr_portfolio_id = 21704931 and dashboard_run_id = 1696718 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=21704931 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9626620, 0.044781338509724974, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21704931_25-03-2025_19_50_29.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21704935, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21704936, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21704937, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21704938, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21704939, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21704940, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21704941, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21704942, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21704943, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21704944, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21704945, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21704946, '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 = 21705744 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': 2690433, 'mtr_portfolio_id': 21705744, 'created_at': datetime.datetime(2025, 3, 25, 20, 5, 7), 'result': '0.04577946720757211', 'result_long': None, 'result_double': None}] Qualite : 0.04577946720757211 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21705744 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21705744_25-03-2025_20_05_08.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21705744 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_P21705744_25-03-2025_20_05_08.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21705745, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21705746, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21705747, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21705748, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21705749, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21705750, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21705751, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21705752, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21705753, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21705754, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21705755, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21705756, 'pht': 3726}}" where mtr_portfolio_id = 21705744 and dashboard_run_id = 1696718 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=21705744 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9626622, 0.04577946720757211, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21705744_25-03-2025_20_05_08.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21705745, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21705746, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21705747, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21705748, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21705749, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21705750, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21705751, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21705752, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21705753, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21705754, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21705755, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21705756, '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 = 21706355 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': 2690493, 'mtr_portfolio_id': 21706355, 'created_at': datetime.datetime(2025, 3, 25, 20, 18, 32), 'result': '0.05466395004213558', 'result_long': None, 'result_double': None}] Qualite : 0.05466395004213558 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21706355 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21706355_25-03-2025_20_18_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21706355 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_P21706355_25-03-2025_20_18_33.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21706481, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21706482, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21706483, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21706484, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21706485, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21706486, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21706487, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21706488, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21706489, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21706490, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21706491, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21706492, 'pht': 3726}}" where mtr_portfolio_id = 21706355 and dashboard_run_id = 1696718 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=21706355 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9626624, 0.05466395004213558, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21706355_25-03-2025_20_18_33.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21706481, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21706482, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21706483, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21706484, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21706485, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21706486, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21706487, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21706488, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21706489, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21706490, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21706491, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21706492, '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 = 21707261 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': 2690533, 'mtr_portfolio_id': 21707261, 'created_at': datetime.datetime(2025, 3, 25, 20, 35, 1), 'result': '0.029453294160891177', 'result_long': None, 'result_double': None}] Qualite : 0.029453294160891177 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21707261 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21707261_25-03-2025_20_35_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21707261 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_P21707261_25-03-2025_20_35_02.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21707323, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21707324, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21707325, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21707326, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21707327, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21707328, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21707329, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21707330, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21707331, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21707332, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21707333, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21707334, 'pht': 3726}}" where mtr_portfolio_id = 21707261 and dashboard_run_id = 1696718 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=21707261 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9626626, 0.029453294160891177, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21707261_25-03-2025_20_35_02.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21707323, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21707324, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21707325, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21707326, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21707327, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21707328, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21707329, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21707330, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21707331, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21707332, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21707333, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21707334, '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 = 21707953 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': 2690582, 'mtr_portfolio_id': 21707953, 'created_at': datetime.datetime(2025, 3, 25, 20, 48, 59), 'result': '0.05040768491453269', 'result_long': None, 'result_double': None}] Qualite : 0.05040768491453269 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21707953 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21707953_25-03-2025_20_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21707953 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_P21707953_25-03-2025_20_48_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21708025, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21708026, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21708027, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21708028, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21708029, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21708030, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21708031, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21708032, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21708033, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21708034, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21708035, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21708036, 'pht': 3726}}" where mtr_portfolio_id = 21707953 and dashboard_run_id = 1696718 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=21707953 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9626628, 0.05040768491453269, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21707953_25-03-2025_20_48_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21708025, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21708026, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21708027, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21708028, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21708029, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21708030, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21708031, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21708032, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21708033, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21708034, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21708035, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21708036, '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 = 21708597 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': 2690616, 'mtr_portfolio_id': 21708597, 'created_at': datetime.datetime(2025, 3, 25, 21, 6, 58), 'result': '0.03552667540840205', 'result_long': None, 'result_double': None}] Qualite : 0.03552667540840205 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21708597 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21708597_25-03-2025_21_06_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21708597 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_P21708597_25-03-2025_21_06_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21708664, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21708665, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21708666, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21708667, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21708668, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21708669, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21708670, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21708671, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21708672, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21708673, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21708674, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21708675, 'pht': 3726}}" where mtr_portfolio_id = 21708597 and dashboard_run_id = 1696718 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=21708597 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9626630, 0.03552667540840205, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21708597_25-03-2025_21_06_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21708664, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21708665, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21708666, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21708667, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21708668, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21708669, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21708670, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21708671, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21708672, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21708673, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21708674, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21708675, '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 = 21709627 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': 2690675, 'mtr_portfolio_id': 21709627, 'created_at': datetime.datetime(2025, 3, 25, 21, 18, 58), 'result': '0.029460588873851532', 'result_long': None, 'result_double': None}] Qualite : 0.029460588873851532 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21709627 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21709627_25-03-2025_21_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21709627 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_P21709627_25-03-2025_21_18_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21709628, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21709629, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21709630, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21709631, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21709632, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21709633, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21709634, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21709635, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21709636, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21709637, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21709638, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21709639, 'pht': 3726}}" where mtr_portfolio_id = 21709627 and dashboard_run_id = 1696718 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=21709627 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9626632, 0.029460588873851532, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21709627_25-03-2025_21_18_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21709628, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21709629, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21709630, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21709631, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21709632, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21709633, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21709634, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21709635, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21709636, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21709637, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21709638, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21709639, '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 = 21709947 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': 2690692, 'mtr_portfolio_id': 21709947, 'created_at': datetime.datetime(2025, 3, 25, 21, 34, 1), 'result': '0.07255758893752548', 'result_long': None, 'result_double': None}] Qualite : 0.07255758893752548 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21709947 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21709947_25-03-2025_21_34_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21709947 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_P21709947_25-03-2025_21_34_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21709948, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21709949, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21709950, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21709951, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21709952, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21709953, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21709954, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21709955, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21709956, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21709957, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21709958, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21709959, 'pht': 3726}}" where mtr_portfolio_id = 21709947 and dashboard_run_id = 1696718 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=21709947 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9626634, 0.07255758893752548, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21709947_25-03-2025_21_34_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21709948, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21709949, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21709950, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21709951, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21709952, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21709953, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21709954, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21709955, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21709956, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21709957, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21709958, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21709959, '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 = 21710365 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': 2690723, 'mtr_portfolio_id': 21710365, 'created_at': datetime.datetime(2025, 3, 25, 21, 48), 'result': '0.05375270878866383', 'result_long': None, 'result_double': None}] Qualite : 0.05375270878866383 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21710365 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21710365_25-03-2025_21_48_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21710365 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_P21710365_25-03-2025_21_48_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21710366, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21710367, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21710368, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21710369, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21710370, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21710371, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21710372, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21710373, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21710374, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21710375, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21710376, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21710377, 'pht': 3726}}" where mtr_portfolio_id = 21710365 and dashboard_run_id = 1696718 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=21710365 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9626636, 0.05375270878866383, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21710365_25-03-2025_21_48_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21710366, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21710367, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21710368, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21710369, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21710370, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21710371, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21710372, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21710373, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21710374, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21710375, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21710376, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21710377, '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 = 21710866 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': 2690760, 'mtr_portfolio_id': 21710866, 'created_at': datetime.datetime(2025, 3, 25, 22, 3, 59), 'result': '0.05562681950865728', 'result_long': None, 'result_double': None}] Qualite : 0.05562681950865728 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21710866 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21710866_25-03-2025_22_04_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21710866 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_P21710866_25-03-2025_22_04_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21710867, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21710868, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21710869, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21710870, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21710871, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21710872, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21710873, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21710874, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21710875, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21710876, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21710877, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21710878, 'pht': 3726}}" where mtr_portfolio_id = 21710866 and dashboard_run_id = 1696718 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=21710866 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9626638, 0.05562681950865728, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21710866_25-03-2025_22_04_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21710867, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21710868, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21710869, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21710870, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21710871, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21710872, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21710873, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21710874, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21710875, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21710876, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21710877, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21710878, '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 = 21711534 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': 2690864, 'mtr_portfolio_id': 21711534, 'created_at': datetime.datetime(2025, 3, 25, 22, 18, 2), 'result': '0.07301631710143765', 'result_long': None, 'result_double': None}] Qualite : 0.07301631710143765 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21711534 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21711534_25-03-2025_22_18_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21711534 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_P21711534_25-03-2025_22_18_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21711535, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21711536, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21711537, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21711538, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21711539, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21711540, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21711541, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21711542, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21711543, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21711544, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21711545, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21711546, 'pht': 3726}}" where mtr_portfolio_id = 21711534 and dashboard_run_id = 1696718 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=21711534 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9626640, 0.07301631710143765, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21711534_25-03-2025_22_18_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21711535, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21711536, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21711537, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21711538, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21711539, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21711540, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21711541, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21711542, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21711543, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21711544, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21711545, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21711546, '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 = 21712415 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': 2690911, 'mtr_portfolio_id': 21712415, 'created_at': datetime.datetime(2025, 3, 25, 22, 34, 3), 'result': '0.07915081851170958', 'result_long': None, 'result_double': None}] Qualite : 0.07915081851170958 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21712415 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21712415_25-03-2025_22_34_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21712415 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_P21712415_25-03-2025_22_34_03.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21712450, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21712451, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21712452, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21712453, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21712454, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21712455, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21712456, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21712457, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21712458, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21712460, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21712461, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21712462, 'pht': 3726}}" where mtr_portfolio_id = 21712415 and dashboard_run_id = 1696718 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=21712415 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9626642, 0.07915081851170958, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21712415_25-03-2025_22_34_03.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21712450, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21712451, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21712452, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21712453, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21712454, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21712455, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21712456, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21712457, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21712458, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21712460, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21712461, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21712462, '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 = 21713262 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': 2690954, 'mtr_portfolio_id': 21713262, 'created_at': datetime.datetime(2025, 3, 25, 22, 56, 59), 'result': '0.06766338717633107', 'result_long': None, 'result_double': None}] Qualite : 0.06766338717633107 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21713262 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21713262_25-03-2025_22_57_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21713262 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_P21713262_25-03-2025_22_57_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21713283, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21713285, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21713286, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21713287, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21713289, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21713290, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21713291, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21713293, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21713294, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21713295, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21713297, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21713298, 'pht': 3726}}" where mtr_portfolio_id = 21713262 and dashboard_run_id = 1696718 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=21713262 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9626644, 0.06766338717633107, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21713262_25-03-2025_22_57_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21713283, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21713285, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21713286, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21713287, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21713289, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21713290, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21713291, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21713293, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21713294, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21713295, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21713297, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21713298, '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 (21677868,21677990,21678453,21678764,21679339,21679980,21680463,21680843,21681615,21681919,21682484,21683084,21683744,21684719,21685604,21686497,21692496,21692901,21693404,21693948,21694587,21695129,21696146,21697166,21697624,21698231,21699089,21700039,21700672,21701715,21704505,21704931,21705744,21706355,21707261,21707953,21708597,21709627,21709947,21710365,21710866,21711534,21712415,21713262) result : ((1347087237,), (1347087310,), (1347087314,), (1347087346,), (1347087491,), (1347087499,), (1347087508,), (1347087514,), (1347087519,), (1347087718,), (1347087924,), (1347087961,), (1347087963,), (1347087967,), (1347087972,), (1347088091,), (1347088260,), (1347088280,), (1347088292,), (1347088506,), (1347088499,), (1347088502,), (1347088687,), (1347088693,), (1347088698,), (1347088715,), (1347088719,), (1347088979,), (1347089010,), (1347089012,), (1347089023,), (1347089026,), (1347089032,), (1347089177,), (1347089178,), (1347089181,), (1347089188,), (1347089222,), (1347089228,), (1347089233,), (1347089235,), (1347089255,), (1347089268,), (1347089271,), (1347089274,), (1347089277,), (1347089313,), (1347089344,), (1347089347,), (1347089351,), (1347089355,), (1347089361,), (1347089365,), (1347089435,), (1347089499,), (1347089620,), (1347089631,), (1347089705,), (1347089708,), (1347089715,), (1347089736,), (1347089742,), (1347089747,), (1347089808,), (1347089832,), (1347089840,), (1347089846,), (1347089850,), (1347089880,), (1347089882,), (1347089884,), (1347089887,), (1347089892,), (1347089895,), (1347089917,), (1347089920,), (1347089923,), (1347089992,), (1347089998,), (1347090010,), (1347090038,), (1347090042,), (1347090045,), (1347090091,), (1347090093,), (1347090095,), (1347090149,), (1347090128,), (1347090129,), (1347090132,), (1347090136,), (1347090146,), (1347090185,), (1347090186,), (1347090189,), (1347090193,), (1347090198,), (1347090202,), (1347090267,), (1347090270,), (1347090287,), (1347090292,), (1347090364,), (1347090373,), (1347090375,), (1347090382,), (1347090395,), (1347090450,), (1347090529,), (1347090532,), (1347090535,), (1347090538,), (1347090541,), (1347090542,), (1347090719,), (1347090740,), (1347090768,), (1347090796,), (1347091166,), (1347091194,), (1347091214,), (1347091239,), (1347091340,), (1347091346,), (1347091370,), (1347091394,), (1347091420,), (1347091443,), (1347091502,), (1347091548,), (1347091556,), (1347091606,), (1347091610,), (1347092019,), (1347092003,), (1347092007,), (1347092093,), (1347092095,), (1347092097,), (1347092217,), (1347092222,), (1347092226,), (1347092233,), (1347092238,), (1347092245,), (1347092252,), (1347092256,), (1347092260,), (1347092264,), (1347092269,), (1347092286,), (1347092292,), (1347092298,), (1347092304,), (1347092308,), (1347092322,), (1347092324,), (1347092329,), (1347092333,), (1347092347,), (1347092351,), (1347092354,), (1347092363,), (1347092367,), (1347092371,), (1347092388,), (1347092391,), (1347092393,), (1347092396,), (1347092399,), (1347092408,), (1347092458,), (1347092460,), (1347092462,), (1347092465,), (1347092492,), (1347092493,), (1347092494,), (1347092497,), (1347092507,), (1347092519,), (1347092549,), (1347092561,), (1347092564,), (1347092567,), (1347092570,), (1347092576,), (1347092620,), (1347092622,), (1347092624,), (1347092835,), (1347092863,), (1347093137,), (1347093746,), (1347093780,), (1347093811,), (1347093843,), (1347093857,), (1347093905,), (1347093983,), (1347094006,), (1347094027,), (1347094049,), (1347094073,), (1347094227,), (1347094150,), (1347094174,), (1347094196,), (1347094201,), (1347094310,), (1347094345,), (1347094379,), (1347094401,), (1347094429,), (1347094506,), (1347094520,), (1347094532,), (1347094537,), (1347094545,), (1347094549,), (1347094617,), (1347094625,), (1347094634,), (1347094645,), (1347094761,), (1347094778,), (1347094786,), (1347094806,), (1347094809,), (1347094848,), (1347094852,), (1347094860,), (1347094866,), (1347094873,), (1347094882,), (1347094897,), (1347094898,), (1347094972,), (1347094975,), (1347094982,), (1347094988,), (1347094995,), (1347095020,), (1347095072,), (1347095074,), (1347095078,), (1347095127,), (1347095131,), (1347095136,), (1347095184,), (1347095191,), (1347095193,), (1347095197,), (1347095245,), (1347095246,), (1347095247,), (1347095251,), (1347095254,), (1347095280,), (1347095281,), (1347095282,), (1347095287,), (1347095596,), (1347095598,), (1347095610,), (1347095618,), (1347095635,), (1347095676,), (1347095680,), (1347095685,), (1347095691,), (1347095695,), (1347095726,), (1347095729,), (1347095732,), (1347095738,), (1347095822,), (1347095782,), (1347095794,), (1347095798,), (1347095806,), (1347095814,), (1347095855,), (1347095865,), (1347095880,), (1347095894,), (1347095898,), (1347095916,), (1347095932,), (1347095935,), (1347095956,), (1347095963,), (1347095997,), (1347095999,), (1347096001,), (1347096053,), (1347096055,), (1347096061,), (1347096066,), (1347096069,), (1347096075,), (1347096096,), (1347096103,), (1347096131,), (1347096136,), (1347096149,), (1347096176,), (1347096268,), (1347096276,), (1347096278,), (1347096297,), (1347096321,), (1347096324,), (1347096326,), (1347096331,), (1347096334,), (1347096340,), (1347096484,), (1347096633,), (1347096636,), (1347096833,), (1347096836,), (1347096840,), (1347096844,), (1347096848,), (1347096853,), (1347096881,), (1347096903,), (1347096912,), (1347096951,), (1347096962,), (1347096975,), (1347097009,), (1347097011,), (1347097013,), (1347097014,), (1347097020,), (1347097083,), (1347097110,), (1347097166,), (1347097174,), (1347097180,), (1347097313,), (1347097315,), (1347097334,), (1347097338,), (1347097352,), (1347097475,), (1347097446,), (1347097449,), (1347097460,), (1347097470,), (1347097592,), (1347097593,), (1347097657,), (1347097661,), (1347097664,), (1347097668,), (1347097674,), (1347097677,), (1347097697,), (1347097707,), (1347097729,), (1347097742,), (1347097748,), (1347097750,), (1347097768,), (1347097771,), (1347097775,), (1347097780,), (1347098050,), (1347098139,), (1347098141,), (1347098176,), (1347098179,), (1347098186,), (1347098204,), (1347098233,), (1347098235,), (1347098237,), (1347098239,), (1347098299,), (1347098302,), (1347098305,), (1347098310,), (1347098316,), (1347098351,), (1347098353,), (1347098355,), (1347098359,), (1347098394,), (1347098397,), (1347098401,), (1347098405,), (1347098430,), (1347098432,), (1347098434,), (1347098438,), (1347098443,), (1347098448,), (1347098464,), (1347098473,), (1347098478,), (1347098520,), (1347098525,), (1347098528,), (1347098533,), (1347098537,), (1347098555,), (1347098710,), (1347098609,), (1347098618,), (1347098627,), (1347098640,), (1347098671,), (1347098952,), (1347098964,), (1347098983,), (1347099105,), (1347099114,), (1347099120,), (1347099130,), (1347099161,), (1347099162,), (1347099164,), (1347099168,), (1347099173,), (1347099212,), (1347099215,), (1347099218,), (1347099223,), (1347099234,), (1347099263,), (1347099267,), (1347099270,), (1347099328,), (1347099332,), (1347099338,), (1347099364,), (1347099366,), (1347099369,), (1347099376,), (1347099384,), (1347099388,), (1347099993,), (1347100663,), (1347100692,), (1347100726,), (1347100753,), (1347100782,), (1347100887,), (1347100891,), (1347100911,), (1347100913,), (1347100934,), (1347100937,), (1347100986,), (1347100989,), (1347101190,), (1347101118,), (1347101148,), (1347101165,), (1347101179,), (1347101338,), (1347101379,), (1347101410,), (1347101566,), (1347101574,), (1347101666,), (1347101671,), (1347101780,), (1347101809,), (1347101822,), (1347101827,), (1347101912,), (1347101919,), (1347102154,), (1347102307,), (1347102317,), (1347102328,), (1347102339,), (1347102351,), (1347102364,), (1347102367,), (1347102373,), (1347102377,), (1347102379,), (1347102381,), (1347102383,), (1347102392,), (1347102399,), (1347102409,), (1347102419,), (1347102429,), (1347102440,), (1347102465,), (1347102470,), (1347102475,), (1347102491,), (1347102497,), (1347102504,), (1347102511,), (1347102514,), (1347102518,), (1347102620,), (1347102627,), (1347102633,), (1347102641,), (1347102656,), (1347102671,), (1347102723,), (1347102900,), (1347102928,), (1347102942,), (1347102952,), (1347102970,), (1347102991,), (1347102454,), (1347102457,), (1347102461,), (1347102536,), (1347102555,), (1347102567,), (1347102576,), (1347102582,), (1347102589,), (1347102694,), (1347102702,), (1347102708,), (1347102714,), (1347102719,), (1347102786,), (1347102808,), (1347102833,), (1347102855,), (1347102877,), (1347103057,), (1347103076,), (1347103081,), (1347103084,), (1347103089,), (1347103094,), (1347103113,), (1347103125,), (1347103133,), (1347103140,), (1347103186,), (1347103194,), (1347103199,), (1347103207,), (1347103219,), (1347103238,), (1347103282,), (1347103292,), (1347103296,), (1347103301,), (1347103306,), (1347103366,), (1347103375,), (1347103383,), (1347103394,), (1347103439,), (1347103725,), (1347103729,), (1347103733,), (1347103917,), (1347103920,), (1347103925,), (1347103933,), (1347103939,), (1347104127,), (1347104145,), (1347104166,), (1347104188,), (1347104217,), (1347104239,), (1347104493,), (1347104509,), (1347104530,), (1347104570,), (1347104729,), (1347104755,), (1347104769,), (1347104787,), (1347104796,), (1347104802,), (1347104855,), (1347104862,), (1347104864,), (1347104870,), (1347104875,), (1347104966,), (1347105251,), (1347105202,), (1347105224,), (1347105233,), (1347105245,), (1347105338,), (1347105346,), (1347105351,), (1347105362,), (1347105504,), (1347105511,), (1347105514,), (1347105572,), (1347105590,), (1347105705,), (1347105736,), (1347105751,), (1347105757,), (1347105897,), (1347105929,), (1347105950,), (1347105958,), (1347105974,), (1347105982,), (1347106156,), (1347106164,), (1347106166,), (1347106324,), (1347106331,), (1347106335,), (1347106343,), (1347106353,), (1347106360,), (1347106393,), (1347106404,), (1347106413,), (1347106419,), (1347106468,), (1347106471,), (1347106479,), (1347106495,), (1347106511,), (1347106721,), (1347106733,), (1347106736,), (1347106745,), (1347106748,), (1347106756,), (1347106793,), (1347106798,), (1347106801,), (1347106860,), (1347106863,), (1347106866,), (1347106918,), (1347106923,), (1347107024,), (1347107027,), (1347107029,), (1347107040,), (1347107048,), (1347107055,), (1347107221,), (1347107224,), (1347107228,), (1347107298,), (1347107465,), (1347107470,), (1347107475,), (1347107481,), (1347107484,), (1347107492,), (1347107681,), (1347107610,), (1347107619,), (1347107671,), (1347107768,), (1347107773,), (1347107778,), (1347107784,), (1347107789,), (1347107817,), (1347107967,), (1347108010,), (1347108018,), (1347108105,), (1347108109,), (1347108113,), (1347108119,), (1347108177,), (1347108179,), (1347108180,), (1347108186,), (1347108293,), (1347108297,), (1347108301,), (1347108311,), (1347108322,), (1347108544,), (1347108555,), (1347108562,), (1347108570,), (1347108580,), (1347108842,), (1347108849,), (1347108901,), (1347108905,), (1347108910,), (1347108970,), (1347108976,), (1347108980,), (1347108988,), (1347108992,), (1347108997,), (1347109304,), (1347109342,), (1347109414,), (1347109433,), (1347109565,), (1347109566,), (1347109583,), (1347109646,), (1347109717,), (1347109801,), (1347110063,), (1347110066,), (1347110070,), (1347110093,), (1347110108,), (1347110116,), (1347110195,), (1347110206,), (1347110209,), (1347110212,), (1347110239,), (1347110243,), (1347111070,), (1347111101,), (1347111156,), (1347111205,), (1347111255,), (1347111654,), (1347111485,), (1347111538,), (1347111605,), (1347111872,), (1347111913,), (1347112024,), (1347112166,), (1347112235,), (1347112304,), (1347112619,), (1347112676,), (1347112705,), (1347112721,), (1347113014,), (1347113024,), (1347113036,), (1347113075,), (1347113083,), (1347113088,), (1347113137,), (1347113302,), (1347113448,), (1347113535,), (1347113566,), (1347113583,), (1347113868,), (1347113908,), (1347114256,), (1347114278,), (1347114302,), (1347114327,), (1347114348,), (1347114365,), (1347114414,), (1347114418,), (1347114424,), (1347114430,), (1347114439,), (1347114446,), (1347114516,), (1347114532,), (1347114544,), (1347114550,), (1347114679,), (1347114684,), (1347114701,), (1347114707,), (1347114735,), (1347114749,), (1347115304,), (1347115332,), (1347115350,), (1347115356,), (1347115363,), (1347115390,), (1347115468,), (1347115530,), (1347115589,), (1347115612,), (1347115637,), (1347115780,), (1347115680,), (1347115684,), (1347115693,), (1347115728,), (1347115756,), (1347116011,), (1347116046,), (1347116113,), (1347116176,), (1347116226,), (1347116461,), (1347116470,), (1347116495,), (1347116511,), (1347116558,), (1347116604,), (1347116759,), (1347116828,), (1347116854,), (1347116903,), (1347116919,), (1347117074,), (1347117092,), (1347117104,), (1347117123,), (1347117129,), (1347117212,), (1347117238,), (1347117268,), (1347117319,), (1347117334,), (1347117366,), (1347117369,), (1347117418,), (1347117433,), (1347117738,), (1347117751,), (1347117781,), (1347117811,), (1347117868,), (1347117906,), (1347118059,), (1347118067,), (1347118074,), (1347118079,), (1347118091,), (1347118098,), (1347118191,), (1347118203,), (1347118303,), (1347118338,), (1347118350,), (1347118360,), (1347118371,), (1347118393,), (1347118535,), (1347118556,), (1347118575,), (1347118581,), (1347118587,), (1347118772,), (1347118799,), (1347118824,), (1347118828,), (1347118836,), (1347118923,), (1347118952,), (1347118980,), (1347119013,), (1347119061,), (1347119089,), (1347119490,), (1347119518,), (1347119544,), (1347119574,), (1347119820,), (1347119738,), (1347119776,), (1347119793,), (1347119807,), (1347119813,), (1347120013,), (1347120028,), (1347120035,), (1347120042,), (1347120205,), (1347120209,), (1347120213,), (1347120413,), (1347120420,), (1347120426,), (1347120432,), (1347120440,), (1347120508,), (1347120654,), (1347120659,), (1347120664,), (1347120669,), (1347120686,), (1347120696,), (1347120759,), (1347120763,), (1347120769,), (1347120778,), (1347120837,), (1347120848,), (1347120860,), (1347120868,), (1347120872,), (1347121000,), (1347121004,), (1347121021,), (1347121052,), (1347121070,), (1347121101,), (1347121140,), (1347121141,), (1347121145,), (1347121152,), (1347121253,), (1347121257,), (1347121261,), (1347121295,), (1347121328,), (1347121343,), (1347121430,), (1347121433,), (1347121444,), (1347121549,), (1347121553,), (1347121559,), (1347121645,), (1347121648,), (1347121651,), (1347121655,), (1347121663,), (1347121707,), (1347121715,), (1347121720,), (1347121767,), (1347121771,), (1347121772,), (1347121782,), (1347121790,), (1347122063,), (1347122028,), (1347122045,), (1347122050,), (1347122055,), (1347122059,), (1347122229,), (1347122234,), (1347122238,), (1347122480,), (1347122496,), (1347122525,), (1347122544,), (1347122549,), (1347122642,), (1347122682,), (1347122690,), (1347122706,), (1347122710,), (1347122807,), (1347122810,), (1347122812,), (1347122815,), (1347122921,), (1347122945,), (1347122946,), (1347122963,), (1347123080,), (1347123090,), (1347123099,), (1347123138,), (1347123427,), (1347123435,), (1347123500,), (1347123513,), (1347123546,), (1347123569,), (1347123613,), (1347123618,), (1347123621,), (1347123669,), (1347123671,), (1347124016,), (1347124066,), (1347124122,), (1347124159,), (1347124183,), (1347124322,), (1347124898,), (1347124946,), (1347125008,), (1347125043,), (1347125890,), (1347125903,), (1347125969,), (1347125981,), (1347126025,), (1347126074,), (1347201169,), (1347201204,), (1347201240,), (1347201275,), (1347201389,), (1347201393,), (1347201396,), (1347201400,), (1347201585,), (1347201616,), (1347202157,), (1347202188,), (1347202562,), (1347202586,), (1347202652,), (1347202657,), (1347202832,), (1347203467,), (1347203464,), (1347203605,), (1347203609,), (1347203614,), (1347204008,), (1347204010,), (1347204012,), (1347204043,), (1347204049,), (1347204096,), (1347204100,), (1347204102,), (1347204105,), (1347204160,), (1347204164,), (1347204168,), (1347204173,), (1347204178,), (1347204212,), (1347204215,), (1347204242,), (1347204254,), (1347204270,), (1347204275,), (1347204343,), (1347204347,), (1347204351,), (1347204356,), (1347204362,), (1347204552,), (1347204555,), (1347204557,), (1347204560,), (1347204662,), (1347204668,), (1347204671,), (1347204708,), (1347204719,), (1347204725,), (1347204794,), (1347204805,), (1347204808,), (1347204812,), (1347204817,), (1347204889,), (1347204895,), (1347204902,), (1347204905,), (1347204908,), (1347204952,), (1347204957,), (1347204959,), (1347204963,), (1347204968,), (1347205032,), (1347205050,), (1347205085,), (1347205099,), (1347205104,), (1347205106,), (1347205129,), (1347205134,), (1347205137,), (1347205142,), (1347205173,), (1347205179,), (1347205186,), (1347205190,), (1347205192,), (1347205196,), (1347205378,), (1347205356,), (1347205363,), (1347205366,), (1347205375,), (1347205531,), (1347205551,), (1347205559,), (1347205573,), (1347205575,), (1347205593,), (1347205646,), (1347205662,), (1347205692,), (1347205718,), (1347205956,), (1347205993,), (1347206017,), (1347206046,), (1347206970,), (1347206973,), (1347206975,), (1347206980,), (1347206984,), (1347207016,), (1347207020,), (1347207023,), (1347207045,), (1347207077,), (1347207172,), (1347207174,), (1347207177,), (1347207210,), (1347207217,), (1347207221,), (1347207302,), (1347207307,), (1347207312,), (1347207316,), (1347207382,), (1347207391,), (1347207394,), (1347207400,), (1347207404,), (1347207409,), (1347207439,), (1347207441,), (1347207443,), (1347207448,), (1347207511,), (1347207502,), (1347207504,), (1347207506,), (1347207509,), (1347207750,), (1347207860,), (1347207871,), (1347207876,), (1347207889,), (1347207954,), (1347207962,), (1347207965,), (1347207969,), (1347207996,), (1347208002,), (1347208005,), (1347208007,), (1347208013,), (1347208020,), (1347208099,), (1347208105,), (1347208113,), (1347208198,), (1347208201,), (1347208204,), (1347208209,), (1347208219,), (1347208231,), (1347208292,), (1347208309,), (1347208318,), (1347208325,), (1347208373,), (1347208377,), (1347208380,), (1347208385,), (1347208390,), (1347208452,), (1347208539,), (1347208578,), (1347208585,), (1347208856,), (1347208859,), (1347208893,), (1347208901,), (1347208905,), (1347208965,), (1347208968,), (1347208976,), (1347208983,), (1347209028,), (1347209030,), (1347209033,), (1347209038,), (1347209044,), (1347209049,), (1347209080,), (1347209167,), (1347209195,), (1347209216,), (1347209242,), (1347210248,), (1347210313,), (1347210358,), (1347210384,), (1347210909,), (1347210751,), (1347210784,), (1347210835,), (1347210871,), (1347211453,), (1347211506,), (1347211524,), (1347211569,), (1347211667,), (1347211670,), (1347211673,), (1347211676,), (1347211683,), (1347211690,), (1347211733,), (1347211735,), (1347211749,), (1347211755,), (1347211937,), (1347211938,), (1347212011,), (1347212028,), (1347212033,), (1347212040,), (1347212047,), (1347212053,), (1347212082,), (1347212085,), (1347212179,), (1347212181,), (1347212237,), (1347212242,), (1347212246,), (1347212250,), (1347212255,), (1347212328,), (1347212330,), (1347212332,), (1347212335,), (1347212342,), (1347212507,), (1347212535,), (1347212567,), (1347212627,), (1347212633,), (1347212636,), (1347212642,), (1347212647,), (1347212652,), (1347212688,), (1347212695,), (1347212701,), (1347212706,), (1347212764,), (1347212747,), (1347212749,), (1347212751,), (1347212754,), (1347212759,), (1347212915,), (1347212959,), (1347212962,), (1347212965,), (1347212972,), (1347213005,), (1347213011,), (1347213018,), (1347213023,), (1347213027,), (1347213031,), (1347213073,), (1347213077,), (1347213240,), (1347213336,), (1347213476,), (1347213498,), (1347213505,), (1347213514,), (1347213519,), (1347213542,), (1347213704,), (1347213705,), (1347213711,), (1347213715,), (1347213773,), (1347213777,), (1347213780,), (1347213812,), (1347213841,), (1347213845,), (1347214091,), (1347214104,), (1347214112,), (1347214121,), (1347214128,), (1347214560,), (1347214564,), (1347214572,), (1347214581,), (1347214629,), (1347214655,), (1347214674,), (1347214691,), (1347214783,), (1347214831,), (1347214879,), (1347214881,), (1347214885,), (1347214896,), (1347214904,), (1347214985,), (1347215006,), (1347215010,), (1347215031,), (1347215040,), (1347215137,), (1347215140,), (1347215142,), (1347215147,), (1347215151,), (1347215193,), (1347215197,), (1347215201,), (1347215206,), (1347215507,), (1347215510,), (1347215538,), (1347215561,), (1347215566,), (1347215624,), (1347215609,), (1347215613,), (1347215617,), (1347215621,), (1347215653,), (1347215677,), (1347215701,), (1347215733,), (1347215783,), (1347216059,), (1347216079,), (1347216097,), (1347216125,), (1347216150,), (1347216333,), (1347216354,), (1347216406,), (1347216441,), (1347216483,), (1347216514,), (1347216629,), (1347216637,), (1347216640,), (1347216645,), (1347216659,), (1347216746,), (1347216749,), (1347216759,), (1347216767,), (1347216772,), (1347216777,), (1347216929,), (1347216956,), (1347216983,), (1347217011,), (1347217148,), (1347217165,), (1347217187,), (1347217236,), (1347217265,), (1347217600,), (1347217624,), (1347217647,), (1347217699,), (1347217718,), (1347217737,), (1347218057,), (1347218077,), (1347218099,), (1347218154,), (1347218275,), (1347218294,), (1347218328,), (1347218364,), (1347218403,), (1347218635,), (1347218669,), (1347218692,), (1347218725,), (1347218754,), (1347219010,), (1347219012,), (1347219015,), (1347219035,), (1347219508,), (1347219548,), (1347219569,), (1347219575,), (1347219602,), (1347219644,), (1347219941,), (1347219945,), (1347219948,), (1347219953,), (1347219957,), (1347220022,), (1347220002,), (1347220006,), (1347220015,), (1347220144,), (1347220150,), (1347220156,), (1347220165,), (1347220171,), (1347220176,), (1347220219,), (1347220223,), (1347220232,), (1347220285,), (1347220289,), (1347220292,), (1347220295,), (1347220299,), (1347220348,), (1347220352,), (1347220356,), (1347220455,), (1347220567,), (1347220576,), (1347220591,), (1347220678,), (1347220681,), (1347220684,), (1347220686,), (1347220693,), (1347220697,), (1347220727,), (1347220731,), (1347220735,), (1347220740,), (1347220747,), (1347220771,), (1347220775,), (1347220779,), (1347220786,), (1347220790,), (1347220794,), (1347220867,), (1347220876,), (1347220893,), (1347220898,), (1347220901,), (1347220904,), (1347220967,), (1347220988,), (1347221000,), (1347221011,), (1347221022,), (1347221046,), (1347221053,), (1347221069,), (1347221076,), (1347221140,), (1347221985,), (1347221965,), (1347222306,), (1347222331,), (1347222357,), (1347222469,), (1347222510,), (1347222977,), (1347223024,), (1347223042,), (1347223078,), (1347223112,), (1347223158,), (1347223354,), (1347223381,), (1347223404,), (1347223780,), (1347223819,), (1347223856,), (1347224135,), (1347224163,), (1347225762,), (1347225767,), (1347226400,), (1347226464,), (1347226524,), (1347226572,), (1347226589,), (1347226595,), (1347226675,), (1347226682,), (1347226688,), (1347226710,), (1347227141,), (1347226965,), (1347226990,), (1347226996,), (1347227027,), (1347227121,), (1347227234,), (1347227239,), (1347227242,), (1347227260,), (1347227537,), (1347227539,), (1347227546,), (1347227556,), (1347227561,), (1347227564,), (1347227824,), (1347227841,), (1347227878,), (1347228173,), (1347228202,), (1347228231,), (1347228265,), (1347228299,), (1347228338,), (1347228664,), (1347228698,), (1347228718,), (1347228726,), (1347228912,), (1347228966,), (1347229014,), (1347229044,), (1347229071,), (1347229100,), (1347229507,), (1347229548,), (1347229585,), (1347229620,), (1347229647,), (1347229720,), (1347229723,), (1347229729,), (1347229747,), (1347229767,), (1347229798,), (1347230438,), (1347230489,), (1347230537,), (1347230591,), (1347230912,), (1347230922,), (1347230932,), (1347230955,), (1347230986,), (1347231011,), (1347231356,), (1347231427,), (1347231461,), (1347231490,), (1347231811,), (1347231818,), (1347231824,), (1347231828,), (1347232060,), (1347232064,), (1347232067,), (1347232072,), (1347232076,), (1347232080,), (1347232254,), (1347232272,), (1347232279,), (1347232285,), (1347232310,), (1347232336,), (1347232416,), (1347232396,), (1347232400,), (1347232405,), (1347232409,), (1347232571,), (1347232616,), (1347232634,), (1347232640,), (1347232644,), (1347232696,), (1347232699,), (1347232703,), (1347232708,), (1347232713,), (1347232802,), (1347232884,), (1347232945,), (1347232961,), (1347232993,), (1347233013,), (1347233113,), (1347233122,), (1347233127,), (1347233162,), (1347233231,), (1347233268,), (1347233272,), (1347233276,), (1347233290,), (1347233294,), (1347233325,), (1347233340,), (1347233348,), (1347233461,), (1347233463,), (1347233467,), (1347233470,), (1347233504,), (1347233513,), (1347233517,), (1347233522,), (1347233526,), (1347233529,), (1347233569,), (1347233572,), (1347233577,), (1347233581,), (1347233647,), (1347233651,), (1347233656,), (1347233665,), (1347233682,), (1347233719,), (1347233783,), (1347233826,), (1347233850,), (1347233878,), (1347233910,), (1347234019,), (1347234023,), (1347234024,), (1347234027,), (1347234031,), (1347234038,), (1347234085,), (1347234093,), (1347234096,), (1347234106,), (1347234109,), (1347234327,), (1347234358,), (1347234394,), (1347234412,), (1347234451,), (1347234469,), (1347234560,), (1347234549,), (1347234553,), (1347234556,), (1347234611,), (1347234700,), (1347234706,), (1347234708,), (1347234710,), (1347234719,), (1347234763,), (1347234770,), (1347234775,), (1347234778,), (1347234940,), (1347234973,), (1347235014,), (1347235029,), (1347235051,), (1347235089,), (1347235330,), (1347235334,), (1347235340,), (1347235346,), (1347235389,), (1347235392,), (1347235396,), (1347235402,), (1347235407,), (1347235413,), (1347235435,), (1347235443,), (1347235497,), (1347235502,), (1347235545,), (1347235570,), (1347235589,), (1347235657,), (1347235663,), (1347235667,), (1347235835,), (1347235852,), (1347235876,), (1347235886,), (1347235894,), (1347235948,), (1347235951,), (1347235953,), (1347235958,), (1347235963,), (1347235991,), (1347235993,), (1347235997,), (1347235999,), (1347236002,), (1347236007,), (1347236151,), (1347236192,), (1347236275,), (1347236334,), (1347237058,), (1347237089,), (1347237132,), (1347237157,), (1347237186,), (1347237722,), (1347237762,), (1347237798,), (1347237852,), (1347237881,), (1347237906,), (1347237993,), (1347238031,), (1347238074,), (1347238544,), (1347238217,), (1347238300,), (1347238340,), (1347238382,), (1347238440,), (1347238875,), (1347238917,), (1347238943,), (1347238981,), (1347239046,), (1347239344,), (1347239389,), (1347239440,), (1347239478,), (1347240437,), (1347240493,), (1347240554,), (1347240659,), (1347240733,), (1347240781,), (1347241151,), (1347241158,), (1347241189,), (1347241195,), (1347241202,), (1347241442,), (1347241490,), (1347241542,), (1347241593,), (1347241616,), (1347241706,), (1347242191,), (1347242261,), (1347242308,), (1347242353,), (1347242744,), (1347242760,), (1347242778,), (1347242792,), (1347242998,), (1347243032,), (1347243904,), (1347243945,), (1347244220,), (1347244245,), (1347244253,), (1347244261,), (1347244390,), (1347244449,), (1347244489,), (1347244498,), (1347244536,), (1347244540,), (1347244546,), (1347244568,), (1347244574,), (1347244630,), (1347244635,), (1347244639,), (1347244645,), (1347244652,), (1347244710,), (1347244689,), (1347244693,), (1347244700,), (1347244704,), (1347244708,), (1347244744,), (1347244748,), (1347244765,), (1347244793,), (1347245193,), (1347245222,), (1347245251,), (1347245273,), (1347245299,), (1347245303,), (1347245340,), (1347245345,), (1347245350,), (1347245357,), (1347245363,), (1347245471,), (1347245475,), (1347245479,), (1347245484,), (1347245526,), (1347245531,), (1347245541,), (1347245545,), (1347245549,), (1347245554,), (1347245590,), (1347245595,), (1347245598,), (1347245606,), (1347245610,), (1347245656,), (1347245667,), (1347245676,), (1347245706,), (1347245713,), (1347245913,), (1347245933,), (1347245938,), (1347245958,), (1347245964,), (1347246025,), (1347246027,), (1347246030,), (1347246069,), (1347246073,), (1347246084,), (1347246091,), (1347246093,), (1347246148,), (1347246151,), (1347246154,), (1347246159,), (1347246163,), (1347246199,), (1347246209,), (1347246211,), (1347246215,), (1347246218,), (1347246222,), (1347246253,), (1347246256,), (1347246257,), (1347246319,), (1347264070,), (1347274872,), (1347274920,), (1347274923,), (1347275008,), (1347275013,), (1347275017,), (1347275150,), (1347275183,), (1347275217,), (1347275246,), (1347275313,), (1347275315,), (1347275352,), (1347275470,), (1347275478,), (1347275487,), (1347275500,), (1347275503,), (1347275510,), (1347275513,), (1347275517,), (1347275525,), (1347275543,), (1347275555,), (1347275565,), (1347275571,), (1347275573,), (1347275613,), (1347275614,), (1347275629,), (1347275639,), (1347275715,), (1347275835,), (1347275839,), (1347275858,), (1347275882,), (1347276118,), (1347276145,), (1347276169,), (1347276183,), (1347276211,), (1347276539,), (1347276541,), (1347276542,), (1347276546,), (1347276568,), (1347276748,), (1347276759,), (1347276773,), (1347276783,), (1347276802,), (1347276842,), (1347277032,), (1347276964,), (1347276977,), (1347277004,), (1347277088,), (1347277132,), (1347277147,), (1347277171,), (1347277194,), (1347277360,), (1347277374,), (1347277377,), (1347277381,), (1347277385,), (1347277389,), (1347277779,), (1347277835,), (1347277945,), (1347278009,), (1347278185,), (1347278274,), (1347278298,), (1347278352,), (1347278360,), (1347278368,), (1347278474,), (1347278498,), (1347278503,), (1347278514,), (1347278534,), (1347278903,), (1347278918,), (1347278922,), (1347278934,), (1347279127,), (1347279138,), (1347279147,), (1347279155,), (1347279181,), (1347279202,), (1347279283,), (1347279287,), (1347279291,), (1347279295,), (1347279300,), (1347279385,), (1347279412,), (1347279443,), (1347279453,), (1347279458,), (1347279547,), (1347279550,), (1347279584,), (1347279610,), (1347279680,), (1347279903,), (1347279904,), (1347279927,), (1347279993,), (1347280047,), (1347280420,), (1347280471,), (1347280514,), (1347280554,), (1347280630,), (1347280660,), (1347280982,), (1347280989,), (1347281026,), (1347281066,), (1347281110,), (1347281564,), (1347281590,), (1347281611,), (1347281927,), (1347281779,), (1347281819,), (1347281850,), (1347281859,), (1347281881,), (1347282160,), (1347282261,), (1347282306,), (1347282318,), (1347282473,), (1347282475,), (1347282478,), (1347282487,), (1347282495,), (1347282503,), (1347282552,), (1347282556,), (1347282572,), (1347282583,), (1347282590,), (1347282703,), (1347282712,), (1347282731,), (1347282761,), (1347282784,), (1347282817,), (1347283044,), (1347283072,), (1347283177,), (1347283468,), (1347284156,), (1347284427,), (1347284456,), (1347284474,), (1347284520,), (1347284542,), (1347284699,), (1347284724,), (1347284752,), (1347284773,), (1347284797,), (1347284811,), (1347284837,), (1347284840,), (1347284843,), (1347284844,), (1347285118,), (1347285172,), (1347285210,), (1347285281,), (1347285341,), (1347285409,), (1347285586,), (1347285645,), (1347285717,), (1347285787,), (1347285851,), (1347286187,), (1347286017,), (1347286073,), (1347286128,), (1347287063,), (1347287124,), (1347287189,), (1347287245,), (1347287320,), (1347287386,), (1347288016,), (1347288081,), (1347288136,), (1347288261,), (1347288320,), (1347288732,), (1347288750,), (1347288792,), (1347288844,), (1347288882,), (1347288921,), (1347289314,), (1347289360,), (1347289389,), (1347289444,), (1347289475,), (1347289982,), (1347290033,), (1347290061,), (1347290079,), (1347290205,), (1347290223,), (1347290228,), (1347290244,), (1347290247,), (1347290258,), (1347290282,), (1347290390,), (1347290538,), (1347290549,), (1347290556,), (1347290615,), (1347290629,), (1347290638,), (1347290641,), (1347290646,), (1347290650,), (1347290681,), (1347290708,), (1347290720,), (1347290745,), (1347290753,), (1347290869,), (1347290874,), (1347290878,), (1347290884,), (1347291121,), (1347291122,), (1347291125,), (1347291129,), (1347291134,), (1347291220,), (1347291225,), (1347291230,), (1347291235,), (1347291240,), (1347291244,), (1347291360,), (1347291366,), (1347291372,), (1347291483,), (1347291548,), (1347291630,), (1347291648,), (1347291665,), (1347291695,), (1347291810,), (1347291760,), (1347291786,), (1347291799,), (1347291986,), (1347291994,), (1347292005,), (1347292017,), (1347292043,), (1347292065,), (1347292202,), (1347292238,), (1347292261,), (1347292291,), (1347292560,), (1347292585,), (1347292628,), (1347292679,), (1347292950,), (1347293571,), (1347293587,), (1347293592,), (1347293666,), (1347293672,), (1347293678,), (1347293685,), (1347293723,), (1347293728,), (1347293732,), (1347293745,), (1347293756,), (1347293762,), (1347293886,), (1347293891,), (1347293897,), (1347293903,), (1347293907,), (1347293990,), (1347293998,), (1347294021,), (1347294059,), (1347294096,), (1347294143,), (1347294450,), (1347294482,), (1347294538,), (1347294592,), (1347294749,), (1347294756,), (1347294763,), (1347294770,), (1347294777,), (1347294784,), (1347294802,), (1347294808,), (1347294883,), (1347294942,), (1347294965,), (1347295427,), (1347295679,), (1347295164,), (1347295206,), (1347295230,), (1347295313,), (1347295389,), (1347295507,), (1347295516,), (1347295540,), (1347295608,), (1347295635,), (1347295648,), (1347295670,), (1347295674,), (1347296006,), (1347296022,), (1347296039,), (1347296055,), (1347296139,), (1347296143,), (1347296147,), (1347296151,), (1347296377,), (1347296530,), (1347296553,), (1347296576,), (1347296663,), (1347296667,), (1347296671,), (1347296675,), (1347296787,), (1347296806,), (1347296827,), (1347296853,), (1347296879,), (1347296902,), (1347297113,), (1347297136,), (1347297164,), (1347297436,), (1347297441,), (1347297443,), (1347297447,), (1347297455,), (1347297465,), (1347298000,), (1347298073,), (1347298103,), (1347298176,), (1347298262,), (1347298306,), (1347298782,), (1347298851,), (1347298940,), (1347299425,), (1347299475,), (1347299533,), (1347299594,), (1347299667,), (1347299734,), (1347300414,), (1347300253,), (1347300339,), (1347300366,), (1347300408,), (1347300537,), (1347300558,), (1347300576,), (1347300584,), (1347300594,), (1347300603,), (1347300642,), (1347300652,), (1347300654,), (1347300659,), (1347300663,), (1347300825,), (1347300832,), (1347300850,), (1347300861,), (1347300863,), (1347300927,), (1347300938,), (1347300947,), (1347300960,), (1347300997,), (1347301002,), (1347301286,), (1347301308,), (1347301318,), (1347301327,), (1347301333,), (1347301415,), (1347301421,), (1347301427,), (1347301430,), (1347301435,), (1347301461,), (1347301465,), (1347301468,), (1347301472,), (1347301509,), (1347301515,), (1347301524,), (1347301532,), (1347301539,), (1347301544,), (1347301595,), (1347301600,), (1347301605,), (1347301611,), (1347301637,), (1347301642,), (1347301652,), (1347301661,), (1347301668,), (1347301854,), (1347301904,), (1347301937,), (1347304330,), (1347304305,), (1347304482,), (1347305156,), (1347305181,), (1347305210,), (1347305821,), (1347306149,), (1347306307,), (1347306651,), (1347306655,), (1347306763,), (1347307045,), (1347307341,), (1347307552,), (1347307558,), (1347307567,), (1347307569,), (1347307757,), (1347307786,), (1347307788,), (1347307854,), (1347307856,), (1347307858,), (1347307862,), (1347307894,), (1347307896,), (1347307902,), (1347307906,), (1347307909,), (1347307918,), (1347307987,), (1347307993,), (1347307998,), (1347308000,), (1347308004,), (1347308043,), (1347308047,), (1347308049,), (1347308078,), (1347308501,), (1347308588,), (1347308698,), (1347308930,), (1347308952,), (1347308954,), (1347308962,), (1347308998,), (1347309159,), (1347309162,), (1347309165,), (1347309183,), (1347309185,), (1347309195,), (1347309240,), (1347309298,), (1347309302,), (1347309305,), (1347309341,), (1347309343,), (1347309345,), (1347309347,), (1347309370,), (1347309406,), (1347309401,), (1347309404,), (1347309613,), (1347309762,), (1347309768,), (1347309775,), (1347309812,), (1347310018,), (1347310022,), (1347310113,), (1347310120,), (1347310127,), (1347310259,), (1347310262,), (1347310265,), (1347310269,), (1347310273,), (1347310308,), (1347310311,), (1347310317,), (1347310320,), (1347310334,), (1347310433,), (1347310437,), (1347310440,), (1347310467,), (1347310579,), (1347310584,), (1347310686,), (1347310690,), (1347310693,), (1347310696,), (1347310746,), (1347310751,), (1347310756,), (1347310764,), (1347310766,), (1347310813,), (1347310816,), (1347310819,), (1347310940,), (1347310946,), (1347310948,), (1347311075,), (1347311079,), (1347311083,), (1347311086,), (1347311088,), (1347311091,), (1347311115,), (1347311117,), (1347311121,), (1347311124,), (1347311160,), (1347311164,), (1347311174,), (1347311182,), (1347311185,), (1347311246,), (1347311224,), (1347311226,), (1347311229,), (1347311236,), (1347311296,), (1347311331,), (1347311341,), (1347311348,), (1347311352,), (1347311356,), (1347311418,), (1347311421,), (1347311425,), (1347311429,), (1347311432,), (1347311602,), (1347311607,), (1347311611,), (1347311666,), (1347311668,), (1347311670,), (1347311672,), (1347311673,), (1347311803,), (1347311922,), (1347311924,), (1347311926,), (1347311954,), (1347311958,), (1347311974,), (1347311988,), (1347311995,), (1347312021,), (1347312025,), (1347312030,), (1347312036,), (1347312046,), (1347312084,), (1347312090,), (1347312094,), (1347312101,), (1347312120,), (1347312124,), (1347312129,), (1347312137,), (1347312142,), (1347312180,), (1347312186,), (1347312199,), (1347312202,), (1347312206,), (1347312219,), (1347312291,), (1347312295,), (1347312320,), (1347312350,), (1347312381,), (1347312728,), (1347312745,), (1347312750,), (1347313527,), (1347313558,), (1347313585,), (1347313613,), (1347313646,), (1347313652,), (1347313687,), (1347313695,), (1347313719,), (1347313837,), (1347313796,), (1347313822,), (1347314525,), (1347314634,), (1347314761,), (1347314831,), (1347314866,), (1347314979,), (1347314981,), (1347314983,), (1347314987,), (1347314995,), (1347315070,), (1347315076,), (1347315126,), (1347315203,), (1347315261,), (1347315319,), (1347315736,), (1347315765,), (1347316162,), (1347316168,), (1347316196,), (1347316246,), (1347316276,), (1347316496,), (1347316538,), (1347316589,), (1347316626,), (1347316903,), (1347316942,), (1347316969,), (1347316997,), (1347318108,), (1347318377,), (1347319408,), (1347319424,), (1347319440,), (1347319459,), (1347319797,), (1347319841,), (1347319887,), (1347319908,), (1347319942,), (1347320647,), (1347320670,), (1347320724,), (1347320768,), (1347320785,), (1347320837,), (1347321265,), (1347321294,), (1347321317,), (1347321334,), (1347321639,), (1347321666,), (1347321691,), (1347321709,), (1347322125,), (1347322142,), (1347322192,), (1347322248,), (1347322962,), (1347322754,), (1347322799,), (1347322827,), (1347322891,), (1347322939,), (1347323201,), (1347323223,), (1347323831,), (1347323841,), (1347323858,), (1347323902,), (1347324028,), (1347324504,), (1347324507,), (1347324513,), (1347324523,), (1347324531,), (1347324556,), (1347324980,), (1347325003,), (1347325058,), (1347325459,), (1347325495,), (1347325565,), (1347325616,), (1347325665,), (1347325955,), (1347325989,), (1347326020,), (1347326045,), (1347326350,), (1347326392,), (1347326440,), (1347326497,), (1347326566,), (1347326948,), (1347326994,), (1347327030,), (1347327553,), (1347327631,), (1347327777,), (1347328445,), (1347328484,), (1347328540,), (1347328590,), (1347328662,), (1347329122,), (1347329267,), (1347329347,), (1347329439,), (1347329487,), (1347329980,), (1347330027,), (1347330063,), (1347330096,), (1347330135,), (1347330178,), (1347330389,), (1347330413,), (1347330459,), (1347330656,), (1347330683,), (1347330709,), (1347330738,), (1347330763,), (1347331377,), (1347331111,), (1347331193,), (1347331228,), (1347331291,), (1347331764,), (1347331808,), (1347332405,), (1347332440,), (1347332470,), (1347332498,), (1347332522,), (1347333709,), (1347334566,), (1347338666,), (1347338695,), (1347339427,), (1347343022,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'25032025': {'nb_upload': 69, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21701715]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1347264070] map_info['map_portfolio_photo'] : {21701715: [1347264070, 1347246319, 1347246257, 1347246256, 1347246253, 1347246222, 1347246218, 1347246215, 1347246211, 1347246209, 1347246199, 1347246163, 1347246159, 1347246154, 1347246151, 1347246148, 1347246093, 1347246091, 1347246084, 1347246073, 1347246069, 1347246030, 1347246027, 1347246025, 1347245964, 1347245958, 1347245938, 1347245933, 1347245913, 1347245713, 1347245706, 1347245676, 1347245667, 1347245656, 1347245610, 1347245606, 1347245598, 1347245595, 1347245590, 1347245554, 1347245549, 1347245545, 1347245541, 1347245531, 1347245526, 1347245484, 1347245479, 1347245475, 1347245471, 1347245363, 1347245357, 1347245350, 1347245345, 1347245340, 1347245303, 1347245299, 1347245273, 1347245251, 1347245222, 1347245193, 1347244793, 1347244765, 1347244748, 1347244744, 1347244708, 1347244704, 1347244700, 1347244693, 1347244689]} final : True mtd_id 4302 list_pids : [1347264070] Looping around the photos to save general results len do output : 1 /21701715Didn'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, '2690121') ('4302', '21701715', '1347264070', None, None, None, None, None, '2690121') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 2 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, '21701715', 'None', None, None, None, None, '2690121'), ('4302', '21701715', '1347264070', None, None, None, None, None, '2690121')] time used for this insertion : 0.012153863906860352 save_final save missing photos in datou_result : time spend for datou_step_exec : 5.020002365112305 time spend to save output : 0.012267112731933594 total time spend for step 5 : 5.032269477844238 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 (2690121) 2.47user 2.48system 0:23.51elapsed 21%CPU (0avgtext+0avgdata 155732maxresident)k 89032inputs+17216outputs (366major+72392minor)pagefaults 0swaps